From c0db9a2f3d552b19975344d7c883cbcaef2fc9d8 Mon Sep 17 00:00:00 2001 From: ellatrix Date: Fri, 26 Jun 2020 13:33:47 +0000 Subject: [PATCH] Editor: update JavaScript packages Also update default block categories Props youknowriad, gziolo, aduth. Fixes #50420, #50278. Built from https://develop.svn.wordpress.org/trunk@48177 git-svn-id: http://core.svn.wordpress.org/trunk@47946 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 18 +- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/blocks/archives.php | 21 +- wp-includes/blocks/archives/block.json | 31 + wp-includes/blocks/block.php | 9 +- wp-includes/blocks/block/block.json | 14 + wp-includes/blocks/calendar.php | 19 +- wp-includes/blocks/calendar/block.json | 28 + wp-includes/blocks/categories.php | 25 +- wp-includes/blocks/categories/block.json | 35 + wp-includes/blocks/latest-comments.php | 37 +- wp-includes/blocks/latest-comments/block.json | 41 + wp-includes/blocks/latest-posts.php | 143 +- wp-includes/blocks/latest-posts/block.json | 96 + wp-includes/blocks/rss.php | 47 +- wp-includes/blocks/rss/block.json | 55 + wp-includes/blocks/search.php | 25 +- wp-includes/blocks/search/block.json | 33 + wp-includes/blocks/shortcode.php | 13 +- wp-includes/blocks/shortcode/block.json | 5 + wp-includes/blocks/social-link.php | 27 +- wp-includes/blocks/social-link/block.json | 9 +- wp-includes/blocks/tag-cloud.php | 21 +- wp-includes/blocks/tag-cloud/block.json | 31 + .../css/dist/block-directory/style-rtl.css | 165 +- .../dist/block-directory/style-rtl.min.css | 2 +- .../css/dist/block-directory/style.css | 165 +- .../css/dist/block-directory/style.min.css | 2 +- .../css/dist/block-editor/style-rtl.css | 2501 +- .../css/dist/block-editor/style-rtl.min.css | 2 +- wp-includes/css/dist/block-editor/style.css | 2509 +- .../css/dist/block-editor/style.min.css | 6 +- .../css/dist/block-library/editor-rtl.css | 1078 +- .../css/dist/block-library/editor-rtl.min.css | 2 +- wp-includes/css/dist/block-library/editor.css | 1078 +- .../css/dist/block-library/editor.min.css | 4 +- .../css/dist/block-library/style-rtl.css | 692 +- .../css/dist/block-library/style-rtl.min.css | 2 +- wp-includes/css/dist/block-library/style.css | 693 +- .../css/dist/block-library/style.min.css | 4 +- .../css/dist/block-library/theme-rtl.css | 35 +- .../css/dist/block-library/theme-rtl.min.css | 2 +- wp-includes/css/dist/block-library/theme.css | 35 +- .../css/dist/block-library/theme.min.css | 2 +- wp-includes/css/dist/components/style-rtl.css | 2161 +- .../css/dist/components/style-rtl.min.css | 2 +- wp-includes/css/dist/components/style.css | 2161 +- wp-includes/css/dist/components/style.min.css | 8 +- wp-includes/css/dist/edit-post/style-rtl.css | 1927 +- .../css/dist/edit-post/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-post/style.css | 1927 +- wp-includes/css/dist/edit-post/style.min.css | 2 +- .../css/dist/editor/editor-styles-rtl.css | 50 +- .../css/dist/editor/editor-styles-rtl.min.css | 2 +- wp-includes/css/dist/editor/editor-styles.css | 50 +- .../css/dist/editor/editor-styles.min.css | 2 +- wp-includes/css/dist/editor/style-rtl.css | 568 +- wp-includes/css/dist/editor/style-rtl.min.css | 2 +- wp-includes/css/dist/editor/style.css | 572 +- wp-includes/css/dist/editor/style.min.css | 2 +- .../css/dist/format-library/style-rtl.css | 49 +- .../css/dist/format-library/style-rtl.min.css | 2 +- wp-includes/css/dist/format-library/style.css | 49 +- .../css/dist/format-library/style.min.css | 2 +- .../dist/list-reusable-blocks/style-rtl.css | 65 +- .../list-reusable-blocks/style-rtl.min.css | 2 +- .../css/dist/list-reusable-blocks/style.css | 65 +- .../dist/list-reusable-blocks/style.min.css | 2 +- wp-includes/css/dist/nux/style-rtl.css | 31 +- wp-includes/css/dist/nux/style-rtl.min.css | 2 +- wp-includes/css/dist/nux/style.css | 31 +- wp-includes/css/dist/nux/style.min.css | 2 +- wp-includes/js/dist/a11y.js | 152 +- wp-includes/js/dist/a11y.min.js | 2 +- wp-includes/js/dist/annotations.js | 308 +- wp-includes/js/dist/annotations.min.js | 2 +- wp-includes/js/dist/api-fetch.js | 33 +- wp-includes/js/dist/api-fetch.min.js | 2 +- wp-includes/js/dist/autop.js | 78 +- wp-includes/js/dist/autop.min.js | 2 +- wp-includes/js/dist/blob.js | 6 +- wp-includes/js/dist/blob.min.js | 2 +- wp-includes/js/dist/block-directory.js | 1551 +- wp-includes/js/dist/block-directory.min.js | 2 +- wp-includes/js/dist/block-editor.js | 61066 ++++++++-------- wp-includes/js/dist/block-editor.min.js | 44 +- wp-includes/js/dist/block-library.js | 12037 +-- wp-includes/js/dist/block-library.min.js | 23 +- .../block-serialization-default-parser.js | 20 +- .../block-serialization-default-parser.min.js | 2 +- wp-includes/js/dist/blocks.js | 1836 +- wp-includes/js/dist/blocks.min.js | 4 +- wp-includes/js/dist/components.js | 51578 +++++++------ wp-includes/js/dist/components.min.js | 15 +- wp-includes/js/dist/compose.js | 1944 +- wp-includes/js/dist/compose.min.js | 9 +- wp-includes/js/dist/core-data.js | 1867 +- wp-includes/js/dist/core-data.min.js | 2 +- wp-includes/js/dist/data-controls.js | 95 +- wp-includes/js/dist/data-controls.min.js | 2 +- wp-includes/js/dist/data.js | 1193 +- wp-includes/js/dist/data.min.js | 2 +- wp-includes/js/dist/date.js | 208 +- wp-includes/js/dist/date.min.js | 10 +- wp-includes/js/dist/deprecated.js | 8 +- wp-includes/js/dist/deprecated.min.js | 2 +- wp-includes/js/dist/dom-ready.js | 4 +- wp-includes/js/dist/dom-ready.min.js | 2 +- wp-includes/js/dist/dom.js | 96 +- wp-includes/js/dist/dom.min.js | 2 +- wp-includes/js/dist/edit-post.js | 4573 +- wp-includes/js/dist/edit-post.min.js | 4 +- wp-includes/js/dist/editor.js | 3712 +- wp-includes/js/dist/editor.min.js | 6 +- wp-includes/js/dist/element.js | 315 +- wp-includes/js/dist/element.min.js | 2 +- wp-includes/js/dist/escape-html.js | 4 +- wp-includes/js/dist/escape-html.min.js | 2 +- wp-includes/js/dist/format-library.js | 772 +- wp-includes/js/dist/format-library.min.js | 2 +- wp-includes/js/dist/hooks.js | 20 +- wp-includes/js/dist/hooks.min.js | 2 +- wp-includes/js/dist/html-entities.js | 28 +- wp-includes/js/dist/html-entities.min.js | 2 +- wp-includes/js/dist/i18n.js | 406 +- wp-includes/js/dist/i18n.min.js | 2 +- wp-includes/js/dist/is-shallow-equal.js | 14 +- wp-includes/js/dist/is-shallow-equal.min.js | 2 +- wp-includes/js/dist/keyboard-shortcuts.js | 112 +- wp-includes/js/dist/keyboard-shortcuts.min.js | 2 +- wp-includes/js/dist/keycodes.js | 48 +- wp-includes/js/dist/keycodes.min.js | 2 +- wp-includes/js/dist/list-reusable-blocks.js | 156 +- .../js/dist/list-reusable-blocks.min.js | 2 +- wp-includes/js/dist/media-utils.js | 536 +- wp-includes/js/dist/media-utils.min.js | 2 +- wp-includes/js/dist/notices.js | 20 +- wp-includes/js/dist/notices.min.js | 2 +- wp-includes/js/dist/nux.js | 152 +- wp-includes/js/dist/nux.min.js | 2 +- wp-includes/js/dist/plugins.js | 244 +- wp-includes/js/dist/plugins.min.js | 2 +- wp-includes/js/dist/primitives.js | 85 +- wp-includes/js/dist/primitives.min.js | 4 +- wp-includes/js/dist/priority-queue.js | 40 +- wp-includes/js/dist/priority-queue.min.js | 2 +- wp-includes/js/dist/redux-routine.js | 79 +- wp-includes/js/dist/redux-routine.min.js | 2 +- wp-includes/js/dist/rich-text.js | 2444 +- wp-includes/js/dist/rich-text.min.js | 4 +- wp-includes/js/dist/server-side-render.js | 238 +- wp-includes/js/dist/server-side-render.min.js | 2 +- wp-includes/js/dist/shortcode.js | 8 +- wp-includes/js/dist/shortcode.min.js | 2 +- wp-includes/js/dist/token-list.js | 100 +- wp-includes/js/dist/token-list.min.js | 2 +- wp-includes/js/dist/url.js | 117 +- wp-includes/js/dist/url.min.js | 2 +- wp-includes/js/dist/viewport.js | 86 +- wp-includes/js/dist/viewport.min.js | 2 +- wp-includes/js/dist/warning.js | 8 +- wp-includes/js/dist/warning.min.js | 2 +- wp-includes/js/dist/wordcount.js | 40 +- wp-includes/js/dist/wordcount.min.js | 2 +- wp-includes/version.php | 2 +- 165 files changed, 89060 insertions(+), 79078 deletions(-) create mode 100644 wp-includes/blocks/archives/block.json create mode 100644 wp-includes/blocks/block/block.json create mode 100644 wp-includes/blocks/calendar/block.json create mode 100644 wp-includes/blocks/categories/block.json create mode 100644 wp-includes/blocks/latest-comments/block.json create mode 100644 wp-includes/blocks/latest-posts/block.json create mode 100644 wp-includes/blocks/rss/block.json create mode 100644 wp-includes/blocks/search/block.json create mode 100644 wp-includes/blocks/tag-cloud/block.json diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index e4d919866c..907f92b46a 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -2179,33 +2179,33 @@ function use_block_editor_for_post_type( $post_type ) { function get_block_categories( $post ) { $default_categories = array( array( - 'slug' => 'common', - 'title' => __( 'Common Blocks' ), + 'slug' => 'text', + 'title' => _x( 'Text', 'block category' ), 'icon' => null, ), array( - 'slug' => 'formatting', - 'title' => __( 'Formatting' ), + 'slug' => 'media', + 'title' => _x( 'Media', 'block category' ), 'icon' => null, ), array( - 'slug' => 'layout', - 'title' => __( 'Layout Elements' ), + 'slug' => 'design', + 'title' => _x( 'Design', 'block category' ), 'icon' => null, ), array( 'slug' => 'widgets', - 'title' => __( 'Widgets' ), + 'title' => _x( 'Widgets', 'block category' ), 'icon' => null, ), array( 'slug' => 'embed', - 'title' => __( 'Embeds' ), + 'title' => _x( 'Embeds', 'block category' ), 'icon' => null, ), array( 'slug' => 'reusable', - 'title' => __( 'Reusable Blocks' ), + 'title' => _x( 'Reusable Blocks', 'block category' ), 'icon' => null, ), ); diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index bda6d1cc08..5e57f7e95d 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => 'b101cdd7bb3ce7e41a50dabcc7a7a01c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'c32d429d3012d9d46c0b1874fa1b6560'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'b437dd9d1118e698b1b85961e759bf03'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa8f88d2344416fcd2f7946cac4d5dd4'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '60ed48227f0a303ddf818dc8dc3e16fd'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '51d7097d8f9501396fc6f2299bdd61f9'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'aacb5c07c68e448af6536df79db8f400'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '067800bc020babb22719c7a030bf65d9'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30e97d4a87a3a28bd9052050ce276b47'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '423068d7079f57cf9f02458ccb4a6131'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '413529cbfa01c6dbc09f76d3fac88945'), 'compose.js' => array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '3c7f1e5a90aa3c9e9b0f65014efccb35'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '30bbd0e8996befdf7ce081c737c9c75c'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'e80048e7b309581a40e44b8bd8aaba41'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '01499e0a61256afb555131b4ed614fed'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '87f9d64d7050eeeffa6a6f670f0c546e'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'cd9e35508705772fbc5e2d9736bde31b'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd5a855959d05b829ed293851a9f6c034'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '91fc8f05178d5c6365aec778f840ae17'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '99ca111a562584048ddeb818a39c18f6'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'bb928f624169f992ec79a4889c7abf35'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '2b503827a5d3cc1e71097a6e9622fed4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'df3aea46fc6e3563882bc8891b21101d'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '1cceafc98ef77eb54f1da78b10949b4b'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b33812efb363979cc606e6c29a1deb61'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '81efc2ce02f13b864d66666c7bec2136'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '61a2b8dda6efb2e1a0a5b0c383f14c79'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a4b6079b15ec86d646a9228996f79cf7'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '3a13034743b117d721933003bb9ec038'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'b826ff410cc2fc12e0f380ba44c0640e'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '9d0a3503da5d5c98d8e6b09c0f01e94b'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '591443ff969b73a6db3bc4d8cc57722d'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '74c8f15ff58eb236879fb3c4bcc0b9e2'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'd5dfc71a7f3850546418d63523c830cd'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => 'b1050e54f3a934a1c06648c984d141ed'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ecfd167b66d8272c99af2b0220535f33'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8d7738a3dac3e69a70c11e046ecfd5ff'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7b7d8224ca3d5f24509583833d71c388'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '942ff14b26cac991c71bdc5fd907ea4b'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0982eea1efaf70db5d7a28a18b7f8bfa'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6b07711152e32e32d3fc082cc7dd632c'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f2fd25ef34512e2ebba30cfede36f1da'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'b7106409bea2c78aabddc45249f7c1fc'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'bd1f26c406a930c6d96f1b5687719a53'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '98c469cb6d86983eb5fa9fc7a8dfa0c4'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9150aaeb7f6f1fa5807a8a9190af7ece')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'd814712be2a1960841690c9b16330db5'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '652c21fafd61cb3f3f2addb833edfc6e'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '43ff308ad3454c150a8e8a98caa822b5'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd6ec7ec81820241f9769ef995dbd8d12'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f78fb2300f5db4c41b53f73a01ff6f1e'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '1c29db7415f2830adfe420293294597e'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '785ad2cbcdef7bb14aab3bbb74c19656'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '2612acdba5bf760899c5f6d0d391abd3'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '579b8c1c50a723eaac112540b86a4fe9'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'e7d60dd044b162eae6ad3b40457913e5'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '1c50a87eb7f658a5b8175a67629578d4'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => '3dd093f5c0612ba45d1a66019d5d71eb'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '6cb545785227c634a311c546b3a94b14'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '126b30fbcb2d1c6c3e5af41929e6b94a'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => 'c4fe8821779c8f7873bc2a6538a56559'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'b9029a1d4ad032154c83d0a6118762bc'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'b355d6f0d8f8adaf509842a248e77458'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7f31c6effdef5a1738e73ec481d57fbf'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0045bbf5427b50021b6afa7f8da84d26'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '7ea00def278eedad0bf758405dd1b910'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '6bed8bdf935e1cd423d79412f8cba7f1'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '6f19a2415168e5684f43df09f6f4d5ed'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '670c5fa5c09d8ba475458050b3249f56'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '3e1523530ba2e814ed4fbd1b02670a01'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7843e40d40059b769252c3bb3ed41b97'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c2fee572c38a50f71d231d83bf66b7bf'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2e4d7492f1098752a752f8c21c5e8581'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '78161a3fee0727a7bcf127e5c9bedee7'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '485ee9c58ad7a7edeff6453d7fc32250'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'cb0ad8aff4911bcd5aa2f8123437bc32'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'a244c57360ad74afb871e8a1f9149b81'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '0c3bdceeaa954ae2e25ed8d2086ca4f1'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b5d1fb6d2b8a7e1526dc625c3da3d5ca'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '0e60977c2a4e5333beb1a3451826a302'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => 'd5ea336348f6fca2e6979c5a31423d2c'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '0f38cf47a5c6a8faba4f11db9cfac37e'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ee1e102398b6aaeb52682abcc0eb1260'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'b67565640cd226d246655d934f1ea209'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '45757c5d853a2b0303220730905a7069'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0db38ff3e45f87a6e3f01d531778ef48'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'faae0a5043df779ab3bd0a9c76095bcc'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4fb88e495cc63c15ab2950abab1401d1'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd3f8a8d7bfc70ffd843624fca764d4ee'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => 'f9f4ca9cdbc0feffb73fe27fe4e74272'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a2b2b3f60d07a1df7ff0b4b43e384bb4'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '1b5659d14dfec85f62c73f5f63311edf')); \ No newline at end of file diff --git a/wp-includes/blocks/archives.php b/wp-includes/blocks/archives.php index 172b1c7c84..3499c8599c 100644 --- a/wp-includes/blocks/archives.php +++ b/wp-includes/blocks/archives.php @@ -116,26 +116,9 @@ function render_block_core_archives( $attributes ) { * Register archives block. */ function register_block_core_archives() { - register_block_type( - 'core/archives', + register_block_type_from_metadata( + __DIR__ . '/archives', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'displayAsDropdown' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'showPostCounts' => array( - 'type' => 'boolean', - 'default' => false, - ), - ), 'render_callback' => 'render_block_core_archives', ) ); diff --git a/wp-includes/blocks/archives/block.json b/wp-includes/blocks/archives/block.json new file mode 100644 index 0000000000..fa460e5cb1 --- /dev/null +++ b/wp-includes/blocks/archives/block.json @@ -0,0 +1,31 @@ +{ + "name": "core/archives", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "displayAsDropdown": { + "type": "boolean", + "default": false + }, + "showPostCounts": { + "type": "boolean", + "default": false + } + }, + "supports": { + "align": true, + "html": false + } +} diff --git a/wp-includes/blocks/block.php b/wp-includes/blocks/block.php index 24d2ab570a..5fed48bd9a 100644 --- a/wp-includes/blocks/block.php +++ b/wp-includes/blocks/block.php @@ -33,14 +33,9 @@ function render_block_core_block( $attributes ) { * Registers the `core/block` block. */ function register_block_core_block() { - register_block_type( - 'core/block', + register_block_type_from_metadata( + __DIR__ . '/block', array( - 'attributes' => array( - 'ref' => array( - 'type' => 'number', - ), - ), 'render_callback' => 'render_block_core_block', ) ); diff --git a/wp-includes/blocks/block/block.json b/wp-includes/blocks/block/block.json new file mode 100644 index 0000000000..c6a21217ae --- /dev/null +++ b/wp-includes/blocks/block/block.json @@ -0,0 +1,14 @@ +{ + "name": "core/block", + "category": "reusable", + "attributes": { + "ref": { + "type": "number" + } + }, + "supports": { + "customClassName": false, + "html": false, + "inserter": false + } +} diff --git a/wp-includes/blocks/calendar.php b/wp-includes/blocks/calendar.php index 3d2e8061ba..169adf2131 100644 --- a/wp-includes/blocks/calendar.php +++ b/wp-includes/blocks/calendar.php @@ -52,24 +52,9 @@ function render_block_core_calendar( $attributes ) { * Registers the `core/calendar` block on server. */ function register_block_core_calendar() { - register_block_type( - 'core/calendar', + register_block_type_from_metadata( + __DIR__ . '/calendar', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'month' => array( - 'type' => 'integer', - ), - 'year' => array( - 'type' => 'integer', - ), - ), 'render_callback' => 'render_block_core_calendar', ) ); diff --git a/wp-includes/blocks/calendar/block.json b/wp-includes/blocks/calendar/block.json new file mode 100644 index 0000000000..15f3624e91 --- /dev/null +++ b/wp-includes/blocks/calendar/block.json @@ -0,0 +1,28 @@ +{ + "name": "core/calendar", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "month": { + "type": "integer" + }, + "year": { + "type": "integer" + } + }, + "supports": { + "align": true + } +} diff --git a/wp-includes/blocks/categories.php b/wp-includes/blocks/categories.php index 159bb8b799..34dc2c959d 100644 --- a/wp-includes/blocks/categories.php +++ b/wp-includes/blocks/categories.php @@ -89,30 +89,9 @@ function build_dropdown_script_block_core_categories( $dropdown_id ) { * Registers the `core/categories` block on server. */ function register_block_core_categories() { - register_block_type( - 'core/categories', + register_block_type_from_metadata( + __DIR__ . '/categories', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'displayAsDropdown' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'showHierarchy' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'showPostCounts' => array( - 'type' => 'boolean', - 'default' => false, - ), - ), 'render_callback' => 'render_block_core_categories', ) ); diff --git a/wp-includes/blocks/categories/block.json b/wp-includes/blocks/categories/block.json new file mode 100644 index 0000000000..c5ecd8deb2 --- /dev/null +++ b/wp-includes/blocks/categories/block.json @@ -0,0 +1,35 @@ +{ + "name": "core/categories", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "displayAsDropdown": { + "type": "boolean", + "default": false + }, + "showHierarchy": { + "type": "boolean", + "default": false + }, + "showPostCounts": { + "type": "boolean", + "default": false + } + }, + "supports": { + "align": true, + "html": false + } +} diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php index d68e89a152..20a3862792 100644 --- a/wp-includes/blocks/latest-comments.php +++ b/wp-includes/blocks/latest-comments.php @@ -152,42 +152,9 @@ function render_block_core_latest_comments( $attributes = array() ) { * Registers the `core/latest-comments` block. */ function register_block_core_latest_comments() { - register_block_type( - 'core/latest-comments', + register_block_type_from_metadata( + __DIR__ . '/latest-comments', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( - 'left', - 'center', - 'right', - 'wide', - 'full', - ), - ), - 'className' => array( - 'type' => 'string', - ), - 'commentsToShow' => array( - 'type' => 'number', - 'default' => 5, - 'minimum' => 1, - 'maximum' => 100, - ), - 'displayAvatar' => array( - 'type' => 'boolean', - 'default' => true, - ), - 'displayDate' => array( - 'type' => 'boolean', - 'default' => true, - ), - 'displayExcerpt' => array( - 'type' => 'boolean', - 'default' => true, - ), - ), 'render_callback' => 'render_block_core_latest_comments', ) ); diff --git a/wp-includes/blocks/latest-comments/block.json b/wp-includes/blocks/latest-comments/block.json new file mode 100644 index 0000000000..1bcee4c577 --- /dev/null +++ b/wp-includes/blocks/latest-comments/block.json @@ -0,0 +1,41 @@ +{ + "name": "core/latest-comments", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "commentsToShow": { + "type": "number", + "default": 5, + "minimum": 1, + "maximum": 100 + }, + "displayAvatar": { + "type": "boolean", + "default": true + }, + "displayDate": { + "type": "boolean", + "default": true + }, + "displayExcerpt": { + "type": "boolean", + "default": true + } + }, + "supports": { + "align": true, + "html": false + } +} diff --git a/wp-includes/blocks/latest-posts.php b/wp-includes/blocks/latest-posts.php index 6e96f10461..837b8aa145 100644 --- a/wp-includes/blocks/latest-posts.php +++ b/wp-includes/blocks/latest-posts.php @@ -33,7 +33,7 @@ function block_core_latest_posts_get_excerpt_length() { * @return string Returns the post content with latest posts added. */ function render_block_core_latest_posts( $attributes ) { - global $block_core_latest_posts_excerpt_length; + global $post, $block_core_latest_posts_excerpt_length; $args = array( 'posts_per_page' => $attributes['postsToShow'], @@ -47,7 +47,10 @@ function render_block_core_latest_posts( $attributes ) { add_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); if ( isset( $attributes['categories'] ) ) { - $args['category'] = $attributes['categories']; + $args['category__in'] = array_column( $attributes['categories'], 'id' ); + } + if ( isset( $attributes['selectedAuthor'] ) ) { + $args['author'] = $attributes['selectedAuthor']; } $recent_posts = get_posts( $args ); @@ -55,6 +58,7 @@ function render_block_core_latest_posts( $attributes ) { $list_items_markup = ''; foreach ( $recent_posts as $post ) { + $list_items_markup .= '
  • '; if ( $attributes['displayFeaturedImage'] && has_post_thumbnail( $post ) ) { @@ -94,6 +98,20 @@ function render_block_core_latest_posts( $attributes ) { $title ); + if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { + $author_display_name = get_the_author_meta( 'display_name', $post->post_author ); + + /* translators: byline. %s: current author. */ + $byline = sprintf( __( 'by %s' ), $author_display_name ); + + if ( ! empty( $author_display_name ) ) { + $list_items_markup .= sprintf( + '', + esc_html( $byline ) + ); + } + } + if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) { $list_items_markup .= sprintf( '', @@ -108,21 +126,9 @@ function render_block_core_latest_posts( $attributes ) { $trimmed_excerpt = get_the_excerpt( $post ); $list_items_markup .= sprintf( - '
    %1$s', + '
    %1$s
    ', $trimmed_excerpt ); - - if ( strpos( $trimmed_excerpt, ' … ' ) !== false ) { - $list_items_markup .= sprintf( - '%2$s
    ', - esc_url( get_permalink( $post ) ), - __( 'Read more' ) - ); - } else { - $list_items_markup .= sprintf( - '' - ); - } } if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] @@ -155,6 +161,10 @@ function render_block_core_latest_posts( $attributes ) { $class .= ' has-dates'; } + if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { + $class .= ' has-author'; + } + if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } @@ -170,79 +180,42 @@ function render_block_core_latest_posts( $attributes ) { * Registers the `core/latest-posts` block on server. */ function register_block_core_latest_posts() { - register_block_type( - 'core/latest-posts', + register_block_type_from_metadata( + __DIR__ . '/latest-posts', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'categories' => array( - 'type' => 'string', - ), - 'postsToShow' => array( - 'type' => 'number', - 'default' => 5, - ), - 'displayPostContent' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'displayPostContentRadio' => array( - 'type' => 'string', - 'default' => 'excerpt', - ), - 'excerptLength' => array( - 'type' => 'number', - 'default' => 55, - ), - 'displayPostDate' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'postLayout' => array( - 'type' => 'string', - 'default' => 'list', - ), - 'columns' => array( - 'type' => 'number', - 'default' => 3, - ), - 'order' => array( - 'type' => 'string', - 'default' => 'desc', - ), - 'orderBy' => array( - 'type' => 'string', - 'default' => 'date', - ), - 'displayFeaturedImage' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'featuredImageAlign' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right' ), - ), - 'featuredImageSizeSlug' => array( - 'type' => 'string', - 'default' => 'thumbnail', - ), - 'featuredImageSizeWidth' => array( - 'type' => 'number', - 'default' => null, - ), - 'featuredImageSizeHeight' => array( - 'type' => 'number', - 'default' => null, - ), - ), 'render_callback' => 'render_block_core_latest_posts', ) ); } add_action( 'init', 'register_block_core_latest_posts' ); + +/** + * Handles outdated versions of the `core/latest-posts` block by converting + * attribute `categories` from a numeric string to an array with key `id`. + * + * This is done to accommodate the changes introduced in #20781 that sought to + * add support for multiple categories to the block. However, given that this + * block is dynamic, the usual provisions for block migration are insufficient, + * as they only act when a block is loaded in the editor. + * + * TODO: Remove when and if the bottom client-side deprecation for this block + * is removed. + * + * @param array $block A single parsed block object. + * + * @return array The migrated block object. + */ +function block_core_latest_posts_migrate_categories( $block ) { + if ( + 'core/latest-posts' === $block['blockName'] && + ! empty( $block['attrs']['categories'] ) && + is_string( $block['attrs']['categories'] ) + ) { + $block['attrs']['categories'] = array( + array( 'id' => absint( $block['attrs']['categories'] ) ), + ); + } + + return $block; +} +add_filter( 'render_block_data', 'block_core_latest_posts_migrate_categories' ); diff --git a/wp-includes/blocks/latest-posts/block.json b/wp-includes/blocks/latest-posts/block.json new file mode 100644 index 0000000000..da7d40bbc9 --- /dev/null +++ b/wp-includes/blocks/latest-posts/block.json @@ -0,0 +1,96 @@ +{ + "name": "core/latest-posts", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "object" + } + }, + "selectedAuthor": { + "type": "number" + }, + "postsToShow": { + "type": "number", + "default": 5 + }, + "displayPostContent": { + "type": "boolean", + "default": false + }, + "displayPostContentRadio": { + "type": "string", + "default": "excerpt" + }, + "excerptLength": { + "type": "number", + "default": 55 + }, + "displayAuthor": { + "type": "boolean", + "default": false + }, + "displayPostDate": { + "type": "boolean", + "default": false + }, + "postLayout": { + "type": "string", + "default": "list" + }, + "columns": { + "type": "number", + "default": 3 + }, + "order": { + "type": "string", + "default": "desc" + }, + "orderBy": { + "type": "string", + "default": "date" + }, + "displayFeaturedImage": { + "type": "boolean", + "default": false + }, + "featuredImageAlign": { + "type": "string", + "enum": [ + "left", + "center", + "right" + ] + }, + "featuredImageSizeSlug": { + "type": "string", + "default": "thumbnail" + }, + "featuredImageSizeWidth": { + "type": "number", + "default": null + }, + "featuredImageSizeHeight": { + "type": "number", + "default": null + } + }, + "supports": { + "align": true, + "html": false + } +} diff --git a/wp-includes/blocks/rss.php b/wp-includes/blocks/rss.php index 07ddb3d007..f98f6343c1 100644 --- a/wp-includes/blocks/rss.php +++ b/wp-includes/blocks/rss.php @@ -92,57 +92,16 @@ function render_block_core_rss( $attributes ) { $class .= ' ' . $attributes['className']; } - return sprintf( "", esc_attr( $class ), $list_items ); + return sprintf( '', esc_attr( $class ), $list_items ); } /** * Registers the `core/rss` block on server. */ function register_block_core_rss() { - register_block_type( - 'core/rss', + register_block_type_from_metadata( + __DIR__ . '/rss', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'columns' => array( - 'type' => 'number', - 'default' => 2, - ), - 'blockLayout' => array( - 'type' => 'string', - 'default' => 'list', - ), - 'feedURL' => array( - 'type' => 'string', - 'default' => '', - ), - 'itemsToShow' => array( - 'type' => 'number', - 'default' => 5, - ), - 'displayExcerpt' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'displayAuthor' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'displayDate' => array( - 'type' => 'boolean', - 'default' => false, - ), - 'excerptLength' => array( - 'type' => 'number', - 'default' => 55, - ), - ), 'render_callback' => 'render_block_core_rss', ) ); diff --git a/wp-includes/blocks/rss/block.json b/wp-includes/blocks/rss/block.json new file mode 100644 index 0000000000..b9e24f029c --- /dev/null +++ b/wp-includes/blocks/rss/block.json @@ -0,0 +1,55 @@ +{ + "name": "core/rss", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "columns": { + "type": "number", + "default": 2 + }, + "blockLayout": { + "type": "string", + "default": "list" + }, + "feedURL": { + "type": "string", + "default": "" + }, + "itemsToShow": { + "type": "number", + "default": 5 + }, + "displayExcerpt": { + "type": "boolean", + "default": false + }, + "displayAuthor": { + "type": "boolean", + "default": false + }, + "displayDate": { + "type": "boolean", + "default": false + }, + "excerptLength": { + "type": "number", + "default": 55 + } + }, + "supports": { + "align": true, + "html": false + } +} diff --git a/wp-includes/blocks/search.php b/wp-includes/blocks/search.php index a140caf0e0..5cc9a7dfa9 100644 --- a/wp-includes/blocks/search.php +++ b/wp-includes/blocks/search.php @@ -67,30 +67,9 @@ function render_block_core_search( $attributes ) { * Registers the `core/search` block on the server. */ function register_block_core_search() { - register_block_type( - 'core/search', + register_block_type_from_metadata( + __DIR__ . '/search', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'label' => array( - 'type' => 'string', - 'default' => __( 'Search' ), - ), - 'placeholder' => array( - 'type' => 'string', - 'default' => '', - ), - 'buttonText' => array( - 'type' => 'string', - 'default' => __( 'Search' ), - ), - ), 'render_callback' => 'render_block_core_search', ) ); diff --git a/wp-includes/blocks/search/block.json b/wp-includes/blocks/search/block.json new file mode 100644 index 0000000000..b6b2bf79e0 --- /dev/null +++ b/wp-includes/blocks/search/block.json @@ -0,0 +1,33 @@ +{ + "name": "core/search", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "label": { + "type": "string" + }, + "placeholder": { + "type": "string", + "default": "" + }, + "buttonText": { + "type": "string" + } + }, + "supports": { + "align": true, + "html": false + } +} diff --git a/wp-includes/blocks/shortcode.php b/wp-includes/blocks/shortcode.php index cfa8ab97df..97a40b386d 100644 --- a/wp-includes/blocks/shortcode.php +++ b/wp-includes/blocks/shortcode.php @@ -21,15 +21,10 @@ function render_block_core_shortcode( $attributes, $content ) { * Registers the `core/shortcode` block on server. */ function register_block_core_shortcode() { - $path = __DIR__ . '/shortcode/block.json'; - $metadata = json_decode( file_get_contents( $path ), true ); - register_block_type( - $metadata['name'], - array_merge( - $metadata, - array( - 'render_callback' => 'render_block_core_shortcode', - ) + register_block_type_from_metadata( + __DIR__ . '/shortcode', + array( + 'render_callback' => 'render_block_core_shortcode', ) ); } diff --git a/wp-includes/blocks/shortcode/block.json b/wp-includes/blocks/shortcode/block.json index b31c213871..31a2d34896 100644 --- a/wp-includes/blocks/shortcode/block.json +++ b/wp-includes/blocks/shortcode/block.json @@ -6,5 +6,10 @@ "type": "string", "source": "html" } + }, + "supports": { + "className": false, + "customClassName": false, + "html": false } } diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php index 1c8d367606..dc732a7a1f 100644 --- a/wp-includes/blocks/social-link.php +++ b/wp-includes/blocks/social-link.php @@ -13,12 +13,9 @@ * @return string Rendered HTML of the referenced block. */ function render_block_core_social_link( $attributes ) { - $service = ( isset( $attributes['service'] ) ) ? $attributes['service'] : 'Icon'; - $url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false; - $label = ( isset( $attributes['label'] ) ) ? - $attributes['label'] : - /* translators: %s: Social Link service name */ - sprintf( __( 'Link to %s' ), block_core_social_link_get_name( $service ) ); + $service = ( isset( $attributes['service'] ) ) ? $attributes['service'] : 'Icon'; + $url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false; + $label = ( isset( $attributes['label'] ) ) ? $attributes['label'] : block_core_social_link_get_name( $service ); $class_name = isset( $attributes['className'] ) ? ' ' . $attributes['className'] : false; // Don't render a link if there is no URL set. @@ -34,16 +31,10 @@ function render_block_core_social_link( $attributes ) { * Registers the `core/social-link` blocks. */ function register_block_core_social_link() { - $path = __DIR__ . '/social-link/block.json'; - $metadata = json_decode( file_get_contents( $path ), true ); - - register_block_type( - $metadata['name'], - array_merge( - $metadata, - array( - 'render_callback' => 'render_block_core_social_link', - ) + register_block_type_from_metadata( + __DIR__ . '/social-link', + array( + 'render_callback' => 'render_block_core_social_link', ) ); } @@ -218,7 +209,7 @@ function block_core_social_link_services( $service = '', $field = '' ) { ), 'tumblr' => array( 'name' => 'Tumblr', - 'icon' => '', + 'icon' => '', ), 'twitch' => array( 'name' => 'Twitch', @@ -250,7 +241,7 @@ function block_core_social_link_services( $service = '', $field = '' ) { ), 'share' => array( 'name' => 'Share Icon', - 'icon' => '', + 'icon' => '', ), ); diff --git a/wp-includes/blocks/social-link/block.json b/wp-includes/blocks/social-link/block.json index 977f5731fd..b525d267a1 100644 --- a/wp-includes/blocks/social-link/block.json +++ b/wp-includes/blocks/social-link/block.json @@ -1,7 +1,9 @@ { "name": "core/social-link", "category": "widgets", - "icon": "share", + "parent": [ + "core/social-links" + ], "attributes": { "url": { "type": "string" @@ -12,5 +14,10 @@ "label": { "type": "string" } + }, + "supports": { + "reusable": false, + "html": false, + "lightBlockWrapper": true } } diff --git a/wp-includes/blocks/tag-cloud.php b/wp-includes/blocks/tag-cloud.php index cf9c4d2453..419ef3477e 100644 --- a/wp-includes/blocks/tag-cloud.php +++ b/wp-includes/blocks/tag-cloud.php @@ -51,26 +51,9 @@ function render_block_core_tag_cloud( $attributes ) { * Registers the `core/tag-cloud` block on server. */ function register_block_core_tag_cloud() { - register_block_type( - 'core/tag-cloud', + register_block_type_from_metadata( + __DIR__ . '/tag-cloud', array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'taxonomy' => array( - 'type' => 'string', - 'default' => 'post_tag', - ), - 'showTagCounts' => array( - 'type' => 'boolean', - 'default' => false, - ), - ), 'render_callback' => 'render_block_core_tag_cloud', ) ); diff --git a/wp-includes/blocks/tag-cloud/block.json b/wp-includes/blocks/tag-cloud/block.json new file mode 100644 index 0000000000..7d867bd83d --- /dev/null +++ b/wp-includes/blocks/tag-cloud/block.json @@ -0,0 +1,31 @@ +{ + "name": "core/tag-cloud", + "category": "widgets", + "attributes": { + "align": { + "type": "string", + "enum": [ + "left", + "center", + "right", + "wide", + "full" + ] + }, + "className": { + "type": "string" + }, + "taxonomy": { + "type": "string", + "default": "post_tag" + }, + "showTagCounts": { + "type": "boolean", + "default": false + } + }, + "supports": { + "html": false, + "align": true + } +} diff --git a/wp-includes/css/dist/block-directory/style-rtl.css b/wp-includes/css/dist/block-directory/style-rtl.css index 13e64e29ba..46a981be46 100644 --- a/wp-includes/css/dist/block-directory/style-rtl.css +++ b/wp-includes/css/dist/block-directory/style-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,55 +57,97 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +.block-directory-block-ratings { + display: flex; } + .block-directory-block-ratings > div { + line-height: 1; + display: flex; } + .block-directory-block-ratings .block-directory-block-ratings__rating-count { + color: #606a73; + font-size: ms(-2); } + .block-directory-block-ratings svg { + fill: #ffb900; } + +.block-directory-compact-list { + margin: 0; + list-style: none; } + +.block-directory-compact-list__item { + display: flex; + flex-direction: row; + align-items: center; + margin-bottom: 16px; } + .block-directory-compact-list__item:last-child { + margin-bottom: 0; } + +.block-directory-compact-list__item-details { + margin-right: 8px; } + +.block-directory-compact-list__item-title { + font-weight: 500; } + +.block-directory-compact-list__item-author { + color: #555d66; + font-size: 11px; } + +.block-directory-downloadable-block-author-info__content { + color: #606a73; + font-size: 12px; } + +.block-directory-downloadable-block-author-info__content-author { + margin-bottom: 4px; + font-size: 13px; } + .block-directory-downloadable-block-header__row { display: flex; flex-grow: 1; } - .block-directory-downloadable-block-header__row .block-editor-block-icon { + .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column { + display: flex; + flex-direction: column; + flex-grow: 1; + padding-right: 12px; } + +.block-directory-downloadable-block-header__title { + margin: 0; + font-size: 13px; + color: currentColor; } + +.block-directory-downloadable-block-icon { + width: 36px; + height: 36px; } + .block-directory-downloadable-block-icon .block-editor-block-icon { width: 36px; height: 36px; font-size: 36px; background-color: #edeff0; } - .block-directory-downloadable-block-header__row img { - width: 36px; - height: 36px; } - .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column { - display: flex; - flex-direction: column; - flex-grow: 1; } - .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title { - font-weight: 600; - margin-right: 12px; } - .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings { - margin-right: 12px; } .block-directory-downloadable-block-info__content { + margin: 0 0 16px; font-size: 13px; } -.block-directory-downloadable-block-info__row { +.block-directory-downloadable-block-info__meta { display: flex; - justify-content: space-between; + align-items: center; + margin-bottom: 2px; color: #606a73; - margin-top: 8px; font-size: 12px; } - .block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column { - display: flex; - align-items: center; } - .block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon { - font-size: 16px; - margin-left: 4px; } -.block-directory-downloadable-block-author-info__content { - color: #606a73; - margin-bottom: 4px; } +.block-directory-downloadable-block-info__meta:last-child { + margin-bottom: 0; } -.block-directory-downloadable-block-author-info__content-author { - margin-bottom: 4px; - font-size: 14px; } +.block-directory-downloadable-block-info__icon { + margin-left: 4px; + fill: #606a73; } .block-directory-downloadable-block-list-item { width: 100%; padding: 0; - margin: 0 0 12px; + margin: 0; display: flex; flex-direction: row; font-size: 13px; @@ -99,8 +156,8 @@ justify-content: center; background: transparent; word-break: break-word; - border-radius: 4px; - border: 1px solid #e2e4e7; + border-top: 1px solid #e2e4e7; + border-bottom: 1px solid #e2e4e7; transition: all 0.05s ease-in-out; position: relative; text-align: right; @@ -109,6 +166,12 @@ .block-directory-downloadable-block-list-item { transition-duration: 0s; } } +.block-directory-downloadable-block-list-item:last-child:not(:only-of-type) { + border-top: 0; } + +.block-directory-downloadable-block-list-item:last-child { + border-bottom: 0; } + .block-directory-downloadable-block-list-item__panel { display: flex; flex-grow: 1; @@ -117,55 +180,51 @@ .block-directory-downloadable-block-list-item__header { display: flex; flex-direction: column; - padding: 12px 12px 0; } + padding: 16px 16px 0; } .block-directory-downloadable-block-list-item__body { display: flex; flex-direction: column; - padding: 12px; } + padding: 16px; } .block-directory-downloadable-block-list-item__footer { display: flex; flex-direction: column; - padding: 12px; + padding: 16px; background-color: #f3f4f5; } .block-directory-downloadable-block-list-item__content { color: #606a73; } +.block-directory-downloadable-block-notice { + margin: 0 0 16px; } + +.block-directory-downloadable-block-notice__content { + padding-left: 12px; + margin-bottom: 8px; } + .block-directory-downloadable-blocks-list { list-style: none; - padding: 2px 0; + margin: 0; overflow: hidden; display: flex; flex-wrap: wrap; } .block-directory-downloadable-blocks-panel__description { font-style: italic; - padding: 0; - margin-top: 0; + padding: 16px; + margin: 0; text-align: right; color: #606a73; } .block-directory-downloadable-blocks-panel__description.has-no-results { font-style: normal; padding: 0; - margin-top: 100px; + margin: 112px 0; text-align: center; color: #606a73; } .block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner { float: inherit; } -.block-directory-block-ratings { - display: flex; } - .block-directory-block-ratings > div { - line-height: 1; - display: flex; } - .block-directory-block-ratings .dashicons { - font-size: ms(-2); - width: 1.1em; } - .block-directory-block-ratings .block-directory-block-ratings__rating-count { - color: #606a73; - font-size: ms(-2); } - .block-directory-block-ratings [class*="dashicons-star-"] { - color: #ffb900; } +.installed-blocks-pre-publish-panel__copy { + margin-top: 0; } diff --git a/wp-includes/css/dist/block-directory/style-rtl.min.css b/wp-includes/css/dist/block-directory/style-rtl.min.css index aa57e87371..c1242bd761 100644 --- a/wp-includes/css/dist/block-directory/style-rtl.min.css +++ b/wp-includes/css/dist/block-directory/style-rtl.min.css @@ -1 +1 @@ -.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-header__row img{width:36px;height:36px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title{font-weight:600;margin-right:12px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings{margin-right:12px}.block-directory-downloadable-block-info__content{font-size:13px}.block-directory-downloadable-block-info__row{display:flex;justify-content:space-between;color:#606a73;margin-top:8px;font-size:12px}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column{display:flex;align-items:center}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon{font-size:16px;margin-left:4px}.block-directory-downloadable-block-author-info__content{color:#606a73;margin-bottom:4px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:14px}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0 0 12px;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-radius:4px;border:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:12px 12px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:12px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:12px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-blocks-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:0;margin-top:0;text-align:right;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .dashicons{font-size:ms(-2);width:1.1em}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings [class*=dashicons-star-]{color:#ffb900} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#555d66;font-size:11px}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-right:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-left:4px;fill:#606a73}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item:last-child{border-bottom:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-left:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:right;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file diff --git a/wp-includes/css/dist/block-directory/style.css b/wp-includes/css/dist/block-directory/style.css index 9a2d49ee82..5a64b8377e 100644 --- a/wp-includes/css/dist/block-directory/style.css +++ b/wp-includes/css/dist/block-directory/style.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,55 +57,97 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +.block-directory-block-ratings { + display: flex; } + .block-directory-block-ratings > div { + line-height: 1; + display: flex; } + .block-directory-block-ratings .block-directory-block-ratings__rating-count { + color: #606a73; + font-size: ms(-2); } + .block-directory-block-ratings svg { + fill: #ffb900; } + +.block-directory-compact-list { + margin: 0; + list-style: none; } + +.block-directory-compact-list__item { + display: flex; + flex-direction: row; + align-items: center; + margin-bottom: 16px; } + .block-directory-compact-list__item:last-child { + margin-bottom: 0; } + +.block-directory-compact-list__item-details { + margin-left: 8px; } + +.block-directory-compact-list__item-title { + font-weight: 500; } + +.block-directory-compact-list__item-author { + color: #555d66; + font-size: 11px; } + +.block-directory-downloadable-block-author-info__content { + color: #606a73; + font-size: 12px; } + +.block-directory-downloadable-block-author-info__content-author { + margin-bottom: 4px; + font-size: 13px; } + .block-directory-downloadable-block-header__row { display: flex; flex-grow: 1; } - .block-directory-downloadable-block-header__row .block-editor-block-icon { + .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column { + display: flex; + flex-direction: column; + flex-grow: 1; + padding-left: 12px; } + +.block-directory-downloadable-block-header__title { + margin: 0; + font-size: 13px; + color: currentColor; } + +.block-directory-downloadable-block-icon { + width: 36px; + height: 36px; } + .block-directory-downloadable-block-icon .block-editor-block-icon { width: 36px; height: 36px; font-size: 36px; background-color: #edeff0; } - .block-directory-downloadable-block-header__row img { - width: 36px; - height: 36px; } - .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column { - display: flex; - flex-direction: column; - flex-grow: 1; } - .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title { - font-weight: 600; - margin-left: 12px; } - .block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings { - margin-left: 12px; } .block-directory-downloadable-block-info__content { + margin: 0 0 16px; font-size: 13px; } -.block-directory-downloadable-block-info__row { +.block-directory-downloadable-block-info__meta { display: flex; - justify-content: space-between; + align-items: center; + margin-bottom: 2px; color: #606a73; - margin-top: 8px; font-size: 12px; } - .block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column { - display: flex; - align-items: center; } - .block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon { - font-size: 16px; - margin-right: 4px; } -.block-directory-downloadable-block-author-info__content { - color: #606a73; - margin-bottom: 4px; } +.block-directory-downloadable-block-info__meta:last-child { + margin-bottom: 0; } -.block-directory-downloadable-block-author-info__content-author { - margin-bottom: 4px; - font-size: 14px; } +.block-directory-downloadable-block-info__icon { + margin-right: 4px; + fill: #606a73; } .block-directory-downloadable-block-list-item { width: 100%; padding: 0; - margin: 0 0 12px; + margin: 0; display: flex; flex-direction: row; font-size: 13px; @@ -99,8 +156,8 @@ justify-content: center; background: transparent; word-break: break-word; - border-radius: 4px; - border: 1px solid #e2e4e7; + border-top: 1px solid #e2e4e7; + border-bottom: 1px solid #e2e4e7; transition: all 0.05s ease-in-out; position: relative; text-align: left; @@ -109,6 +166,12 @@ .block-directory-downloadable-block-list-item { transition-duration: 0s; } } +.block-directory-downloadable-block-list-item:last-child:not(:only-of-type) { + border-top: 0; } + +.block-directory-downloadable-block-list-item:last-child { + border-bottom: 0; } + .block-directory-downloadable-block-list-item__panel { display: flex; flex-grow: 1; @@ -117,55 +180,51 @@ .block-directory-downloadable-block-list-item__header { display: flex; flex-direction: column; - padding: 12px 12px 0; } + padding: 16px 16px 0; } .block-directory-downloadable-block-list-item__body { display: flex; flex-direction: column; - padding: 12px; } + padding: 16px; } .block-directory-downloadable-block-list-item__footer { display: flex; flex-direction: column; - padding: 12px; + padding: 16px; background-color: #f3f4f5; } .block-directory-downloadable-block-list-item__content { color: #606a73; } +.block-directory-downloadable-block-notice { + margin: 0 0 16px; } + +.block-directory-downloadable-block-notice__content { + padding-right: 12px; + margin-bottom: 8px; } + .block-directory-downloadable-blocks-list { list-style: none; - padding: 2px 0; + margin: 0; overflow: hidden; display: flex; flex-wrap: wrap; } .block-directory-downloadable-blocks-panel__description { font-style: italic; - padding: 0; - margin-top: 0; + padding: 16px; + margin: 0; text-align: left; color: #606a73; } .block-directory-downloadable-blocks-panel__description.has-no-results { font-style: normal; padding: 0; - margin-top: 100px; + margin: 112px 0; text-align: center; color: #606a73; } .block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner { float: inherit; } -.block-directory-block-ratings { - display: flex; } - .block-directory-block-ratings > div { - line-height: 1; - display: flex; } - .block-directory-block-ratings .dashicons { - font-size: ms(-2); - width: 1.1em; } - .block-directory-block-ratings .block-directory-block-ratings__rating-count { - color: #606a73; - font-size: ms(-2); } - .block-directory-block-ratings [class*="dashicons-star-"] { - color: #ffb900; } +.installed-blocks-pre-publish-panel__copy { + margin-top: 0; } diff --git a/wp-includes/css/dist/block-directory/style.min.css b/wp-includes/css/dist/block-directory/style.min.css index 14d3746922..937ff2fc0f 100644 --- a/wp-includes/css/dist/block-directory/style.min.css +++ b/wp-includes/css/dist/block-directory/style.min.css @@ -1 +1 @@ -.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-header__row img{width:36px;height:36px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title{font-weight:600;margin-left:12px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings{margin-left:12px}.block-directory-downloadable-block-info__content{font-size:13px}.block-directory-downloadable-block-info__row{display:flex;justify-content:space-between;color:#606a73;margin-top:8px;font-size:12px}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column{display:flex;align-items:center}.block-directory-downloadable-block-info__row .block-directory-downloadable-block-info__column .dashicon{font-size:16px;margin-right:4px}.block-directory-downloadable-block-author-info__content{color:#606a73;margin-bottom:4px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:14px}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0 0 12px;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-radius:4px;border:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:12px 12px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:12px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:12px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-blocks-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:0;margin-top:0;text-align:left;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .dashicons{font-size:ms(-2);width:1.1em}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings [class*=dashicons-star-]{color:#ffb900} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#555d66;font-size:11px}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-left:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-right:4px;fill:#606a73}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item:last-child{border-bottom:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-right:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:left;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0} \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style-rtl.css b/wp-includes/css/dist/block-editor/style-rtl.css index 5d4f708656..e3a28eddd2 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.css +++ b/wp-includes/css/dist/block-editor/style-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,14 +57,29 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + +.block-editor-autocompleters__block .block-editor-block-icon { + margin-left: 8px; } + +.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content { + min-width: 0; + width: auto; } + .block-editor-block-alignment-matrix-toolbar__popover .components-popover__content > div { + padding: 8px; } + .block-editor-block-icon { display: flex; align-items: center; justify-content: center; width: 24px; - height: 24px; - margin: 0; - border-radius: 4px; } + height: 24px; } .block-editor-block-icon.has-colors svg { fill: currentColor; } .block-editor-block-icon svg { @@ -77,32 +107,17 @@ padding: 32px 16px; text-align: center; } -.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging::before { - border: none; } - -.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > * { +.block-editor-block-list__layout .block-editor-block-list__block.is-dragging > * { background: #f8f9f9; } -.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > * > * { +.block-editor-block-list__layout .block-editor-block-list__block.is-dragging > * > * { visibility: hidden; } -.block-editor-block-list__layout .block-editor-block-list__block.is-selected .reusable-block-edit-panel * { +.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * { z-index: 1; } -/** - * General Post Content Layout - */ -.block-editor-block-list__layout { - padding-right: 14px; - padding-left: 14px; - position: relative; } - @media (min-width: 600px) { - .block-editor-block-list__layout { - padding-right: 58px; - padding-left: 58px; } } - .block-editor-block-list__layout .block-editor-block-list__layout { - padding-right: 0; - padding-left: 0; } +.block-editor-block-styles .block-editor-block-list__block { + margin: 0; } /** * Notices & Block Selected/Hover Styles. @@ -114,7 +129,7 @@ * Notices */ /** - * Block border layout + * Block Layout */ } .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { margin: -10px 0 12px 0; } @@ -126,40 +141,22 @@ margin-left: 0; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { font-size: 13px; } - .block-editor-block-list__layout .block-editor-block-list__block::before { - z-index: 0; - content: ""; - position: absolute; - border: 1px solid transparent; - border-right: none; - box-shadow: none; - pointer-events: none; - transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; - outline: 1px solid transparent; - left: -14px; - right: -14px; - top: -14px; - bottom: -14px; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-list__layout .block-editor-block-list__block::before { - transition-duration: 0s; } } - .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - border-color: rgba(66, 88, 99, 0.4); - box-shadow: inset -3px 0 0 0 #555d66; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - border-color: rgba(255, 255, 255, 0.45); - box-shadow: inset -3px 0 0 0 #d7dade; } - @media (min-width: 600px) { - .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - box-shadow: 3px 0 0 0 #555d66; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - box-shadow: 3px 0 0 0 #d7dade; } } - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - border-color: #007cba; - box-shadow: inset -3px 0 0 0 #007cba; } - @media (min-width: 600px) { - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - box-shadow: 3px 0 0 0 #007cba; } } + .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus { + outline: none; } + .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { + position: absolute; + z-index: 1; + pointer-events: none; + content: ""; + top: 1px; + bottom: 1px; + right: 1px; + left: 1px; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 1px; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { + box-shadow: 0 0 0 1.5px #fff; } .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { opacity: 0.5; transition: opacity 0.1s linear; } @@ -168,37 +165,75 @@ transition-duration: 0s; } } .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { opacity: 1; } - .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #0085ba; } - body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #d1864a; } - body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #a3b9a2; } - body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #e14d43; } - body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #a7b656; } - body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #c2a68c; } - body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #82b4cb; } - body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #0085ba; } + +.block-editor-block-list__layout .block-editor-block-list__block, +.block-editor-block-list__layout .block-list-appender { + position: relative; } + .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before, + .block-editor-block-list__layout .block-list-appender.is-drop-target::before { + content: ""; + position: absolute; + z-index: 0; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + top: -14px; + left: 0; + right: 0; + border-top: 4px solid #007cba; + border-top: 4px solid var(--wp-admin-theme-color); } + .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally::before, + .block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally::before { + top: 0; + bottom: 0; + right: -6px; + border-top: none; + border-right: 4px solid #007cba; + border-right: 4px solid var(--wp-admin-theme-color); } /** * Cross-Block Selection */ -.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed), -.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content { - box-shadow: 0 0 0 2px #007cba; - border-radius: 1px; - outline: 2px solid transparent; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed), .is-dark-theme - .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content { - box-shadow: 0 0 0 2px #fff; } - -.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection { - background: transparent; } +.block-editor-block-list__layout { + position: relative; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + position: absolute; + z-index: 1; + pointer-events: none; + content: ""; + top: 1px; + bottom: 1px; + right: 1px; + left: 1px; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 1px; + transition: box-shadow 0.2s ease-out; + outline: 2px solid transparent; } + @media (prefers-reduced-motion: reduce) { + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + transition-duration: 0s; } } + .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + box-shadow: 0 0 0 1.5px #fff; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection { + background: transparent; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected)::after { + box-shadow: 0 0 0 1px #949494; } /** * Block styles and alignments @@ -206,6 +241,21 @@ .block-editor-block-list__layout .block-editor-block-list__block.has-warning { min-height: 36px; } +.block-editor-block-list__layout .block-editor-block-list__block::after { + content: ""; + pointer-events: none; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + border-radius: 2px; + box-shadow: 0 0 0 1.5px transparent; + transition: box-shadow 0.1s ease-in; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__layout .block-editor-block-list__block::after { + transition-duration: 0s; } } + .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { pointer-events: none; -webkit-user-select: none; @@ -215,81 +265,28 @@ .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { pointer-events: all; } -.block-editor-block-list__layout .block-editor-block-list__block.has-warning::before { - border-color: rgba(145, 151, 162, 0.25); - border-right: 1px solid rgba(145, 151, 162, 0.25); } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning::before { - border-color: rgba(255, 255, 255, 0.35); } - -.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::before { - border-color: rgba(66, 88, 99, 0.4); - border-right-color: transparent; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::before { - border-color: rgba(255, 255, 255, 0.45); } - .block-editor-block-list__layout .block-editor-block-list__block.has-warning::after { content: ""; position: absolute; - background-color: rgba(248, 249, 249, 0.4); - top: -14px; - bottom: -14px; - left: -14px; - right: -14px; } + top: 0; + left: 0; + bottom: 0; + right: 0; + border-radius: 2px; + background-color: rgba(255, 255, 255, 0.4); } .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after { background-color: transparent; } -.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::after { - bottom: 22px; } - @media (min-width: 600px) { - .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::after { - bottom: -14px; } } - -.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected::before { - border-right-color: transparent; - border-style: dashed; - border-width: 1px; } - -.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks.has-overlay::after { +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after { display: none; } -.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks.has-overlay .block-editor-inner-blocks.has-overlay::after { +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after { display: block; } .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block { cursor: default; } -.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] { - z-index: 21; - width: 100%; - height: 0; } - .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"]::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"]::before { - content: none; } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] > .is-block-content { - float: left; - margin-right: 2em; } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] > .is-block-content { - float: right; - margin-left: 2em; } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] { - clear: both; } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] { - margin-right: -14px; - margin-left: -14px; } - @media (min-width: 600px) { - .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] { - margin-right: -58px; - margin-left: -58px; } } - .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"]::before { - right: 0; - left: 0; - border-right-width: 0; - border-left-width: 0; } - .block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { float: none; } @@ -297,6 +294,31 @@ right: auto; left: 8px; } +.block-editor-block-list__layout .wp-block { + margin-right: auto; + margin-left: auto; } + +.wp-block[data-align="left"], .wp-block[data-align="right"] { + width: 100%; + height: 0; } + .wp-block[data-align="left"]::before, .wp-block[data-align="right"]::before { + content: none; } + +.wp-block[data-align="left"] > *, +.wp-block[data-align="right"] > * { + z-index: 21; } + +.wp-block[data-align="left"] > * { + float: left; + margin-right: 2em; } + +.wp-block[data-align="right"] > * { + float: right; + margin-left: 2em; } + +.wp-block[data-align="full"], .wp-block[data-align="wide"] { + clear: both; } + /** * In-Canvas Inserter */ @@ -313,31 +335,11 @@ .block-editor-block-list__insertion-point-indicator { position: absolute; top: calc(50% - 1px); - height: 2px; + height: 1.5px; right: 0; left: 0; - background: #0085ba; } - -body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator { - background: #d1864a; } - -body.admin-color-ocean .block-editor-block-list__insertion-point-indicator { - background: #a3b9a2; } - -body.admin-color-midnight .block-editor-block-list__insertion-point-indicator { - background: #e14d43; } - -body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator { - background: #a7b656; } - -body.admin-color-coffee .block-editor-block-list__insertion-point-indicator { - background: #c2a68c; } - -body.admin-color-blue .block-editor-block-list__insertion-point-indicator { - background: #82b4cb; } - -body.admin-color-light .block-editor-block-list__insertion-point-indicator { - background: #0085ba; } + background: #007cba; + background: var(--wp-admin-theme-color); } .block-editor-block-list__insertion-point-inserter { display: none; @@ -357,18 +359,59 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { .block-editor-block-list__block-popover-inserter.is-visible { position: static; } -.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle, -.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle { - border-radius: 50%; - color: #007cba; - background: #fff; - height: 28px; - width: 28px; +.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button, +.block-editor-default-block-appender .block-editor-inserter__toggle.components-button, +.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button, +.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button { + background: #1e1e1e; + border-radius: 2px; + color: #fff; padding: 0; - justify-content: center; } - .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover, - .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover { - box-shadow: none; } + min-width: 24px; + height: 24px; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button:hover, + .block-editor-default-block-appender .block-editor-inserter__toggle.components-button:hover, + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button:hover, + .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button:hover { + color: #fff; } + +.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button, +.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button { + animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button, + .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button { + animation-duration: 1ms; } } + +@keyframes block-editor-inserter__toggle__fade-in-animation-delayed { + 0% { + opacity: 0; } + 80% { + opacity: 0; } + 100% { + opacity: 1; } } + +@keyframes block-editor-inserter__toggle__fade-in-animation { + from { + opacity: 0; + transform: scale(0); } + to { + opacity: 1; + transform: scale(1); } } + +.wp-block .block-list-appender .block-editor-inserter__toggle { + animation: block-editor-inserter__toggle__fade-in-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .wp-block .block-list-appender .block-editor-inserter__toggle { + animation-duration: 1ms; } } + +.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender { + display: none; } + .wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle { + opacity: 0; + transform: scale(0); } .block-editor-block-list__block > .block-editor-block-list__insertion-point { position: absolute; @@ -378,10 +421,6 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { right: 14px; left: 14px; } -.block-editor-block-list__block[data-align="full"] > .block-editor-block-list__insertion-point { - right: 0; - left: 0; } - .block-editor-block-list__block .block-editor-block-list__block-html-textarea { display: block; margin: 0; @@ -392,7 +431,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { resize: none; overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; + font-size: 15px; line-height: 150%; transition: padding 0.2s linear; } @media (prefers-reduced-motion: reduce) { @@ -401,65 +440,108 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { box-shadow: none; } +/** + * Block Toolbar, top and contextual. + */ +.block-editor-block-contextual-toolbar-wrapper { + padding-right: 48px; } + /** * Block Toolbar when contextual. */ -.block-editor-block-contextual-toolbar .block-editor-block-toolbar { - width: 100%; } - @media (min-width: 600px) { - .block-editor-block-contextual-toolbar .block-editor-block-toolbar { - width: auto; - border-left: none; } } +.block-editor-block-contextual-toolbar { + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container { + border-left-color: #1e1e1e; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container { + border-left-style: solid; + border-left-width: 1px; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon::before, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle::before { + width: 28px; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg { + margin-right: 10px; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg { + margin-right: auto; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group { + border-left: none; } + .block-editor-block-contextual-toolbar .block-editor-block-mover { + margin-right: -12px; + width: 36px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal { + width: 48px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { + min-width: 36px; + width: 36px; + cursor: grab; } + .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active { + cursor: grabbing; } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { + min-width: 24px; + width: 24px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg { + margin-right: 2px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { + margin-top: 3px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { + margin-bottom: 3px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { + right: 0 !important; + min-width: 0; + width: 28px; } /** * Block Label for Navigation/Selection Mode */ -.block-editor-block-list__breadcrumb { +.block-editor-block-list__block-selection-button { display: block; - line-height: 1; z-index: 22; } - .block-editor-block-list__breadcrumb .components-toolbar { - display: flex; - background: #fff; - border: 1px solid #007cba; - border-right: none; - box-shadow: inset -3px 0 0 0 #007cba; - height: 38px; + .block-editor-block-list__block-selection-button .components-button { font-size: 13px; - line-height: 29px; - padding-right: 8px; - padding-left: 8px; } - .block-editor-block-list__breadcrumb .components-toolbar .components-button { - box-shadow: none; } - .is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar { - border-color: rgba(255, 255, 255, 0.45); } - @media (min-width: 600px) { - .block-editor-block-list__breadcrumb .components-toolbar { - box-shadow: 3px 0 0 0 #007cba; } } + height: 46px; + padding: 12px 16px; + position: relative; + top: -1px; + box-shadow: 0 0 0 1px #1e1e1e; + border-radius: 1px; + background-color: #fff; + margin-right: 49px; } + .block-editor-block-list__block-selection-button .components-button:focus { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } +/** + * Warnings. + */ .block-editor-block-list__block .block-editor-warning { z-index: 5; - position: relative; - margin-left: -14px; - margin-right: -14px; - margin-bottom: -14px; - transform: translateY(-14px); } + position: relative; } .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning { margin-bottom: auto; } -.block-editor-block-list__insertion-point-popover { +/** + * Popovers. + */ +.block-editor-block-list__insertion-point-popover.is-without-arrow { z-index: 28; } - .block-editor-block-list__insertion-point-popover .components-popover__content { + .block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content { background: none; border: none; box-shadow: none; - overflow-y: visible; } + overflow-y: visible; + margin-right: 0; } .components-popover.block-editor-block-list__block-popover { - z-index: 29; } + z-index: 31; } .components-popover.block-editor-block-list__block-popover .components-popover__content { margin: 0 !important; min-width: auto; + width: max-content; background: none; border: none; box-shadow: none; @@ -467,54 +549,39 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { pointer-events: none; } .components-popover.block-editor-block-list__block-popover .components-popover__content > * { pointer-events: all; } - .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar, - .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb { - margin-bottom: 13px; - margin-right: -14px; } + .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button, + .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar { + margin-bottom: 12px; + margin-right: -48px; } .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align="full"], - .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb[data-align="full"] { + .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button[data-align="full"] { margin-right: 0; } .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { opacity: 0; } +.is-dragging-components-draggable .components-tooltip { + display: none; } + .block-editor-block-list__block .block-list-appender { - margin: 14px 0; } + margin: 8px 0; } .has-background .block-editor-block-list__block .block-list-appender { - margin: 32px 14px; } - -.block-list-appender.is-drop-target > div::before { - content: ""; - position: absolute; - left: -14px; - right: -14px; - top: -14px; - bottom: -14px; - border: 3px solid #0085ba; } - -body.admin-color-sunrise .block-list-appender.is-drop-target > div::before { - border: 3px solid #d1864a; } - -body.admin-color-ocean .block-list-appender.is-drop-target > div::before { - border: 3px solid #a3b9a2; } - -body.admin-color-midnight .block-list-appender.is-drop-target > div::before { - border: 3px solid #e14d43; } - -body.admin-color-ectoplasm .block-list-appender.is-drop-target > div::before { - border: 3px solid #a7b656; } - -body.admin-color-coffee .block-list-appender.is-drop-target > div::before { - border: 3px solid #c2a68c; } - -body.admin-color-blue .block-list-appender.is-drop-target > div::before { - border: 3px solid #82b4cb; } - -body.admin-color-light .block-list-appender.is-drop-target > div::before { - border: 3px solid #0085ba; } + margin: 20px 8px; } + .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { + padding: 0; + opacity: 1; + transform: scale(1); + transition: all 0.1s ease; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { + transition-duration: 0s; } } .block-list-appender > .block-editor-inserter { display: block; } +.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle { + opacity: 0; + transform: scale(0); } + .block-editor-block-breadcrumb { list-style: none; padding: 0; @@ -528,22 +595,31 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { .block-editor-block-breadcrumb__button.components-button { height: 24px; line-height: 24px; - padding: 0; } - .block-editor-block-breadcrumb__button.components-button:hover { - text-decoration: underline; } - .block-editor-block-breadcrumb__button.components-button:focus { - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; - outline-offset: -2px; + padding: 0; + position: relative; } + .block-editor-block-breadcrumb__button.components-button:hover:not(:disabled) { + text-decoration: underline; box-shadow: none; } + .block-editor-block-breadcrumb__button.components-button:focus { + box-shadow: none; } + .block-editor-block-breadcrumb__button.components-button:focus::before { + content: ""; + display: block; + position: absolute; + border-radius: 2px; + top: 1px; + left: 1px; + bottom: 1px; + right: 1px; + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } .block-editor-block-breadcrumb__current { cursor: default; } .block-editor-block-breadcrumb__button.components-button, .block-editor-block-breadcrumb__current { - color: #555d66; + color: #1e1e1e; padding: 0 8px; font-size: inherit; } @@ -562,8 +638,9 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { flex-grow: 1; } .block-editor-block-card__title { - font-weight: 500; - margin-bottom: 5px; } + font-weight: 500; } + .block-editor-block-card__title.block-editor-block-card__title { + margin: 0 0 5px; } .block-editor-block-card__description { font-size: 13px; } @@ -633,7 +710,7 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { display: flex; flex-direction: row; border-left: 1px solid #e2e4e7; } - .block-editor-block-mobile-toolbar .block-editor-block-mover__control { + .block-editor-block-mobile-toolbar .block-editor-block-mover-button { width: 36px; height: 36px; border-radius: 4px; @@ -641,183 +718,291 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { margin: 0; justify-content: center; align-items: center; } - .block-editor-block-mobile-toolbar .block-editor-block-mover__control .dashicon { + .block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon { margin: auto; } .block-editor-block-mobile-toolbar .block-editor-block-mover { display: flex; margin-left: auto; } - .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control { + .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button { float: right; } -@media (min-width: 600px) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) { - display: block; - position: absolute; - top: 37px; - right: -38px; - opacity: 0; - background: #fff; - border: 1px solid rgba(66, 88, 99, 0.4); - border-radius: 4px; - transition: box-shadow 0.2s ease-out; } } - @media (min-width: 600px) and (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) { - transition-duration: 0s; } } +.block-editor-block-mover { + display: inline-flex; + flex-direction: row; } -@media (min-width: 600px) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal).is-visible { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } } - @media (min-width: 600px) and (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal).is-visible { - animation-duration: 1ms; } } - -@media (min-width: 600px) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control { - display: flex; - align-items: center; - justify-content: center; - padding: 0; - border: none; - width: 28px; - height: 24px; - color: rgba(14, 28, 46, 0.62); } - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control svg { - width: 28px; - height: 24px; - padding: 2px 5px; } - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control[aria-disabled="true"] { - cursor: default; - pointer-events: none; - color: rgba(14, 28, 46, 0.62); } - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control:focus:not(:disabled) { - background-color: transparent; } } - -@media (min-width: 600px) { - .block-editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) { - margin-top: 0; } } - -.block-editor-block-mover__control-drag-handle { - cursor: move; - cursor: grab; - fill: currentColor; } - .block-editor-block-mover__control-drag-handle, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):focus { - box-shadow: none; - background: none; - color: rgba(10, 24, 41, 0.7); } - .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active { - cursor: grabbing; } - -.block-editor-block-mover__description { +.block-editor-block-mover-button__description { display: none; } -.block-editor-block-mover.is-horizontal .block-editor-block-mover__control-drag-handle { - display: none; } +.block-editor-block-mover-button.has-icon { + padding: 0; } + +.block-editor-block-mover .components-toolbar-group, +.block-editor-block-mover .components-toolbar { + flex-direction: column; + flex: 1; } + +.block-editor-block-mover.is-horizontal .components-toolbar-group, +.block-editor-block-mover.is-horizontal .components-toolbar { + flex-direction: row; } + +.block-editor-block-mover .block-editor-block-mover-button { + height: 24px; + width: 48px; + padding: 0 !important; } + .block-editor-block-mover .block-editor-block-mover-button::before { + right: 8px !important; + left: 8px !important; } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg { + margin-bottom: -8px; } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before { + bottom: 0; + height: calc(100% - 8px); } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg { + margin-top: -8px; } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before { + top: 0; + height: calc(100% - 8px); } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { + height: 48px; + width: 24px; + min-width: 24px; + padding-right: 0; + padding-left: 0; } + .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { + top: 8px; + bottom: 8px; + min-width: 0; + width: auto; + height: auto; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg { + margin-right: 0; + margin-left: -8px; + margin-bottom: 0; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before { + right: 8px !important; + left: 0 !important; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg { + margin-right: -8px; + margin-left: 0; + margin-top: 0; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before { + right: 0 !important; + left: 8px !important; } .block-editor-block-navigation__container { padding: 7px; } .block-editor-block-navigation__label { - margin: 0 0 8px; - color: #6c7781; } + margin: 0 0 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } -.block-editor-block-navigation__list, -.block-editor-block-navigation__paragraph { +.block-editor-block-navigation__container { + padding: 7px; } + +.block-editor-block-navigation-tree { + width: 100%; + border-collapse: collapse; padding: 0; margin: 0; } -.block-editor-block-navigation__list .block-editor-button-block-appender { - outline: none; - background: none; - padding: 8px; - margin-right: 0.8em; - width: 36px; - border-radius: 4px; } - .block-editor-block-navigation__list .block-editor-button-block-appender:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; - outline: none; } - .block-editor-block-navigation__list .block-editor-button-block-appender:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - -.block-editor-block-navigation__list .block-editor-block-navigation__list { - margin-top: 2px; - border-right: 2px solid #a2aab2; - margin-right: 1em; } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list { - margin-right: 1.5em; } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item { - position: relative; } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item::before { - position: absolute; - right: 0; - background: #a2aab2; - width: 0.5em; - height: 2px; - content: ""; - top: calc(50% - 1px); } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button { - margin-right: 0.8em; - width: calc(100% - 0.8em); } - .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child { - position: relative; } - .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child::after { - position: absolute; - content: ""; - background: #fff; - top: 19px; - bottom: 0; - right: -2px; - width: 2px; } - -.block-editor-block-navigation__item-button { - display: flex; - align-items: center; - width: 100%; - padding: 6px; - text-align: right; - color: #40464d; - border-radius: 4px; } - .block-editor-block-navigation__item-button .block-editor-block-icon { +.block-editor-block-navigation-leaf { + position: relative; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { + display: flex; + align-items: center; + width: calc(100% - 0.8em); + height: auto; + padding: 12px 6px; + margin-top: auto; + margin-bottom: auto; + text-align: right; + color: #40464d; + border-radius: 2px; } + .components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { + padding-right: 0; + padding-left: 0; } + .block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents { + opacity: 1; + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents { + animation-duration: 1ms; } } + .block-editor-block-navigation-leaf .block-editor-block-icon { + align-self: flex-start; margin-left: 6px; } - .block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .block-editor-block-navigation__item-button.is-selected, .block-editor-block-navigation__item-button.is-selected:focus { - color: #32373c; - background: #edeff0; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell { + padding-top: 0; + padding-bottom: 0; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell { + width: 36px; + opacity: 0; + vertical-align: top; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell { + transition-duration: 0s; } } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible { + opacity: 1; + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible { + animation-duration: 1ms; } } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon { + width: 24px; + min-width: 24px; + padding: 0; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell { + padding-top: 8px; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper { + display: flex; + height: 100%; + flex-direction: column; + align-items: center; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button { + position: relative; + width: 36px; + height: 24px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button svg { + position: relative; + height: 24px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button { + align-items: flex-end; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg { + bottom: -4px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button { + align-items: flex-start; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg { + top: -4px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled { + box-shadow: none; + outline: none; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button:focus { + box-shadow: none; + outline: none; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button:focus::before { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; + outline: 2px solid transparent; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button::before { + content: ""; + position: absolute; + display: block; + border-radius: 2px; + height: 16px; + min-width: 100%; + right: 0; + left: 0; + animation: components-button__appear-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf .block-editor-block-mover-button::before { + animation-duration: 1ms; } } + .block-editor-block-navigation-leaf .block-editor-inserter__toggle { + background: #1e1e1e; + color: #fff; + height: 24px; + margin: 6px 1px 6px 6px; + min-width: 24px; } + .block-editor-block-navigation-leaf .block-editor-inserter__toggle:active { + color: #fff; } -.components-popover.block-editor-block-navigation__popover { - z-index: 99998; } +.block-editor-block-navigation-block-slot__description, +.block-editor-block-navigation-block-select-button__description, +.block-editor-block-navigation-appender__description { + display: none; } + +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container, +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container, +.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container, +.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container { + display: flex; } + +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container, +.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container { + min-height: 56px; } + +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line, +.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line { + position: relative; + flex-shrink: 0; + width: 24px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child { + width: 18px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item { + margin-left: 6px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line::before, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line::before { + content: ""; + display: block; + position: absolute; + top: 1px; + bottom: -2px; + left: -1px; + border-left: 2px solid #a2aab2; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated::before, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated::before { + border-color: transparent; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row { + height: 26px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item::after, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item::after { + content: ""; + display: block; + position: absolute; + top: 26px; + right: 100%; + width: 5px; + border-bottom: 2px solid #a2aab2; } + +.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row { + height: 16px; } + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row::after { + top: 100%; } + +.block-editor-block-parent-selector { + background: #fff; + border-radius: 2px; } + .block-editor-block-parent-selector .block-editor-block-parent-selector__button { + width: 48px; + height: 48px; + border: 1px solid #1e1e1e; + border-radius: 2px; } .block-editor-block-preview__container { position: relative; width: 100%; overflow: hidden; } - .block-editor-block-preview__container.is-ready { - overflow: visible; } + .block-editor-block-preview__container.editor-styles-wrapper { + padding: 0; } .block-editor-block-preview__content { position: absolute; @@ -828,19 +1013,17 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { margin: 0; overflow: visible; min-height: auto; } - .block-editor-block-preview__content .block-editor-block-list__layout, - .block-editor-block-preview__content .block-editor-block-list__block { - padding: 0; } - .block-editor-block-preview__content > div section { - height: auto; } .block-editor-block-preview__content .block-editor-block-list__insertion-point, .block-editor-block-preview__content .block-editor-block-drop-zone, .block-editor-block-preview__content .reusable-block-indicator, .block-editor-block-preview__content .block-list-appender { display: none; } - -.block-editor-block-settings-menu .components-dropdown-menu__toggle svg { - transform: rotate(-90deg); } + .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container { + padding-right: 0; + padding-left: 0; } + .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] { + margin-right: 0; + margin-left: 0; } .block-editor-block-settings-menu__popover .components-dropdown-menu__menu { padding: 0; } @@ -856,199 +1039,162 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { flex-shrink: 0; cursor: pointer; overflow: hidden; - border-radius: 4px; + border-radius: 2px; padding: 6px; - padding-top: calc(50% * 0.75 - 4px * 1.5); } + display: flex; + flex-direction: column; } .block-editor-block-styles__item:focus { - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } - .block-editor-block-styles__item:hover { - background: #f3f4f5; - color: #191e23; } - .block-editor-block-styles__item.is-active { - color: #191e23; - box-shadow: inset 0 0 0 2px #555d66; - outline: 2px solid transparent; - outline-offset: -2px; } - .block-editor-block-styles__item.is-active:focus { - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2, inset 0 0 0 2px #555d66; - outline: 4px solid transparent; - outline-offset: -4px; } + .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .block-editor-block-styles__item.is-active .block-editor-block-styles__item-label { + font-weight: bold; } + .block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview { + border: 2px solid #1e1e1e; } .block-editor-block-styles__item-preview { outline: 1px solid transparent; padding: 0; - border: 1px solid rgba(25, 30, 35, 0.2); - border-radius: 4px; + border: 1px solid rgba(30, 30, 30, 0.2); + border-radius: 2px; display: flex; overflow: hidden; background: #fff; - padding-top: 75%; - margin-top: -75%; } - .block-editor-block-styles__item-preview .block-editor-block-preview__container { - padding-top: 0; - margin: 0; - margin-top: -75%; } + align-items: center; + flex-grow: 1; + min-height: 80px; } .block-editor-block-styles__item-label { text-align: center; padding: 4px 2px; } .block-editor-block-switcher { - position: relative; - height: 36px; } + position: relative; } + +.block-editor-block-switcher__no-switcher-icon, +.block-editor-block-switcher__toggle { + position: relative; } .components-button.block-editor-block-switcher__toggle, .components-button.block-editor-block-switcher__no-switcher-icon { margin: 0; display: block; - height: 36px; - padding: 3px; } + height: 48px; } + .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, + .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + margin: auto; } .components-button.block-editor-block-switcher__no-switcher-icon { width: 48px; } - .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon { margin-left: auto; margin-right: auto; } .components-button.block-editor-block-switcher__no-switcher-icon:disabled { - border-radius: 0; - opacity: 0.84; } + opacity: 1; } + .components-button.block-editor-block-switcher__no-switcher-icon:disabled, .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { - color: #555d66 !important; - background: #f3f4f5 !important; } + color: #1e1e1e !important; } -.components-button.block-editor-block-switcher__toggle { - width: auto; } - .components-button.block-editor-block-switcher__toggle:active, .components-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-button.block-editor-block-switcher__toggle:not([aria-disabled="true"]):focus { - outline: none; - box-shadow: none; - background: none; - border: none; } - .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { - width: 42px; - height: 30px; +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon { + padding: 0; } + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { + height: 100%; position: relative; margin: 0 auto; - padding: 3px; display: flex; - align-items: center; - transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); } - @media (prefers-reduced-motion: reduce) { - .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { - transition-duration: 0s; } } - .components-button.block-editor-block-switcher__toggle .block-editor-block-icon::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-right: 3px solid transparent; - border-left: 3px solid transparent; - border-top: 5px solid; - margin-right: 4px; - margin-left: 2px; } - .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { - margin-top: 6px; - border-radius: 4px; } - .components-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-switcher__transform, - .components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform, - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { - transform: translateY(-36px); } - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } + align-items: center; } + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { + top: 8px; + left: 8px; + bottom: 8px; + right: 8px; } -.components-popover.block-editor-block-switcher__popover .components-popover__content { +.components-popover.block-editor-block-switcher__popover .components-popover__content > div { min-width: 300px; max-width: calc(340px * 2); display: flex; background: #fff; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); } - -.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container { - min-width: 300px; - max-width: 340px; - width: 50%; } - -@media (min-width: 782px) { - .block-editor-block-switcher__popover .components-popover__content { - position: relative; } - .block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__preview { - border-right: 1px solid #e2e4e7; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - background: #fff; - width: 300px; - height: auto; - position: -webkit-sticky; - position: sticky; - -ms-grid-row-align: stretch; - align-self: stretch; - top: 0; - padding: 10px; } } - -.block-editor-block-switcher__popover .components-popover__content .components-panel__body { - border: 0; - position: relative; - z-index: 1; } - -.block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { - border-top: 1px solid #e2e4e7; } + padding: 0; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group { + padding: 16px 24px; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group + .components-menu-group { + border-color: #ccc; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .block-editor-block-switcher__container { + min-width: 300px; + max-width: 340px; + width: 50%; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .block-editor-block-switcher__label { + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } + @media (min-width: 782px) { + .components-popover.block-editor-block-switcher__popover .components-popover__content > div { + position: relative; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .block-editor-block-switcher__preview { + border-right: 1px solid #e2e4e7; + margin-top: -12px; + margin-bottom: -12px; + background: #fff; + width: 300px; + height: auto; + position: -webkit-sticky; + position: sticky; + -ms-grid-row-align: stretch; + align-self: stretch; + top: 0; + padding: 10px; } } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-panel__body { + border: 0; + position: relative; + z-index: 1; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-panel__body + .components-panel__body { + border-top: 1px solid #e2e4e7; } .block-editor-block-switcher__popover .block-editor-block-styles { margin: 0 -3px; } .block-editor-block-switcher__popover .block-editor-block-types-list { - margin: 8px -8px -8px; } + margin: 12px 0 0 0; } .block-editor-block-switcher__preview-title { - margin-bottom: 10px; - color: #6c7781; } + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } -.block-editor-block-toolbar { - display: flex; - flex-grow: 1; - width: 100%; - overflow: auto; - position: relative; - border-right: 1px solid #b5bcc2; - transition: border-color 0.1s linear, box-shadow 0.1s linear; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-toolbar { - transition-duration: 0s; } } - @media (min-width: 600px) { - .block-editor-block-toolbar { - overflow: inherit; - border-right: none; - box-shadow: 3px 0 0 0 #555d66; } - .is-dark-theme .block-editor-block-toolbar { - box-shadow: 3px 0 0 0 #d7dade; } } - .block-editor-block-toolbar .components-toolbar { - border: 0; - border-top: 1px solid #b5bcc2; - border-bottom: 1px solid #b5bcc2; - border-left: 1px solid #b5bcc2; - line-height: 0; } - .has-fixed-toolbar .block-editor-block-toolbar { - box-shadow: none; - border-right: 1px solid #e2e4e7; } - .has-fixed-toolbar .block-editor-block-toolbar .components-toolbar { - border-color: #e2e4e7; } +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { + height: 48px; } -.block-editor-block-toolbar__slot { - display: inline-block; - line-height: 0; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .block-editor-block-toolbar__slot { - display: inline-flex; } } +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { + width: 48px; } + +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + width: 48px; + height: 48px; } + +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + padding: 12px; } .block-editor-block-types-list { list-style: none; @@ -1079,16 +1225,25 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { list-style: none; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li { list-style: none; - margin: 4px 0 4px 8px; + margin: 8px 0 0 8px; flex-shrink: 1; max-width: 100px; } + .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li button { + display: flex; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation { padding: 8px; } + .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 12px; + display: block; + margin-left: 12px; + text-align: center; } .block-editor-block-variation-picker__variation { width: 100%; } .block-editor-block-variation-picker__variation.components-button.has-icon { - justify-content: center; } + justify-content: center; + width: auto; } .block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary { background-color: #fff; } .block-editor-block-variation-picker__variation.components-button { @@ -1107,23 +1262,37 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { flex-direction: column; align-items: center; justify-content: center; - padding: 14px; - outline: 1px dashed #8d96a0; + padding: 8px; width: 100%; height: auto; - color: #555d66; - background: rgba(237, 239, 240, 0.8); } - .block-editor-button-block-appender:hover, .block-editor-button-block-appender:focus { - outline: 1px dashed #555d66; - color: #191e23; } + color: #1e1e1e; + box-shadow: inset 0 0 0 1px #1e1e1e; } + .block-editor-button-block-appender:hover { + box-shadow: inset 0 0 0 1px #007cba; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); } + .block-editor-button-block-appender:focus { + box-shadow: inset 0 0 0 2px #007cba; + box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); } .block-editor-button-block-appender:active { - outline: 1px dashed #191e23; - color: #191e23; } - .is-dark-theme .block-editor-button-block-appender { - background: rgba(50, 55, 60, 0.7); - color: #f8f9f9; } - .is-dark-theme .block-editor-button-block-appender:hover, .is-dark-theme .block-editor-button-block-appender:focus { - outline: 1px dashed #fff; } + color: #000; } + .block-editor-button-block-appender.block-list-appender__toggle { + display: flex; + flex-direction: row; + color: #1e1e1e; + box-shadow: none; + height: 24px; + padding: 0; + margin-right: 8px; } + .block-editor-button-block-appender.block-list-appender__toggle:active { + color: #fff; } + .block-editor-button-block-appender.block-list-appender__toggle > svg { + width: 24px; + background-color: #1e1e1e; + color: #fff; + border-radius: 2px; } + .block-editor-button-block-appender.block-list-appender__toggle .block-editor-button-block-appender__label { + display: block; + margin-right: 8px; } .block-editor-color-gradient-control__color-indicator { margin-bottom: 8px; } @@ -1152,8 +1321,8 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { outline: 1px solid transparent; } .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { - font-family: "Noto Serif", serif; - font-size: 16px; + font-family: inherit; + font-size: inherit; border: none; background: none; box-shadow: none; @@ -1165,7 +1334,7 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { resize: none; margin-top: 28px; margin-bottom: 28px; - padding: 0 14px 0 50px; + padding: 0 0 0 50px; color: rgba(14, 28, 46, 0.62); } @media (prefers-reduced-motion: reduce) { .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { @@ -1176,29 +1345,16 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { display: none; } .block-editor-default-block-appender__content { - min-height: 28px; line-height: 1.8; } .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { position: absolute; top: 0; - height: 28px; } - .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button.has-icon, - .block-editor-default-block-appender .block-editor-inserter .components-button.has-icon { - width: 28px; - height: 28px; - padding: 0; } - .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button svg, - .block-editor-default-block-appender .block-editor-inserter .components-button svg { - display: block; - margin: auto; } + height: 32px; } .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { margin-left: 0; } - .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { - box-shadow: none; } .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { @@ -1211,189 +1367,75 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { .block-editor-block-list__empty-block-inserter:disabled, .block-editor-default-block-appender .block-editor-inserter:disabled { display: none; } - .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { - border-radius: 50%; - width: 28px; - height: 28px; - padding: 0; } - .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .is-dark-theme - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { - color: rgba(255, 255, 255, 0.75); } @media (min-width: 600px) { .block-editor-default-block-appender .block-editor-inserter { align-items: center; } } -html.block-editor-editor-skeleton__html-container { - position: fixed; - width: 100%; } - @media (min-width: 782px) { - html.block-editor-editor-skeleton__html-container { - position: initial; - width: initial; } } - -.block-editor-editor-skeleton { - display: flex; - flex-direction: column; - height: auto; - max-height: 100%; - position: fixed; - top: 46px; - right: 0; - left: 0; - bottom: 0; } - @media (min-width: 782px) { - .block-editor-editor-skeleton { - top: 32px; } - .is-fullscreen-mode .block-editor-editor-skeleton { - top: 0; } } - -.block-editor-editor-skeleton { - /* Set left position when auto-fold is not on the body element. */ - right: 0; } - @media (min-width: 782px) { - .block-editor-editor-skeleton { - right: 160px; } } - -.auto-fold .block-editor-editor-skeleton { - /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ } - @media (min-width: 782px) { - .auto-fold .block-editor-editor-skeleton { - right: 36px; } } - @media (min-width: 961px) { - .auto-fold .block-editor-editor-skeleton { - right: 160px; } } - -/* Sidebar manually collapsed. */ -.folded .block-editor-editor-skeleton { - right: 0; } - @media (min-width: 782px) { - .folded .block-editor-editor-skeleton { - right: 36px; } } - -/* Mobile menu opened. */ -@media (max-width: 782px) { - .auto-fold .wp-responsive-open .block-editor-editor-skeleton { - right: 190px; } } - -/* In small screens with responsive menu expanded there is small white space. */ -@media (max-width: 600px) { - .auto-fold .wp-responsive-open .block-editor-editor-skeleton { - margin-right: -18px; } } - -body.is-fullscreen-mode .block-editor-editor-skeleton { - right: 0 !important; } - -.block-editor-editor-skeleton__body { - flex-grow: 1; - display: flex; - overflow: auto; - overscroll-behavior-y: none; } - -.block-editor-editor-skeleton__content { - flex-grow: 1; - display: flex; - flex-direction: column; } - @media (min-width: 782px) { - .block-editor-editor-skeleton__content { - overflow: auto; } } - -.block-editor-editor-skeleton__sidebar { - display: none; } - @media (min-width: 782px) { - .block-editor-editor-skeleton__sidebar { - display: block; - z-index: 100000; - position: fixed !important; - top: -9999em; - bottom: auto; - right: auto; - left: 0; - width: 280px; } - .block-editor-editor-skeleton__sidebar:focus { - top: auto; - bottom: 0; } } - -.is-sidebar-opened .block-editor-editor-skeleton__sidebar { - display: block; - width: auto; - flex-shrink: 0; - position: absolute; - z-index: 100000; - top: 0; - left: 0; - bottom: 0; - right: 0; - background: #fff; } - @media (min-width: 782px) { - .is-sidebar-opened .block-editor-editor-skeleton__sidebar { - overflow: auto; - border-right: 1px solid #e2e4e7; - position: relative !important; - z-index: 90; } } - -.block-editor-editor-skeleton__header { - flex-shrink: 0; - height: auto; - border-bottom: 1px solid #e2e4e7; - z-index: 30; - position: -webkit-sticky; - position: sticky; - top: 0; } - @media (min-width: 600px) { - .block-editor-editor-skeleton__header { - position: initial; - top: 0; } } - -.block-editor-editor-skeleton__footer { - height: auto; - flex-shrink: 0; - overflow: auto; - border-top: 1px solid #e2e4e7; - display: none; } - @media (min-width: 782px) { - .block-editor-editor-skeleton__footer { - display: block; } } - -.block-editor-editor-skeleton__publish { - z-index: 100000; - position: fixed !important; - top: -9999em; - bottom: auto; - right: auto; - left: 0; - width: 280px; } - .block-editor-editor-skeleton__publish:focus { - top: auto; - bottom: 0; } - .block-editor-link-control { position: relative; min-width: 360px; } + .components-popover__content .block-editor-link-control { + min-width: auto; + width: 90vw; + max-width: 360px; } + +.block-editor-link-control__search-input-wrapper { + position: relative; } .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; width: calc(100% - 32px); display: block; padding: 11px 16px; - margin: 16px; padding-left: 36px; + margin: 16px; position: relative; - border: 1px solid #e1e1e1; - border-radius: 4px; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } + border: 1px solid #e2e4e7; + border-radius: 4px; } + @media (prefers-reduced-motion: reduce) { + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + transition-duration: 0s; } } @media (min-width: 600px) { .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { - font-size: 13px; } } + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:focus { - color: #191e23; border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + +.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field { + margin-bottom: 0; } + +.block-editor-link-control__search-error { + margin: -8px 16px 16px; } .block-editor-link-control__search-actions { position: absolute; @@ -1402,7 +1444,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { * when suggestions are rendered. * * Compensate for: - * - Input margin ($grid-size-large) + * - Input margin ($grid-unit-20) * - Border (1px) * - Vertically, for the difference in height between the input (40px) and * the icon buttons. @@ -1441,7 +1483,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-link-control__search-results { margin: 0; - padding: 8px 16px 16px; + padding: 8px 16px 8px; max-height: 200px; overflow-y: auto; } .block-editor-link-control__search-results.is-loading { @@ -1461,9 +1503,12 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { border-radius: 5px; height: auto; } .block-editor-link-control__search-item:hover, .block-editor-link-control__search-item:focus { - background-color: #e9e9e9; } + background-color: #edeff0; } + .block-editor-link-control__search-item:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba inset; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color) inset; } .block-editor-link-control__search-item.is-selected { - background: #f2f2f2; } + background: #f3f4f5; } .block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type { background: #fff; } .block-editor-link-control__search-item.is-current { @@ -1485,8 +1530,9 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-link-control__search-item .block-editor-link-control__search-item-title { max-width: 230px; overflow: hidden; - white-space: nowrap; text-overflow: ellipsis; } + .block-editor-link-control__search-item .block-editor-link-control__search-item-title mark { + color: #191e23; } .block-editor-link-control__search-item .block-editor-link-control__search-item-title { display: block; margin-bottom: 0.2em; @@ -1499,7 +1545,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { font-weight: normal; } .block-editor-link-control__search-item .block-editor-link-control__search-item-info { display: block; - color: #999; + color: #6c7781; font-size: 0.9em; line-height: 1.3; } .block-editor-link-control__search-item .block-editor-link-control__search-item-type { @@ -1510,11 +1556,31 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { background-color: #f3f4f5; border-radius: 2px; } +.block-editor-link-control__loading { + margin: 16px; + display: flex; + align-items: center; } + .block-editor-link-control__loading .components-spinner { + margin-top: 0; } + +.components-button + .block-editor-link-control__search-create { + margin-top: 20px; + overflow: visible; + padding: 12px 15px; } + .components-button + .block-editor-link-control__search-create::before { + content: ""; + position: absolute; + top: -10px; + right: 0; + display: block; + width: 100%; + border-top: 1px solid #e2e4e7; } + .block-editor-link-control__search-results div[role="menu"] > .block-editor-link-control__search-item.block-editor-link-control__search-item { padding: 10px; } .block-editor-link-control__settings { - border-top: 1px solid #e1e1e1; + border-top: 1px solid #e2e4e7; margin: 0; padding: 16px 24px; } .block-editor-link-control__settings :last-child { @@ -1535,7 +1601,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { * Position spinner to the left of the actions. * * Compensate for: - * - Input margin ($grid-size-large) + * - Input margin ($grid-unit-20) * - Border (1px) * - Vertically, for the difference in height between the input (40px) * and the spinner. @@ -1550,6 +1616,12 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { margin-right: auto; flex-shrink: 0; } +.block-editor-line-height-control { + margin-bottom: 24px; } + .block-editor-line-height-control input { + display: block; + max-width: 60px; } + .block-editor-image-size-control { margin-bottom: 1em; } .block-editor-image-size-control .block-editor-image-size-control__row { @@ -1566,7 +1638,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height { margin-right: 5px; } -.block-editor-inner-blocks.has-overlay::after { +.block-editor-block-list__layout.has-overlay::after { content: ""; position: absolute; top: -14px; @@ -1579,199 +1651,11 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { left: 0; right: 0; } -.block-editor-inserter { - display: inline-block; - background: none; - border: none; - padding: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - line-height: 1.4; } - @media (min-width: 782px) { - .block-editor-inserter { - position: relative; } } - -@media (min-width: 782px) { - .block-editor-inserter__popover > .components-popover__content { - overflow-y: visible; - height: 432px; } } - -.block-editor-inserter__toggle { - transition: color 0.2s ease; } - @media (prefers-reduced-motion: reduce) { - .block-editor-inserter__toggle { - transition-duration: 0s; } } - -.block-editor-inserter__menu { - height: 100%; - display: flex; - width: auto; } - @media (min-width: 782px) { - .block-editor-inserter__menu { - width: 400px; - position: relative; } - .block-editor-inserter__menu.has-help-panel { - width: 700px; } } - -.block-editor-inserter__main-area { - width: auto; - display: flex; - flex-direction: column; - height: 100%; } - @media (min-width: 782px) { - .block-editor-inserter__main-area { - width: 400px; - position: relative; } } - -.block-editor-inserter__inline-elements { - margin-top: -1px; } - -.block-editor-inserter__menu.is-bottom::after { - border-bottom-color: #fff; } - -.components-popover.block-editor-inserter__popover { - z-index: 99998; } - -.components-popover input[type="search"].block-editor-inserter__search { - display: block; - margin: 16px; - padding: 11px 16px; - position: relative; - z-index: 1; - border-radius: 4px; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .components-popover input[type="search"].block-editor-inserter__search { - font-size: 13px; } } - .components-popover input[type="search"].block-editor-inserter__search:focus { - color: #191e23; - border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; - outline: 2px solid transparent; } - -.block-editor-inserter__results { - flex-grow: 1; - overflow: auto; - position: relative; - z-index: 1; - padding: 0 16px 16px 16px; } - .block-editor-inserter__results:focus { - outline: 1px dotted #555d66; } - @media (min-width: 782px) { - .block-editor-inserter__results { - height: 394px; } } - .block-editor-inserter__results [role="presentation"] + .components-panel__body { - border-top: none; } - -.block-editor-inserter__popover .block-editor-block-types-list { - margin: 0 -8px; } - -.block-editor-inserter__reusable-blocks-panel { - position: relative; - text-align: left; } - -.block-editor-inserter__manage-reusable-blocks { - margin: 16px 16px 0 0; } - -.block-editor-inserter__no-results { - font-style: italic; - padding: 24px; - text-align: center; } - -.block-editor-inserter__child-blocks { - padding: 0 16px; } - -.block-editor-inserter__parent-block-header { - display: flex; - align-items: center; } - .block-editor-inserter__parent-block-header h2 { - font-size: 13px; } - .block-editor-inserter__parent-block-header .block-editor-block-icon { - margin-left: 8px; } - -.block-editor-inserter__menu-help-panel { - display: none; - border-right: 1px solid #e2e4e7; - width: 300px; - height: 100%; - padding: 20px; - overflow-y: auto; } - @media (min-width: 782px) { - .block-editor-inserter__menu-help-panel { - display: flex; - flex-direction: column; } } - .block-editor-inserter__menu-help-panel .block-editor-block-card { - padding-bottom: 20px; - margin-bottom: 20px; - border-bottom: 1px solid #e2e4e7; - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - @media (prefers-reduced-motion: reduce) { - .block-editor-inserter__menu-help-panel .block-editor-block-card { - animation-duration: 1ms; } } - .block-editor-inserter__menu-help-panel .block-editor-inserter__preview { - display: flex; - flex-grow: 2; } - -.block-editor-inserter__menu-help-panel-no-block { - display: flex; - height: 100%; - flex-direction: column; - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - @media (prefers-reduced-motion: reduce) { - .block-editor-inserter__menu-help-panel-no-block { - animation-duration: 1ms; } } - .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text { - flex-grow: 1; } - .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text h4 { - font-size: 18px; } - .block-editor-inserter__menu-help-panel-no-block .components-notice { - margin: 0; } - .block-editor-inserter__menu-help-panel-no-block h4 { - margin-top: 0; } - -.block-editor-inserter__menu-help-panel-hover-area { - flex-grow: 1; - margin-top: 20px; - padding: 20px; - border: 1px dotted #e2e4e7; - display: flex; - align-items: center; - text-align: center; } - -.block-editor-inserter__menu-help-panel-title { - font-size: 18px; - font-weight: 600; - margin-bottom: 20px; } - -.block-editor-inserter__preview-content { - border: 1px solid #e2e4e7; - border-radius: 4px; - min-height: 150px; - display: -ms-grid; - display: grid; - flex-grow: 2; } - .block-editor-inserter__preview-content .block-editor-block-preview__container { - margin-left: 0; - margin-right: 0; - padding: 10px; } - -.block-editor-inserter__preview-content-missing { - flex: 1; - display: flex; - justify-content: center; - color: #606a73; - border: 1px solid #e2e4e7; - border-radius: 4px; - align-items: center; } - .block-editor-block-types-list__list-item { display: block; width: 33.33%; padding: 0; - margin: 0 0 12px; } + margin: 0; } .components-button.block-editor-block-types-list__item { display: flex; @@ -1779,13 +1663,13 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { width: 100%; font-size: 13px; color: #32373c; - padding: 0 4px; + padding: 8px; align-items: stretch; justify-content: center; cursor: pointer; background: transparent; word-break: break-word; - border-radius: 4px; + border-radius: 2px; border: 1px solid transparent; transition: all 0.05s ease-in-out; position: relative; @@ -1796,46 +1680,21 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .components-button.block-editor-block-types-list__item:disabled { opacity: 0.6; cursor: default; } - .components-button.block-editor-block-types-list__item:not(:disabled):hover::before { - content: ""; - display: block; - background: #f3f4f5; - color: #191e23; - position: absolute; - z-index: -1; - border-radius: 4px; - top: 0; - left: 0; - bottom: 0; - right: 0; } - .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon, - .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title { - color: inherit; } - .components-button.block-editor-block-types-list__item:not(:disabled):active, .components-button.block-editor-block-types-list__item:not(:disabled):focus { - position: relative; - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; - outline: 2px solid transparent; - background: transparent; } - .components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon, - .components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title, .components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon, - .components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title { - color: inherit; } + .components-button.block-editor-block-types-list__item:not(:disabled):hover { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + color: #007cba !important; + color: var(--wp-admin-theme-color) !important; } .components-button.block-editor-block-types-list__item:not(:disabled).is-active { - color: #191e23; - box-shadow: inset 0 0 0 2px #555d66; + color: #fff; + background: #1e1e1e; outline: 2px solid transparent; outline-offset: -2px; } - .components-button.block-editor-block-types-list__item:not(:disabled).is-active:focus { - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2, inset 0 0 0 2px #555d66; - outline: 4px solid transparent; - outline-offset: -4px; } .block-editor-block-types-list__item-icon { padding: 12px 20px; - border-radius: 4px; - color: #555d66; + border-radius: 2px; + color: #1e1e1e; transition: all 0.05s ease-in-out; } @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item-icon { @@ -1850,40 +1709,52 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { transition-duration: 0s; } } .block-editor-block-types-list__item-title { - padding: 4px 2px 8px; } + padding: 4px 2px 8px; + font-size: 12px; } .modal-open .block-editor-media-replace-flow__options { display: none; } +.block-editor-media-replace-flow__options .components-popover__content > div { + padding-top: 16px; } + .block-editor-media-replace-flow__indicator { margin-right: 4px; } - .block-editor-media-replace-flow__indicator::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-right: 3px solid transparent; - border-left: 3px solid transparent; - border-top: 5px solid; - margin-right: 4px; - margin-left: 2px; } -.block-editor-media-flow__url-input { - padding: 0 15px; - max-width: 255px; - padding-bottom: 10px; } - .block-editor-media-flow__url-input input { - max-width: 180px; } +.block-editor-media-replace-flow__media-upload-menu { + margin-bottom: 16px; } -.block-editor-media-replace-flow__link-viewer .components-external-link__icon { - display: none; } +.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label { + top: 16px; } -.block-editor-media-replace-flow__link-viewer .components-visually-hidden { - position: initial; } +.block-editor-media-flow__url-input .block-editor-link-control { + margin-top: -16px; + width: auto; } + .block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field { + margin-bottom: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title { + max-width: 180px; + margin-top: 16px; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current { + width: auto; + padding: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + margin: 16px 0 0 0; + width: 100%; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions { + left: 4px; } -.block-editor-media-replace-flow__link-viewer .components-button { - flex-shrink: 0; } +.block-editor-media-flow__error { + padding: 0 20px 20px 20px; + max-width: 255px; } + .block-editor-media-flow__error .components-with-notices-ui { + max-width: 255px; } + .block-editor-media-flow__error .components-with-notices-ui .components-notice__content { + overflow: hidden; + word-wrap: break-word; } + .block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss { + position: absolute; + left: 10px; } .block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button { margin-bottom: 0; } @@ -1905,29 +1776,17 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-media-placeholder__button { margin-bottom: 0.5rem; } - .block-editor-media-placeholder__button .dashicon { - vertical-align: middle; - margin-bottom: 3px; } - .block-editor-media-placeholder__button:hover { - color: #23282d; } .block-editor-media-placeholder__cancel-button.is-link { margin: 1em; display: block; } .block-editor-media-placeholder.is-appender { - min-height: 100px; - outline: 1px dashed #8d96a0; } + min-height: 0; } .block-editor-media-placeholder.is-appender:hover { - outline: 1px dashed #555d66; - cursor: pointer; } - .is-dark-theme .block-editor-media-placeholder.is-appender:hover { - outline: 1px dashed #fff; } - .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button { - margin-left: 4px; } - .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:hover, .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:focus { - box-shadow: none; - border: 1px solid #555d66; } + cursor: pointer; + box-shadow: 0 0 0 1px #007cba; + box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } .block-editor-multi-selection-inspector__card { display: flex; @@ -1999,23 +1858,12 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { width: 1px; word-wrap: normal !important; } -.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { - margin: 7px; } +.block-editor-format-toolbar .components-dropdown-menu__toggle { + justify-content: center; } .block-editor-rich-text__editable > p:first-child { margin-top: 0; } -.block-editor-rich-text__editable a { - color: #007fac; } - -.block-editor-rich-text__editable code { - padding: 2px; - border-radius: 2px; - color: #23282d; - background: #f3f4f5; - font-family: Menlo, Consolas, monaco, monospace; - font-size: inherit; } - .block-editor-rich-text__editable [data-rich-text-placeholder] { pointer-events: none; } @@ -2036,10 +1884,22 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .components-popover.block-editor-rich-text__inline-format-toolbar { z-index: 99998; } .components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content { + width: auto; min-width: auto; - margin-bottom: 6px; } + margin-bottom: 8px; + box-shadow: none; + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; } + .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group, .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar { border: none; } + .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control, + .components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle { + min-width: 48px; + min-height: 48px; + padding-right: 12px; + padding-left: 12px; } .block-editor-skip-to-selected-block { position: absolute; @@ -2052,29 +1912,20 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before font-weight: 600; padding: 15px 23px 14px; background: #f1f1f1; - color: #11a0d2; + color: #007cba; + color: var(--wp-admin-theme-color); line-height: normal; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); text-decoration: none; outline: none; z-index: 100000; } - body.admin-color-sunrise .block-editor-skip-to-selected-block:focus { - color: #c8b03c; } - body.admin-color-ocean .block-editor-skip-to-selected-block:focus { - color: #a89d8a; } - body.admin-color-midnight .block-editor-skip-to-selected-block:focus { - color: #77a6b9; } - body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus { - color: #c77430; } - body.admin-color-coffee .block-editor-skip-to-selected-block:focus { - color: #9fa47b; } - body.admin-color-blue .block-editor-skip-to-selected-block:focus { - color: #d9ab59; } - body.admin-color-light .block-editor-skip-to-selected-block:focus { - color: #c75726; } .block-editor-tool-selector__help { - padding: 16px; + margin-top: 8px; + margin-right: -12px; + margin-left: -12px; + margin-bottom: -12px; + padding: 12px 20px; border-top: 1px solid #e2e4e7; color: #6c7781; } @@ -2109,18 +1960,13 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .components-popover .block-editor-url-input input[type="text"]::-ms-clear, .block-editor-url-input input[type="text"]::-ms-clear { display: none; } - .block-editor-block-list__block .block-editor-url-input.has-border input[type="text"], - .components-popover .block-editor-url-input.has-border input[type="text"], - .block-editor-url-input.has-border input[type="text"] { - border: 1px solid #555d66; - border-radius: 4px; } .block-editor-block-list__block .block-editor-url-input.is-full-width, .components-popover .block-editor-url-input.is-full-width, .block-editor-url-input.is-full-width { width: 100%; } - .block-editor-block-list__block .block-editor-url-input.is-full-width input[type="text"], - .components-popover .block-editor-url-input.is-full-width input[type="text"], - .block-editor-url-input.is-full-width input[type="text"] { + .block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type="text"], + .components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type="text"], + .block-editor-url-input.is-full-width .block-editor-url-input__input[type="text"] { width: 100%; } .block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions, .components-popover .block-editor-url-input.is-full-width__suggestions, @@ -2134,6 +1980,46 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before bottom: 17px; margin: 0; } +.block-editor-url-input__input[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .block-editor-url-input__input[type="text"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor-url-input__input[type="text"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .block-editor-url-input__input[type="text"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor-url-input__input[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor-url-input__input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor-url-input__input[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-url-input__input[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-url-input__input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-url-input__input[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .block-editor-url-input__suggestions { max-height: 200px; transition: all 0.15s ease-in-out; @@ -2162,29 +2048,16 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before width: 100%; border: none; text-align: right; - border: none; box-shadow: none; } .block-editor-url-input__suggestion:hover { background: #e2e4e7; } .block-editor-url-input__suggestion:focus, .block-editor-url-input__suggestion.is-selected { - background: rgb(0, 113, 158); + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); color: #fff; outline: none; } - body.admin-color-sunrise .block-editor-url-input__suggestion:focus, body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected { - background: rgb(178, 114, 63); } - body.admin-color-ocean .block-editor-url-input__suggestion:focus, body.admin-color-ocean .block-editor-url-input__suggestion.is-selected { - background: rgb(139, 157, 138); } - body.admin-color-midnight .block-editor-url-input__suggestion:focus, body.admin-color-midnight .block-editor-url-input__suggestion.is-selected { - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus, body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected { - background: rgb(142, 155, 73); } - body.admin-color-coffee .block-editor-url-input__suggestion:focus, body.admin-color-coffee .block-editor-url-input__suggestion.is-selected { - background: rgb(165, 141, 119); } - body.admin-color-blue .block-editor-url-input__suggestion:focus, body.admin-color-blue .block-editor-url-input__suggestion.is-selected { - background: rgb(111, 153, 173); } - body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-color-light .block-editor-url-input__suggestion.is-selected { - background: rgb(0, 113, 158); } +.components-toolbar-group > .block-editor-url-input__button, .components-toolbar > .block-editor-url-input__button { position: inherit; } @@ -2201,7 +2074,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before background: #e2e4e7; } .block-editor-url-input__button-modal { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); border: 1px solid #e2e4e7; background: #fff; } @@ -2239,15 +2112,11 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border-radius: 4px; height: 30px; width: 30px; } - .block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { - box-shadow: none; } - .block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover > svg { - color: #555d66; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } .block-editor-url-popover .components-button.has-icon:not(:disabled):focus { box-shadow: none; } .block-editor-url-popover .components-button.has-icon:not(:disabled):focus > svg { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; outline: 2px solid transparent; } .block-editor-url-popover__settings-toggle { @@ -2290,21 +2159,15 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before color: #d94f4f; } .block-editor-warning { + align-items: center; display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: nowrap; - background-color: #fff; - border: 1px solid #e2e4e7; - text-align: right; - padding: 10px 14px 14px; } - .is-selected .block-editor-warning { - border-color: rgba(66, 88, 99, 0.4); } - @media (min-width: 600px) { - .is-selected .block-editor-warning { - border-right-color: transparent; } } - .is-dark-theme .is-selected .block-editor-warning { - border-color: rgba(255, 255, 255, 0.45); } + flex-wrap: wrap; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + padding: 6px 12px; + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; } .block-editor-warning .block-editor-warning__message { line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -2322,21 +2185,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-warning .block-editor-warning__actions { display: flex; } .block-editor-warning .block-editor-warning__action { - margin: 0 0 0 6px; } + margin: 0 8px 0 0; } .block-editor-warning__secondary { - margin: 5px -4px 0 0; - height: 36px; } - .block-editor-warning__secondary .components-button.has-icon { - width: auto; - padding: 0 2px; } - @media (min-width: 600px) { - .block-editor-warning__secondary { - margin-right: 4px; } - .block-editor-warning__secondary .components-button.has-icon { - padding: 0 4px; } } - .block-editor-warning__secondary .components-button svg { - transform: rotate(-90deg); } + margin: auto 8px auto 0; } .block-editor-writing-flow { display: flex; @@ -2348,3 +2200,384 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .html-anchor-control .components-external-link { display: block; margin-top: 8px; } + +#end-resizable-editor-section { + display: none; } + +/** + * Block Toolbar + */ +.block-editor-block-toolbar { + display: flex; + flex-grow: 1; + width: 100%; + overflow: auto; + position: relative; + transition: border-color 0.1s linear, box-shadow 0.1s linear; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-toolbar { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor-block-toolbar { + overflow: inherit; } } + .block-editor-block-toolbar .components-toolbar-group, + .block-editor-block-toolbar .components-toolbar { + background: none; + line-height: 0; + margin-top: -1px; + margin-bottom: -1px; + border: 0; + border-left: 1px solid #e2e4e7; } + .block-editor-block-toolbar > :last-child, + .block-editor-block-toolbar > :last-child .components-toolbar-group, + .block-editor-block-toolbar > :last-child .components-toolbar { + border-left: none; } + +.block-editor-block-toolbar .components-toolbar-group, +.block-editor-block-toolbar .components-toolbar, +.block-editor-format-toolbar .components-toolbar-group, +.block-editor-format-toolbar .components-toolbar { + display: flex; + flex-wrap: nowrap; } + +.block-editor-block-toolbar__slot { + display: inline-block; + line-height: 0; } + @supports ((position: -webkit-sticky) or (position: sticky)) { + .block-editor-block-toolbar__slot { + display: inline-flex; } } + +.block-editor-block-toolbar__block-parent-selector-wrapper { + position: absolute; + top: -1px; + right: -1px; + opacity: 0; + transition: all 60ms linear; + z-index: -1; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-toolbar__block-parent-selector-wrapper { + transition-duration: 0s; } } + .is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper { + opacity: 1; + transform: translateY(-60px); } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper { + display: none; } + +.block-editor-block-toolbar__mover-switcher-container { + display: flex; } + +.block-editor-block-toolbar__block-switcher-wrapper { + display: flex; } + .block-editor-block-toolbar__block-switcher-wrapper:not([draggable="false"]) * { + cursor: grab; } + .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher { + display: block; } + +.block-editor-block-toolbar__drag-clone::before { + content: ""; + display: block; + position: absolute; + top: -60px; + width: 72px; + height: 48px; + border-radius: 2px; + background-color: #1e1e1e; + border: 1px solid #1e1e1e; + background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcgMTYuNWgxMFYxNUg3djEuNXptMC05VjloMTBWNy41SDd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+); + background-size: 24px; + background-repeat: no-repeat; + background-position: center center; } + +.block-editor-inserter { + display: inline-block; + background: none; + border: none; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + line-height: 1.4; } + @media (min-width: 782px) { + .block-editor-inserter { + position: relative; } } + +.block-editor-inserter__popover .block-editor-inserter__menu { + margin: -12px; } + .block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__search { + top: -12px; } + .block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs { + top: 60px; } + .block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area { + overflow: visible; + height: auto; } + +.block-editor-inserter__toggle.components-button { + display: inline-flex; + align-items: center; + cursor: pointer; + border: none; + outline: none; + padding: 0; + transition: color 0.2s ease; } + @media (prefers-reduced-motion: reduce) { + .block-editor-inserter__toggle.components-button { + transition-duration: 0s; } } + +.block-editor-inserter__menu { + height: 100%; + position: relative; + overflow: visible; } + +.block-editor-inserter__main-area { + width: auto; + overflow-y: auto; + height: 100%; } + @media (min-width: 782px) { + .block-editor-inserter__main-area { + width: 350px; } } + +.block-editor-inserter__inline-elements { + margin-top: -1px; } + +.block-editor-inserter__menu.is-bottom::after { + border-bottom-color: #fff; } + +.components-popover.block-editor-inserter__popover { + z-index: 99998; } + +.block-editor-inserter__search { + padding: 16px; + position: -webkit-sticky; + position: sticky; + top: 0; + background: #fff; + z-index: 1; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + display: block; + padding: 16px 16px 16px 48px; + background: #f3f4f5; + border: none; + width: 100%; + height: 48px; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; } + @media (prefers-reduced-motion: reduce) { + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + @media (min-width: 600px) { + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + font-size: 13px; } } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:focus { + background: #fff; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { + color: #606a73; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-ms-input-placeholder { + color: #606a73; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::placeholder { + color: #606a73; } + +.block-editor-inserter__search-icon { + position: absolute; + top: 28px; + left: 28px; } + +.block-editor-inserter__tabs { + display: flex; + flex-direction: column; + margin-top: -8px; } + .block-editor-inserter__tabs .components-tab-panel__tabs { + position: -webkit-sticky; + position: sticky; + top: 72px; + background: #fff; + z-index: 1; + border-bottom: 1px solid #e2e4e7; } + .block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item { + flex-grow: 1; + margin-bottom: -1px; } + .block-editor-inserter__tabs .components-tab-panel__tab-content { + display: flex; + flex-grow: 1; + flex-direction: column; + position: relative; } + +.block-editor-inserter__panel-header { + display: inline-flex; + align-items: center; + padding: 16px 16px 0; } + +.block-editor-inserter__panel-content { + padding: 0 16px; } + +.block-editor-inserter__panel-title { + margin: 0 0 0 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } + +.block-editor-inserter__block-list { + flex-grow: 1; + position: relative; } + +.block-editor-inserter__popover .block-editor-block-types-list { + margin: 0 -8px; } + +.block-editor-inserter__reusable-blocks-panel { + position: relative; + text-align: left; } + +.block-editor-inserter__manage-reusable-blocks { + display: inline-block; + margin: 16px; } + +.block-editor-inserter__no-results { + padding: 32px; + margin-top: 64px; + text-align: center; } + +.block-editor-inserter__no-results-icon { + fill: #b5bcc2; } + +.block-editor-inserter__child-blocks { + padding: 0 16px; } + +.block-editor-inserter__parent-block-header { + display: flex; + align-items: center; } + .block-editor-inserter__parent-block-header h2 { + font-size: 13px; } + .block-editor-inserter__parent-block-header .block-editor-block-icon { + margin-left: 8px; } + +.block-editor-inserter__preview-container { + display: none; + width: 300px; + background: #fff; + border-radius: 2px; + border: 1px solid #e2e4e7; + position: absolute; + top: 16px; + right: calc(100% + 16px); } + @media (min-width: 782px) { + .block-editor-inserter__preview-container { + display: block; } } + .block-editor-inserter__preview-container .block-editor-block-card { + padding: 16px; } + .block-editor-inserter__preview-container .block-editor-block-card__title { + font-size: 13px; } + +.block-editor-inserter__preview-content { + min-height: 144px; + background: #f3f4f5; + display: -ms-grid; + display: grid; + flex-grow: 1; + align-items: center; } + +.block-editor-inserter__preview-content-missing { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + min-height: 144px; + color: #606a73; + background: #f3f4f5; } + +.block-editor-inserter__tips { + border-top: 1px solid #e2e4e7; + padding: 16px; + flex-shrink: 0; } + +.block-editor-inserter__patterns-item { + border-radius: 2px; + cursor: pointer; + margin-top: 16px; + transition: all 0.05s ease-in-out; + position: relative; + border: 1px solid transparent; } + .block-editor-inserter__patterns-item:hover { + border: 1px solid #007cba; + border: 1px solid var(--wp-admin-theme-color); } + .block-editor-inserter__patterns-item:focus { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor-inserter__patterns-item.is-placeholder { + min-height: 100px; } + +.block-editor-inserter__patterns-item-title { + padding: 4px; + font-size: 12px; + text-align: center; } + +.block-editor-post-preview__dropdown { + display: none; + margin-left: 12px; + padding: 0; } + +.block-editor-post-preview__button-toggle { + display: flex; + justify-content: space-between; + padding: 0 12px 0 8px; } + .block-editor-post-preview__button-toggle:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); } + .block-editor-post-preview__button-toggle svg { + margin-right: 4px; } + +.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize { + padding-right: 40px; } + .block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon { + padding-right: 8px; } + +.block-editor-post-preview__dropdown-content .components-popover__content { + overflow-y: visible; } + +.block-editor-post-preview__dropdown-content .components-menu-group + .components-menu-group { + border-top: 1px solid #ccc; + padding: 8px 12px; + margin-right: -12px; + margin-left: -12px; } + +@media (min-width: 600px) { + .editor-post-preview { + display: none; } + .block-editor-post-preview__dropdown { + display: flex; } } diff --git a/wp-includes/css/dist/block-editor/style-rtl.min.css b/wp-includes/css/dist/block-editor/style-rtl.min.css index f7df0b3b4a..fee05df99c 100644 --- a/wp-includes/css/dist/block-editor/style-rtl.min.css +++ b/wp-includes/css/dist/block-editor/style-rtl.min.css @@ -1 +1 @@ -.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e2e4e7}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging:before{border:none}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block.is-selected .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout{padding-right:14px;padding-left:14px;position:relative}@media (min-width:600px){.block-editor-block-list__layout{padding-right:58px;padding-left:58px}}.block-editor-block-list__layout .block-editor-block-list__layout{padding-right:0;padding-left:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:before{z-index:0;content:"";position:absolute;border:1px solid transparent;border-right:none;box-shadow:none;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;outline:1px solid transparent;left:-14px;right:-14px;top:-14px;bottom:-14px}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:before{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:rgba(66,88,99,.4);box-shadow:inset -3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:hsla(0,0%,100%,.45);box-shadow:inset -3px 0 0 0 #d7dade}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{box-shadow:3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{box-shadow:3px 0 0 0 #d7dade}}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;box-shadow:inset -3px 0 0 0 #007cba}@media (min-width:600px){.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{box-shadow:3px 0 0 0 #007cba}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #0085ba}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #82b4cb}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #0085ba}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed){box-shadow:0 0 0 2px #007cba;border-radius:1px;outline:2px solid transparent}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed){box-shadow:0 0 0 2px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:before{border-color:rgba(145,151,162,.25);border-right:1px solid rgba(145,151,162,.25)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning:before{border-color:hsla(0,0%,100%,.35)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:before{border-color:rgba(66,88,99,.4) transparent rgba(66,88,99,.4) rgba(66,88,99,.4)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:before{border-color:hsla(0,0%,100%,.45)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;left:-14px;right:-14px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:after{bottom:22px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:after{bottom:-14px}}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected:before{border-right:transparent;border-width:1px;border-style:dashed}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks.has-overlay .block-editor-inner-blocks.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left],.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]{z-index:21;width:100%;height:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left]:before,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]:before{content:none}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left]>.is-block-content{float:left;margin-right:2em}.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]>.is-block-content{float:right;margin-left:2em}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]{clear:both}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin-right:-58px;margin-left:-58px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]:before{right:0;left:0;border-right-width:0;border-left-width:0}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .block-editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .block-editor-block-list__insertion-point-indicator{background:#0085ba}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{opacity:0;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle{border-radius:50%;color:#007cba;background:#fff;height:28px;width:28px;padding:0;justify-content:center}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block[data-align=full]>.block-editor-block-list__insertion-point{right:0;left:0}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:100%}@media (min-width:600px){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:auto;border-left:none}}.block-editor-block-list__breadcrumb{display:block;line-height:1;z-index:22}.block-editor-block-list__breadcrumb .components-toolbar{display:flex;background:#fff;border:1px solid #007cba;border-right:none;box-shadow:inset -3px 0 0 0 #007cba;height:38px;font-size:13px;line-height:29px;padding-right:8px;padding-left:8px}.block-editor-block-list__breadcrumb .components-toolbar .components-button{box-shadow:none}.is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar{border-color:hsla(0,0%,100%,.45)}@media (min-width:600px){.block-editor-block-list__breadcrumb .components-toolbar{box-shadow:3px 0 0 0 #007cba}}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative;margin-left:-14px;margin-right:-14px;margin-bottom:-14px;transform:translateY(-14px)}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover{z-index:28}.block-editor-block-list__insertion-point-popover .components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible}.components-popover.block-editor-block-list__block-popover{z-index:29}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb{margin-bottom:13px;margin-right:-14px}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align=full],.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb[data-align=full]{margin-right:0}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.block-editor-block-list__block .block-list-appender{margin:14px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:32px 14px}.block-list-appender.is-drop-target>div:before{content:"";position:absolute;left:-14px;right:-14px;top:-14px;bottom:-14px;border:3px solid #0085ba}body.admin-color-sunrise .block-list-appender.is-drop-target>div:before{border:3px solid #d1864a}body.admin-color-ocean .block-list-appender.is-drop-target>div:before{border:3px solid #a3b9a2}body.admin-color-midnight .block-list-appender.is-drop-target>div:before{border:3px solid #e14d43}body.admin-color-ectoplasm .block-list-appender.is-drop-target>div:before{border:3px solid #a7b656}body.admin-color-coffee .block-list-appender.is-drop-target>div:before{border:3px solid #c2a68c}body.admin-color-blue .block-list-appender.is-drop-target>div:before{border:3px solid #82b4cb}body.admin-color-light .block-list-appender.is-drop-target>div:before{border:3px solid #0085ba}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"\2192"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0}.block-editor-block-breadcrumb__button.components-button:hover{text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66;outline-offset:-2px;box-shadow:none}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#555d66;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500;margin-bottom:5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #e2e4e7}.block-editor-block-mobile-toolbar .block-editor-block-mover__control{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover__control .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control{float:right}@media (min-width:600px){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal){display:block;position:absolute;top:37px;right:-38px;opacity:0;background:#fff;border:1px solid rgba(66,88,99,.4);border-radius:4px;transition:box-shadow .2s ease-out}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal){transition-duration:0s}}@media (min-width:600px){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal).is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal).is-visible{animation-duration:1ms}}@media (min-width:600px){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control{display:flex;align-items:center;justify-content:center;padding:0;border:none;width:28px;height:24px;color:rgba(14,28,46,.62)}.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(14,28,46,.62)}.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control:focus:not(:disabled){background-color:transparent}}@media (min-width:600px){.block-editor-block-list__block:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal){margin-top:0}}.block-editor-block-mover__control-drag-handle{cursor:move;cursor:grab;fill:currentColor}.block-editor-block-mover__control-drag-handle,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none;background:none;color:rgba(10,24,41,.7)}.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active{cursor:grabbing}.block-editor-block-mover.is-horizontal .block-editor-block-mover__control-drag-handle,.block-editor-block-mover__description{display:none}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.block-editor-block-navigation__list,.block-editor-block-navigation__paragraph{padding:0;margin:0}.block-editor-block-navigation__list .block-editor-button-block-appender{outline:none;background:none;padding:8px;margin-right:.8em;width:36px;border-radius:4px}.block-editor-block-navigation__list .block-editor-button-block-appender:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5;outline:none}.block-editor-block-navigation__list .block-editor-button-block-appender:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-navigation__list .block-editor-block-navigation__list{margin-top:2px;border-right:2px solid #a2aab2;margin-right:1em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list{margin-right:1.5em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item:before{position:absolute;right:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button{margin-right:.8em;width:calc(100% - .8em)}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child:after{position:absolute;content:"";background:#fff;top:19px;bottom:0;right:-2px;width:2px}.block-editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:right;color:#40464d;border-radius:4px}.block-editor-block-navigation__item-button .block-editor-block-icon{margin-left:6px}.block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-navigation__item-button.is-selected,.block-editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.components-popover.block-editor-block-navigation__popover{z-index:99998}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.is-ready{overflow:visible}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-list__block,.block-editor-block-preview__content .block-editor-block-list__layout{padding:0}.block-editor-block-preview__content>div section{height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-settings-menu .components-dropdown-menu__toggle svg{transform:rotate(-90deg)}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:calc(37.5% - 6px) 6px 6px}.block-editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent}.block-editor-block-styles__item:hover{background:#f3f4f5;color:#191e23}.block-editor-block-styles__item.is-active{color:#191e23;box-shadow:inset 0 0 0 2px #555d66;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-styles__item.is-active:focus{color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2,inset 0 0 0 2px #555d66;outline:4px solid transparent;outline-offset:-4px}.block-editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);border-radius:4px;display:flex;overflow:hidden;background:#fff;padding:75% 0 0;margin-top:-75%}.block-editor-block-styles__item-preview .block-editor-block-preview__container{padding-top:0;margin:-75% 0 0}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher{position:relative;height:36px}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{border-radius:0;opacity:.84}.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#555d66!important;background:#f3f4f5!important}.components-button.block-editor-block-switcher__toggle{width:auto}.components-button.block-editor-block-switcher__toggle:active,.components-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-button.block-editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:none;box-shadow:none;background:none;border:none}.components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{transition-duration:0s}}.components-button.block-editor-block-switcher__toggle .block-editor-block-icon:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px}.components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform,.components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform,.components-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-switcher__transform{transform:translateY(-36px)}.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:680px;display:flex;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.1)}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container{min-width:300px;max-width:340px;width:50%}@media (min-width:782px){.block-editor-block-switcher__popover .components-popover__content{position:relative}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__preview{border-right:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;width:300px;height:auto;position:-webkit-sticky;position:sticky;-ms-grid-row-align:stretch;align-self:stretch;top:0;padding:10px}}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:8px -8px -8px}.block-editor-block-switcher__preview-title{margin-bottom:10px;color:#6c7781}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-right:1px solid #b5bcc2;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit;border-right:none;box-shadow:3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-toolbar{box-shadow:3px 0 0 0 #d7dade}}.block-editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #b5bcc2;border-bottom:1px solid #b5bcc2;border-left:1px solid #b5bcc2;line-height:0}.has-fixed-toolbar .block-editor-block-toolbar{box-shadow:none;border-right:1px solid #e2e4e7}.has-fixed-toolbar .block-editor-block-toolbar .components-toolbar{border-color:#e2e4e7}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:4px 0 4px 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px;outline:1px dashed #8d96a0;width:100%;height:auto;color:#555d66;background:rgba(237,239,240,.8)}.block-editor-button-block-appender:focus,.block-editor-button-block-appender:hover{outline:1px dashed #555d66;color:#191e23}.block-editor-button-block-appender:active{outline:1px dashed #191e23;color:#191e23}.is-dark-theme .block-editor-button-block-appender{background:rgba(50,55,60,.7);color:#f8f9f9}.is-dark-theme .block-editor-button-block-appender:focus,.is-dark-theme .block-editor-button-block-appender:hover{outline:1px dashed #fff}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 14px 0 50px;color:rgba(14,28,46,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{min-height:28px;line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:28px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter .components-button.has-icon{width:28px;height:28px;padding:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button svg,.block-editor-default-block-appender .block-editor-inserter .components-button svg{display:block;margin:auto}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{border-radius:50%;width:28px;height:28px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.is-dark-theme .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:hsla(0,0%,100%,.75)}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}html.block-editor-editor-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.block-editor-editor-skeleton__html-container{position:static;width:auto}}.block-editor-editor-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:782px){.block-editor-editor-skeleton{top:32px}.is-fullscreen-mode .block-editor-editor-skeleton{top:0}}.block-editor-editor-skeleton{right:0}@media (min-width:782px){.block-editor-editor-skeleton{right:160px}}@media (min-width:782px){.auto-fold .block-editor-editor-skeleton{right:36px}}@media (min-width:961px){.auto-fold .block-editor-editor-skeleton{right:160px}}.folded .block-editor-editor-skeleton{right:0}@media (min-width:782px){.folded .block-editor-editor-skeleton{right:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .block-editor-editor-skeleton{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .block-editor-editor-skeleton{margin-right:-18px}}body.is-fullscreen-mode .block-editor-editor-skeleton{right:0!important}.block-editor-editor-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.block-editor-editor-skeleton__content{flex-grow:1;display:flex;flex-direction:column}@media (min-width:782px){.block-editor-editor-skeleton__content{overflow:auto}}.block-editor-editor-skeleton__sidebar{display:none}@media (min-width:782px){.block-editor-editor-skeleton__sidebar{display:block;z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px}.block-editor-editor-skeleton__sidebar:focus{top:auto;bottom:0}}.is-sidebar-opened .block-editor-editor-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff}@media (min-width:782px){.is-sidebar-opened .block-editor-editor-skeleton__sidebar{overflow:auto;border-right:1px solid #e2e4e7;position:relative!important;z-index:90}}.block-editor-editor-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.block-editor-editor-skeleton__header{position:static;top:0}}.block-editor-editor-skeleton__footer{height:auto;flex-shrink:0;overflow:auto;border-top:1px solid #e2e4e7;display:none}@media (min-width:782px){.block-editor-editor-skeleton__footer{display:block}}.block-editor-editor-skeleton__publish{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px}.block-editor-editor-skeleton__publish:focus{top:auto;bottom:0}.block-editor-link-control{position:relative;min-width:360px}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{width:calc(100% - 32px);display:block;margin:16px;padding:11px 16px 11px 36px;position:relative;border:1px solid #e1e1e1;border-radius:4px;font-size:16px}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#e9e9e9}.block-editor-link-control__search-item.is-selected{background:#f2f2f2}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#999;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f3f4f5;border-radius:2px}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #e1e1e1;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-inner-blocks.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}@media (min-width:782px){.block-editor-inserter__popover>.components-popover__content{overflow-y:visible;height:432px}}.block-editor-inserter__toggle{transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle{transition-duration:0s}}.block-editor-inserter__menu{height:100%;display:flex;width:auto}@media (min-width:782px){.block-editor-inserter__menu{width:400px;position:relative}.block-editor-inserter__menu.has-help-panel{width:700px}}.block-editor-inserter__main-area{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:400px;position:relative}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.components-popover input[type=search].block-editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].block-editor-inserter__search{font-size:13px}}.components-popover input[type=search].block-editor-inserter__search:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.block-editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px}.block-editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.block-editor-inserter__results{height:394px}}.block-editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{margin:16px 16px 0 0}.block-editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__menu-help-panel{display:none;border-right:1px solid #e2e4e7;width:300px;height:100%;padding:20px;overflow-y:auto}@media (min-width:782px){.block-editor-inserter__menu-help-panel{display:flex;flex-direction:column}}.block-editor-inserter__menu-help-panel .block-editor-block-card{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e2e4e7;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-inserter__menu-help-panel .block-editor-block-card{animation-duration:1ms}}.block-editor-inserter__menu-help-panel .block-editor-inserter__preview{display:flex;flex-grow:2}.block-editor-inserter__menu-help-panel-no-block{display:flex;height:100%;flex-direction:column;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-inserter__menu-help-panel-no-block{animation-duration:1ms}}.block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text{flex-grow:1}.block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text h4{font-size:18px}.block-editor-inserter__menu-help-panel-no-block .components-notice{margin:0}.block-editor-inserter__menu-help-panel-no-block h4{margin-top:0}.block-editor-inserter__menu-help-panel-hover-area{flex-grow:1;margin-top:20px;padding:20px;border:1px dotted #e2e4e7;display:flex;align-items:center;text-align:center}.block-editor-inserter__menu-help-panel-title{font-size:18px;font-weight:600;margin-bottom:20px}.block-editor-inserter__preview-content{border:1px solid #e2e4e7;border-radius:4px;min-height:150px;display:-ms-grid;display:grid;flex-grow:2}.block-editor-inserter__preview-content .block-editor-block-preview__container{margin-left:0;margin-right:0;padding:10px}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;color:#606a73;border:1px solid #e2e4e7;border-radius:4px;align-items:center}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0 0 12px}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0 4px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover:before{content:"";display:block;background:#f3f4f5;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;left:0;bottom:0;right:0}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon,.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled):active,.components-button.block-editor-block-types-list__item:not(:disabled):focus{position:relative;color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent;background:transparent}.components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon,.components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title,.components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon,.components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title{color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#191e23;box-shadow:inset 0 0 0 2px #555d66;outline:2px solid transparent;outline-offset:-2px}.components-button.block-editor-block-types-list__item:not(:disabled).is-active:focus{color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2,inset 0 0 0 2px #555d66;outline:4px solid transparent;outline-offset:-4px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__indicator:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px}.block-editor-media-flow__url-input{max-width:255px;padding:0 15px 10px}.block-editor-media-flow__url-input input{max-width:180px}.block-editor-media-replace-flow__link-viewer .components-external-link__icon{display:none}.block-editor-media-replace-flow__link-viewer .components-visually-hidden{position:static}.block-editor-media-replace-flow__link-viewer .components-button{flex-shrink:0}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.block-editor-media-placeholder__button:hover{color:#23282d}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:100px;outline:1px dashed #8d96a0}.block-editor-media-placeholder.is-appender:hover{outline:1px dashed #555d66;cursor:pointer}.is-dark-theme .block-editor-media-placeholder.is-appender:hover{outline:1px dashed #fff}.block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button{margin-left:4px}.block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:focus,.block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:hover{box-shadow:none;border:1px solid #555d66}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator:after{margin:7px}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable a{color:#007fac}.block-editor-rich-text__editable code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{min-width:auto;margin-bottom:6px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border:none}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .block-editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .block-editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .block-editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .block-editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .block-editor-skip-to-selected-block:focus{color:#c75726}.block-editor-tool-selector__help{padding:16px;border-top:1px solid #e2e4e7;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.has-border input[type=text],.block-editor-url-input.has-border input[type=text],.components-popover .block-editor-url-input.has-border input[type=text]{border:1px solid #555d66;border-radius:4px}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width input[type=text],.block-editor-url-input.is-full-width input[type=text],.components-popover .block-editor-url-input.is-full-width input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;text-align:right;border:none;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected,body.admin-color-sunrise .block-editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .block-editor-url-input__suggestion.is-selected,body.admin-color-ocean .block-editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .block-editor-url-input__suggestion.is-selected,body.admin-color-midnight .block-editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .block-editor-url-input__suggestion.is-selected,body.admin-color-coffee .block-editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .block-editor-url-input__suggestion.is-selected,body.admin-color-blue .block-editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .block-editor-url-input__suggestion.is-selected,body.admin-color-light .block-editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #e2e4e7}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #e2e4e7;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:right;padding:10px 14px 14px}.is-selected .block-editor-warning{border-color:rgba(66,88,99,.4)}@media (min-width:600px){.is-selected .block-editor-warning{border-right-color:transparent}}.is-dark-theme .is-selected .block-editor-warning{border-color:hsla(0,0%,100%,.45)}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 6px}.block-editor-warning__secondary{margin:5px -4px 0 0;height:36px}.block-editor-warning__secondary .components-button.has-icon{width:auto;padding:0 2px}@media (min-width:600px){.block-editor-warning__secondary{margin-right:4px}.block-editor-warning__secondary .components-button.has-icon{padding:0 4px}}.block-editor-warning__secondary .components-button svg{transform:rotate(-90deg)}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e2e4e7}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;left:0;right:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;right:-6px;border-top:none;border-right:4px solid #007cba;border-right:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{opacity:0;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar-wrapper{padding-right:48px}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-left-style:solid;border-left-width:1px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon:before,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle:before{width:28px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg{margin-right:10px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg{margin-right:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group{border-left:none}.block-editor-block-contextual-toolbar .block-editor-block-mover{margin-right:-12px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal{width:48px}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:36px;width:36px;cursor:grab}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active{cursor:grabbing}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button>svg{margin-right:2px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{right:0!important;min-width:0;width:28px}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff;margin-right:49px}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}.components-popover.block-editor-block-list__block-popover{z-index:31}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-right:-48px}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align=full],.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button[data-align=full]{margin-right:0}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"\2192"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #e2e4e7}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;min-width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:8px!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:8px!important}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:right;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-right:0;padding-left:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:6px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;right:0;left:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;left:-1px;border-left:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;right:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border:1px solid rgba(30,30,30,.2);border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:300px;max-width:680px;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px 24px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group+.components-menu-group{border-color:#ccc}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .block-editor-block-switcher__container{min-width:300px;max-width:340px;width:50%}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .block-editor-block-switcher__label{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}@media (min-width:782px){.components-popover.block-editor-block-switcher__popover .components-popover__content>div{position:relative}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .block-editor-block-switcher__preview{border-right:1px solid #e2e4e7;margin-top:-12px;margin-bottom:-12px;background:#fff;width:300px;height:auto;position:-webkit-sticky;position:sticky;-ms-grid-row-align:stretch;align-self:stretch;top:0;padding:10px}}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-panel__body{border:0;position:relative;z-index:1}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:12px 0 0}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-left:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-button-block-appender.block-list-appender__toggle .block-editor-button-block-appender__label{display:block;margin-right:8px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(14,28,46,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #e2e4e7;border-radius:4px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#edeff0}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f3f4f5}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#191e23}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f3f4f5;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #e2e4e7}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #e2e4e7;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #e2e4e7;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #e2e4e7}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #e2e4e7;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 8px auto 0}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-left:1px solid #e2e4e7}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;right:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar__block-switcher-wrapper,.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper:not([draggable=false]) *{cursor:grab}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}.block-editor-block-toolbar__drag-clone:before{content:"";display:block;position:absolute;top:-60px;width:72px;height:48px;border-radius:2px;background-color:#1e1e1e;border:1px solid #1e1e1e;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcgMTYuNWgxMFYxNUg3djEuNXptMC05VjloMTBWNy41SDd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-size:24px;background-repeat:no-repeat;background-position:50%}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__search{top:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f3f4f5;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search-icon{position:absolute;top:28px;left:28px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #e2e4e7}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #e2e4e7;position:absolute;top:16px;right:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f3f4f5;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f3f4f5}.block-editor-inserter__tips{border-top:1px solid #e2e4e7;padding:16px;flex-shrink:0}.block-editor-inserter__patterns-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-inserter__patterns-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__patterns-item.is-placeholder{min-height:100px}.block-editor-inserter__patterns-item-title{padding:4px;font-size:12px;text-align:center}.block-editor-post-preview__dropdown{display:none;margin-left:12px;padding:0}.block-editor-post-preview__button-toggle{display:flex;justify-content:space-between;padding:0 12px 0 8px}.block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-post-preview__button-toggle svg{margin-right:4px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-right:-12px;margin-left:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style.css b/wp-includes/css/dist/block-editor/style.css index 096692d393..410880fd95 100644 --- a/wp-includes/css/dist/block-editor/style.css +++ b/wp-includes/css/dist/block-editor/style.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,14 +57,29 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + +.block-editor-autocompleters__block .block-editor-block-icon { + margin-right: 8px; } + +.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content { + min-width: 0; + width: auto; } + .block-editor-block-alignment-matrix-toolbar__popover .components-popover__content > div { + padding: 8px; } + .block-editor-block-icon { display: flex; align-items: center; justify-content: center; width: 24px; - height: 24px; - margin: 0; - border-radius: 4px; } + height: 24px; } .block-editor-block-icon.has-colors svg { fill: currentColor; } .block-editor-block-icon svg { @@ -77,32 +107,17 @@ padding: 32px 16px; text-align: center; } -.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging::before { - border: none; } - -.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > * { +.block-editor-block-list__layout .block-editor-block-list__block.is-dragging > * { background: #f8f9f9; } -.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > * > * { +.block-editor-block-list__layout .block-editor-block-list__block.is-dragging > * > * { visibility: hidden; } -.block-editor-block-list__layout .block-editor-block-list__block.is-selected .reusable-block-edit-panel * { +.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * { z-index: 1; } -/** - * General Post Content Layout - */ -.block-editor-block-list__layout { - padding-left: 14px; - padding-right: 14px; - position: relative; } - @media (min-width: 600px) { - .block-editor-block-list__layout { - padding-left: 58px; - padding-right: 58px; } } - .block-editor-block-list__layout .block-editor-block-list__layout { - padding-left: 0; - padding-right: 0; } +.block-editor-block-styles .block-editor-block-list__block { + margin: 0; } /** * Notices & Block Selected/Hover Styles. @@ -114,7 +129,7 @@ * Notices */ /** - * Block border layout + * Block Layout */ } .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { margin: -10px 0 12px 0; } @@ -126,40 +141,22 @@ margin-right: 0; } .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { font-size: 13px; } - .block-editor-block-list__layout .block-editor-block-list__block::before { - z-index: 0; - content: ""; - position: absolute; - border: 1px solid transparent; - border-left: none; - box-shadow: none; - pointer-events: none; - transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; - outline: 1px solid transparent; - right: -14px; - left: -14px; - top: -14px; - bottom: -14px; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-list__layout .block-editor-block-list__block::before { - transition-duration: 0s; } } - .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - border-color: rgba(66, 88, 99, 0.4); - box-shadow: inset 3px 0 0 0 #555d66; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - border-color: rgba(255, 255, 255, 0.45); - box-shadow: inset 3px 0 0 0 #d7dade; } - @media (min-width: 600px) { - .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - box-shadow: -3px 0 0 0 #555d66; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - box-shadow: -3px 0 0 0 #d7dade; } } - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - border-color: #007cba; - box-shadow: inset 3px 0 0 0 #007cba; } - @media (min-width: 600px) { - .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::before { - box-shadow: -3px 0 0 0 #007cba; } } + .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus { + outline: none; } + .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { + position: absolute; + z-index: 1; + pointer-events: none; + content: ""; + top: 1px; + bottom: 1px; + left: 1px; + right: 1px; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 1px; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after { + box-shadow: 0 0 0 1.5px #fff; } .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { opacity: 0.5; transition: opacity 0.1s linear; } @@ -168,37 +165,75 @@ transition-duration: 0s; } } .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { opacity: 1; } - .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #0085ba; } - body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #d1864a; } - body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #a3b9a2; } - body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #e14d43; } - body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #a7b656; } - body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #c2a68c; } - body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #82b4cb; } - body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before { - border-top: 3px solid #0085ba; } + +.block-editor-block-list__layout .block-editor-block-list__block, +.block-editor-block-list__layout .block-list-appender { + position: relative; } + .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target::before, + .block-editor-block-list__layout .block-list-appender.is-drop-target::before { + content: ""; + position: absolute; + z-index: 0; + pointer-events: none; + transition: border-color 0.1s linear, border-style 0.1s linear, box-shadow 0.1s linear; + top: -14px; + right: 0; + left: 0; + border-top: 4px solid #007cba; + border-top: 4px solid var(--wp-admin-theme-color); } + .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally::before, + .block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally::before { + top: 0; + bottom: 0; + left: -6px; + border-top: none; + border-left: 4px solid #007cba; + border-left: 4px solid var(--wp-admin-theme-color); } /** * Cross-Block Selection */ -.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed), -.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content { - box-shadow: 0 0 0 2px #007cba; - border-radius: 1px; - outline: 2px solid transparent; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed), .is-dark-theme - .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content { - box-shadow: 0 0 0 2px #fff; } - -.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection { - background: transparent; } +.block-editor-block-list__layout { + position: relative; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + position: absolute; + z-index: 1; + pointer-events: none; + content: ""; + top: 1px; + bottom: 1px; + left: 1px; + right: 1px; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 1px; + transition: box-shadow 0.2s ease-out; + outline: 2px solid transparent; } + @media (prefers-reduced-motion: reduce) { + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + transition-duration: 0s; } } + .is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected::after, .is-dark-theme + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered::after, .is-dark-theme + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .is-dark-theme + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected::after { + box-shadow: 0 0 0 1.5px #fff; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection, + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection, + .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection, + .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection { + background: transparent; } + .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected)::after { + box-shadow: 0 0 0 1px #949494; } /** * Block styles and alignments @@ -206,6 +241,21 @@ .block-editor-block-list__layout .block-editor-block-list__block.has-warning { min-height: 36px; } +.block-editor-block-list__layout .block-editor-block-list__block::after { + content: ""; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + border-radius: 2px; + box-shadow: 0 0 0 1.5px transparent; + transition: box-shadow 0.1s ease-in; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__layout .block-editor-block-list__block::after { + transition-duration: 0s; } } + .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { pointer-events: none; -webkit-user-select: none; @@ -215,85 +265,28 @@ .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { pointer-events: all; } -.block-editor-block-list__layout .block-editor-block-list__block.has-warning::before { - border-color: rgba(145, 151, 162, 0.25); - border-left: 1px solid rgba(145, 151, 162, 0.25); } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning::before { - border-color: rgba(255, 255, 255, 0.35); } - -.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::before { - border-color: rgba(66, 88, 99, 0.4); - border-left-color: transparent; } - .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::before { - border-color: rgba(255, 255, 255, 0.45); } - .block-editor-block-list__layout .block-editor-block-list__block.has-warning::after { content: ""; position: absolute; - background-color: rgba(248, 249, 249, 0.4); - top: -14px; - bottom: -14px; - right: -14px; - left: -14px; } + top: 0; + right: 0; + bottom: 0; + left: 0; + border-radius: 2px; + background-color: rgba(255, 255, 255, 0.4); } .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected::after { background-color: transparent; } -.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::after { - bottom: 22px; } - @media (min-width: 600px) { - .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected::after { - bottom: -14px; } } - -.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected::before { - border-left-color: transparent; - border-style: dashed; - border-width: 1px; } - -.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks.has-overlay::after { +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay::after { display: none; } -.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks.has-overlay .block-editor-inner-blocks.has-overlay::after { +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-inner-blocks > .block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay::after { display: block; } .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block { cursor: default; } -.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] { - z-index: 21; - width: 100%; - height: 0; } - .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"]::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"]::before { - content: none; } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] > .is-block-content { - /*!rtl:begin:ignore*/ - float: left; - margin-right: 2em; - /*!rtl:end:ignore*/ } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] > .is-block-content { - /*!rtl:begin:ignore*/ - float: right; - margin-left: 2em; - /*!rtl:end:ignore*/ } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] { - clear: both; } - -.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] { - margin-left: -14px; - margin-right: -14px; } - @media (min-width: 600px) { - .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] { - margin-left: -58px; - margin-right: -58px; } } - .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"]::before { - left: 0; - right: 0; - border-left-width: 0; - border-right-width: 0; } - .block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { float: none; } @@ -301,6 +294,35 @@ left: auto; right: 8px; } +.block-editor-block-list__layout .wp-block { + margin-left: auto; + margin-right: auto; } + +.wp-block[data-align="left"], .wp-block[data-align="right"] { + width: 100%; + height: 0; } + .wp-block[data-align="left"]::before, .wp-block[data-align="right"]::before { + content: none; } + +.wp-block[data-align="left"] > *, +.wp-block[data-align="right"] > * { + z-index: 21; } + +.wp-block[data-align="left"] > * { + /*!rtl:begin:ignore*/ + float: left; + margin-right: 2em; + /*!rtl:end:ignore*/ } + +.wp-block[data-align="right"] > * { + /*!rtl:begin:ignore*/ + float: right; + margin-left: 2em; + /*!rtl:end:ignore*/ } + +.wp-block[data-align="full"], .wp-block[data-align="wide"] { + clear: both; } + /** * In-Canvas Inserter */ @@ -317,31 +339,11 @@ .block-editor-block-list__insertion-point-indicator { position: absolute; top: calc(50% - 1px); - height: 2px; + height: 1.5px; left: 0; right: 0; - background: #0085ba; } - -body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator { - background: #d1864a; } - -body.admin-color-ocean .block-editor-block-list__insertion-point-indicator { - background: #a3b9a2; } - -body.admin-color-midnight .block-editor-block-list__insertion-point-indicator { - background: #e14d43; } - -body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator { - background: #a7b656; } - -body.admin-color-coffee .block-editor-block-list__insertion-point-indicator { - background: #c2a68c; } - -body.admin-color-blue .block-editor-block-list__insertion-point-indicator { - background: #82b4cb; } - -body.admin-color-light .block-editor-block-list__insertion-point-indicator { - background: #0085ba; } + background: #007cba; + background: var(--wp-admin-theme-color); } .block-editor-block-list__insertion-point-inserter { display: none; @@ -361,18 +363,59 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { .block-editor-block-list__block-popover-inserter.is-visible { position: static; } -.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle, -.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle { - border-radius: 50%; - color: #007cba; - background: #fff; - height: 28px; - width: 28px; +.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button, +.block-editor-default-block-appender .block-editor-inserter__toggle.components-button, +.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button, +.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button { + background: #1e1e1e; + border-radius: 2px; + color: #fff; padding: 0; - justify-content: center; } - .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover, - .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover { - box-shadow: none; } + min-width: 24px; + height: 24px; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button:hover, + .block-editor-default-block-appender .block-editor-inserter__toggle.components-button:hover, + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button:hover, + .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button:hover { + color: #fff; } + +.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button, +.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button { + animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button, + .block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button { + animation-duration: 1ms; } } + +@keyframes block-editor-inserter__toggle__fade-in-animation-delayed { + 0% { + opacity: 0; } + 80% { + opacity: 0; } + 100% { + opacity: 1; } } + +@keyframes block-editor-inserter__toggle__fade-in-animation { + from { + opacity: 0; + transform: scale(0); } + to { + opacity: 1; + transform: scale(1); } } + +.wp-block .block-list-appender .block-editor-inserter__toggle { + animation: block-editor-inserter__toggle__fade-in-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .wp-block .block-list-appender .block-editor-inserter__toggle { + animation-duration: 1ms; } } + +.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender { + display: none; } + .wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle { + opacity: 0; + transform: scale(0); } .block-editor-block-list__block > .block-editor-block-list__insertion-point { position: absolute; @@ -382,10 +425,6 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { left: 14px; right: 14px; } -.block-editor-block-list__block[data-align="full"] > .block-editor-block-list__insertion-point { - left: 0; - right: 0; } - .block-editor-block-list__block .block-editor-block-list__block-html-textarea { display: block; margin: 0; @@ -396,7 +435,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { resize: none; overflow: hidden; font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; + font-size: 15px; line-height: 150%; transition: padding 0.2s linear; } @media (prefers-reduced-motion: reduce) { @@ -405,65 +444,108 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { box-shadow: none; } +/** + * Block Toolbar, top and contextual. + */ +.block-editor-block-contextual-toolbar-wrapper { + padding-left: 48px; } + /** * Block Toolbar when contextual. */ -.block-editor-block-contextual-toolbar .block-editor-block-toolbar { - width: 100%; } - @media (min-width: 600px) { - .block-editor-block-contextual-toolbar .block-editor-block-toolbar { - width: auto; - border-right: none; } } +.block-editor-block-contextual-toolbar { + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container { + border-right-color: #1e1e1e; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container { + border-right-style: solid; + border-right-width: 1px; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon::before, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle::before { + width: 28px; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg { + margin-left: 10px; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg { + margin-left: auto; } + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar, + .block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group { + border-right: none; } + .block-editor-block-contextual-toolbar .block-editor-block-mover { + margin-left: -12px; + width: 36px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal { + width: 48px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { + min-width: 36px; + width: 36px; + cursor: grab; } + .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active { + cursor: grabbing; } + .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { + min-width: 24px; + width: 24px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg { + margin-left: 2px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { + margin-top: 3px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg { + margin-bottom: 3px; } + .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before { + left: 0 !important; + min-width: 0; + width: 28px; } /** * Block Label for Navigation/Selection Mode */ -.block-editor-block-list__breadcrumb { +.block-editor-block-list__block-selection-button { display: block; - line-height: 1; z-index: 22; } - .block-editor-block-list__breadcrumb .components-toolbar { - display: flex; - background: #fff; - border: 1px solid #007cba; - border-left: none; - box-shadow: inset 3px 0 0 0 #007cba; - height: 38px; + .block-editor-block-list__block-selection-button .components-button { font-size: 13px; - line-height: 29px; - padding-left: 8px; - padding-right: 8px; } - .block-editor-block-list__breadcrumb .components-toolbar .components-button { - box-shadow: none; } - .is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar { - border-color: rgba(255, 255, 255, 0.45); } - @media (min-width: 600px) { - .block-editor-block-list__breadcrumb .components-toolbar { - box-shadow: -3px 0 0 0 #007cba; } } + height: 46px; + padding: 12px 16px; + position: relative; + top: -1px; + box-shadow: 0 0 0 1px #1e1e1e; + border-radius: 1px; + background-color: #fff; + margin-left: 49px; } + .block-editor-block-list__block-selection-button .components-button:focus { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } +/** + * Warnings. + */ .block-editor-block-list__block .block-editor-warning { z-index: 5; - position: relative; - margin-right: -14px; - margin-left: -14px; - margin-bottom: -14px; - transform: translateY(-14px); } + position: relative; } .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning { margin-bottom: auto; } -.block-editor-block-list__insertion-point-popover { +/** + * Popovers. + */ +.block-editor-block-list__insertion-point-popover.is-without-arrow { z-index: 28; } - .block-editor-block-list__insertion-point-popover .components-popover__content { + .block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content { background: none; border: none; box-shadow: none; - overflow-y: visible; } + overflow-y: visible; + margin-left: 0; } .components-popover.block-editor-block-list__block-popover { - z-index: 29; } + z-index: 31; } .components-popover.block-editor-block-list__block-popover .components-popover__content { margin: 0 !important; min-width: auto; + width: max-content; background: none; border: none; box-shadow: none; @@ -471,54 +553,39 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator { pointer-events: none; } .components-popover.block-editor-block-list__block-popover .components-popover__content > * { pointer-events: all; } - .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar, - .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb { - margin-bottom: 13px; - margin-left: -14px; } + .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button, + .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar { + margin-bottom: 12px; + margin-left: -48px; } .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align="full"], - .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb[data-align="full"] { + .components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button[data-align="full"] { margin-left: 0; } .is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover { opacity: 0; } +.is-dragging-components-draggable .components-tooltip { + display: none; } + .block-editor-block-list__block .block-list-appender { - margin: 14px 0; } + margin: 8px 0; } .has-background .block-editor-block-list__block .block-list-appender { - margin: 32px 14px; } - -.block-list-appender.is-drop-target > div::before { - content: ""; - position: absolute; - right: -14px; - left: -14px; - top: -14px; - bottom: -14px; - border: 3px solid #0085ba; } - -body.admin-color-sunrise .block-list-appender.is-drop-target > div::before { - border: 3px solid #d1864a; } - -body.admin-color-ocean .block-list-appender.is-drop-target > div::before { - border: 3px solid #a3b9a2; } - -body.admin-color-midnight .block-list-appender.is-drop-target > div::before { - border: 3px solid #e14d43; } - -body.admin-color-ectoplasm .block-list-appender.is-drop-target > div::before { - border: 3px solid #a7b656; } - -body.admin-color-coffee .block-list-appender.is-drop-target > div::before { - border: 3px solid #c2a68c; } - -body.admin-color-blue .block-list-appender.is-drop-target > div::before { - border: 3px solid #82b4cb; } - -body.admin-color-light .block-list-appender.is-drop-target > div::before { - border: 3px solid #0085ba; } + margin: 20px 8px; } + .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { + padding: 0; + opacity: 1; + transform: scale(1); + transition: all 0.1s ease; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { + transition-duration: 0s; } } .block-list-appender > .block-editor-inserter { display: block; } +.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle { + opacity: 0; + transform: scale(0); } + .block-editor-block-breadcrumb { list-style: none; padding: 0; @@ -532,22 +599,31 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { .block-editor-block-breadcrumb__button.components-button { height: 24px; line-height: 24px; - padding: 0; } - .block-editor-block-breadcrumb__button.components-button:hover { - text-decoration: underline; } - .block-editor-block-breadcrumb__button.components-button:focus { - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; - outline-offset: -2px; + padding: 0; + position: relative; } + .block-editor-block-breadcrumb__button.components-button:hover:not(:disabled) { + text-decoration: underline; box-shadow: none; } + .block-editor-block-breadcrumb__button.components-button:focus { + box-shadow: none; } + .block-editor-block-breadcrumb__button.components-button:focus::before { + content: ""; + display: block; + position: absolute; + border-radius: 2px; + top: 1px; + right: 1px; + bottom: 1px; + left: 1px; + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } .block-editor-block-breadcrumb__current { cursor: default; } .block-editor-block-breadcrumb__button.components-button, .block-editor-block-breadcrumb__current { - color: #555d66; + color: #1e1e1e; padding: 0 8px; font-size: inherit; } @@ -566,8 +642,9 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { flex-grow: 1; } .block-editor-block-card__title { - font-weight: 500; - margin-bottom: 5px; } + font-weight: 500; } + .block-editor-block-card__title.block-editor-block-card__title { + margin: 0 0 5px; } .block-editor-block-card__description { font-size: 13px; } @@ -637,7 +714,7 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { display: flex; flex-direction: row; border-right: 1px solid #e2e4e7; } - .block-editor-block-mobile-toolbar .block-editor-block-mover__control { + .block-editor-block-mobile-toolbar .block-editor-block-mover-button { width: 36px; height: 36px; border-radius: 4px; @@ -645,183 +722,291 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { margin: 0; justify-content: center; align-items: center; } - .block-editor-block-mobile-toolbar .block-editor-block-mover__control .dashicon { + .block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon { margin: auto; } .block-editor-block-mobile-toolbar .block-editor-block-mover { display: flex; margin-right: auto; } - .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control { + .block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button { float: left; } -@media (min-width: 600px) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) { - display: block; - position: absolute; - top: 37px; - left: -38px; - opacity: 0; - background: #fff; - border: 1px solid rgba(66, 88, 99, 0.4); - border-radius: 4px; - transition: box-shadow 0.2s ease-out; } } - @media (min-width: 600px) and (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) { - transition-duration: 0s; } } +.block-editor-block-mover { + display: inline-flex; + flex-direction: row; } -@media (min-width: 600px) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal).is-visible { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } } - @media (min-width: 600px) and (prefers-reduced-motion: reduce) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal).is-visible { - animation-duration: 1ms; } } - -@media (min-width: 600px) { - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control { - display: flex; - align-items: center; - justify-content: center; - padding: 0; - border: none; - width: 28px; - height: 24px; - color: rgba(14, 28, 46, 0.62); } - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control svg { - width: 28px; - height: 24px; - padding: 2px 5px; } - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control[aria-disabled="true"] { - cursor: default; - pointer-events: none; - color: rgba(14, 28, 46, 0.62); } - .block-editor-block-contextual-toolbar:not([data-align="wide"]):not([data-align="full"]) -.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control:focus:not(:disabled) { - background-color: transparent; } } - -@media (min-width: 600px) { - .block-editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover:not(.is-horizontal) { - margin-top: 0; } } - -.block-editor-block-mover__control-drag-handle { - cursor: move; - cursor: grab; - fill: currentColor; } - .block-editor-block-mover__control-drag-handle, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):focus { - box-shadow: none; - background: none; - color: rgba(10, 24, 41, 0.7); } - .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):active { - cursor: grabbing; } - -.block-editor-block-mover__description { +.block-editor-block-mover-button__description { display: none; } -.block-editor-block-mover.is-horizontal .block-editor-block-mover__control-drag-handle { - display: none; } +.block-editor-block-mover-button.has-icon { + padding: 0; } + +.block-editor-block-mover .components-toolbar-group, +.block-editor-block-mover .components-toolbar { + flex-direction: column; + flex: 1; } + +.block-editor-block-mover.is-horizontal .components-toolbar-group, +.block-editor-block-mover.is-horizontal .components-toolbar { + flex-direction: row; } + +.block-editor-block-mover .block-editor-block-mover-button { + height: 24px; + width: 48px; + padding: 0 !important; } + .block-editor-block-mover .block-editor-block-mover-button::before { + left: 8px !important; + right: 8px !important; } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg { + margin-bottom: -8px; } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before { + bottom: 0; + height: calc(100% - 8px); } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg { + margin-top: -8px; } + +.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before, +.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before { + top: 0; + height: calc(100% - 8px); } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon { + height: 48px; + width: 24px; + min-width: 24px; + padding-left: 0; + padding-right: 0; } + .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before { + top: 8px; + bottom: 8px; + min-width: 0; + width: auto; + height: auto; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg { + margin-left: 0; + margin-right: -8px; + margin-bottom: 0; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before { + left: 8px !important; + right: 0 !important; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg { + margin-left: -8px; + margin-right: 0; + margin-top: 0; } + +.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before { + left: 0 !important; + right: 8px !important; } .block-editor-block-navigation__container { padding: 7px; } .block-editor-block-navigation__label { - margin: 0 0 8px; - color: #6c7781; } + margin: 0 0 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } -.block-editor-block-navigation__list, -.block-editor-block-navigation__paragraph { +.block-editor-block-navigation__container { + padding: 7px; } + +.block-editor-block-navigation-tree { + width: 100%; + border-collapse: collapse; padding: 0; margin: 0; } -.block-editor-block-navigation__list .block-editor-button-block-appender { - outline: none; - background: none; - padding: 8px; - margin-left: 0.8em; - width: 36px; - border-radius: 4px; } - .block-editor-block-navigation__list .block-editor-button-block-appender:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; - outline: none; } - .block-editor-block-navigation__list .block-editor-button-block-appender:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - -.block-editor-block-navigation__list .block-editor-block-navigation__list { - margin-top: 2px; - border-left: 2px solid #a2aab2; - margin-left: 1em; } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list { - margin-left: 1.5em; } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item { - position: relative; } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item::before { - position: absolute; - left: 0; - background: #a2aab2; - width: 0.5em; - height: 2px; - content: ""; - top: calc(50% - 1px); } - .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button { - margin-left: 0.8em; - width: calc(100% - 0.8em); } - .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child { - position: relative; } - .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child::after { - position: absolute; - content: ""; - background: #fff; - top: 19px; - bottom: 0; - left: -2px; - width: 2px; } - -.block-editor-block-navigation__item-button { - display: flex; - align-items: center; - width: 100%; - padding: 6px; - text-align: left; - color: #40464d; - border-radius: 4px; } - .block-editor-block-navigation__item-button .block-editor-block-icon { +.block-editor-block-navigation-leaf { + position: relative; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { + display: flex; + align-items: center; + width: calc(100% - 0.8em); + height: auto; + padding: 12px 6px; + margin-top: auto; + margin-bottom: auto; + text-align: left; + color: #40464d; + border-radius: 2px; } + .components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents { + padding-left: 0; + padding-right: 0; } + .block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents { + opacity: 1; + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents { + animation-duration: 1ms; } } + .block-editor-block-navigation-leaf .block-editor-block-icon { + align-self: flex-start; margin-right: 6px; } - .block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .block-editor-block-navigation__item-button.is-selected, .block-editor-block-navigation__item-button.is-selected:focus { - color: #32373c; - background: #edeff0; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell { + padding-top: 0; + padding-bottom: 0; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell { + width: 36px; + opacity: 0; + vertical-align: top; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell { + transition-duration: 0s; } } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible { + opacity: 1; + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible { + animation-duration: 1ms; } } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell, + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon { + width: 24px; + min-width: 24px; + padding: 0; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell { + padding-top: 8px; } + .block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper { + display: flex; + height: 100%; + flex-direction: column; + align-items: center; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button { + position: relative; + width: 36px; + height: 24px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button svg { + position: relative; + height: 24px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button { + align-items: flex-end; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg { + bottom: -4px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button { + align-items: flex-start; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg { + top: -4px; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled { + box-shadow: none; + outline: none; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button:focus { + box-shadow: none; + outline: none; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button:focus::before { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; + outline: 2px solid transparent; } + .block-editor-block-navigation-leaf .block-editor-block-mover-button::before { + content: ""; + position: absolute; + display: block; + border-radius: 2px; + height: 16px; + min-width: 100%; + left: 0; + right: 0; + animation: components-button__appear-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-navigation-leaf .block-editor-block-mover-button::before { + animation-duration: 1ms; } } + .block-editor-block-navigation-leaf .block-editor-inserter__toggle { + background: #1e1e1e; + color: #fff; + height: 24px; + margin: 6px 6px 6px 1px; + min-width: 24px; } + .block-editor-block-navigation-leaf .block-editor-inserter__toggle:active { + color: #fff; } -.components-popover.block-editor-block-navigation__popover { - z-index: 99998; } +.block-editor-block-navigation-block-slot__description, +.block-editor-block-navigation-block-select-button__description, +.block-editor-block-navigation-appender__description { + display: none; } + +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container, +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container, +.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container, +.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container { + display: flex; } + +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container, +.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container { + min-height: 56px; } + +.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line, +.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line { + position: relative; + flex-shrink: 0; + width: 24px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child { + width: 18px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item { + margin-right: 6px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line::before, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line::before { + content: ""; + display: block; + position: absolute; + top: 1px; + bottom: -2px; + right: -1px; + border-right: 2px solid #a2aab2; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated::before, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated::before { + border-color: transparent; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row { + height: 26px; } + .block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item::after, + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item::after { + content: ""; + display: block; + position: absolute; + top: 26px; + left: 100%; + width: 5px; + border-bottom: 2px solid #a2aab2; } + +.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row { + height: 16px; } + .block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row::after { + top: 100%; } + +.block-editor-block-parent-selector { + background: #fff; + border-radius: 2px; } + .block-editor-block-parent-selector .block-editor-block-parent-selector__button { + width: 48px; + height: 48px; + border: 1px solid #1e1e1e; + border-radius: 2px; } .block-editor-block-preview__container { position: relative; width: 100%; overflow: hidden; } - .block-editor-block-preview__container.is-ready { - overflow: visible; } + .block-editor-block-preview__container.editor-styles-wrapper { + padding: 0; } .block-editor-block-preview__content { position: absolute; @@ -832,19 +1017,17 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { margin: 0; overflow: visible; min-height: auto; } - .block-editor-block-preview__content .block-editor-block-list__layout, - .block-editor-block-preview__content .block-editor-block-list__block { - padding: 0; } - .block-editor-block-preview__content > div section { - height: auto; } .block-editor-block-preview__content .block-editor-block-list__insertion-point, .block-editor-block-preview__content .block-editor-block-drop-zone, .block-editor-block-preview__content .reusable-block-indicator, .block-editor-block-preview__content .block-list-appender { display: none; } - -.block-editor-block-settings-menu .components-dropdown-menu__toggle svg { - transform: rotate(90deg); } + .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container { + padding-left: 0; + padding-right: 0; } + .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] { + margin-left: 0; + margin-right: 0; } .block-editor-block-settings-menu__popover .components-dropdown-menu__menu { padding: 0; } @@ -860,199 +1043,162 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { flex-shrink: 0; cursor: pointer; overflow: hidden; - border-radius: 4px; + border-radius: 2px; padding: 6px; - padding-top: calc(50% * 0.75 - 4px * 1.5); } + display: flex; + flex-direction: column; } .block-editor-block-styles__item:focus { - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } - .block-editor-block-styles__item:hover { - background: #f3f4f5; - color: #191e23; } - .block-editor-block-styles__item.is-active { - color: #191e23; - box-shadow: inset 0 0 0 2px #555d66; - outline: 2px solid transparent; - outline-offset: -2px; } - .block-editor-block-styles__item.is-active:focus { - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2, inset 0 0 0 2px #555d66; - outline: 4px solid transparent; - outline-offset: -4px; } + .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .block-editor-block-styles__item.is-active .block-editor-block-styles__item-label { + font-weight: bold; } + .block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview { + border: 2px solid #1e1e1e; } .block-editor-block-styles__item-preview { outline: 1px solid transparent; padding: 0; - border: 1px solid rgba(25, 30, 35, 0.2); - border-radius: 4px; + border: 1px solid rgba(30, 30, 30, 0.2); + border-radius: 2px; display: flex; overflow: hidden; background: #fff; - padding-top: 75%; - margin-top: -75%; } - .block-editor-block-styles__item-preview .block-editor-block-preview__container { - padding-top: 0; - margin: 0; - margin-top: -75%; } + align-items: center; + flex-grow: 1; + min-height: 80px; } .block-editor-block-styles__item-label { text-align: center; padding: 4px 2px; } .block-editor-block-switcher { - position: relative; - height: 36px; } + position: relative; } + +.block-editor-block-switcher__no-switcher-icon, +.block-editor-block-switcher__toggle { + position: relative; } .components-button.block-editor-block-switcher__toggle, .components-button.block-editor-block-switcher__no-switcher-icon { margin: 0; display: block; - height: 36px; - padding: 3px; } + height: 48px; } + .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, + .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + margin: auto; } .components-button.block-editor-block-switcher__no-switcher-icon { width: 48px; } - .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon { margin-right: auto; margin-left: auto; } .components-button.block-editor-block-switcher__no-switcher-icon:disabled { - border-radius: 0; - opacity: 0.84; } + opacity: 1; } + .components-button.block-editor-block-switcher__no-switcher-icon:disabled, .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { - color: #555d66 !important; - background: #f3f4f5 !important; } + color: #1e1e1e !important; } -.components-button.block-editor-block-switcher__toggle { - width: auto; } - .components-button.block-editor-block-switcher__toggle:active, .components-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-button.block-editor-block-switcher__toggle:not([aria-disabled="true"]):focus { - outline: none; - box-shadow: none; - background: none; - border: none; } - .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { - width: 42px; - height: 30px; +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon, +.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon, +.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon { + padding: 0; } + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon, + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon { + height: 100%; position: relative; margin: 0 auto; - padding: 3px; display: flex; - align-items: center; - transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); } - @media (prefers-reduced-motion: reduce) { - .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { - transition-duration: 0s; } } - .components-button.block-editor-block-switcher__toggle .block-editor-block-icon::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-left: 3px solid transparent; - border-right: 3px solid transparent; - border-top: 5px solid; - margin-left: 4px; - margin-right: 2px; } - .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { - margin-top: 6px; - border-radius: 4px; } - .components-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-switcher__transform, - .components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform, - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { - transform: translateY(-36px); } - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, - .components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } + align-items: center; } + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon::before, + .block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before, + .block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon::before { + top: 8px; + right: 8px; + bottom: 8px; + left: 8px; } -.components-popover.block-editor-block-switcher__popover .components-popover__content { +.components-popover.block-editor-block-switcher__popover .components-popover__content > div { min-width: 300px; max-width: calc(340px * 2); display: flex; background: #fff; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); } - -.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container { - min-width: 300px; - max-width: 340px; - width: 50%; } - -@media (min-width: 782px) { - .block-editor-block-switcher__popover .components-popover__content { - position: relative; } - .block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__preview { - border-left: 1px solid #e2e4e7; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - background: #fff; - width: 300px; - height: auto; - position: -webkit-sticky; - position: sticky; - -ms-grid-row-align: stretch; - align-self: stretch; - top: 0; - padding: 10px; } } - -.block-editor-block-switcher__popover .components-popover__content .components-panel__body { - border: 0; - position: relative; - z-index: 1; } - -.block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { - border-top: 1px solid #e2e4e7; } + padding: 0; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group { + padding: 16px 24px; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group + .components-menu-group { + border-color: #ccc; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .block-editor-block-switcher__container { + min-width: 300px; + max-width: 340px; + width: 50%; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .block-editor-block-switcher__label { + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } + @media (min-width: 782px) { + .components-popover.block-editor-block-switcher__popover .components-popover__content > div { + position: relative; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .block-editor-block-switcher__preview { + border-left: 1px solid #e2e4e7; + margin-top: -12px; + margin-bottom: -12px; + background: #fff; + width: 300px; + height: auto; + position: -webkit-sticky; + position: sticky; + -ms-grid-row-align: stretch; + align-self: stretch; + top: 0; + padding: 10px; } } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-panel__body { + border: 0; + position: relative; + z-index: 1; } + .components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-panel__body + .components-panel__body { + border-top: 1px solid #e2e4e7; } .block-editor-block-switcher__popover .block-editor-block-styles { margin: 0 -3px; } .block-editor-block-switcher__popover .block-editor-block-types-list { - margin: 8px -8px -8px; } + margin: 12px 0 0 0; } .block-editor-block-switcher__preview-title { - margin-bottom: 10px; - color: #6c7781; } + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } -.block-editor-block-toolbar { - display: flex; - flex-grow: 1; - width: 100%; - overflow: auto; - position: relative; - border-left: 1px solid #b5bcc2; - transition: border-color 0.1s linear, box-shadow 0.1s linear; } - @media (prefers-reduced-motion: reduce) { - .block-editor-block-toolbar { - transition-duration: 0s; } } - @media (min-width: 600px) { - .block-editor-block-toolbar { - overflow: inherit; - border-left: none; - box-shadow: -3px 0 0 0 #555d66; } - .is-dark-theme .block-editor-block-toolbar { - box-shadow: -3px 0 0 0 #d7dade; } } - .block-editor-block-toolbar .components-toolbar { - border: 0; - border-top: 1px solid #b5bcc2; - border-bottom: 1px solid #b5bcc2; - border-right: 1px solid #b5bcc2; - line-height: 0; } - .has-fixed-toolbar .block-editor-block-toolbar { - box-shadow: none; - border-left: 1px solid #e2e4e7; } - .has-fixed-toolbar .block-editor-block-toolbar .components-toolbar { - border-color: #e2e4e7; } +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { + height: 48px; } -.block-editor-block-toolbar__slot { - display: inline-block; - line-height: 0; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .block-editor-block-toolbar__slot { - display: inline-flex; } } +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon { + width: 48px; } + +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + width: 48px; + height: 48px; } + +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform, +.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + padding: 12px; } .block-editor-block-types-list { list-style: none; @@ -1083,16 +1229,25 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { list-style: none; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li { list-style: none; - margin: 4px 8px 4px 0; + margin: 8px 8px 0 0; flex-shrink: 1; max-width: 100px; } + .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations > li button { + display: flex; } .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation { padding: 8px; } + .block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 12px; + display: block; + margin-right: 12px; + text-align: center; } .block-editor-block-variation-picker__variation { width: 100%; } .block-editor-block-variation-picker__variation.components-button.has-icon { - justify-content: center; } + justify-content: center; + width: auto; } .block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary { background-color: #fff; } .block-editor-block-variation-picker__variation.components-button { @@ -1111,23 +1266,37 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { flex-direction: column; align-items: center; justify-content: center; - padding: 14px; - outline: 1px dashed #8d96a0; + padding: 8px; width: 100%; height: auto; - color: #555d66; - background: rgba(237, 239, 240, 0.8); } - .block-editor-button-block-appender:hover, .block-editor-button-block-appender:focus { - outline: 1px dashed #555d66; - color: #191e23; } + color: #1e1e1e; + box-shadow: inset 0 0 0 1px #1e1e1e; } + .block-editor-button-block-appender:hover { + box-shadow: inset 0 0 0 1px #007cba; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); } + .block-editor-button-block-appender:focus { + box-shadow: inset 0 0 0 2px #007cba; + box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); } .block-editor-button-block-appender:active { - outline: 1px dashed #191e23; - color: #191e23; } - .is-dark-theme .block-editor-button-block-appender { - background: rgba(50, 55, 60, 0.7); - color: #f8f9f9; } - .is-dark-theme .block-editor-button-block-appender:hover, .is-dark-theme .block-editor-button-block-appender:focus { - outline: 1px dashed #fff; } + color: #000; } + .block-editor-button-block-appender.block-list-appender__toggle { + display: flex; + flex-direction: row; + color: #1e1e1e; + box-shadow: none; + height: 24px; + padding: 0; + margin-left: 8px; } + .block-editor-button-block-appender.block-list-appender__toggle:active { + color: #fff; } + .block-editor-button-block-appender.block-list-appender__toggle > svg { + width: 24px; + background-color: #1e1e1e; + color: #fff; + border-radius: 2px; } + .block-editor-button-block-appender.block-list-appender__toggle .block-editor-button-block-appender__label { + display: block; + margin-left: 8px; } .block-editor-color-gradient-control__color-indicator { margin-bottom: 8px; } @@ -1156,8 +1325,8 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { outline: 1px solid transparent; } .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { - font-family: "Noto Serif", serif; - font-size: 16px; + font-family: inherit; + font-size: inherit; border: none; background: none; box-shadow: none; @@ -1169,7 +1338,7 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { resize: none; margin-top: 28px; margin-bottom: 28px; - padding: 0 50px 0 14px; + padding: 0 50px 0 0; color: rgba(14, 28, 46, 0.62); } @media (prefers-reduced-motion: reduce) { .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { @@ -1180,29 +1349,16 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { display: none; } .block-editor-default-block-appender__content { - min-height: 28px; line-height: 1.8; } .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { position: absolute; top: 0; - height: 28px; } - .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button.has-icon, - .block-editor-default-block-appender .block-editor-inserter .components-button.has-icon { - width: 28px; - height: 28px; - padding: 0; } - .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button svg, - .block-editor-default-block-appender .block-editor-inserter .components-button svg { - display: block; - margin: auto; } + height: 32px; } .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { margin-right: 0; } - .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { - box-shadow: none; } .block-editor-block-list__empty-block-inserter, .block-editor-default-block-appender .block-editor-inserter { @@ -1215,189 +1371,75 @@ body.admin-color-light .block-list-appender.is-drop-target > div::before { .block-editor-block-list__empty-block-inserter:disabled, .block-editor-default-block-appender .block-editor-inserter:disabled { display: none; } - .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { - border-radius: 50%; - width: 28px; - height: 28px; - padding: 0; } - .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .is-dark-theme - .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { - color: rgba(255, 255, 255, 0.75); } @media (min-width: 600px) { .block-editor-default-block-appender .block-editor-inserter { align-items: center; } } -html.block-editor-editor-skeleton__html-container { - position: fixed; - width: 100%; } - @media (min-width: 782px) { - html.block-editor-editor-skeleton__html-container { - position: initial; - width: initial; } } - -.block-editor-editor-skeleton { - display: flex; - flex-direction: column; - height: auto; - max-height: 100%; - position: fixed; - top: 46px; - left: 0; - right: 0; - bottom: 0; } - @media (min-width: 782px) { - .block-editor-editor-skeleton { - top: 32px; } - .is-fullscreen-mode .block-editor-editor-skeleton { - top: 0; } } - -.block-editor-editor-skeleton { - /* Set left position when auto-fold is not on the body element. */ - left: 0; } - @media (min-width: 782px) { - .block-editor-editor-skeleton { - left: 160px; } } - -.auto-fold .block-editor-editor-skeleton { - /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ } - @media (min-width: 782px) { - .auto-fold .block-editor-editor-skeleton { - left: 36px; } } - @media (min-width: 961px) { - .auto-fold .block-editor-editor-skeleton { - left: 160px; } } - -/* Sidebar manually collapsed. */ -.folded .block-editor-editor-skeleton { - left: 0; } - @media (min-width: 782px) { - .folded .block-editor-editor-skeleton { - left: 36px; } } - -/* Mobile menu opened. */ -@media (max-width: 782px) { - .auto-fold .wp-responsive-open .block-editor-editor-skeleton { - left: 190px; } } - -/* In small screens with responsive menu expanded there is small white space. */ -@media (max-width: 600px) { - .auto-fold .wp-responsive-open .block-editor-editor-skeleton { - margin-left: -18px; } } - -body.is-fullscreen-mode .block-editor-editor-skeleton { - left: 0 !important; } - -.block-editor-editor-skeleton__body { - flex-grow: 1; - display: flex; - overflow: auto; - overscroll-behavior-y: none; } - -.block-editor-editor-skeleton__content { - flex-grow: 1; - display: flex; - flex-direction: column; } - @media (min-width: 782px) { - .block-editor-editor-skeleton__content { - overflow: auto; } } - -.block-editor-editor-skeleton__sidebar { - display: none; } - @media (min-width: 782px) { - .block-editor-editor-skeleton__sidebar { - display: block; - z-index: 100000; - position: fixed !important; - top: -9999em; - bottom: auto; - left: auto; - right: 0; - width: 280px; } - .block-editor-editor-skeleton__sidebar:focus { - top: auto; - bottom: 0; } } - -.is-sidebar-opened .block-editor-editor-skeleton__sidebar { - display: block; - width: auto; - flex-shrink: 0; - position: absolute; - z-index: 100000; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: #fff; } - @media (min-width: 782px) { - .is-sidebar-opened .block-editor-editor-skeleton__sidebar { - overflow: auto; - border-left: 1px solid #e2e4e7; - position: relative !important; - z-index: 90; } } - -.block-editor-editor-skeleton__header { - flex-shrink: 0; - height: auto; - border-bottom: 1px solid #e2e4e7; - z-index: 30; - position: -webkit-sticky; - position: sticky; - top: 0; } - @media (min-width: 600px) { - .block-editor-editor-skeleton__header { - position: initial; - top: 0; } } - -.block-editor-editor-skeleton__footer { - height: auto; - flex-shrink: 0; - overflow: auto; - border-top: 1px solid #e2e4e7; - display: none; } - @media (min-width: 782px) { - .block-editor-editor-skeleton__footer { - display: block; } } - -.block-editor-editor-skeleton__publish { - z-index: 100000; - position: fixed !important; - top: -9999em; - bottom: auto; - left: auto; - right: 0; - width: 280px; } - .block-editor-editor-skeleton__publish:focus { - top: auto; - bottom: 0; } - .block-editor-link-control { position: relative; min-width: 360px; } + .components-popover__content .block-editor-link-control { + min-width: auto; + width: 90vw; + max-width: 360px; } + +.block-editor-link-control__search-input-wrapper { + position: relative; } .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; width: calc(100% - 32px); display: block; padding: 11px 16px; - margin: 16px; padding-right: 36px; + margin: 16px; position: relative; - border: 1px solid #e1e1e1; - border-radius: 4px; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } + border: 1px solid #e2e4e7; + border-radius: 4px; } + @media (prefers-reduced-motion: reduce) { + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + transition-duration: 0s; } } @media (min-width: 600px) { .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { - font-size: 13px; } } + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:focus { - color: #191e23; border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + +.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field { + margin-bottom: 0; } + +.block-editor-link-control__search-error { + margin: -8px 16px 16px; } .block-editor-link-control__search-actions { position: absolute; @@ -1406,7 +1448,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { * when suggestions are rendered. * * Compensate for: - * - Input margin ($grid-size-large) + * - Input margin ($grid-unit-20) * - Border (1px) * - Vertically, for the difference in height between the input (40px) and * the icon buttons. @@ -1445,7 +1487,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-link-control__search-results { margin: 0; - padding: 8px 16px 16px; + padding: 8px 16px 8px; max-height: 200px; overflow-y: auto; } .block-editor-link-control__search-results.is-loading { @@ -1465,9 +1507,12 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { border-radius: 5px; height: auto; } .block-editor-link-control__search-item:hover, .block-editor-link-control__search-item:focus { - background-color: #e9e9e9; } + background-color: #edeff0; } + .block-editor-link-control__search-item:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba inset; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color) inset; } .block-editor-link-control__search-item.is-selected { - background: #f2f2f2; } + background: #f3f4f5; } .block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type { background: #fff; } .block-editor-link-control__search-item.is-current { @@ -1489,8 +1534,9 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-link-control__search-item .block-editor-link-control__search-item-title { max-width: 230px; overflow: hidden; - white-space: nowrap; text-overflow: ellipsis; } + .block-editor-link-control__search-item .block-editor-link-control__search-item-title mark { + color: #191e23; } .block-editor-link-control__search-item .block-editor-link-control__search-item-title { display: block; margin-bottom: 0.2em; @@ -1503,7 +1549,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { font-weight: normal; } .block-editor-link-control__search-item .block-editor-link-control__search-item-info { display: block; - color: #999; + color: #6c7781; font-size: 0.9em; line-height: 1.3; } .block-editor-link-control__search-item .block-editor-link-control__search-item-type { @@ -1514,11 +1560,31 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { background-color: #f3f4f5; border-radius: 2px; } +.block-editor-link-control__loading { + margin: 16px; + display: flex; + align-items: center; } + .block-editor-link-control__loading .components-spinner { + margin-top: 0; } + +.components-button + .block-editor-link-control__search-create { + margin-top: 20px; + overflow: visible; + padding: 12px 15px; } + .components-button + .block-editor-link-control__search-create::before { + content: ""; + position: absolute; + top: -10px; + left: 0; + display: block; + width: 100%; + border-top: 1px solid #e2e4e7; } + .block-editor-link-control__search-results div[role="menu"] > .block-editor-link-control__search-item.block-editor-link-control__search-item { padding: 10px; } .block-editor-link-control__settings { - border-top: 1px solid #e1e1e1; + border-top: 1px solid #e2e4e7; margin: 0; padding: 16px 24px; } .block-editor-link-control__settings :last-child { @@ -1539,7 +1605,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { * Position spinner to the left of the actions. * * Compensate for: - * - Input margin ($grid-size-large) + * - Input margin ($grid-unit-20) * - Border (1px) * - Vertically, for the difference in height between the input (40px) * and the spinner. @@ -1554,6 +1620,12 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { margin-left: auto; flex-shrink: 0; } +.block-editor-line-height-control { + margin-bottom: 24px; } + .block-editor-line-height-control input { + display: block; + max-width: 60px; } + .block-editor-image-size-control { margin-bottom: 1em; } .block-editor-image-size-control .block-editor-image-size-control__row { @@ -1570,7 +1642,7 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height { margin-left: 5px; } -.block-editor-inner-blocks.has-overlay::after { +.block-editor-block-list__layout.has-overlay::after { content: ""; position: absolute; top: -14px; @@ -1583,199 +1655,11 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { right: 0; left: 0; } -.block-editor-inserter { - display: inline-block; - background: none; - border: none; - padding: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - line-height: 1.4; } - @media (min-width: 782px) { - .block-editor-inserter { - position: relative; } } - -@media (min-width: 782px) { - .block-editor-inserter__popover > .components-popover__content { - overflow-y: visible; - height: 432px; } } - -.block-editor-inserter__toggle { - transition: color 0.2s ease; } - @media (prefers-reduced-motion: reduce) { - .block-editor-inserter__toggle { - transition-duration: 0s; } } - -.block-editor-inserter__menu { - height: 100%; - display: flex; - width: auto; } - @media (min-width: 782px) { - .block-editor-inserter__menu { - width: 400px; - position: relative; } - .block-editor-inserter__menu.has-help-panel { - width: 700px; } } - -.block-editor-inserter__main-area { - width: auto; - display: flex; - flex-direction: column; - height: 100%; } - @media (min-width: 782px) { - .block-editor-inserter__main-area { - width: 400px; - position: relative; } } - -.block-editor-inserter__inline-elements { - margin-top: -1px; } - -.block-editor-inserter__menu.is-bottom::after { - border-bottom-color: #fff; } - -.components-popover.block-editor-inserter__popover { - z-index: 99998; } - -.components-popover input[type="search"].block-editor-inserter__search { - display: block; - margin: 16px; - padding: 11px 16px; - position: relative; - z-index: 1; - border-radius: 4px; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .components-popover input[type="search"].block-editor-inserter__search { - font-size: 13px; } } - .components-popover input[type="search"].block-editor-inserter__search:focus { - color: #191e23; - border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; - outline: 2px solid transparent; } - -.block-editor-inserter__results { - flex-grow: 1; - overflow: auto; - position: relative; - z-index: 1; - padding: 0 16px 16px 16px; } - .block-editor-inserter__results:focus { - outline: 1px dotted #555d66; } - @media (min-width: 782px) { - .block-editor-inserter__results { - height: 394px; } } - .block-editor-inserter__results [role="presentation"] + .components-panel__body { - border-top: none; } - -.block-editor-inserter__popover .block-editor-block-types-list { - margin: 0 -8px; } - -.block-editor-inserter__reusable-blocks-panel { - position: relative; - text-align: right; } - -.block-editor-inserter__manage-reusable-blocks { - margin: 16px 0 0 16px; } - -.block-editor-inserter__no-results { - font-style: italic; - padding: 24px; - text-align: center; } - -.block-editor-inserter__child-blocks { - padding: 0 16px; } - -.block-editor-inserter__parent-block-header { - display: flex; - align-items: center; } - .block-editor-inserter__parent-block-header h2 { - font-size: 13px; } - .block-editor-inserter__parent-block-header .block-editor-block-icon { - margin-right: 8px; } - -.block-editor-inserter__menu-help-panel { - display: none; - border-left: 1px solid #e2e4e7; - width: 300px; - height: 100%; - padding: 20px; - overflow-y: auto; } - @media (min-width: 782px) { - .block-editor-inserter__menu-help-panel { - display: flex; - flex-direction: column; } } - .block-editor-inserter__menu-help-panel .block-editor-block-card { - padding-bottom: 20px; - margin-bottom: 20px; - border-bottom: 1px solid #e2e4e7; - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - @media (prefers-reduced-motion: reduce) { - .block-editor-inserter__menu-help-panel .block-editor-block-card { - animation-duration: 1ms; } } - .block-editor-inserter__menu-help-panel .block-editor-inserter__preview { - display: flex; - flex-grow: 2; } - -.block-editor-inserter__menu-help-panel-no-block { - display: flex; - height: 100%; - flex-direction: column; - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - @media (prefers-reduced-motion: reduce) { - .block-editor-inserter__menu-help-panel-no-block { - animation-duration: 1ms; } } - .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text { - flex-grow: 1; } - .block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text h4 { - font-size: 18px; } - .block-editor-inserter__menu-help-panel-no-block .components-notice { - margin: 0; } - .block-editor-inserter__menu-help-panel-no-block h4 { - margin-top: 0; } - -.block-editor-inserter__menu-help-panel-hover-area { - flex-grow: 1; - margin-top: 20px; - padding: 20px; - border: 1px dotted #e2e4e7; - display: flex; - align-items: center; - text-align: center; } - -.block-editor-inserter__menu-help-panel-title { - font-size: 18px; - font-weight: 600; - margin-bottom: 20px; } - -.block-editor-inserter__preview-content { - border: 1px solid #e2e4e7; - border-radius: 4px; - min-height: 150px; - display: -ms-grid; - display: grid; - flex-grow: 2; } - .block-editor-inserter__preview-content .block-editor-block-preview__container { - margin-right: 0; - margin-left: 0; - padding: 10px; } - -.block-editor-inserter__preview-content-missing { - flex: 1; - display: flex; - justify-content: center; - color: #606a73; - border: 1px solid #e2e4e7; - border-radius: 4px; - align-items: center; } - .block-editor-block-types-list__list-item { display: block; width: 33.33%; padding: 0; - margin: 0 0 12px; } + margin: 0; } .components-button.block-editor-block-types-list__item { display: flex; @@ -1783,13 +1667,13 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { width: 100%; font-size: 13px; color: #32373c; - padding: 0 4px; + padding: 8px; align-items: stretch; justify-content: center; cursor: pointer; background: transparent; word-break: break-word; - border-radius: 4px; + border-radius: 2px; border: 1px solid transparent; transition: all 0.05s ease-in-out; position: relative; @@ -1800,46 +1684,21 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .components-button.block-editor-block-types-list__item:disabled { opacity: 0.6; cursor: default; } - .components-button.block-editor-block-types-list__item:not(:disabled):hover::before { - content: ""; - display: block; - background: #f3f4f5; - color: #191e23; - position: absolute; - z-index: -1; - border-radius: 4px; - top: 0; - right: 0; - bottom: 0; - left: 0; } - .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon, - .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title { - color: inherit; } - .components-button.block-editor-block-types-list__item:not(:disabled):active, .components-button.block-editor-block-types-list__item:not(:disabled):focus { - position: relative; - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; - outline: 2px solid transparent; - background: transparent; } - .components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon, - .components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title, .components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon, - .components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title { - color: inherit; } + .components-button.block-editor-block-types-list__item:not(:disabled):hover { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + color: #007cba !important; + color: var(--wp-admin-theme-color) !important; } .components-button.block-editor-block-types-list__item:not(:disabled).is-active { - color: #191e23; - box-shadow: inset 0 0 0 2px #555d66; + color: #fff; + background: #1e1e1e; outline: 2px solid transparent; outline-offset: -2px; } - .components-button.block-editor-block-types-list__item:not(:disabled).is-active:focus { - color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2, inset 0 0 0 2px #555d66; - outline: 4px solid transparent; - outline-offset: -4px; } .block-editor-block-types-list__item-icon { padding: 12px 20px; - border-radius: 4px; - color: #555d66; + border-radius: 2px; + color: #1e1e1e; transition: all 0.05s ease-in-out; } @media (prefers-reduced-motion: reduce) { .block-editor-block-types-list__item-icon { @@ -1854,40 +1713,52 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { transition-duration: 0s; } } .block-editor-block-types-list__item-title { - padding: 4px 2px 8px; } + padding: 4px 2px 8px; + font-size: 12px; } .modal-open .block-editor-media-replace-flow__options { display: none; } +.block-editor-media-replace-flow__options .components-popover__content > div { + padding-top: 16px; } + .block-editor-media-replace-flow__indicator { margin-left: 4px; } - .block-editor-media-replace-flow__indicator::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-left: 3px solid transparent; - border-right: 3px solid transparent; - border-top: 5px solid; - margin-left: 4px; - margin-right: 2px; } -.block-editor-media-flow__url-input { - padding: 0 15px; - max-width: 255px; - padding-bottom: 10px; } - .block-editor-media-flow__url-input input { - max-width: 180px; } +.block-editor-media-replace-flow__media-upload-menu { + margin-bottom: 16px; } -.block-editor-media-replace-flow__link-viewer .components-external-link__icon { - display: none; } +.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label { + top: 16px; } -.block-editor-media-replace-flow__link-viewer .components-visually-hidden { - position: initial; } +.block-editor-media-flow__url-input .block-editor-link-control { + margin-top: -16px; + width: auto; } + .block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field { + margin-bottom: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title { + max-width: 180px; + margin-top: 16px; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current { + width: auto; + padding: 0; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] { + margin: 16px 0 0 0; + width: 100%; } + .block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions { + right: 4px; } -.block-editor-media-replace-flow__link-viewer .components-button { - flex-shrink: 0; } +.block-editor-media-flow__error { + padding: 0 20px 20px 20px; + max-width: 255px; } + .block-editor-media-flow__error .components-with-notices-ui { + max-width: 255px; } + .block-editor-media-flow__error .components-with-notices-ui .components-notice__content { + overflow: hidden; + word-wrap: break-word; } + .block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss { + position: absolute; + right: 10px; } .block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button { margin-bottom: 0; } @@ -1909,29 +1780,17 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { .block-editor-media-placeholder__button { margin-bottom: 0.5rem; } - .block-editor-media-placeholder__button .dashicon { - vertical-align: middle; - margin-bottom: 3px; } - .block-editor-media-placeholder__button:hover { - color: #23282d; } .block-editor-media-placeholder__cancel-button.is-link { margin: 1em; display: block; } .block-editor-media-placeholder.is-appender { - min-height: 100px; - outline: 1px dashed #8d96a0; } + min-height: 0; } .block-editor-media-placeholder.is-appender:hover { - outline: 1px dashed #555d66; - cursor: pointer; } - .is-dark-theme .block-editor-media-placeholder.is-appender:hover { - outline: 1px dashed #fff; } - .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button { - margin-right: 4px; } - .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:hover, .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:focus { - box-shadow: none; - border: 1px solid #555d66; } + cursor: pointer; + box-shadow: 0 0 0 1px #007cba; + box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } .block-editor-multi-selection-inspector__card { display: flex; @@ -2003,23 +1862,12 @@ body.is-fullscreen-mode .block-editor-editor-skeleton { width: 1px; word-wrap: normal !important; } -.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { - margin: 7px; } +.block-editor-format-toolbar .components-dropdown-menu__toggle { + justify-content: center; } .block-editor-rich-text__editable > p:first-child { margin-top: 0; } -.block-editor-rich-text__editable a { - color: #007fac; } - -.block-editor-rich-text__editable code { - padding: 2px; - border-radius: 2px; - color: #23282d; - background: #f3f4f5; - font-family: Menlo, Consolas, monaco, monospace; - font-size: inherit; } - .block-editor-rich-text__editable [data-rich-text-placeholder] { pointer-events: none; } @@ -2040,10 +1888,22 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .components-popover.block-editor-rich-text__inline-format-toolbar { z-index: 99998; } .components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content { + width: auto; min-width: auto; - margin-bottom: 6px; } + margin-bottom: 8px; + box-shadow: none; + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; } + .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group, .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar { border: none; } + .components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control, + .components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle { + min-width: 48px; + min-height: 48px; + padding-left: 12px; + padding-right: 12px; } .block-editor-skip-to-selected-block { position: absolute; @@ -2056,29 +1916,20 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before font-weight: 600; padding: 15px 23px 14px; background: #f1f1f1; - color: #11a0d2; + color: #007cba; + color: var(--wp-admin-theme-color); line-height: normal; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); text-decoration: none; outline: none; z-index: 100000; } - body.admin-color-sunrise .block-editor-skip-to-selected-block:focus { - color: #c8b03c; } - body.admin-color-ocean .block-editor-skip-to-selected-block:focus { - color: #a89d8a; } - body.admin-color-midnight .block-editor-skip-to-selected-block:focus { - color: #77a6b9; } - body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus { - color: #c77430; } - body.admin-color-coffee .block-editor-skip-to-selected-block:focus { - color: #9fa47b; } - body.admin-color-blue .block-editor-skip-to-selected-block:focus { - color: #d9ab59; } - body.admin-color-light .block-editor-skip-to-selected-block:focus { - color: #c75726; } .block-editor-tool-selector__help { - padding: 16px; + margin-top: 8px; + margin-left: -12px; + margin-right: -12px; + margin-bottom: -12px; + padding: 12px 20px; border-top: 1px solid #e2e4e7; color: #6c7781; } @@ -2113,18 +1964,13 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .components-popover .block-editor-url-input input[type="text"]::-ms-clear, .block-editor-url-input input[type="text"]::-ms-clear { display: none; } - .block-editor-block-list__block .block-editor-url-input.has-border input[type="text"], - .components-popover .block-editor-url-input.has-border input[type="text"], - .block-editor-url-input.has-border input[type="text"] { - border: 1px solid #555d66; - border-radius: 4px; } .block-editor-block-list__block .block-editor-url-input.is-full-width, .components-popover .block-editor-url-input.is-full-width, .block-editor-url-input.is-full-width { width: 100%; } - .block-editor-block-list__block .block-editor-url-input.is-full-width input[type="text"], - .components-popover .block-editor-url-input.is-full-width input[type="text"], - .block-editor-url-input.is-full-width input[type="text"] { + .block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type="text"], + .components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type="text"], + .block-editor-url-input.is-full-width .block-editor-url-input__input[type="text"] { width: 100%; } .block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions, .components-popover .block-editor-url-input.is-full-width__suggestions, @@ -2138,6 +1984,46 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before bottom: 17px; margin: 0; } +.block-editor-url-input__input[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .block-editor-url-input__input[type="text"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor-url-input__input[type="text"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .block-editor-url-input__input[type="text"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor-url-input__input[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor-url-input__input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor-url-input__input[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-url-input__input[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-url-input__input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-url-input__input[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .block-editor-url-input__suggestions { max-height: 200px; transition: all 0.15s ease-in-out; @@ -2166,29 +2052,16 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before width: 100%; border: none; text-align: left; - border: none; box-shadow: none; } .block-editor-url-input__suggestion:hover { background: #e2e4e7; } .block-editor-url-input__suggestion:focus, .block-editor-url-input__suggestion.is-selected { - background: rgb(0, 113, 158); + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); color: #fff; outline: none; } - body.admin-color-sunrise .block-editor-url-input__suggestion:focus, body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected { - background: rgb(178, 114, 63); } - body.admin-color-ocean .block-editor-url-input__suggestion:focus, body.admin-color-ocean .block-editor-url-input__suggestion.is-selected { - background: rgb(139, 157, 138); } - body.admin-color-midnight .block-editor-url-input__suggestion:focus, body.admin-color-midnight .block-editor-url-input__suggestion.is-selected { - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus, body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected { - background: rgb(142, 155, 73); } - body.admin-color-coffee .block-editor-url-input__suggestion:focus, body.admin-color-coffee .block-editor-url-input__suggestion.is-selected { - background: rgb(165, 141, 119); } - body.admin-color-blue .block-editor-url-input__suggestion:focus, body.admin-color-blue .block-editor-url-input__suggestion.is-selected { - background: rgb(111, 153, 173); } - body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-color-light .block-editor-url-input__suggestion.is-selected { - background: rgb(0, 113, 158); } +.components-toolbar-group > .block-editor-url-input__button, .components-toolbar > .block-editor-url-input__button { position: inherit; } @@ -2205,7 +2078,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before background: #e2e4e7; } .block-editor-url-input__button-modal { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); border: 1px solid #e2e4e7; background: #fff; } @@ -2243,15 +2116,11 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before border-radius: 4px; height: 30px; width: 30px; } - .block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { - box-shadow: none; } - .block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover > svg { - color: #555d66; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } .block-editor-url-popover .components-button.has-icon:not(:disabled):focus { box-shadow: none; } .block-editor-url-popover .components-button.has-icon:not(:disabled):focus > svg { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; outline: 2px solid transparent; } .block-editor-url-popover__settings-toggle { @@ -2294,21 +2163,15 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before color: #d94f4f; } .block-editor-warning { + align-items: center; display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: nowrap; - background-color: #fff; - border: 1px solid #e2e4e7; - text-align: left; - padding: 10px 14px 14px; } - .is-selected .block-editor-warning { - border-color: rgba(66, 88, 99, 0.4); } - @media (min-width: 600px) { - .is-selected .block-editor-warning { - border-left-color: transparent; } } - .is-dark-theme .is-selected .block-editor-warning { - border-color: rgba(255, 255, 255, 0.45); } + flex-wrap: wrap; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + padding: 6px 12px; + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; } .block-editor-warning .block-editor-warning__message { line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -2326,21 +2189,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .block-editor-warning .block-editor-warning__actions { display: flex; } .block-editor-warning .block-editor-warning__action { - margin: 0 6px 0 0; } + margin: 0 0 0 8px; } .block-editor-warning__secondary { - margin: 5px 0 0 -4px; - height: 36px; } - .block-editor-warning__secondary .components-button.has-icon { - width: auto; - padding: 0 2px; } - @media (min-width: 600px) { - .block-editor-warning__secondary { - margin-left: 4px; } - .block-editor-warning__secondary .components-button.has-icon { - padding: 0 4px; } } - .block-editor-warning__secondary .components-button svg { - transform: rotate(90deg); } + margin: auto 0 auto 8px; } .block-editor-writing-flow { display: flex; @@ -2352,3 +2204,384 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before .html-anchor-control .components-external-link { display: block; margin-top: 8px; } + +#end-resizable-editor-section { + display: none; } + +/** + * Block Toolbar + */ +.block-editor-block-toolbar { + display: flex; + flex-grow: 1; + width: 100%; + overflow: auto; + position: relative; + transition: border-color 0.1s linear, box-shadow 0.1s linear; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-toolbar { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor-block-toolbar { + overflow: inherit; } } + .block-editor-block-toolbar .components-toolbar-group, + .block-editor-block-toolbar .components-toolbar { + background: none; + line-height: 0; + margin-top: -1px; + margin-bottom: -1px; + border: 0; + border-right: 1px solid #e2e4e7; } + .block-editor-block-toolbar > :last-child, + .block-editor-block-toolbar > :last-child .components-toolbar-group, + .block-editor-block-toolbar > :last-child .components-toolbar { + border-right: none; } + +.block-editor-block-toolbar .components-toolbar-group, +.block-editor-block-toolbar .components-toolbar, +.block-editor-format-toolbar .components-toolbar-group, +.block-editor-format-toolbar .components-toolbar { + display: flex; + flex-wrap: nowrap; } + +.block-editor-block-toolbar__slot { + display: inline-block; + line-height: 0; } + @supports ((position: -webkit-sticky) or (position: sticky)) { + .block-editor-block-toolbar__slot { + display: inline-flex; } } + +.block-editor-block-toolbar__block-parent-selector-wrapper { + position: absolute; + top: -1px; + left: -1px; + opacity: 0; + transition: all 60ms linear; + z-index: -1; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-toolbar__block-parent-selector-wrapper { + transition-duration: 0s; } } + .is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper { + opacity: 1; + transform: translateY(-60px); } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper { + display: none; } + +.block-editor-block-toolbar__mover-switcher-container { + display: flex; } + +.block-editor-block-toolbar__block-switcher-wrapper { + display: flex; } + .block-editor-block-toolbar__block-switcher-wrapper:not([draggable="false"]) * { + cursor: grab; } + .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher { + display: block; } + +.block-editor-block-toolbar__drag-clone::before { + content: ""; + display: block; + position: absolute; + top: -60px; + width: 72px; + height: 48px; + border-radius: 2px; + background-color: #1e1e1e; + border: 1px solid #1e1e1e; + background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcgMTYuNWgxMFYxNUg3djEuNXptMC05VjloMTBWNy41SDd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+); + background-size: 24px; + background-repeat: no-repeat; + background-position: center center; } + +.block-editor-inserter { + display: inline-block; + background: none; + border: none; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + line-height: 1.4; } + @media (min-width: 782px) { + .block-editor-inserter { + position: relative; } } + +.block-editor-inserter__popover .block-editor-inserter__menu { + margin: -12px; } + .block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__search { + top: -12px; } + .block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs { + top: 60px; } + .block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area { + overflow: visible; + height: auto; } + +.block-editor-inserter__toggle.components-button { + display: inline-flex; + align-items: center; + cursor: pointer; + border: none; + outline: none; + padding: 0; + transition: color 0.2s ease; } + @media (prefers-reduced-motion: reduce) { + .block-editor-inserter__toggle.components-button { + transition-duration: 0s; } } + +.block-editor-inserter__menu { + height: 100%; + position: relative; + overflow: visible; } + +.block-editor-inserter__main-area { + width: auto; + overflow-y: auto; + height: 100%; } + @media (min-width: 782px) { + .block-editor-inserter__main-area { + width: 350px; } } + +.block-editor-inserter__inline-elements { + margin-top: -1px; } + +.block-editor-inserter__menu.is-bottom::after { + border-bottom-color: #fff; } + +.components-popover.block-editor-inserter__popover { + z-index: 99998; } + +.block-editor-inserter__search { + padding: 16px; + position: -webkit-sticky; + position: sticky; + top: 0; + background: #fff; + z-index: 1; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + display: block; + padding: 16px 48px 16px 16px; + background: #f3f4f5; + border: none; + width: 100%; + height: 48px; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; } + @media (prefers-reduced-motion: reduce) { + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + @media (min-width: 600px) { + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input { + font-size: 13px; } } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:focus { + background: #fff; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input:-ms-input-placeholder { + color: #606a73; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::-ms-input-placeholder { + color: #606a73; } + .block-editor-inserter__search input[type="search"].block-editor-inserter__search-input::placeholder { + color: #606a73; } + +.block-editor-inserter__search-icon { + position: absolute; + top: 28px; + right: 28px; } + +.block-editor-inserter__tabs { + display: flex; + flex-direction: column; + margin-top: -8px; } + .block-editor-inserter__tabs .components-tab-panel__tabs { + position: -webkit-sticky; + position: sticky; + top: 72px; + background: #fff; + z-index: 1; + border-bottom: 1px solid #e2e4e7; } + .block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item { + flex-grow: 1; + margin-bottom: -1px; } + .block-editor-inserter__tabs .components-tab-panel__tab-content { + display: flex; + flex-grow: 1; + flex-direction: column; + position: relative; } + +.block-editor-inserter__panel-header { + display: inline-flex; + align-items: center; + padding: 16px 16px 0; } + +.block-editor-inserter__panel-content { + padding: 0 16px; } + +.block-editor-inserter__panel-title { + margin: 0 12px 0 0; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } + +.block-editor-inserter__block-list { + flex-grow: 1; + position: relative; } + +.block-editor-inserter__popover .block-editor-block-types-list { + margin: 0 -8px; } + +.block-editor-inserter__reusable-blocks-panel { + position: relative; + text-align: right; } + +.block-editor-inserter__manage-reusable-blocks { + display: inline-block; + margin: 16px; } + +.block-editor-inserter__no-results { + padding: 32px; + margin-top: 64px; + text-align: center; } + +.block-editor-inserter__no-results-icon { + fill: #b5bcc2; } + +.block-editor-inserter__child-blocks { + padding: 0 16px; } + +.block-editor-inserter__parent-block-header { + display: flex; + align-items: center; } + .block-editor-inserter__parent-block-header h2 { + font-size: 13px; } + .block-editor-inserter__parent-block-header .block-editor-block-icon { + margin-right: 8px; } + +.block-editor-inserter__preview-container { + display: none; + width: 300px; + background: #fff; + border-radius: 2px; + border: 1px solid #e2e4e7; + position: absolute; + top: 16px; + left: calc(100% + 16px); } + @media (min-width: 782px) { + .block-editor-inserter__preview-container { + display: block; } } + .block-editor-inserter__preview-container .block-editor-block-card { + padding: 16px; } + .block-editor-inserter__preview-container .block-editor-block-card__title { + font-size: 13px; } + +.block-editor-inserter__preview-content { + min-height: 144px; + background: #f3f4f5; + display: -ms-grid; + display: grid; + flex-grow: 1; + align-items: center; } + +.block-editor-inserter__preview-content-missing { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + min-height: 144px; + color: #606a73; + background: #f3f4f5; } + +.block-editor-inserter__tips { + border-top: 1px solid #e2e4e7; + padding: 16px; + flex-shrink: 0; } + +.block-editor-inserter__patterns-item { + border-radius: 2px; + cursor: pointer; + margin-top: 16px; + transition: all 0.05s ease-in-out; + position: relative; + border: 1px solid transparent; } + .block-editor-inserter__patterns-item:hover { + border: 1px solid #007cba; + border: 1px solid var(--wp-admin-theme-color); } + .block-editor-inserter__patterns-item:focus { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor-inserter__patterns-item.is-placeholder { + min-height: 100px; } + +.block-editor-inserter__patterns-item-title { + padding: 4px; + font-size: 12px; + text-align: center; } + +.block-editor-post-preview__dropdown { + display: none; + margin-right: 12px; + padding: 0; } + +.block-editor-post-preview__button-toggle { + display: flex; + justify-content: space-between; + padding: 0 8px 0 12px; } + .block-editor-post-preview__button-toggle:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); } + .block-editor-post-preview__button-toggle svg { + margin-left: 4px; } + +.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize { + padding-left: 40px; } + .block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon { + padding-left: 8px; } + +.block-editor-post-preview__dropdown-content .components-popover__content { + overflow-y: visible; } + +.block-editor-post-preview__dropdown-content .components-menu-group + .components-menu-group { + border-top: 1px solid #ccc; + padding: 8px 12px; + margin-left: -12px; + margin-right: -12px; } + +@media (min-width: 600px) { + .editor-post-preview { + display: none; } + .block-editor-post-preview__dropdown { + display: flex; } } diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css index bb6f567ad5..74ad29b66b 100644 --- a/wp-includes/css/dist/block-editor/style.min.css +++ b/wp-includes/css/dist/block-editor/style.min.css @@ -1,5 +1,5 @@ -.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e2e4e7}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging:before{border:none}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block.is-selected .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout{padding-left:14px;padding-right:14px;position:relative}@media (min-width:600px){.block-editor-block-list__layout{padding-left:58px;padding-right:58px}}.block-editor-block-list__layout .block-editor-block-list__layout{padding-left:0;padding-right:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:before{z-index:0;content:"";position:absolute;border:1px solid transparent;border-left:none;box-shadow:none;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;outline:1px solid transparent;right:-14px;left:-14px;top:-14px;bottom:-14px}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:before{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:rgba(66,88,99,.4);box-shadow:inset 3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:hsla(0,0%,100%,.45);box-shadow:inset 3px 0 0 0 #d7dade}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{box-shadow:-3px 0 0 0 #d7dade}}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{border-color:#007cba;box-shadow:inset 3px 0 0 0 #007cba}@media (min-width:600px){.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:before{box-shadow:-3px 0 0 0 #007cba}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #0085ba}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #82b4cb}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:3px solid #0085ba}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed){box-shadow:0 0 0 2px #007cba;border-radius:1px;outline:2px solid transparent}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .is-block-content,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-block-collapsed){box-shadow:0 0 0 2px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:before{border-color:rgba(145,151,162,.25);border-left:1px solid rgba(145,151,162,.25)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning:before{border-color:hsla(0,0%,100%,.35)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:before{border-color:rgba(66,88,99,.4) rgba(66,88,99,.4) rgba(66,88,99,.4) transparent}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:before{border-color:hsla(0,0%,100%,.45)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;right:-14px;left:-14px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:after{bottom:22px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected:after{bottom:-14px}}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected:before{border-left:transparent;border-width:1px;border-style:dashed}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks.has-overlay .block-editor-inner-blocks.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left],.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]{z-index:21;width:100%;height:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left]:before,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]:before{content:none}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left]>.is-block-content{ +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e2e4e7}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;left:1px;right:1px;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block,.block-editor-block-list__layout .block-list-appender{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before,.block-editor-block-list__layout .block-list-appender.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-14px;right:0;left:0;border-top:4px solid #007cba;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target.is-dropping-horizontally:before,.block-editor-block-list__layout .block-list-appender.is-drop-target.is-dropping-horizontally:before{top:0;bottom:0;left:-6px;border-top:none;border-left:4px solid #007cba;border-left:4px solid var(--wp-admin-theme-color)}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;left:1px;right:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px #949494}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{left:auto;right:8px}.block-editor-block-list__layout .wp-block{margin-left:auto;margin-right:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{ /*!rtl:begin:ignore*/float:left;margin-right:2em - /*!rtl:end:ignore*/}.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]>.is-block-content{ + /*!rtl:end:ignore*/}.wp-block[data-align=right]>*{ /*!rtl:begin:ignore*/float:right;margin-left:2em - /*!rtl:end:ignore*/}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]{clear:both}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin-left:-14px;margin-right:-14px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin-left:-58px;margin-right:-58px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]:before{left:0;right:0;border-left-width:0;border-right-width:0}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{left:auto;right:8px}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;left:0;right:0;background:#0085ba}body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .block-editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .block-editor-block-list__insertion-point-indicator{background:#0085ba}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{opacity:0;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle{border-radius:50%;color:#007cba;background:#fff;height:28px;width:28px;padding:0;justify-content:center}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:14px;right:14px}.block-editor-block-list__block[data-align=full]>.block-editor-block-list__insertion-point{left:0;right:0}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:100%}@media (min-width:600px){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:auto;border-right:none}}.block-editor-block-list__breadcrumb{display:block;line-height:1;z-index:22}.block-editor-block-list__breadcrumb .components-toolbar{display:flex;background:#fff;border:1px solid #007cba;border-left:none;box-shadow:inset 3px 0 0 0 #007cba;height:38px;font-size:13px;line-height:29px;padding-left:8px;padding-right:8px}.block-editor-block-list__breadcrumb .components-toolbar .components-button{box-shadow:none}.is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar{border-color:hsla(0,0%,100%,.45)}@media (min-width:600px){.block-editor-block-list__breadcrumb .components-toolbar{box-shadow:-3px 0 0 0 #007cba}}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative;margin-right:-14px;margin-left:-14px;margin-bottom:-14px;transform:translateY(-14px)}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover{z-index:28}.block-editor-block-list__insertion-point-popover .components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible}.components-popover.block-editor-block-list__block-popover{z-index:29}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb{margin-bottom:13px;margin-left:-14px}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align=full],.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb[data-align=full]{margin-left:0}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.block-editor-block-list__block .block-list-appender{margin:14px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:32px 14px}.block-list-appender.is-drop-target>div:before{content:"";position:absolute;right:-14px;left:-14px;top:-14px;bottom:-14px;border:3px solid #0085ba}body.admin-color-sunrise .block-list-appender.is-drop-target>div:before{border:3px solid #d1864a}body.admin-color-ocean .block-list-appender.is-drop-target>div:before{border:3px solid #a3b9a2}body.admin-color-midnight .block-list-appender.is-drop-target>div:before{border:3px solid #e14d43}body.admin-color-ectoplasm .block-list-appender.is-drop-target>div:before{border:3px solid #a7b656}body.admin-color-coffee .block-list-appender.is-drop-target>div:before{border:3px solid #c2a68c}body.admin-color-blue .block-list-appender.is-drop-target>div:before{border:3px solid #82b4cb}body.admin-color-light .block-list-appender.is-drop-target>div:before{border:3px solid #0085ba}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"\2192"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0}.block-editor-block-breadcrumb__button.components-button:hover{text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66;outline-offset:-2px;box-shadow:none}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#555d66;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500;margin-bottom:5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-right:1px solid #e2e4e7}.block-editor-block-mobile-toolbar .block-editor-block-mover__control{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover__control .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control{float:left}@media (min-width:600px){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal){display:block;position:absolute;top:37px;left:-38px;opacity:0;background:#fff;border:1px solid rgba(66,88,99,.4);border-radius:4px;transition:box-shadow .2s ease-out}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal){transition-duration:0s}}@media (min-width:600px){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal).is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal).is-visible{animation-duration:1ms}}@media (min-width:600px){.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control{display:flex;align-items:center;justify-content:center;padding:0;border:none;width:28px;height:24px;color:rgba(14,28,46,.62)}.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(14,28,46,.62)}.block-editor-block-contextual-toolbar:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__control:focus:not(:disabled){background-color:transparent}}@media (min-width:600px){.block-editor-block-list__block:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover:not(.is-horizontal){margin-top:0}}.block-editor-block-mover__control-drag-handle{cursor:move;cursor:grab;fill:currentColor}.block-editor-block-mover__control-drag-handle,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none;background:none;color:rgba(10,24,41,.7)}.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active{cursor:grabbing}.block-editor-block-mover.is-horizontal .block-editor-block-mover__control-drag-handle,.block-editor-block-mover__description{display:none}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.block-editor-block-navigation__list,.block-editor-block-navigation__paragraph{padding:0;margin:0}.block-editor-block-navigation__list .block-editor-button-block-appender{outline:none;background:none;padding:8px;margin-left:.8em;width:36px;border-radius:4px}.block-editor-block-navigation__list .block-editor-button-block-appender:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5;outline:none}.block-editor-block-navigation__list .block-editor-button-block-appender:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-navigation__list .block-editor-block-navigation__list{margin-top:2px;border-left:2px solid #a2aab2;margin-left:1em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list{margin-left:1.5em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item:before{position:absolute;left:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button{margin-left:.8em;width:calc(100% - .8em)}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child:after{position:absolute;content:"";background:#fff;top:19px;bottom:0;left:-2px;width:2px}.block-editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:left;color:#40464d;border-radius:4px}.block-editor-block-navigation__item-button .block-editor-block-icon{margin-right:6px}.block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-navigation__item-button.is-selected,.block-editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.components-popover.block-editor-block-navigation__popover{z-index:99998}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.is-ready{overflow:visible}.block-editor-block-preview__content{position:absolute;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-list__block,.block-editor-block-preview__content .block-editor-block-list__layout{padding:0}.block-editor-block-preview__content>div section{height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-settings-menu .components-dropdown-menu__toggle svg{transform:rotate(90deg)}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:calc(37.5% - 6px) 6px 6px}.block-editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent}.block-editor-block-styles__item:hover{background:#f3f4f5;color:#191e23}.block-editor-block-styles__item.is-active{color:#191e23;box-shadow:inset 0 0 0 2px #555d66;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-styles__item.is-active:focus{color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2,inset 0 0 0 2px #555d66;outline:4px solid transparent;outline-offset:-4px}.block-editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);border-radius:4px;display:flex;overflow:hidden;background:#fff;padding:75% 0 0;margin-top:-75%}.block-editor-block-styles__item-preview .block-editor-block-preview__container{padding-top:0;margin:-75% 0 0}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher{position:relative;height:36px}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{border-radius:0;opacity:.84}.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#555d66!important;background:#f3f4f5!important}.components-button.block-editor-block-switcher__toggle{width:auto}.components-button.block-editor-block-switcher__toggle:active,.components-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-button.block-editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:none;box-shadow:none;background:none;border:none}.components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{transition-duration:0s}}.components-button.block-editor-block-switcher__toggle .block-editor-block-icon:after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;margin-left:4px;margin-right:2px}.components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform,.components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform,.components-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-switcher__transform{transform:translateY(-36px)}.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:680px;display:flex;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.1)}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container{min-width:300px;max-width:340px;width:50%}@media (min-width:782px){.block-editor-block-switcher__popover .components-popover__content{position:relative}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__preview{border-left:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;width:300px;height:auto;position:-webkit-sticky;position:sticky;-ms-grid-row-align:stretch;align-self:stretch;top:0;padding:10px}}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:8px -8px -8px}.block-editor-block-switcher__preview-title{margin-bottom:10px;color:#6c7781}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-left:1px solid #b5bcc2;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit;border-left:none;box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-toolbar{box-shadow:-3px 0 0 0 #d7dade}}.block-editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #b5bcc2;border-bottom:1px solid #b5bcc2;border-right:1px solid #b5bcc2;line-height:0}.has-fixed-toolbar .block-editor-block-toolbar{box-shadow:none;border-left:1px solid #e2e4e7}.has-fixed-toolbar .block-editor-block-toolbar .components-toolbar{border-color:#e2e4e7}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-types-list{list-style:none;padding:4px;margin-left:-4px;margin-right:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:4px 8px 4px 0;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px;outline:1px dashed #8d96a0;width:100%;height:auto;color:#555d66;background:rgba(237,239,240,.8)}.block-editor-button-block-appender:focus,.block-editor-button-block-appender:hover{outline:1px dashed #555d66;color:#191e23}.block-editor-button-block-appender:active{outline:1px dashed #191e23;color:#191e23}.is-dark-theme .block-editor-button-block-appender{background:rgba(50,55,60,.7);color:#f8f9f9}.is-dark-theme .block-editor-button-block-appender:focus,.is-dark-theme .block-editor-button-block-appender:hover{outline:1px dashed #fff}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 50px 0 14px;color:rgba(14,28,46,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{min-height:28px;line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:28px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter .components-button.has-icon{width:28px;height:28px;padding:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .components-button svg,.block-editor-default-block-appender .block-editor-inserter .components-button svg{display:block;margin:auto}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{border-radius:50%;width:28px;height:28px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.is-dark-theme .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:hsla(0,0%,100%,.75)}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}html.block-editor-editor-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.block-editor-editor-skeleton__html-container{position:static;width:auto}}.block-editor-editor-skeleton{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:782px){.block-editor-editor-skeleton{top:32px}.is-fullscreen-mode .block-editor-editor-skeleton{top:0}}.block-editor-editor-skeleton{left:0}@media (min-width:782px){.block-editor-editor-skeleton{left:160px}}@media (min-width:782px){.auto-fold .block-editor-editor-skeleton{left:36px}}@media (min-width:961px){.auto-fold .block-editor-editor-skeleton{left:160px}}.folded .block-editor-editor-skeleton{left:0}@media (min-width:782px){.folded .block-editor-editor-skeleton{left:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .block-editor-editor-skeleton{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .block-editor-editor-skeleton{margin-left:-18px}}body.is-fullscreen-mode .block-editor-editor-skeleton{left:0!important}.block-editor-editor-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.block-editor-editor-skeleton__content{flex-grow:1;display:flex;flex-direction:column}@media (min-width:782px){.block-editor-editor-skeleton__content{overflow:auto}}.block-editor-editor-skeleton__sidebar{display:none}@media (min-width:782px){.block-editor-editor-skeleton__sidebar{display:block;z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px}.block-editor-editor-skeleton__sidebar:focus{top:auto;bottom:0}}.is-sidebar-opened .block-editor-editor-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff}@media (min-width:782px){.is-sidebar-opened .block-editor-editor-skeleton__sidebar{overflow:auto;border-left:1px solid #e2e4e7;position:relative!important;z-index:90}}.block-editor-editor-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.block-editor-editor-skeleton__header{position:static;top:0}}.block-editor-editor-skeleton__footer{height:auto;flex-shrink:0;overflow:auto;border-top:1px solid #e2e4e7;display:none}@media (min-width:782px){.block-editor-editor-skeleton__footer{display:block}}.block-editor-editor-skeleton__publish{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px}.block-editor-editor-skeleton__publish:focus{top:auto;bottom:0}.block-editor-link-control{position:relative;min-width:360px}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{width:calc(100% - 32px);display:block;margin:16px;padding:11px 36px 11px 16px;position:relative;border:1px solid #e1e1e1;border-radius:4px;font-size:16px}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.block-editor-link-control__search-actions{position:absolute;top:19px;right:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#e9e9e9}.block-editor-link-control__search-item.is-selected{background:#f2f2f2}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 16px 16px 24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-right:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-right:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#999;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-left:auto;font-size:.9em;background-color:#f3f4f5;border-radius:2px}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #e1e1e1;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:28px;right:62px}.block-editor-link-control__search-item-action{margin-left:auto;flex-shrink:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-right:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-left:5px}.block-editor-inner-blocks.has-overlay:after{content:"";position:absolute;top:-14px;right:-14px;bottom:-14px;left:-14px;z-index:60}[data-align=full] .has-overlay:after{right:0;left:0}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}@media (min-width:782px){.block-editor-inserter__popover>.components-popover__content{overflow-y:visible;height:432px}}.block-editor-inserter__toggle{transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle{transition-duration:0s}}.block-editor-inserter__menu{height:100%;display:flex;width:auto}@media (min-width:782px){.block-editor-inserter__menu{width:400px;position:relative}.block-editor-inserter__menu.has-help-panel{width:700px}}.block-editor-inserter__main-area{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:400px;position:relative}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.components-popover input[type=search].block-editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].block-editor-inserter__search{font-size:13px}}.components-popover input[type=search].block-editor-inserter__search:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.block-editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px}.block-editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.block-editor-inserter__results{height:394px}}.block-editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{margin:16px 0 0 16px}.block-editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__menu-help-panel{display:none;border-left:1px solid #e2e4e7;width:300px;height:100%;padding:20px;overflow-y:auto}@media (min-width:782px){.block-editor-inserter__menu-help-panel{display:flex;flex-direction:column}}.block-editor-inserter__menu-help-panel .block-editor-block-card{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e2e4e7;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-inserter__menu-help-panel .block-editor-block-card{animation-duration:1ms}}.block-editor-inserter__menu-help-panel .block-editor-inserter__preview{display:flex;flex-grow:2}.block-editor-inserter__menu-help-panel-no-block{display:flex;height:100%;flex-direction:column;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-inserter__menu-help-panel-no-block{animation-duration:1ms}}.block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text{flex-grow:1}.block-editor-inserter__menu-help-panel-no-block .block-editor-inserter__menu-help-panel-no-block-text h4{font-size:18px}.block-editor-inserter__menu-help-panel-no-block .components-notice{margin:0}.block-editor-inserter__menu-help-panel-no-block h4{margin-top:0}.block-editor-inserter__menu-help-panel-hover-area{flex-grow:1;margin-top:20px;padding:20px;border:1px dotted #e2e4e7;display:flex;align-items:center;text-align:center}.block-editor-inserter__menu-help-panel-title{font-size:18px;font-weight:600;margin-bottom:20px}.block-editor-inserter__preview-content{border:1px solid #e2e4e7;border-radius:4px;min-height:150px;display:-ms-grid;display:grid;flex-grow:2}.block-editor-inserter__preview-content .block-editor-block-preview__container{margin-right:0;margin-left:0;padding:10px}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;color:#606a73;border:1px solid #e2e4e7;border-radius:4px;align-items:center}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0 0 12px}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0 4px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover:before{content:"";display:block;background:#f3f4f5;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;right:0;bottom:0;left:0}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon,.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled):active,.components-button.block-editor-block-types-list__item:not(:disabled):focus{position:relative;color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent;background:transparent}.components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon,.components-button.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title,.components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon,.components-button.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title{color:inherit}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#191e23;box-shadow:inset 0 0 0 2px #555d66;outline:2px solid transparent;outline-offset:-2px}.components-button.block-editor-block-types-list__item:not(:disabled).is-active:focus{color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2,inset 0 0 0 2px #555d66;outline:4px solid transparent;outline-offset:-4px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__indicator:after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;margin-left:4px;margin-right:2px}.block-editor-media-flow__url-input{max-width:255px;padding:0 15px 10px}.block-editor-media-flow__url-input input{max-width:180px}.block-editor-media-replace-flow__link-viewer .components-external-link__icon{display:none}.block-editor-media-replace-flow__link-viewer .components-visually-hidden{position:static}.block-editor-media-replace-flow__link-viewer .components-button{flex-shrink:0}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.block-editor-media-placeholder__button:hover{color:#23282d}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:100px;outline:1px dashed #8d96a0}.block-editor-media-placeholder.is-appender:hover{outline:1px dashed #555d66;cursor:pointer}.is-dark-theme .block-editor-media-placeholder.is-appender:hover{outline:1px dashed #fff}.block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button{margin-right:4px}.block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:focus,.block-editor-media-placeholder.is-appender .block-editor-media-placeholder__upload-button.components-button:hover{box-shadow:none;border:1px solid #555d66}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator:after{margin:7px}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable a{color:#007fac}.block-editor-rich-text__editable code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{min-width:auto;margin-bottom:6px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border:none}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .block-editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .block-editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .block-editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .block-editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .block-editor-skip-to-selected-block:focus{color:#c75726}.block-editor-tool-selector__help{padding:16px;border-top:1px solid #e2e4e7;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.has-border input[type=text],.block-editor-url-input.has-border input[type=text],.components-popover .block-editor-url-input.has-border input[type=text]{border:1px solid #555d66;border-radius:4px}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width input[type=text],.block-editor-url-input.is-full-width input[type=text],.components-popover .block-editor-url-input.is-full-width input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;bottom:17px;margin:0}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;text-align:left;border:none;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected,body.admin-color-sunrise .block-editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .block-editor-url-input__suggestion.is-selected,body.admin-color-ocean .block-editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .block-editor-url-input__suggestion.is-selected,body.admin-color-midnight .block-editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .block-editor-url-input__suggestion.is-selected,body.admin-color-coffee .block-editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .block-editor-url-input__suggestion.is-selected,body.admin-color-blue .block-editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .block-editor-url-input__suggestion.is-selected,body.admin-color-light .block-editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #e2e4e7}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #e2e4e7;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:left;padding:10px 14px 14px}.is-selected .block-editor-warning{border-color:rgba(66,88,99,.4)}@media (min-width:600px){.is-selected .block-editor-warning{border-left-color:transparent}}.is-dark-theme .is-selected .block-editor-warning{border-color:hsla(0,0%,100%,.45)}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 6px 0 0}.block-editor-warning__secondary{margin:5px 0 0 -4px;height:36px}.block-editor-warning__secondary .components-button.has-icon{width:auto;padding:0 2px}@media (min-width:600px){.block-editor-warning__secondary{margin-left:4px}.block-editor-warning__secondary .components-button.has-icon{padding:0 4px}}.block-editor-warning__secondary .components-button svg{transform:rotate(90deg)}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px} \ No newline at end of file + /*!rtl:end:ignore*/}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;left:0;right:0;background:#007cba;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{opacity:0;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:14px;right:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar-wrapper{padding-left:48px}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container{border-right-style:solid;border-right-width:1px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon:before,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle:before{width:28px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg{margin-left:10px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg{margin-left:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group{border-right:none}.block-editor-block-contextual-toolbar .block-editor-block-mover{margin-left:-12px;width:36px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal{width:48px}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:36px;width:36px;cursor:grab}.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button:active{cursor:grabbing}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button>svg{margin-left:2px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{margin-top:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{margin-bottom:3px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{left:0!important;min-width:0;width:28px}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff;margin-left:49px}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-left:0}.components-popover.block-editor-block-list__block-popover{z-index:31}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-left:-48px}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align=full],.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button[data-align=full]{margin-left:0}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"\2192"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;right:1px;bottom:1px;left:1px;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-right:1px solid #e2e4e7}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:left}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{left:8px!important;right:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;min-width:24px;padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-left:0;margin-right:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{left:8px!important;right:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-left:-8px;margin-right:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{left:0!important;right:8px!important}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:12px 6px;margin-top:auto;margin-bottom:auto;text-align:left;color:#40464d;border-radius:2px}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-left:0;padding-right:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-right:6px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;left:0;right:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{min-height:56px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-right:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:1px;bottom:-2px;right:-1px;border-right:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:26px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:26px;left:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row:after{top:100%}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0}.block-editor-block-preview__content{position:absolute;top:0;left:0;transform-origin:top left;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-left:0;padding-right:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:0;margin-right:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba;border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border:1px solid rgba(30,30,30,.2);border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;right:8px;bottom:8px;left:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:300px;max-width:680px;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{padding:16px 24px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group+.components-menu-group{border-color:#ccc}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .block-editor-block-switcher__container{min-width:300px;max-width:340px;width:50%}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .block-editor-block-switcher__label{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}@media (min-width:782px){.components-popover.block-editor-block-switcher__popover .components-popover__content>div{position:relative}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .block-editor-block-switcher__preview{border-left:1px solid #e2e4e7;margin-top:-12px;margin-bottom:-12px;background:#fff;width:300px;height:auto;position:-webkit-sticky;position:sticky;-ms-grid-row-align:stretch;align-self:stretch;top:0;padding:10px}}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-panel__body{border:0;position:relative;z-index:1}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:12px 0 0}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-left:-4px;margin-right:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 8px 0 0;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-right:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-left:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-button-block-appender.block-list-appender__toggle .block-editor-button-block-appender__label{display:block;margin-left:8px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 50px 0 0;color:rgba(14,28,46,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 36px 11px 16px;margin:16px;position:relative;border:1px solid #e2e4e7;border-radius:4px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;right:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;left:-1px;right:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#edeff0}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f3f4f5}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 16px 16px 24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-right:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-right:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#191e23}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-left:auto;font-size:.9em;background-color:#f3f4f5;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;left:0;display:block;width:100%;border-top:1px solid #e2e4e7}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #e2e4e7;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;left:auto;bottom:auto;top:28px;right:62px}.block-editor-link-control__search-item-action{margin-left:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-right:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-left:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;right:-14px;bottom:-14px;left:-14px;z-index:60}[data-align=full] .has-overlay:after{right:0;left:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;border-color:var(--wp-admin-theme-color);color:#007cba!important;color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-left:12px;padding-right:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#007cba;color:var(--wp-admin-theme-color);line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #e2e4e7;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-url-input__input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#005a87;background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #e2e4e7}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #e2e4e7;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 0 auto 8px}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-right:1px solid #e2e4e7}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__block-parent-selector-wrapper{position:absolute;top:-1px;left:-1px;opacity:0;transition:all 60ms linear;z-index:-1}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar__block-parent-selector-wrapper{transition-duration:0s}}.is-showing-movers .block-editor-block-toolbar__block-parent-selector-wrapper{opacity:1;transform:translateY(-60px)}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper{display:none}.block-editor-block-toolbar__block-switcher-wrapper,.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper:not([draggable=false]) *{cursor:grab}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}.block-editor-block-toolbar__drag-clone:before{content:"";display:block;position:absolute;top:-60px;width:72px;height:48px;border-radius:2px;background-color:#1e1e1e;border:1px solid #1e1e1e;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcgMTYuNWgxMFYxNUg3djEuNXptMC05VjloMTBWNy41SDd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-size:24px;background-repeat:no-repeat;background-position:50%}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__search{top:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{overflow:visible;height:auto}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;overflow-y:auto;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:1}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f3f4f5;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{transition-duration:0s}}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px;line-height:normal}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search-icon{position:absolute;top:28px;right:28px}.block-editor-inserter__tabs{display:flex;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{position:-webkit-sticky;position:sticky;top:72px;background:#fff;z-index:1;border-bottom:1px solid #e2e4e7}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{margin:0 12px 0 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #e2e4e7;position:absolute;top:16px;left:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f3f4f5;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f3f4f5}.block-editor-inserter__tips{border-top:1px solid #e2e4e7;padding:16px;flex-shrink:0}.block-editor-inserter__patterns-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-inserter__patterns-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__patterns-item.is-placeholder{min-height:100px}.block-editor-inserter__patterns-item-title{padding:4px;font-size:12px;text-align:center}.block-editor-post-preview__dropdown{display:none;margin-right:12px;padding:0}.block-editor-post-preview__button-toggle{display:flex;justify-content:space-between;padding:0 8px 0 12px}.block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color)}.block-editor-post-preview__button-toggle svg{margin-left:4px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-left:-12px;margin-right:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor-rtl.css b/wp-includes/css/dist/block-library/editor-rtl.css index 493c8e8298..9cbd240e5b 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.css +++ b/wp-includes/css/dist/block-library/editor-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,14 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + .block-editor ul.wp-block-archives { padding-right: 2.5em; } @@ -52,25 +75,31 @@ .edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect { min-height: auto; } -.block-editor-block-list__block[data-type="core/button"][data-align="center"] { +.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container { + padding-right: 0; + padding-left: 0; } + +.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow { + display: block; } + +.wp-block[data-align="center"] > .wp-block-button { text-align: center; margin-right: auto; margin-left: auto; } -.block-editor-block-list__block[data-type="core/button"][data-align="right"] { +.wp-block[data-align="right"] > .wp-block-button { text-align: right; } .wp-block-button { - position: relative; } - .wp-block-button [contenteditable] { - cursor: text; } + position: relative; + cursor: text; } .wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]::after { color: #fff; } - .wp-block-button .block-editor-rich-text__editable:focus { + .wp-block-button:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; outline: 2px solid transparent; outline-offset: -2px; } - .wp-block-button [data-rich-text-placeholder]::after { + .wp-block-button[data-rich-text-placeholder]::after { opacity: 0.8; } .wp-block-button__inline-link { @@ -90,8 +119,7 @@ max-width: 290px; } .wp-block-button__inline-link-input__suggestions { max-width: 290px; } } - .is-selected .wp-block-button__inline-link, - .is-typing .wp-block-button__inline-link { + .is-selected .wp-block-button__inline-link { height: auto; overflow: visible; margin-top: 16px; } @@ -103,191 +131,75 @@ div[data-type="core/button"] { display: inline-block; width: auto; } -.wp-block-buttons[data-align="center"] .block-editor-block-list__layout { +.wp-block[data-align="center"] > .wp-block-buttons { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; } -.wp-block-buttons[data-align="right"] .block-editor-block-list__layout { +.wp-block[data-align="right"] > .wp-block-buttons { display: flex; justify-content: flex-end; } .wp-block-buttons .block-list-appender { - display: inline-block; - margin: 0; } - -.wp-block-buttons .block-editor-block-list__layout > div:last-child { display: inline-block; } -.wp-block-buttons .block-editor-button-block-appender { - background: none; - outline: none; } - .block-editor .wp-block-categories ul { padding-right: 2.5em; } .block-editor .wp-block-categories ul ul { margin-top: 6px; } -.wp-block-code .block-editor-plain-text { - font-family: Menlo, Consolas, monaco, monospace; - color: #23282d; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .wp-block-code .block-editor-plain-text { - font-size: 13px; } } - .wp-block-code .block-editor-plain-text:focus { - box-shadow: none; } +.wp-block-code > code { + display: block; } -.wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block { +.wp-block-columns .wp-block { max-width: none; } -.components-popover.block-editor-block-list__block-popover -.components-popover__content -.block-editor-block-contextual-toolbar[data-type="core/column"] { - margin-right: 0; } +@media (min-width: 600px) { + .editor-styles-wrapper +.block-editor-block-list__block.wp-block-column:nth-child(even) { + margin-right: 32px; } } -.wp-block-columns { - display: block; } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { - display: flex; - flex-wrap: wrap; } - @media (min-width: 782px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { - flex-wrap: nowrap; } } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"], - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] .block-core-columns { - display: flex; - flex-direction: column; - flex: 1 1 auto; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"], - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] .block-core-columns { - flex: 1; } } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { - padding-right: 0; - padding-left: 0; - margin-right: -14px; - margin-left: -14px; - margin-top: 0; - margin-bottom: 0; - min-width: 0; - word-break: break-word; - overflow-wrap: break-word; - flex-basis: 100%; } - @media (min-width: 600px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { - flex-basis: calc(50% - (16px)); - flex-grow: 0; - margin-right: 0; - margin-left: 0; } } - @media (min-width: 782px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { - flex-basis: 0; - flex-grow: 1; } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"][data-has-explicit-width] { - flex-grow: 0; } } - @media (min-width: 600px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:nth-child(even) { - margin-right: calc(32px); } } - @media (min-width: 782px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) { - margin-right: calc(32px); } } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]::before { - right: 0; - left: 0; } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-core-columns > .block-editor-inner-blocks { - margin-top: -28px; - margin-bottom: -28px; } +@media (min-width: 782px) { + .editor-styles-wrapper +.block-editor-block-list__block.wp-block-column:not(:first-child) { + margin-right: 32px; } } -/** - * Columns act as as a "passthrough container" - * and therefore has its vertical margins/padding removed via negative margins - * therefore we need to compensate for this here by doubling the spacing on the - * vertical to ensure there is equal visual spacing around the inserter. Note there - * is no formal API for a "passthrough" Block so this is an edge case overide - */ -[data-type="core/columns"] .block-list-appender { - margin-top: 28px; - margin-bottom: 28px; } +.block-editor-block-list__block.wp-block-column.wp-block-column { + margin-top: 0; + margin-bottom: 0; } -/** - * Vertical Alignment Preview - * note: specificity is important here to ensure individual - * * columns alignment is prioritised over parent column alignment - * - */ -.are-vertically-aligned-top .block-core-columns, -div.block-core-columns.is-vertically-aligned-top { - justify-content: flex-start; } - -.are-vertically-aligned-center .block-core-columns, -div.block-core-columns.is-vertically-aligned-center { - justify-content: center; } - -.are-vertically-aligned-bottom .block-core-columns, -div.block-core-columns.is-vertically-aligned-bottom { - justify-content: flex-end; } - -/** - * Fixes single Column breadcrumb position. - */ -[data-type="core/column"] > .editor-block-list__breadcrumb { - right: -3px; } - -/** - * Make single Column overlay not extend past boundaries of parent - */ -.block-core-columns > .block-editor-inner-blocks.has-overlay::after { - right: 0; - left: 0; } - -[data-type="core/columns"][data-align="full"] .wp-block-columns { - padding-right: 14px; - padding-left: 14px; } - @media (min-width: 600px) { - [data-type="core/columns"][data-align="full"] .wp-block-columns { - padding-right: 46px; - padding-left: 46px; } } - -.wp-block-cover-image.components-placeholder h2, -.wp-block-cover.components-placeholder h2 { - color: inherit; } - -.wp-block-cover-image .block-editor-block-list__layout, -.wp-block-cover .block-editor-block-list__layout { - width: 100%; } - -.wp-block-cover-image .block-editor-block-list__block, -.wp-block-cover .block-editor-block-list__block { - color: #f8f9f9; } - -.wp-block-cover-image .wp-block-cover__inner-container, -.wp-block-cover .wp-block-cover__inner-container { - text-align: right; } - -.wp-block-cover-image .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, -.wp-block-cover .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { - margin-right: 0; - margin-left: 0; } - -.wp-block-cover-image .wp-block-cover__placeholder-background-options, -.wp-block-cover .wp-block-cover__placeholder-background-options { - margin-top: 1em; - width: 100%; } - -[data-align="left"] .wp-block-cover-image, -[data-align="right"] .wp-block-cover-image, [data-align="left"] -.wp-block-cover, -[data-align="right"] .wp-block-cover { + position: relative; } + .wp-block-cover.is-placeholder { + min-height: auto !important; + padding: 0 !important; } + .wp-block-cover.components-placeholder h2 { + color: inherit; } + .wp-block-cover .block-editor-block-list__layout { + width: 100%; } + .wp-block-cover .wp-block-cover__inner-container { + text-align: right; + margin-right: 0; + margin-left: 0; } + .wp-block-cover .wp-block-cover__placeholder-background-options { + width: 100%; } + +[data-align="left"] > .wp-block-cover, +[data-align="right"] > .wp-block-cover { max-width: 290px; width: 100%; } .block-library-cover__reset-button { margin-right: auto; } +.block-library-cover__resize-container { + position: absolute !important; + top: 0; + right: 0; + left: 0; + bottom: 0; } + .block-library-cover__resize-container:not(.is-resizing) { height: auto !important; } @@ -295,11 +207,6 @@ div.block-core-columns.is-vertically-aligned-bottom { margin-right: 0; margin-left: 0; clear: both; } - @media (min-width: 600px) { - .wp-block-embed { - min-width: 360px; } - .wp-block-embed.components-placeholder { - min-width: 0; } } .wp-block-embed.is-loading { display: flex; flex-direction: column; @@ -362,7 +269,7 @@ div.block-core-columns.is-vertically-aligned-bottom { .wp-block-freeform.block-library-rich-text__tinymce pre { white-space: pre-wrap; font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; + font-size: 15px; color: #23282d; } .wp-block-freeform.block-library-rich-text__tinymce > *:first-child { margin-top: 0; } @@ -523,8 +430,7 @@ div[data-type="core/freeform"]::before { transition-duration: 0s; } } div[data-type="core/freeform"].is-selected::before { - border-color: #b5bcc2; - border-right-color: transparent; } + border-color: #1e1e1e; } div[data-type="core/freeform"] .block-editor-block-contextual-toolbar + div { margin-top: 0; @@ -551,19 +457,20 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af .block-library-classic__toolbar { display: none; width: auto; - margin: 0 -14px; + margin: 0; position: -webkit-sticky; position: sticky; z-index: 10; - top: 14px; - transform: translateY(-14px); + top: 8px; border: 1px solid #e2e4e7; border-bottom: none; + border-radius: 2px; + margin-bottom: 8px; padding: 0; } div[data-type="core/freeform"].is-selected .block-library-classic__toolbar, div[data-type="core/freeform"].is-typing .block-library-classic__toolbar { display: block; - border-color: #b5bcc2; } + border-color: #1e1e1e; } .block-library-classic__toolbar .mce-tinymce { box-shadow: none; } @media (min-width: 600px) { @@ -580,6 +487,8 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af color: #555d66; line-height: 37px; padding: 14px; } + .block-library-classic__toolbar div.mce-toolbar-grp { + border-bottom: 1px solid #1e1e1e; } .block-library-classic__toolbar .mce-tinymce-inline, .block-library-classic__toolbar .mce-tinymce-inline > div, .block-library-classic__toolbar div.mce-toolbar-grp, @@ -603,8 +512,13 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af .wp-block-gallery li { list-style-type: none; } -.is-selected .wp-block-gallery { - margin-bottom: 0; } +.wp-block-gallery .block-editor-media-placeholder { + margin-bottom: 12px; + padding: 12px; } + .wp-block-gallery .block-editor-media-placeholder .components-placeholder__label { + display: none; } + .wp-block-gallery .block-editor-media-placeholder .components-button { + margin-bottom: 0; } figure.wp-block-gallery { display: block; @@ -615,32 +529,17 @@ figure.wp-block-gallery { margin-right: 0; margin-bottom: 0; } -.blocks-gallery-item figure:not(.is-selected):focus { +.blocks-gallery-item figure:not(.is-selected):focus, +.blocks-gallery-item img:focus { outline: none; } .blocks-gallery-item figure.is-selected { - outline: 4px solid #0085ba; } - -body.admin-color-sunrise .blocks-gallery-item figure.is-selected { - outline: 4px solid #d1864a; } - -body.admin-color-ocean .blocks-gallery-item figure.is-selected { - outline: 4px solid #a3b9a2; } - -body.admin-color-midnight .blocks-gallery-item figure.is-selected { - outline: 4px solid #e14d43; } - -body.admin-color-ectoplasm .blocks-gallery-item figure.is-selected { - outline: 4px solid #a7b656; } - -body.admin-color-coffee .blocks-gallery-item figure.is-selected { - outline: 4px solid #c2a68c; } - -body.admin-color-blue .blocks-gallery-item figure.is-selected { - outline: 4px solid #82b4cb; } - -body.admin-color-light .blocks-gallery-item figure.is-selected { - outline: 4px solid #0085ba; } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); + border-radius: 2px; + outline: 2px solid transparent; } + .blocks-gallery-item figure.is-selected img { + border-radius: 2px; } .blocks-gallery-item figure.is-transient img { opacity: 0.3; } @@ -648,8 +547,8 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu { background: #fff; - border: 1px solid rgba(66, 88, 99, 0.4); - border-radius: 4px; + border: 1px solid #1e1e1e; + border-radius: 2px; transition: box-shadow 0.2s ease-out; } @media (prefers-reduced-motion: reduce) { .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu, @@ -657,15 +556,12 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { transition-duration: 0s; } } .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu:hover, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu:hover { - box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); } .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button { - color: rgba(14, 28, 46, 0.62); - padding: 2px; + color: #1e1e1e; + min-width: 24px; height: 24px; } - .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, - .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { - box-shadow: none; } @media (min-width: 600px) { .columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-7 @@ -705,9 +601,9 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { top: -2px; right: -2px; } -.blocks-gallery-item__move-backward, -.blocks-gallery-item__move-forward, -.blocks-gallery-item__remove { +.blocks-gallery-item__move-backward.components-button, +.blocks-gallery-item__move-forward.components-button, +.blocks-gallery-item__remove.components-button { padding: 0; } .blocks-gallery-item .components-spinner { @@ -720,48 +616,38 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { /** * Group: All Alignment Settings */ -.wp-block[data-type="core/group"] .block-editor-block-list__insertion-point { - right: 0; - left: 0; } - -.wp-block[data-type="core/group"] > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks { - margin-top: -32px; - margin-bottom: -32px; } - -.wp-block[data-type="core/group"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { - margin-right: auto; - margin-left: auto; - padding-right: 28px; - padding-left: 28px; } - @media (min-width: 600px) { - .wp-block[data-type="core/group"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { - padding-right: 58px; - padding-left: 58px; } } - -.wp-block[data-type="core/group"] > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { - margin-right: -30px; - width: calc(100% + 60px); } +.wp-block-group { + margin-top: 0; + margin-bottom: 0; } + .wp-block-group .block-editor-block-list__insertion-point { + right: 0; + left: 0; } + .wp-block-group > .wp-block-group__inner-container > [data-align="full"] { + margin-right: auto; + margin-left: auto; } + .wp-block-group.has-background > .wp-block-group__inner-container > [data-align="full"] { + margin-right: -30px; + width: calc(100% + 60px); } /** * Group: Full Width Alignment */ -.wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks { - margin-right: auto; - margin-left: auto; - padding-right: 0; - padding-left: 0; } - .wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { - margin-right: 0; - margin-left: 0; } +[data-align="full"] .wp-block-group > .wp-block-group__inner-container > .wp-block { + padding-right: 14px; + padding-left: 14px; } + @media (min-width: 600px) { + [data-align="full"] .wp-block-group > .wp-block-group__inner-container > .wp-block { + padding-right: 0; + padding-left: 0; } } -.wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { +[data-align="full"] .wp-block-group > .wp-block-group__inner-container > [data-align="full"] { padding-left: 0; padding-right: 0; right: 0; width: 100%; max-width: none; } -.wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { +[data-align="full"] .wp-block-group.has-background > .wp-block-group__inner-container > [data-align="full"] { width: calc(100% + 60px); } [data-type="core/group"].is-selected .block-list-appender { @@ -772,8 +658,22 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { margin-top: 18px; margin-bottom: 18px; } +.block-library-heading-level-dropdown .components-popover__content { + min-width: 230px; } + .block-library-heading-level-dropdown .components-popover__content > div { + padding: 0; } + +.block-library-heading-level-toolbar { + border: none; } + .wp-block-html { margin-bottom: 28px; } + .wp-block-html .block-library-html__preview-overlay { + position: absolute; + width: 100%; + height: 100%; + top: 0; + right: 0; } .wp-block-html .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; @@ -789,10 +689,12 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-html .block-editor-plain-text:focus { box-shadow: none; } +figure.wp-block-image:not(.wp-block) { + margin: 0; } + .wp-block-image { - position: relative; - margin-right: 0; - margin-left: 0; } + position: relative; } + .wp-block-image .is-applying img, .wp-block-image.is-transient img { opacity: 0.3; } .wp-block-image figcaption img { @@ -811,18 +713,6 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { width: inherit; height: inherit; } -.wp-block-image.is-focused .components-resizable-box__handle { - display: block; - z-index: 1; } - -.block-editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image { - margin-right: auto; - margin-left: auto; } - -.block-editor-block-list__block[data-type="core/image"][data-align="center"][data-resized="false"] .wp-block-image > div { - margin-right: auto; - margin-left: auto; } - .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { position: absolute; right: 0; @@ -832,17 +722,63 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { margin: -1px; } } -[data-type="core/image"][data-align="center"] figure, -[data-type="core/image"][data-align="left"] figure, -[data-type="core/image"][data-align="right"] figure { - margin: 0; } - -[data-type="core/image"][data-align="wide"] figure img, -[data-type="core/image"][data-align="full"] figure img { +[data-align="wide"] > .wp-block-image img, +[data-align="full"] > .wp-block-image img { width: 100%; } -[data-type="core/image"] figure.is-resized { - margin: 0; } +.wp-block[data-align="left"] > .wp-block-image { + margin-left: 1em; + margin-right: 0; + margin-top: 0.5em; + margin-bottom: 0.5em; } + +.wp-block[data-align="right"] > .wp-block-image { + margin-right: 1em; + margin-left: 0; + margin-top: 0.5em; + margin-bottom: 0.5em; } + +.wp-block[data-align="center"] > .wp-block-image { + margin-right: auto; + margin-left: auto; + text-align: center; } + +.richimage__crop-area { + position: relative; + max-width: 100%; + width: 100%; } + +.richimage__crop-icon { + padding: 0 8px; + min-width: 48px; + display: flex; + justify-content: center; + align-items: center; } + .richimage__crop-icon svg { + fill: currentColor; } + +.richimage__zoom-control { + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; + margin-top: 12px; + margin-bottom: 12px; + padding: 12px 12px 8px; + line-height: 1; } + +.components-toolbar.richimage-toolbar__dropdown { + padding: 0; + border-right: none; + border-left: none; } + .components-toolbar.richimage-toolbar__dropdown .components-icon-button.has-text svg { + margin-left: 0; } + .components-toolbar.richimage-toolbar__dropdown .components-dropdown-menu__indicator { + display: none; } + +.richimage-toolbar__dropdown > .components-button, +.richimage-toolbar__dropdown, +.richimage-toolbar__control { + padding: 6px; } .wp-block-latest-comments.has-avatars .avatar { margin-left: 10px; } @@ -864,16 +800,14 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-latest-posts li a > div { display: inline; } -.wp-block-legacy-widget__edit-container, -.wp-block-legacy-widget__preview { - padding-right: 2.5em; - padding-left: 2.5em; } - .wp-block-legacy-widget__edit-container .widget-inside { border: none; display: block; box-shadow: none; } +.wp-block-legacy-widget__edit-container .widget.open { + z-index: 0; } + .wp-block-legacy-widget__update-button { margin-right: auto; display: block; } @@ -881,12 +815,14 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-legacy-widget__preview { overflow: auto; } +.wp-block-legacy-widget__preview, +.wp-block-legacy-widget__edit-container, +.wp-block-legacy-widget__edit-widget-title { + padding: 8px 14px; } + .wp-block-legacy-widget__edit-widget-title { - margin: -14px -13px 0; background: #f8f9f9; color: #555d66; - top: -13px; - position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; padding: 8px 14px; @@ -899,89 +835,15 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { -ms-grid-row: 2; grid-row: 2; } -.wp-block-media-text.is-vertically-aligned-top .block-editor-inner-blocks, -.wp-block-media-text.is-vertically-aligned-top .editor-media-container__resizer { - -ms-grid-row-align: start; - align-self: start; } - -.wp-block-media-text .block-editor-inner-blocks, -.wp-block-media-text .editor-media-container__resizer, -.wp-block-media-text.is-vertically-aligned-center .block-editor-inner-blocks, -.wp-block-media-text.is-vertically-aligned-center .editor-media-container__resizer { - -ms-grid-row-align: center; - align-self: center; } - -.wp-block-media-text.is-vertically-aligned-bottom .block-editor-inner-blocks, -.wp-block-media-text.is-vertically-aligned-bottom .editor-media-container__resizer { - -ms-grid-row-align: end; - align-self: end; } - .wp-block-media-text .editor-media-container__resizer { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; width: 100% !important; } .wp-block-media-text.is-image-fill .editor-media-container__resizer { height: 100% !important; } -.wp-block-media-text.has-media-on-the-right .editor-media-container__resizer { - -ms-grid-column: 2; - grid-column: 2; - -ms-grid-row: 1; - grid-row: 1; } - -.wp-block-media-text .block-editor-inner-blocks { - word-break: break-word; - -ms-grid-column: 2; - grid-column: 2; - -ms-grid-row: 1; - grid-row: 1; - text-align: initial; - padding: 0 8% 0 8%; } - -.wp-block-media-text.has-media-on-the-right .block-editor-inner-blocks { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } - -.wp-block-media-text > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block { +.wp-block-media-text > .block-editor-block-list__layout > .block-editor-block-list__block { max-width: unset; } -.editor-media-container__resizer .components-resizable-box__handle { - display: none; } - -.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle { - display: block; } - -@media (min-width: 600px) { - .wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle { - display: block; } } - -@media (max-width: 600px) { - .wp-block-media-text.is-stacked-on-mobile .block-editor-inner-blocks { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 2; - grid-row: 2; } - .wp-block-media-text.is-stacked-on-mobile .editor-media-container__resizer { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .block-editor-inner-blocks { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .editor-media-container__resizer { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 2; - grid-row: 2; } } - .block-editor-block-list__block[data-type="core/more"] { max-width: 100%; text-align: center; @@ -1019,49 +881,41 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { left: 0; border-top: 3px dashed #ccd0d4; } -[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks { - flex: 1; } - -[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout { +.editor-styles-wrapper .wp-block-navigation ul, +.editor-styles-wrapper .wp-block-navigation ol { + margin-bottom: 0; margin-right: 0; - margin-left: 0; } + padding-right: 0; } -[data-type="core/navigation"] .wp-block-navigation.items-justification-left .block-editor-inner-blocks > .block-editor-block-list__layout { - justify-content: flex-start; } +.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block { + margin: 0; } -[data-type="core/navigation"] .wp-block-navigation.items-justification-center .block-editor-inner-blocks > .block-editor-block-list__layout { - justify-content: center; } +.wp-block-navigation .block-list-appender { + margin: 0; + display: flex; + align-items: center; } -[data-type="core/navigation"] .wp-block-navigation.items-justification-right .block-editor-inner-blocks > .block-editor-block-list__layout { - justify-content: flex-end; } - -[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__block::before { - right: 0; - left: 0; } - -[data-type="core/navigation"].is-selected .wp-block-navigation .block-editor-block-list__block::before, -[data-type="core/navigation"].has-child-selected .wp-block-navigation .block-editor-block-list__block::before { - border-color: transparent !important; } - -[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__insertion-point { - display: none; } - -[data-type="core/navigation"] .wp-block-navigation .block-list-appender { - width: 28px; - height: 28px; } - [data-type="core/navigation"] .wp-block-navigation .block-list-appender .block-editor-button-block-appender { - padding: 8px; - padding-bottom: 4px; - padding-top: 4px; - outline: none; - background: none; } - -[data-type="core/navigation"] .wp-block-navigation .wp-block-navigation-link.is-selected .block-editor-rich-text__editable:focus { - min-width: 20px; } +.wp-block-navigation.is-vertical .block-list-appender { + margin: 8px; } .wp-block-navigation__inserter-content { padding: 16px; } +.wp-block-navigation__container.is-parent-of-selected-block { + visibility: visible; + opacity: 1; } + +.has-child > .wp-block-navigation__container, .has-child:hover > .wp-block-navigation__container { + opacity: 0; + visibility: hidden; } + +.has-child.is-selected > .wp-block-navigation__container, .has-child.has-child-selected > .wp-block-navigation__container { + opacity: 1; + visibility: visible; } + +.has-child .wp-block-navigation__container .block-list-appender .block-editor-button-block-appender { + margin-right: 16px; } + /** * Colors Selector component */ @@ -1073,7 +927,6 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { padding: 3px; width: auto; } .block-library-colors-selector .block-library-colors-selector__icon-container { - width: 42px; height: 30px; position: relative; margin: 0 auto; @@ -1081,17 +934,9 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { display: flex; align-items: center; border-radius: 4px; } - .block-library-colors-selector .block-library-colors-selector__icon-container::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-right: 3px solid transparent; - border-left: 3px solid transparent; - border-top: 5px solid; - margin-right: 4px; - margin-left: 2px; } + .block-library-colors-selector .block-library-colors-selector__state-selection { + margin-right: auto; + margin-left: auto; } .block-library-colors-selector .block-library-colors-selector__state-selection { border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); @@ -1119,13 +964,26 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .block-library-colors-selector__popover .components-panel__body-title { display: none; } +.is-editing > .wp-block-navigation__container { + visibility: visible; + opacity: 1; + display: flex; + flex-direction: column; } + +.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle { + color: #fff; } + +.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle > svg { + color: #000; + background-color: #fff; } + .wp-block-navigation-link__field .components-text-control__input.components-text-control__input, .wp-block-navigation-link__container { border-radius: 0; line-height: 36px; min-height: 36px; } -/* +/** * Adjust Navigation Item. */ .wp-block-navigation-link .block-editor-block-list__layout { @@ -1134,10 +992,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-navigation-link.is-editing, .wp-block-navigation-link.is-selected { min-width: 20px; } -.wp-block-navigation-link.has-link .wp-block-navigation-link__label { - text-decoration: underline; } - -.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after { +.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]::after { display: inline-block; } .wp-block-navigation-link .block-list-appender { @@ -1145,12 +1000,6 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { margin-right: 10px; margin-top: 10px; } -[data-type="core/navigation-link"] .block-editor-block-toolbar { - right: 14px; } - -[data-type="core/navigation-link"] .block-editor-block-toolbar .components-toolbar.block-editor-block-mover .components-button.block-editor-block-mover__control-drag-handle { - display: none; } - .wp-block-navigation-link__nofollow-external-link { display: block; } @@ -1162,7 +1011,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { margin-top: -1px; margin-right: -4px; } -.wp-block-navigation-link__dropdown-content .components-popover__content { +.wp-block-navigation-link__dropdown-content .components-popover__content > div { padding: 8px 0; } .wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"] > .block-editor-block-list__insertion-point { @@ -1197,10 +1046,37 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { left: 0; border-top: 3px dashed #ccd0d4; } -.block-editor-block-list__block[data-type="core/paragraph"] .has-drop-cap:focus { +.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus { min-height: auto !important; } -.block-editor-block-list__block[data-type="core/pullquote"][data-align="left"] p, .block-editor-block-list__block[data-type="core/pullquote"][data-align="right"] p { +.wp-block-post-excerpt__excerpt.is-inline { + display: inline-block; } + +.wp-block-post-author { + display: flex; + flex-wrap: wrap; + line-height: 1.5; } + .wp-block-post-author .wp-block-post-author__byline { + font-size: 0.5em; + margin-top: 0; + position: relative; + font-style: normal; } + .wp-block-post-author .wp-block-post-author__content { + flex-grow: 1; + flex-basis: 0; } + .wp-block-post-author .wp-block-post-author__avatar img { + margin: 0; } + .wp-block-post-author .wp-block-post-author__avatar { + margin-bottom: -8px; } + .wp-block-post-author .wp-block-post-author__name { + margin: 0; + font-weight: bold; } + .wp-block-post-author .wp-block-post-author__bio { + margin: 0 0 8px; + font-size: 0.7em; } + +.wp-block[data-align="left"] > .wp-block-pullquote p, +.wp-block[data-align="right"] > .wp-block-pullquote p { font-size: 20px; } .wp-block-pullquote blockquote p { @@ -1230,6 +1106,26 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-rss li a > div { display: inline; } +.wp-block-rss__placeholder-form { + display: flex; + align-items: stretch; } + .wp-block-rss__placeholder-form > * { + margin-bottom: 8px; } + @media (min-width: 782px) { + .wp-block-rss__placeholder-form > * { + margin-bottom: 0; } } + +.wp-block-rss__placeholder-input { + display: flex; + align-items: stretch; + flex-grow: 1; } + .wp-block-rss__placeholder-input .components-base-control__field { + margin: 0; + display: flex; + align-items: stretch; + flex-grow: 1; + margin-left: 8px; } + .wp-block-search__input { border-radius: 4px; border: 1px solid #7e8993; @@ -1249,6 +1145,13 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { font-size: 13px; padding: 6px 10px; } +.block-editor-block-list__block[data-type="core/separator"] { + padding-top: 0.1px; + padding-bottom: 0.1px; } + .block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block { + margin-top: 0; + margin-bottom: 0; } + .wp-block-shortcode { display: flex; flex-direction: column; @@ -1264,15 +1167,65 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { font-weight: 600; flex-shrink: 0; } .wp-block-shortcode .block-editor-plain-text { - width: 80%; max-height: 250px; } .wp-block-shortcode .dashicon { margin-left: 8px; } -.wp-social-link { +.block-editor .blocks-shortcode__textarea, +.blocks-shortcode__textarea { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .block-editor .blocks-shortcode__textarea, + .blocks-shortcode__textarea { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor .blocks-shortcode__textarea, + .blocks-shortcode__textarea { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .block-editor .blocks-shortcode__textarea:focus, + .blocks-shortcode__textarea:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder, + .blocks-shortcode__textarea::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor .blocks-shortcode__textarea::-moz-placeholder, + .blocks-shortcode__textarea::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor .blocks-shortcode__textarea:-ms-input-placeholder, + .blocks-shortcode__textarea:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder, .is-dark-theme + .blocks-shortcode__textarea::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder, .is-dark-theme + .blocks-shortcode__textarea::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder, .is-dark-theme + .blocks-shortcode__textarea:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + +.wp-block-social-links .wp-social-link button { + color: currentColor; padding: 6px; } -.wp-block-social-links.is-style-pill-shape .wp-social-link { +.wp-block-social-links.is-style-pill-shape .wp-social-link button { padding-right: 16px; padding-left: 16px; } @@ -1280,52 +1233,24 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { display: inline-block; margin-right: 8px; } -.wp-block-social-links .block-editor-block-list__layout { - display: flex; - justify-content: flex-start; } +.editor-styles-wrapper .wp-block-social-link { + margin: 0; + margin-left: 8px; } -[data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout { - margin-right: 0; - margin-left: 0; } - -[data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block { - width: auto; - padding-right: 0; - padding-left: 0; - margin-right: 0; - margin-left: 0; - margin-top: 0; - margin-bottom: 0; } - -[data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block::before { - border-left: none; - border-top: none; - border-bottom: none; } - -[data-type="core/social-links"].is-selected .wp-block-social-links .block-editor-block-list__block::before, -[data-type="core/social-links"].has-child-selected .wp-block-social-links .block-editor-block-list__block::before { - border-color: transparent !important; } - -[data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__insertion-point { - display: none; } +.editor-styles-wrapper .wp-block-social-links { + padding: 0; } .wp-block-social-links .block-list-appender { - margin: 0; } - .wp-block-social-links .block-list-appender .block-editor-button-block-appender { - padding: 8px; - outline: none; - background: none; } + margin: 0; + display: flex; + align-items: center; } -[data-type="core/social-links"][data-align="center"] .wp-block-social-links { +.wp-block[data-align="center"] > .wp-block-social-links { justify-content: center; } .block-editor-block-preview__content .wp-social-link:disabled { opacity: 1; } -.block-editor-block-preview__content [data-type="core/social-links"] { - width: auto !important; - display: inline-block; } - [data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links { min-height: 36px; } @@ -1354,33 +1279,48 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { [data-type="core/social-links"] .wp-social-link:focus { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } -.block-library-spacer__resize-container.is-selected { +.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected::after, +.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus::after { + left: 8px; } + +.block-library-spacer__resize-container.has-show-handle { background: #f3f4f5; } + .is-dark-theme .block-library-spacer__resize-container.has-show-handle { + background: rgba(255, 255, 255, 0.15); } .block-library-spacer__resize-container { clear: both; margin-bottom: 28px; } + .block-library-spacer__resize-container .components-resizable-box__handle::before { + content: none; } .edit-post-visual-editor p.wp-block-subhead { color: #6c7781; font-size: 1.1em; font-style: italic; } -.block-editor-block-list__block[data-type="core/table"][data-align="left"], .block-editor-block-list__block[data-type="core/table"][data-align="right"], .block-editor-block-list__block[data-type="core/table"][data-align="center"] { +.wp-block[data-align="left"] > .wp-block-table, +.wp-block[data-align="right"] > .wp-block-table, +.wp-block[data-align="center"] > .wp-block-table { height: auto; } - .block-editor-block-list__block[data-type="core/table"][data-align="left"] table, .block-editor-block-list__block[data-type="core/table"][data-align="right"] table, .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { + .wp-block[data-align="left"] > .wp-block-table table, + .wp-block[data-align="right"] > .wp-block-table table, + .wp-block[data-align="center"] > .wp-block-table table { width: auto; } - .block-editor-block-list__block[data-type="core/table"][data-align="left"] td, - .block-editor-block-list__block[data-type="core/table"][data-align="left"] th, .block-editor-block-list__block[data-type="core/table"][data-align="right"] td, - .block-editor-block-list__block[data-type="core/table"][data-align="right"] th, .block-editor-block-list__block[data-type="core/table"][data-align="center"] td, - .block-editor-block-list__block[data-type="core/table"][data-align="center"] th { + .wp-block[data-align="left"] > .wp-block-table td, + .wp-block[data-align="left"] > .wp-block-table th, + .wp-block[data-align="right"] > .wp-block-table td, + .wp-block[data-align="right"] > .wp-block-table th, + .wp-block[data-align="center"] > .wp-block-table td, + .wp-block[data-align="center"] > .wp-block-table th { word-break: break-word; } -.block-editor-block-list__block[data-type="core/table"][data-align="center"] { +.wp-block[data-align="center"] > .wp-block-table { text-align: initial; } - .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { + .wp-block[data-align="center"] > .wp-block-table table { margin: 0 auto; } .wp-block-table { @@ -1400,19 +1340,27 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { font-size: 13px; text-align: center; } -.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input { +.blocks-table__placeholder-form.blocks-table__placeholder-form { + display: flex; + flex-direction: column; + align-items: flex-start; } + .blocks-table__placeholder-form.blocks-table__placeholder-form > * { + margin-bottom: 8px; } + @media (min-width: 782px) { + .blocks-table__placeholder-form.blocks-table__placeholder-form { + flex-direction: row; + align-items: flex-end; } + .blocks-table__placeholder-form.blocks-table__placeholder-form > * { + margin-bottom: 0; } } + +.blocks-table__placeholder-input { width: 112px; margin-left: 8px; margin-bottom: 0; } - .wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input input { + .blocks-table__placeholder-input input { height: 36px; } - -.wp-block-table__placeholder-form.wp-block-table__placeholder-form .components-base-control__field { - margin-bottom: 0; } - -.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-button { - margin-top: auto; - margin-left: auto; } + .blocks-table__placeholder-input .components-base-control__field { + margin-bottom: 0; } .block-editor .wp-block-tag-cloud a { display: inline-block; @@ -1424,26 +1372,76 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { color: #8f98a1; text-decoration: none; } -.wp-block-template-part__placeholder-input-container { +.wp-block-template-part__placeholder-tabs { display: flex; - flex-wrap: wrap; - width: 100%; } + flex-grow: 1; + flex-direction: column; } + .wp-block-template-part__placeholder-tabs .components-tab-panel__tabs { + border-bottom: 1px solid #e2e4e7; } + .wp-block-template-part__placeholder-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item { + flex-grow: 1; + margin-bottom: -1px; } + .wp-block-template-part__placeholder-tabs .components-tab-panel__tab-content { + margin-top: 16px; + display: flex; + flex-grow: 1; + flex-direction: column; + position: relative; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container { + display: flex; + flex-wrap: wrap; + width: 100%; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container .wp-block-template-part__placeholder-input { + margin: 5px; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-help-phrase { + padding: 0 12px 12px; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-create-button { + align-self: flex-start; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-preview-filter-input { + width: inherit; } -.wp-block-template-part__placeholder-input { - margin: 5px; } - -.wp-block-template-part__placeholder-preview { - margin-bottom: 15px; - width: 100%; } - .wp-block-template-part__placeholder-preview .block-editor-block-preview__container { - padding: 1px; } - .wp-block-template-part__placeholder-preview .block-editor-block-preview__content { - position: initial; } - -.wp-block-template-part__placeholder-preview-title { - font-size: 15px; - font-weight: 600; - margin-bottom: 4px; } +.wp-block-template-part__placeholder-preview-container { + width: inherit; + max-height: 600px; + overflow-y: scroll; + background: #fff; + border-radius: 2px; + border: 1px solid #e2e4e7; + top: 16px; + right: calc(100% + 16px); } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item { + border-radius: 2px; + cursor: pointer; + margin-top: 16px; + transition: all 0.05s ease-in-out; + position: relative; + border: 1px solid transparent; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover { + border: 1px solid #007cba; + border: 1px solid var(--wp-admin-theme-color); } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:focus { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder { + min-height: 100px; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title { + padding: 4px; + font-size: 12px; + text-align: center; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header { + display: inline-flex; + align-items: center; + padding: 16px 16px 0; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content { + padding: 0 16px; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title { + color: #007cba; + color: var(--wp-admin-theme-color); + text-transform: uppercase; + font-size: 11px; + font-weight: 500; + margin-left: 8px; } .wp-block-text-columns .block-editor-rich-text__editable:focus { outline: 1px solid #e2e4e7; } @@ -1456,50 +1454,44 @@ pre.wp-block-verse { padding: 1em; overflow: auto; } -.block-editor-block-list__block[data-align="center"] { +.wp-block[data-align="center"] > .wp-block-video { text-align: center; } +.editor-video-poster-control .components-base-control__label { + display: block; } + .editor-video-poster-control .components-button { - display: block; margin-left: 8px; } -.editor-video-poster-control .components-button + .components-button { - margin-top: 1em; } +.wp-block[data-type="core/widget-area"] { + max-width: 700px; } + +.wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { + padding-top: 24px; } /** * Import styles from internal editor components used by the blocks. */ .block-editor-block-list__layout .reusable-block-edit-panel { align-items: center; - background: #f8f9f9; - color: #555d66; display: flex; flex-wrap: wrap; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - position: relative; - top: -14px; - margin: 0 -14px; - padding: 8px 14px; - z-index: 61; - border: 1px dashed rgba(145, 151, 162, 0.25); - border-bottom: none; } - .block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel { - margin: 0 -14px; - padding: 8px 14px; } - .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner { - margin: 0 5px; } + padding: 6px 12px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 0 0 1px #1e1e1e; + outline: 1px solid transparent; } .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info { margin-left: auto; } .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label { margin-left: 8px; white-space: nowrap; - font-weight: 600; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; } .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { - flex: 1 1 100%; - font-size: 14px; - height: 30px; - margin: 4px 0 8px; } + flex: 1 1 100%; } .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { flex-shrink: 0; } @media (min-width: 960px) { @@ -1508,21 +1500,54 @@ pre.wp-block-verse { .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { margin: 0; } .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { - margin: 0 5px 0 0; } } + margin: 0 8px 0 0; } } -.block-editor-block-list__layout .is-selected .reusable-block-edit-panel { - border-color: rgba(66, 88, 99, 0.4); - border-right-color: transparent; } - .is-dark-theme .block-editor-block-list__layout .is-selected .reusable-block-edit-panel { - border-color: rgba(255, 255, 255, 0.45); - border-right-color: transparent; } +.reusable-block-edit-panel__title[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .reusable-block-edit-panel__title[type="text"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .reusable-block-edit-panel__title[type="text"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .reusable-block-edit-panel__title[type="text"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .reusable-block-edit-panel__title[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .reusable-block-edit-panel__title[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .reusable-block-edit-panel__title[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .reusable-block-edit-panel__title[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .reusable-block-edit-panel__title[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .reusable-block-edit-panel__title[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .is-navigate-mode .is-selected .reusable-block-edit-panel { - border-color: #007cba; - border-right-color: transparent; } + box-shadow: 0 0 0 1px #007cba; + box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } .is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel { - border-color: #007cba; - border-right-color: transparent; } + box-shadow: 0 0 0 1px #007cba; + box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } /** * Editor Normalization Styles @@ -1530,6 +1555,9 @@ pre.wp-block-verse { * These are only output in the editor, but styles here are NOT prefixed .editor-styles-wrapper. * This allows us to create normalization styles that are easily overridden by editor styles. */ -.editor-styles-wrapper .block-editor-block-list__block { +.block-editor-block-list__block { margin-top: 28px; margin-bottom: 28px; } + +#end-resizable-editor-section { + display: none; } diff --git a/wp-includes/css/dist/block-library/editor-rtl.min.css b/wp-includes/css/dist/block-library/editor-rtl.min.css index b64facf45c..baf0218f51 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.min.css +++ b/wp-includes/css/dist/block-library/editor-rtl.min.css @@ -1 +1 @@ -.block-editor ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.block-editor-block-list__block[data-type="core/button"][data-align=center]{text-align:center;margin-right:auto;margin-left:auto}.block-editor-block-list__block[data-type="core/button"][data-align=right]{text-align:right}.wp-block-button{position:relative}.wp-block-button [contenteditable]{cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button .block-editor-rich-text__editable:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.wp-block-button [data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#555d66;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link,.is-typing .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"]{display:inline-block;width:auto}.wp-block-buttons[data-align=center] .block-editor-block-list__layout{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block-buttons[data-align=right] .block-editor-block-list__layout{display:flex;justify-content:flex-end}.wp-block-buttons .block-list-appender{display:inline-block;margin:0}.wp-block-buttons .block-editor-block-list__layout>div:last-child{display:inline-block}.wp-block-buttons .block-editor-button-block-appender{background:none;outline:none}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;font-size:16px}@media (min-width:600px){.wp-block-code .block-editor-plain-text{font-size:13px}}.wp-block-code .block-editor-plain-text:focus{box-shadow:none}.wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block{max-width:none}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="core/column"]{margin-right:0}.wp-block-columns{display:block}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-wrap:nowrap}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"],.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"] .block-core-columns{display:flex;flex-direction:column;flex:1 1 auto}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"],.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"] .block-core-columns{flex:1}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{padding-right:0;padding-left:0;margin:0 -14px;min-width:0;word-break:break-word;overflow-wrap:break-word;flex-basis:100%}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{flex-basis:calc(50% - 16px);flex-grow:0;margin-right:0;margin-left:0}}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{flex-basis:0;flex-grow:1}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"][data-has-explicit-width]{flex-grow:0}}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:nth-child(2n){margin-right:32px}}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:not(:first-child){margin-right:32px}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:before{right:0;left:0}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-core-columns>.block-editor-inner-blocks{margin-top:-28px;margin-bottom:-28px}[data-type="core/columns"] .block-list-appender{margin-top:28px;margin-bottom:28px}.are-vertically-aligned-top .block-core-columns,div.block-core-columns.is-vertically-aligned-top{justify-content:flex-start}.are-vertically-aligned-center .block-core-columns,div.block-core-columns.is-vertically-aligned-center{justify-content:center}.are-vertically-aligned-bottom .block-core-columns,div.block-core-columns.is-vertically-aligned-bottom{justify-content:flex-end}[data-type="core/column"]>.editor-block-list__breadcrumb{right:-3px}.block-core-columns>.block-editor-inner-blocks.has-overlay:after{right:0;left:0}[data-type="core/columns"][data-align=full] .wp-block-columns{padding-right:14px;padding-left:14px}@media (min-width:600px){[data-type="core/columns"][data-align=full] .wp-block-columns{padding-right:46px;padding-left:46px}}.wp-block-cover-image.components-placeholder h2,.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover-image .block-editor-block-list__layout,.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover-image .block-editor-block-list__block,.wp-block-cover .block-editor-block-list__block{color:#f8f9f9}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{text-align:right}.wp-block-cover-image .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout,.wp-block-cover .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:0;margin-left:0}.wp-block-cover-image .wp-block-cover__placeholder-background-options,.wp-block-cover .wp-block-cover__placeholder-background-options{margin-top:1em;width:100%}[data-align=left] .wp-block-cover,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover,[data-align=right] .wp-block-cover-image{max-width:290px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-right:0;margin-left:0;clear:both}@media (min-width:600px){.wp-block-embed{min-width:360px}.wp-block-embed.components-placeholder{min-width:0}}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #e8eaeb;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #e8eaeb;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #e2e4e7;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#b5bcc2 transparent #b5bcc2 #b5bcc2}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#23282d}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;margin:0 -14px;position:-webkit-sticky;position:sticky;z-index:10;top:14px;transform:translateY(-14px);border:1px solid #e2e4e7;border-bottom:none;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#b5bcc2}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.is-selected .wp-block-gallery{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus{outline:none}.blocks-gallery-item figure.is-selected{outline:4px solid #0085ba}body.admin-color-sunrise .blocks-gallery-item figure.is-selected{outline:4px solid #d1864a}body.admin-color-ocean .blocks-gallery-item figure.is-selected{outline:4px solid #a3b9a2}body.admin-color-midnight .blocks-gallery-item figure.is-selected{outline:4px solid #e14d43}body.admin-color-ectoplasm .blocks-gallery-item figure.is-selected{outline:4px solid #a7b656}body.admin-color-coffee .blocks-gallery-item figure.is-selected{outline:4px solid #c2a68c}body.admin-color-blue .blocks-gallery-item figure.is-selected{outline:4px solid #82b4cb}body.admin-color-light .blocks-gallery-item figure.is-selected{outline:4px solid #0085ba}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{background:#fff;border:1px solid rgba(66,88,99,.4);border-radius:4px;transition:box-shadow .2s ease-out}@media (prefers-reduced-motion:reduce){.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{transition-duration:0s}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu:hover,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu:hover{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{color:rgba(14,28,46,.62);padding:2px;height:24px}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}@media (min-width:600px){.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{padding:0;width:inherit;height:inherit}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:focus,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:focus{color:inherit}.block-library-gallery-item__inline-menu,.block-library-gallery-item__move-menu{margin:8px;display:inline-flex;z-index:20}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__move-menu .components-button{color:transparent}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-7 .block-library-gallery-item__move-menu,.columns-8 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__move-menu{padding:2px}}.block-library-gallery-item__inline-menu{position:absolute;top:-2px;left:-2px}.block-library-gallery-item__move-menu{position:absolute;top:-2px;right:-2px}.blocks-gallery-item__move-backward,.blocks-gallery-item__move-forward,.blocks-gallery-item__remove{padding:0}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block[data-type="core/group"] .block-editor-block-list__insertion-point{right:0;left:0}.wp-block[data-type="core/group"]>div>.wp-block-group.has-background>.wp-block-group__inner-container>.block-editor-inner-blocks{margin-top:-32px;margin-bottom:-32px}.wp-block[data-type="core/group"]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{margin-right:auto;margin-left:auto;padding-right:28px;padding-left:28px}@media (min-width:600px){.wp-block[data-type="core/group"]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{padding-right:58px;padding-left:58px}}.wp-block[data-type="core/group"]>div>.wp-block-group.has-background>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks{margin-right:auto;margin-left:auto;padding-right:0;padding-left:0}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:0;margin-left:0}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{padding-left:0;padding-right:0;right:0;width:100%;max-width:none}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group.has-background>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.wp-block-html{margin-bottom:28px}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}.wp-block-image{position:relative;margin-right:0;margin-left:0}.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.wp-block-image.is-focused .components-resizable-box__handle{display:block;z-index:1}.block-editor-block-list__block[data-type="core/image"][data-align=center] .wp-block-image{margin-right:auto;margin-left:auto}.block-editor-block-list__block[data-type="core/image"][data-align=center][data-resized=false] .wp-block-image>div{margin-right:auto;margin-left:auto}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-type="core/image"][data-align=center] figure,[data-type="core/image"][data-align=left] figure,[data-type="core/image"][data-align=right] figure{margin:0}[data-type="core/image"][data-align=full] figure img,[data-type="core/image"][data-align=wide] figure img{width:100%}[data-type="core/image"] figure.is-resized{margin:0}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__preview{padding-right:2.5em;padding-left:2.5em}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block;box-shadow:none}.wp-block-legacy-widget__update-button{margin-right:auto;display:block}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-legacy-widget__edit-widget-title{margin:-14px -13px 0;background:#f8f9f9;color:#555d66;top:-13px;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 14px;font-weight:600}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-vertically-aligned-top .block-editor-inner-blocks,.wp-block-media-text.is-vertically-aligned-top .editor-media-container__resizer{-ms-grid-row-align:start;align-self:start}.wp-block-media-text .block-editor-inner-blocks,.wp-block-media-text .editor-media-container__resizer,.wp-block-media-text.is-vertically-aligned-center .block-editor-inner-blocks,.wp-block-media-text.is-vertically-aligned-center .editor-media-container__resizer{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .block-editor-inner-blocks,.wp-block-media-text.is-vertically-aligned-bottom .editor-media-container__resizer{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .editor-media-container__resizer{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text .block-editor-inner-blocks,.wp-block-media-text.has-media-on-the-right .editor-media-container__resizer{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text .block-editor-inner-blocks{word-break:break-word;text-align:initial;padding:0 8%}.wp-block-media-text.has-media-on-the-right .block-editor-inner-blocks{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.editor-media-container__resizer .components-resizable-box__handle{display:none}.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle{display:block}@media (min-width:600px){.wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle{display:block}}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile .block-editor-inner-blocks{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-stacked-on-mobile .editor-media-container__resizer,.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .block-editor-inner-blocks{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .editor-media-container__resizer{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks{flex:1}[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:0;margin-left:0}[data-type="core/navigation"] .wp-block-navigation.items-justification-left .block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:flex-start}[data-type="core/navigation"] .wp-block-navigation.items-justification-center .block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:center}[data-type="core/navigation"] .wp-block-navigation.items-justification-right .block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:flex-end}[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__block:before{right:0;left:0}[data-type="core/navigation"].has-child-selected .wp-block-navigation .block-editor-block-list__block:before,[data-type="core/navigation"].is-selected .wp-block-navigation .block-editor-block-list__block:before{border-color:transparent!important}[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__insertion-point{display:none}[data-type="core/navigation"] .wp-block-navigation .block-list-appender{width:28px;height:28px}[data-type="core/navigation"] .wp-block-navigation .block-list-appender .block-editor-button-block-appender{padding:4px 8px;outline:none;background:none}[data-type="core/navigation"] .wp-block-navigation .wp-block-navigation-link.is-selected .block-editor-rich-text__editable:focus{min-width:20px}.wp-block-navigation__inserter-content{padding:16px}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__icon-container:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link.has-link .wp-block-navigation-link__label{text-decoration:underline}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 10px 16px 16px}[data-type="core/navigation-link"] .block-editor-block-toolbar{right:14px}[data-type="core/navigation-link"] .block-editor-block-toolbar .components-toolbar.block-editor-block-mover .components-button.block-editor-block-mover__control-drag-handle{display:none}.wp-block-navigation-link__nofollow-external-link{display:block}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #e2e4e7}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-right:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.block-editor-block-list__block[data-type="core/paragraph"] .has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-type="core/pullquote"][data-align=left] p,.block-editor-block-list__block[data-type="core/pullquote"][data-align=right] p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-right:0;margin-left:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-rss li a>div{display:inline}.wp-block-search__input{border-radius:4px;border:1px solid #7e8993;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px}.wp-block-search__input:focus{outline:none}.wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;padding:6px 10px}.wp-block-search__button,.wp-block-shortcode{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;background-color:rgba(139,139,150,.1);margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{width:80%;max-height:250px}.wp-block-shortcode .dashicon{margin-left:8px}.wp-social-link{padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link{padding-right:16px;padding-left:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-block-social-links .block-editor-block-list__layout{display:flex;justify-content:flex-start}[data-type="core/social-links"] .wp-block-social-links>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:0;margin-left:0}[data-type="core/social-links"] .wp-block-social-links>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{width:auto;padding-right:0;padding-left:0;margin:0}[data-type="core/social-links"] .wp-block-social-links>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block:before{border-left:none;border-top:none;border-bottom:none}[data-type="core/social-links"].has-child-selected .wp-block-social-links .block-editor-block-list__block:before,[data-type="core/social-links"].is-selected .wp-block-social-links .block-editor-block-list__block:before{border-color:transparent!important}[data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__insertion-point{display:none}.wp-block-social-links .block-list-appender{margin:0}.wp-block-social-links .block-list-appender .block-editor-button-block-appender{padding:8px;outline:none;background:none}[data-type="core/social-links"][data-align=center] .wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}.block-editor-block-preview__content [data-type="core/social-links"]{width:auto!important;display:inline-block}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-left:0}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;outline:2px solid transparent}.block-library-spacer__resize-container.is-selected{background:#f3f4f5}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.block-editor-block-list__block[data-type="core/table"][data-align=center],.block-editor-block-list__block[data-type="core/table"][data-align=left],.block-editor-block-list__block[data-type="core/table"][data-align=right]{height:auto}.block-editor-block-list__block[data-type="core/table"][data-align=center] table,.block-editor-block-list__block[data-type="core/table"][data-align=left] table,.block-editor-block-list__block[data-type="core/table"][data-align=right] table{width:auto}.block-editor-block-list__block[data-type="core/table"][data-align=center] td,.block-editor-block-list__block[data-type="core/table"][data-align=center] th,.block-editor-block-list__block[data-type="core/table"][data-align=left] td,.block-editor-block-list__block[data-type="core/table"][data-align=left] th,.block-editor-block-list__block[data-type="core/table"][data-align=right] td,.block-editor-block-list__block[data-type="core/table"][data-align=right] th{word-break:break-word}.block-editor-block-list__block[data-type="core/table"][data-align=center]{text-align:initial}.block-editor-block-list__block[data-type="core/table"][data-align=center] table{margin:0 auto}.wp-block-table{margin:0}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input input{height:36px}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .components-base-control__field{margin-bottom:0}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-button{margin-top:auto;margin-left:auto}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#8f98a1;text-decoration:none}.wp-block-template-part__placeholder-input-container{display:flex;flex-wrap:wrap;width:100%}.wp-block-template-part__placeholder-input{margin:5px}.wp-block-template-part__placeholder-preview{margin-bottom:15px;width:100%}.wp-block-template-part__placeholder-preview .block-editor-block-preview__container{padding:1px}.wp-block-template-part__placeholder-preview .block-editor-block-preview__content{position:static}.wp-block-template-part__placeholder-preview-title{font-size:15px;font-weight:600;margin-bottom:4px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #e2e4e7}pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.block-editor-block-list__block[data-align=center]{text-align:center}.editor-video-poster-control .components-button{display:block;margin-left:8px}.editor-video-poster-control .components-button+.components-button{margin-top:1em}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;top:-14px;margin:0 -14px;padding:8px 14px;z-index:61;border:1px dashed rgba(145,151,162,.25);border-bottom:none}.block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel{margin:0 -14px;padding:8px 14px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner{margin:0 5px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-weight:600}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:4px 0 8px}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 5px 0 0}}.block-editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:rgba(66,88,99,.4) transparent rgba(66,88,99,.4) rgba(66,88,99,.4)}.is-dark-theme .block-editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:hsla(0,0%,100%,.45) transparent hsla(0,0%,100%,.45) hsla(0,0%,100%,.45)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{border-color:#007cba transparent #007cba #007cba}.editor-styles-wrapper .block-editor-block-list__block{margin-top:28px;margin-bottom:28px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#555d66;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"]{display:inline-block;width:auto}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons .block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #e8eaeb;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #e8eaeb;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #e2e4e7;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#23282d}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:10;top:8px;border:1px solid #e2e4e7;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;transition:box-shadow .2s ease-out}@media (prefers-reduced-motion:reduce){.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{transition-duration:0s}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu:hover,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{color:#1e1e1e;min-width:24px;height:24px}@media (min-width:600px){.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{padding:0;width:inherit;height:inherit}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:focus,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:focus{color:inherit}.block-library-gallery-item__inline-menu,.block-library-gallery-item__move-menu{margin:8px;display:inline-flex;z-index:20}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__move-menu .components-button{color:transparent}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-7 .block-library-gallery-item__move-menu,.columns-8 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__move-menu{padding:2px}}.block-library-gallery-item__inline-menu{position:absolute;top:-2px;left:-2px}.block-library-gallery-item__move-menu{position:absolute;top:-2px;right:-2px}.blocks-gallery-item__move-backward.components-button,.blocks-gallery-item__move-forward.components-button,.blocks-gallery-item__remove.components-button{padding:0}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-group{margin-top:0;margin-bottom:0}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-right:auto;margin-left:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:14px;padding-left:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:0;padding-left:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-left:0;padding-right:0;right:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.richimage__crop-area{position:relative;max-width:100%;width:100%}.richimage__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.richimage__crop-icon svg{fill:currentColor}.richimage__zoom-control{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff;margin-top:12px;margin-bottom:12px;padding:12px 12px 8px;line-height:1}.components-toolbar.richimage-toolbar__dropdown{padding:0;border-right:none;border-left:none}.components-toolbar.richimage-toolbar__dropdown .components-icon-button.has-text svg{margin-left:0}.components-toolbar.richimage-toolbar__dropdown .components-dropdown-menu__indicator{display:none}.richimage-toolbar__control,.richimage-toolbar__dropdown,.richimage-toolbar__dropdown>.components-button{padding:6px}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block;box-shadow:none}.wp-block-legacy-widget__edit-container .widget.open{z-index:0}.wp-block-legacy-widget__update-button{margin-right:auto;display:block}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__edit-widget-title,.wp-block-legacy-widget__preview{padding:8px 14px}.wp-block-legacy-widget__edit-widget-title{background:#f8f9f9;color:#555d66;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 14px;font-weight:600}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container{opacity:1;visibility:visible}.has-child .wp-block-navigation__container .block-list-appender .block-editor-button-block-appender{margin-right:16px}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle{color:#fff}.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle>svg{color:#000;background-color:#fff}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 10px 16px 16px}.wp-block-navigation-link__nofollow-external-link{display:block}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #e2e4e7}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-right:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-right:0;margin-left:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block-search__input{border-radius:4px;border:1px solid #7e8993;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px}.wp-block-search__input:focus{outline:none}.wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;background-color:rgba(139,139,150,.1);font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-left:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:16px;padding-left:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 0 0 8px}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links .block-list-appender{margin:0;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-left:0}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{left:8px}.block-library-spacer__resize-container.has-show-handle{background:#f3f4f5}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table{margin:0}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table figcaption{color:#555d66;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#8f98a1;text-decoration:none}.wp-block-template-part__placeholder-tabs{display:flex;flex-grow:1;flex-direction:column}.wp-block-template-part__placeholder-tabs .components-tab-panel__tabs{border-bottom:1px solid #e2e4e7}.wp-block-template-part__placeholder-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.wp-block-template-part__placeholder-tabs .components-tab-panel__tab-content{margin-top:16px;display:flex;flex-grow:1;flex-direction:column;position:relative}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container{display:flex;flex-wrap:wrap;width:100%}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container .wp-block-template-part__placeholder-input{margin:5px}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-help-phrase{padding:0 12px 12px}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-create-button{align-self:flex-start}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-preview-filter-input{width:inherit}.wp-block-template-part__placeholder-preview-container{width:inherit;max-height:600px;overflow-y:scroll;background:#fff;border-radius:2px;border:1px solid #e2e4e7;top:16px;right:calc(100% + 16px)}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title{padding:4px;font-size:12px;text-align:center}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header{display:inline-flex;align-items:center;padding:16px 16px 0}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content{padding:0 16px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500;margin-left:8px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #e2e4e7}pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 8px 0 0}}.reusable-block-edit-panel__title[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor.css b/wp-includes/css/dist/block-library/editor.css index 9314c347c2..378eebf07d 100644 --- a/wp-includes/css/dist/block-library/editor.css +++ b/wp-includes/css/dist/block-library/editor.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,14 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + .block-editor ul.wp-block-archives { padding-left: 2.5em; } @@ -52,26 +75,32 @@ .edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect { min-height: auto; } -.block-editor-block-list__block[data-type="core/button"][data-align="center"] { +.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container { + padding-left: 0; + padding-right: 0; } + +.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow { + display: block; } + +.wp-block[data-align="center"] > .wp-block-button { text-align: center; margin-left: auto; margin-right: auto; } -.block-editor-block-list__block[data-type="core/button"][data-align="right"] { +.wp-block[data-align="right"] > .wp-block-button { /*!rtl:ignore*/ text-align: right; } .wp-block-button { - position: relative; } - .wp-block-button [contenteditable] { - cursor: text; } + position: relative; + cursor: text; } .wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]::after { color: #fff; } - .wp-block-button .block-editor-rich-text__editable:focus { + .wp-block-button:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a0d2; outline: 2px solid transparent; outline-offset: -2px; } - .wp-block-button [data-rich-text-placeholder]::after { + .wp-block-button[data-rich-text-placeholder]::after { opacity: 0.8; } .wp-block-button__inline-link { @@ -91,8 +120,7 @@ max-width: 290px; } .wp-block-button__inline-link-input__suggestions { max-width: 290px; } } - .is-selected .wp-block-button__inline-link, - .is-typing .wp-block-button__inline-link { + .is-selected .wp-block-button__inline-link { height: auto; overflow: visible; margin-top: 16px; } @@ -104,191 +132,75 @@ div[data-type="core/button"] { display: inline-block; width: auto; } -.wp-block-buttons[data-align="center"] .block-editor-block-list__layout { +.wp-block[data-align="center"] > .wp-block-buttons { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; } -.wp-block-buttons[data-align="right"] .block-editor-block-list__layout { +.wp-block[data-align="right"] > .wp-block-buttons { display: flex; justify-content: flex-end; } .wp-block-buttons .block-list-appender { - display: inline-block; - margin: 0; } - -.wp-block-buttons .block-editor-block-list__layout > div:last-child { display: inline-block; } -.wp-block-buttons .block-editor-button-block-appender { - background: none; - outline: none; } - .block-editor .wp-block-categories ul { padding-left: 2.5em; } .block-editor .wp-block-categories ul ul { margin-top: 6px; } -.wp-block-code .block-editor-plain-text { - font-family: Menlo, Consolas, monaco, monospace; - color: #23282d; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .wp-block-code .block-editor-plain-text { - font-size: 13px; } } - .wp-block-code .block-editor-plain-text:focus { - box-shadow: none; } +.wp-block-code > code { + display: block; } -.wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block { +.wp-block-columns .wp-block { max-width: none; } -.components-popover.block-editor-block-list__block-popover -.components-popover__content -.block-editor-block-contextual-toolbar[data-type="core/column"] { - margin-left: 0; } +@media (min-width: 600px) { + .editor-styles-wrapper +.block-editor-block-list__block.wp-block-column:nth-child(even) { + margin-left: 32px; } } -.wp-block-columns { - display: block; } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { - display: flex; - flex-wrap: wrap; } - @media (min-width: 782px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { - flex-wrap: nowrap; } } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"], - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] .block-core-columns { - display: flex; - flex-direction: column; - flex: 1 1 auto; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"], - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] .block-core-columns { - flex: 1; } } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { - padding-left: 0; - padding-right: 0; - margin-left: -14px; - margin-right: -14px; - margin-top: 0; - margin-bottom: 0; - min-width: 0; - word-break: break-word; - overflow-wrap: break-word; - flex-basis: 100%; } - @media (min-width: 600px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { - flex-basis: calc(50% - (16px)); - flex-grow: 0; - margin-left: 0; - margin-right: 0; } } - @media (min-width: 782px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { - flex-basis: 0; - flex-grow: 1; } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"][data-has-explicit-width] { - flex-grow: 0; } } - @media (min-width: 600px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:nth-child(even) { - margin-left: calc(32px); } } - @media (min-width: 782px) { - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) { - margin-left: calc(32px); } } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]::before { - left: 0; - right: 0; } - .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-core-columns > .block-editor-inner-blocks { - margin-top: -28px; - margin-bottom: -28px; } +@media (min-width: 782px) { + .editor-styles-wrapper +.block-editor-block-list__block.wp-block-column:not(:first-child) { + margin-left: 32px; } } -/** - * Columns act as as a "passthrough container" - * and therefore has its vertical margins/padding removed via negative margins - * therefore we need to compensate for this here by doubling the spacing on the - * vertical to ensure there is equal visual spacing around the inserter. Note there - * is no formal API for a "passthrough" Block so this is an edge case overide - */ -[data-type="core/columns"] .block-list-appender { - margin-top: 28px; - margin-bottom: 28px; } +.block-editor-block-list__block.wp-block-column.wp-block-column { + margin-top: 0; + margin-bottom: 0; } -/** - * Vertical Alignment Preview - * note: specificity is important here to ensure individual - * * columns alignment is prioritised over parent column alignment - * - */ -.are-vertically-aligned-top .block-core-columns, -div.block-core-columns.is-vertically-aligned-top { - justify-content: flex-start; } - -.are-vertically-aligned-center .block-core-columns, -div.block-core-columns.is-vertically-aligned-center { - justify-content: center; } - -.are-vertically-aligned-bottom .block-core-columns, -div.block-core-columns.is-vertically-aligned-bottom { - justify-content: flex-end; } - -/** - * Fixes single Column breadcrumb position. - */ -[data-type="core/column"] > .editor-block-list__breadcrumb { - left: -3px; } - -/** - * Make single Column overlay not extend past boundaries of parent - */ -.block-core-columns > .block-editor-inner-blocks.has-overlay::after { - left: 0; - right: 0; } - -[data-type="core/columns"][data-align="full"] .wp-block-columns { - padding-left: 14px; - padding-right: 14px; } - @media (min-width: 600px) { - [data-type="core/columns"][data-align="full"] .wp-block-columns { - padding-left: 46px; - padding-right: 46px; } } - -.wp-block-cover-image.components-placeholder h2, -.wp-block-cover.components-placeholder h2 { - color: inherit; } - -.wp-block-cover-image .block-editor-block-list__layout, -.wp-block-cover .block-editor-block-list__layout { - width: 100%; } - -.wp-block-cover-image .block-editor-block-list__block, -.wp-block-cover .block-editor-block-list__block { - color: #f8f9f9; } - -.wp-block-cover-image .wp-block-cover__inner-container, -.wp-block-cover .wp-block-cover__inner-container { - text-align: left; } - -.wp-block-cover-image .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, -.wp-block-cover .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { - margin-left: 0; - margin-right: 0; } - -.wp-block-cover-image .wp-block-cover__placeholder-background-options, -.wp-block-cover .wp-block-cover__placeholder-background-options { - margin-top: 1em; - width: 100%; } - -[data-align="left"] .wp-block-cover-image, -[data-align="right"] .wp-block-cover-image, [data-align="left"] -.wp-block-cover, -[data-align="right"] .wp-block-cover { + position: relative; } + .wp-block-cover.is-placeholder { + min-height: auto !important; + padding: 0 !important; } + .wp-block-cover.components-placeholder h2 { + color: inherit; } + .wp-block-cover .block-editor-block-list__layout { + width: 100%; } + .wp-block-cover .wp-block-cover__inner-container { + text-align: left; + margin-left: 0; + margin-right: 0; } + .wp-block-cover .wp-block-cover__placeholder-background-options { + width: 100%; } + +[data-align="left"] > .wp-block-cover, +[data-align="right"] > .wp-block-cover { max-width: 290px; width: 100%; } .block-library-cover__reset-button { margin-left: auto; } +.block-library-cover__resize-container { + position: absolute !important; + top: 0; + left: 0; + right: 0; + bottom: 0; } + .block-library-cover__resize-container:not(.is-resizing) { height: auto !important; } @@ -296,11 +208,6 @@ div.block-core-columns.is-vertically-aligned-bottom { margin-left: 0; margin-right: 0; clear: both; } - @media (min-width: 600px) { - .wp-block-embed { - min-width: 360px; } - .wp-block-embed.components-placeholder { - min-width: 0; } } .wp-block-embed.is-loading { display: flex; flex-direction: column; @@ -363,7 +270,7 @@ div.block-core-columns.is-vertically-aligned-bottom { .wp-block-freeform.block-library-rich-text__tinymce pre { white-space: pre-wrap; font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; + font-size: 15px; color: #23282d; } .wp-block-freeform.block-library-rich-text__tinymce > *:first-child { margin-top: 0; } @@ -528,8 +435,7 @@ div[data-type="core/freeform"]::before { transition-duration: 0s; } } div[data-type="core/freeform"].is-selected::before { - border-color: #b5bcc2; - border-left-color: transparent; } + border-color: #1e1e1e; } div[data-type="core/freeform"] .block-editor-block-contextual-toolbar + div { margin-top: 0; @@ -556,19 +462,20 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af .block-library-classic__toolbar { display: none; width: auto; - margin: 0 -14px; + margin: 0; position: -webkit-sticky; position: sticky; z-index: 10; - top: 14px; - transform: translateY(-14px); + top: 8px; border: 1px solid #e2e4e7; border-bottom: none; + border-radius: 2px; + margin-bottom: 8px; padding: 0; } div[data-type="core/freeform"].is-selected .block-library-classic__toolbar, div[data-type="core/freeform"].is-typing .block-library-classic__toolbar { display: block; - border-color: #b5bcc2; } + border-color: #1e1e1e; } .block-library-classic__toolbar .mce-tinymce { box-shadow: none; } @media (min-width: 600px) { @@ -585,6 +492,8 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af color: #555d66; line-height: 37px; padding: 14px; } + .block-library-classic__toolbar div.mce-toolbar-grp { + border-bottom: 1px solid #1e1e1e; } .block-library-classic__toolbar .mce-tinymce-inline, .block-library-classic__toolbar .mce-tinymce-inline > div, .block-library-classic__toolbar div.mce-toolbar-grp, @@ -608,8 +517,13 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af .wp-block-gallery li { list-style-type: none; } -.is-selected .wp-block-gallery { - margin-bottom: 0; } +.wp-block-gallery .block-editor-media-placeholder { + margin-bottom: 12px; + padding: 12px; } + .wp-block-gallery .block-editor-media-placeholder .components-placeholder__label { + display: none; } + .wp-block-gallery .block-editor-media-placeholder .components-button { + margin-bottom: 0; } figure.wp-block-gallery { display: block; @@ -620,32 +534,17 @@ figure.wp-block-gallery { margin-left: 0; margin-bottom: 0; } -.blocks-gallery-item figure:not(.is-selected):focus { +.blocks-gallery-item figure:not(.is-selected):focus, +.blocks-gallery-item img:focus { outline: none; } .blocks-gallery-item figure.is-selected { - outline: 4px solid #0085ba; } - -body.admin-color-sunrise .blocks-gallery-item figure.is-selected { - outline: 4px solid #d1864a; } - -body.admin-color-ocean .blocks-gallery-item figure.is-selected { - outline: 4px solid #a3b9a2; } - -body.admin-color-midnight .blocks-gallery-item figure.is-selected { - outline: 4px solid #e14d43; } - -body.admin-color-ectoplasm .blocks-gallery-item figure.is-selected { - outline: 4px solid #a7b656; } - -body.admin-color-coffee .blocks-gallery-item figure.is-selected { - outline: 4px solid #c2a68c; } - -body.admin-color-blue .blocks-gallery-item figure.is-selected { - outline: 4px solid #82b4cb; } - -body.admin-color-light .blocks-gallery-item figure.is-selected { - outline: 4px solid #0085ba; } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); + border-radius: 2px; + outline: 2px solid transparent; } + .blocks-gallery-item figure.is-selected img { + border-radius: 2px; } .blocks-gallery-item figure.is-transient img { opacity: 0.3; } @@ -653,8 +552,8 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu { background: #fff; - border: 1px solid rgba(66, 88, 99, 0.4); - border-radius: 4px; + border: 1px solid #1e1e1e; + border-radius: 2px; transition: box-shadow 0.2s ease-out; } @media (prefers-reduced-motion: reduce) { .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu, @@ -662,15 +561,12 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { transition-duration: 0s; } } .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu:hover, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu:hover { - box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); } .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button { - color: rgba(14, 28, 46, 0.62); - padding: 2px; + color: #1e1e1e; + min-width: 24px; height: 24px; } - .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover, - .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { - box-shadow: none; } @media (min-width: 600px) { .columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button, .columns-7 @@ -710,9 +606,9 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { top: -2px; left: -2px; } -.blocks-gallery-item__move-backward, -.blocks-gallery-item__move-forward, -.blocks-gallery-item__remove { +.blocks-gallery-item__move-backward.components-button, +.blocks-gallery-item__move-forward.components-button, +.blocks-gallery-item__remove.components-button { padding: 0; } .blocks-gallery-item .components-spinner { @@ -725,48 +621,38 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { /** * Group: All Alignment Settings */ -.wp-block[data-type="core/group"] .block-editor-block-list__insertion-point { - left: 0; - right: 0; } - -.wp-block[data-type="core/group"] > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks { - margin-top: -32px; - margin-bottom: -32px; } - -.wp-block[data-type="core/group"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { - margin-left: auto; - margin-right: auto; - padding-left: 28px; - padding-right: 28px; } - @media (min-width: 600px) { - .wp-block[data-type="core/group"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { - padding-left: 58px; - padding-right: 58px; } } - -.wp-block[data-type="core/group"] > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { - margin-left: -30px; - width: calc(100% + 60px); } +.wp-block-group { + margin-top: 0; + margin-bottom: 0; } + .wp-block-group .block-editor-block-list__insertion-point { + left: 0; + right: 0; } + .wp-block-group > .wp-block-group__inner-container > [data-align="full"] { + margin-left: auto; + margin-right: auto; } + .wp-block-group.has-background > .wp-block-group__inner-container > [data-align="full"] { + margin-left: -30px; + width: calc(100% + 60px); } /** * Group: Full Width Alignment */ -.wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks { - margin-left: auto; - margin-right: auto; - padding-left: 0; - padding-right: 0; } - .wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { - margin-left: 0; - margin-right: 0; } +[data-align="full"] .wp-block-group > .wp-block-group__inner-container > .wp-block { + padding-left: 14px; + padding-right: 14px; } + @media (min-width: 600px) { + [data-align="full"] .wp-block-group > .wp-block-group__inner-container > .wp-block { + padding-left: 0; + padding-right: 0; } } -.wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { +[data-align="full"] .wp-block-group > .wp-block-group__inner-container > [data-align="full"] { padding-right: 0; padding-left: 0; left: 0; width: 100%; max-width: none; } -.wp-block[data-type="core/group"][data-align="full"] > div > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { +[data-align="full"] .wp-block-group.has-background > .wp-block-group__inner-container > [data-align="full"] { width: calc(100% + 60px); } [data-type="core/group"].is-selected .block-list-appender { @@ -777,8 +663,22 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { margin-top: 18px; margin-bottom: 18px; } +.block-library-heading-level-dropdown .components-popover__content { + min-width: 230px; } + .block-library-heading-level-dropdown .components-popover__content > div { + padding: 0; } + +.block-library-heading-level-toolbar { + border: none; } + .wp-block-html { margin-bottom: 28px; } + .wp-block-html .block-library-html__preview-overlay { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; } .wp-block-html .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; @@ -794,10 +694,12 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-html .block-editor-plain-text:focus { box-shadow: none; } +figure.wp-block-image:not(.wp-block) { + margin: 0; } + .wp-block-image { - position: relative; - margin-left: 0; - margin-right: 0; } + position: relative; } + .wp-block-image .is-applying img, .wp-block-image.is-transient img { opacity: 0.3; } .wp-block-image figcaption img { @@ -816,18 +718,6 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { width: inherit; height: inherit; } -.wp-block-image.is-focused .components-resizable-box__handle { - display: block; - z-index: 1; } - -.block-editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image { - margin-left: auto; - margin-right: auto; } - -.block-editor-block-list__block[data-type="core/image"][data-align="center"][data-resized="false"] .wp-block-image > div { - margin-left: auto; - margin-right: auto; } - .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { position: absolute; left: 0; @@ -837,17 +727,63 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { margin: -1px; } } -[data-type="core/image"][data-align="center"] figure, -[data-type="core/image"][data-align="left"] figure, -[data-type="core/image"][data-align="right"] figure { - margin: 0; } - -[data-type="core/image"][data-align="wide"] figure img, -[data-type="core/image"][data-align="full"] figure img { +[data-align="wide"] > .wp-block-image img, +[data-align="full"] > .wp-block-image img { width: 100%; } -[data-type="core/image"] figure.is-resized { - margin: 0; } +.wp-block[data-align="left"] > .wp-block-image { + margin-right: 1em; + margin-left: 0; + margin-top: 0.5em; + margin-bottom: 0.5em; } + +.wp-block[data-align="right"] > .wp-block-image { + margin-left: 1em; + margin-right: 0; + margin-top: 0.5em; + margin-bottom: 0.5em; } + +.wp-block[data-align="center"] > .wp-block-image { + margin-left: auto; + margin-right: auto; + text-align: center; } + +.richimage__crop-area { + position: relative; + max-width: 100%; + width: 100%; } + +.richimage__crop-icon { + padding: 0 8px; + min-width: 48px; + display: flex; + justify-content: center; + align-items: center; } + .richimage__crop-icon svg { + fill: currentColor; } + +.richimage__zoom-control { + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; + margin-top: 12px; + margin-bottom: 12px; + padding: 12px 12px 8px; + line-height: 1; } + +.components-toolbar.richimage-toolbar__dropdown { + padding: 0; + border-left: none; + border-right: none; } + .components-toolbar.richimage-toolbar__dropdown .components-icon-button.has-text svg { + margin-right: 0; } + .components-toolbar.richimage-toolbar__dropdown .components-dropdown-menu__indicator { + display: none; } + +.richimage-toolbar__dropdown > .components-button, +.richimage-toolbar__dropdown, +.richimage-toolbar__control { + padding: 6px; } .wp-block-latest-comments.has-avatars .avatar { margin-right: 10px; } @@ -869,16 +805,14 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-latest-posts li a > div { display: inline; } -.wp-block-legacy-widget__edit-container, -.wp-block-legacy-widget__preview { - padding-left: 2.5em; - padding-right: 2.5em; } - .wp-block-legacy-widget__edit-container .widget-inside { border: none; display: block; box-shadow: none; } +.wp-block-legacy-widget__edit-container .widget.open { + z-index: 0; } + .wp-block-legacy-widget__update-button { margin-left: auto; display: block; } @@ -886,12 +820,14 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-legacy-widget__preview { overflow: auto; } +.wp-block-legacy-widget__preview, +.wp-block-legacy-widget__edit-container, +.wp-block-legacy-widget__edit-widget-title { + padding: 8px 14px; } + .wp-block-legacy-widget__edit-widget-title { - margin: -14px -13px 0; background: #f8f9f9; color: #555d66; - top: -13px; - position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; padding: 8px 14px; @@ -904,89 +840,15 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { -ms-grid-row: 2; grid-row: 2; } -.wp-block-media-text.is-vertically-aligned-top .block-editor-inner-blocks, -.wp-block-media-text.is-vertically-aligned-top .editor-media-container__resizer { - -ms-grid-row-align: start; - align-self: start; } - -.wp-block-media-text .block-editor-inner-blocks, -.wp-block-media-text .editor-media-container__resizer, -.wp-block-media-text.is-vertically-aligned-center .block-editor-inner-blocks, -.wp-block-media-text.is-vertically-aligned-center .editor-media-container__resizer { - -ms-grid-row-align: center; - align-self: center; } - -.wp-block-media-text.is-vertically-aligned-bottom .block-editor-inner-blocks, -.wp-block-media-text.is-vertically-aligned-bottom .editor-media-container__resizer { - -ms-grid-row-align: end; - align-self: end; } - .wp-block-media-text .editor-media-container__resizer { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; width: 100% !important; } .wp-block-media-text.is-image-fill .editor-media-container__resizer { height: 100% !important; } -.wp-block-media-text.has-media-on-the-right .editor-media-container__resizer { - -ms-grid-column: 2; - grid-column: 2; - -ms-grid-row: 1; - grid-row: 1; } - -.wp-block-media-text .block-editor-inner-blocks { - word-break: break-word; - -ms-grid-column: 2; - grid-column: 2; - -ms-grid-row: 1; - grid-row: 1; - text-align: initial; - padding: 0 8% 0 8%; } - -.wp-block-media-text.has-media-on-the-right .block-editor-inner-blocks { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } - -.wp-block-media-text > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block { +.wp-block-media-text > .block-editor-block-list__layout > .block-editor-block-list__block { max-width: unset; } -.editor-media-container__resizer .components-resizable-box__handle { - display: none; } - -.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle { - display: block; } - -@media (min-width: 600px) { - .wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle { - display: block; } } - -@media (max-width: 600px) { - .wp-block-media-text.is-stacked-on-mobile .block-editor-inner-blocks { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 2; - grid-row: 2; } - .wp-block-media-text.is-stacked-on-mobile .editor-media-container__resizer { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .block-editor-inner-blocks { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 1; - grid-row: 1; } - .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .editor-media-container__resizer { - -ms-grid-column: 1; - grid-column: 1; - -ms-grid-row: 2; - grid-row: 2; } } - .block-editor-block-list__block[data-type="core/more"] { max-width: 100%; text-align: center; @@ -1024,49 +886,41 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { right: 0; border-top: 3px dashed #ccd0d4; } -[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks { - flex: 1; } - -[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout { +.editor-styles-wrapper .wp-block-navigation ul, +.editor-styles-wrapper .wp-block-navigation ol { + margin-bottom: 0; margin-left: 0; - margin-right: 0; } + padding-left: 0; } -[data-type="core/navigation"] .wp-block-navigation.items-justification-left .block-editor-inner-blocks > .block-editor-block-list__layout { - justify-content: flex-start; } +.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block { + margin: 0; } -[data-type="core/navigation"] .wp-block-navigation.items-justification-center .block-editor-inner-blocks > .block-editor-block-list__layout { - justify-content: center; } +.wp-block-navigation .block-list-appender { + margin: 0; + display: flex; + align-items: center; } -[data-type="core/navigation"] .wp-block-navigation.items-justification-right .block-editor-inner-blocks > .block-editor-block-list__layout { - justify-content: flex-end; } - -[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__block::before { - left: 0; - right: 0; } - -[data-type="core/navigation"].is-selected .wp-block-navigation .block-editor-block-list__block::before, -[data-type="core/navigation"].has-child-selected .wp-block-navigation .block-editor-block-list__block::before { - border-color: transparent !important; } - -[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__insertion-point { - display: none; } - -[data-type="core/navigation"] .wp-block-navigation .block-list-appender { - width: 28px; - height: 28px; } - [data-type="core/navigation"] .wp-block-navigation .block-list-appender .block-editor-button-block-appender { - padding: 8px; - padding-bottom: 4px; - padding-top: 4px; - outline: none; - background: none; } - -[data-type="core/navigation"] .wp-block-navigation .wp-block-navigation-link.is-selected .block-editor-rich-text__editable:focus { - min-width: 20px; } +.wp-block-navigation.is-vertical .block-list-appender { + margin: 8px; } .wp-block-navigation__inserter-content { padding: 16px; } +.wp-block-navigation__container.is-parent-of-selected-block { + visibility: visible; + opacity: 1; } + +.has-child > .wp-block-navigation__container, .has-child:hover > .wp-block-navigation__container { + opacity: 0; + visibility: hidden; } + +.has-child.is-selected > .wp-block-navigation__container, .has-child.has-child-selected > .wp-block-navigation__container { + opacity: 1; + visibility: visible; } + +.has-child .wp-block-navigation__container .block-list-appender .block-editor-button-block-appender { + margin-left: 16px; } + /** * Colors Selector component */ @@ -1078,7 +932,6 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { padding: 3px; width: auto; } .block-library-colors-selector .block-library-colors-selector__icon-container { - width: 42px; height: 30px; position: relative; margin: 0 auto; @@ -1086,17 +939,9 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { display: flex; align-items: center; border-radius: 4px; } - .block-library-colors-selector .block-library-colors-selector__icon-container::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-left: 3px solid transparent; - border-right: 3px solid transparent; - border-top: 5px solid; - margin-left: 4px; - margin-right: 2px; } + .block-library-colors-selector .block-library-colors-selector__state-selection { + margin-left: auto; + margin-right: auto; } .block-library-colors-selector .block-library-colors-selector__state-selection { border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); @@ -1124,13 +969,26 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .block-library-colors-selector__popover .components-panel__body-title { display: none; } +.is-editing > .wp-block-navigation__container { + visibility: visible; + opacity: 1; + display: flex; + flex-direction: column; } + +.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle { + color: #fff; } + +.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle > svg { + color: #000; + background-color: #fff; } + .wp-block-navigation-link__field .components-text-control__input.components-text-control__input, .wp-block-navigation-link__container { border-radius: 0; line-height: 36px; min-height: 36px; } -/* +/** * Adjust Navigation Item. */ .wp-block-navigation-link .block-editor-block-list__layout { @@ -1139,10 +997,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-navigation-link.is-editing, .wp-block-navigation-link.is-selected { min-width: 20px; } -.wp-block-navigation-link.has-link .wp-block-navigation-link__label { - text-decoration: underline; } - -.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after { +.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]::after { display: inline-block; } .wp-block-navigation-link .block-list-appender { @@ -1150,12 +1005,6 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { margin-left: 10px; margin-top: 10px; } -[data-type="core/navigation-link"] .block-editor-block-toolbar { - left: 14px; } - -[data-type="core/navigation-link"] .block-editor-block-toolbar .components-toolbar.block-editor-block-mover .components-button.block-editor-block-mover__control-drag-handle { - display: none; } - .wp-block-navigation-link__nofollow-external-link { display: block; } @@ -1167,7 +1016,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { margin-top: -1px; margin-left: -4px; } -.wp-block-navigation-link__dropdown-content .components-popover__content { +.wp-block-navigation-link__dropdown-content .components-popover__content > div { padding: 8px 0; } .wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"] > .block-editor-block-list__insertion-point { @@ -1202,10 +1051,37 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { right: 0; border-top: 3px dashed #ccd0d4; } -.block-editor-block-list__block[data-type="core/paragraph"] .has-drop-cap:focus { +.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus { min-height: auto !important; } -.block-editor-block-list__block[data-type="core/pullquote"][data-align="left"] p, .block-editor-block-list__block[data-type="core/pullquote"][data-align="right"] p { +.wp-block-post-excerpt__excerpt.is-inline { + display: inline-block; } + +.wp-block-post-author { + display: flex; + flex-wrap: wrap; + line-height: 1.5; } + .wp-block-post-author .wp-block-post-author__byline { + font-size: 0.5em; + margin-top: 0; + position: relative; + font-style: normal; } + .wp-block-post-author .wp-block-post-author__content { + flex-grow: 1; + flex-basis: 0; } + .wp-block-post-author .wp-block-post-author__avatar img { + margin: 0; } + .wp-block-post-author .wp-block-post-author__avatar { + margin-bottom: -8px; } + .wp-block-post-author .wp-block-post-author__name { + margin: 0; + font-weight: bold; } + .wp-block-post-author .wp-block-post-author__bio { + margin: 0 0 8px; + font-size: 0.7em; } + +.wp-block[data-align="left"] > .wp-block-pullquote p, +.wp-block[data-align="right"] > .wp-block-pullquote p { font-size: 20px; } .wp-block-pullquote blockquote p { @@ -1235,6 +1111,26 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { .wp-block-rss li a > div { display: inline; } +.wp-block-rss__placeholder-form { + display: flex; + align-items: stretch; } + .wp-block-rss__placeholder-form > * { + margin-bottom: 8px; } + @media (min-width: 782px) { + .wp-block-rss__placeholder-form > * { + margin-bottom: 0; } } + +.wp-block-rss__placeholder-input { + display: flex; + align-items: stretch; + flex-grow: 1; } + .wp-block-rss__placeholder-input .components-base-control__field { + margin: 0; + display: flex; + align-items: stretch; + flex-grow: 1; + margin-right: 8px; } + .wp-block-search__input { border-radius: 4px; border: 1px solid #7e8993; @@ -1254,6 +1150,13 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { font-size: 13px; padding: 6px 10px; } +.block-editor-block-list__block[data-type="core/separator"] { + padding-top: 0.1px; + padding-bottom: 0.1px; } + .block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block { + margin-top: 0; + margin-bottom: 0; } + .wp-block-shortcode { display: flex; flex-direction: column; @@ -1269,15 +1172,65 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { font-weight: 600; flex-shrink: 0; } .wp-block-shortcode .block-editor-plain-text { - width: 80%; max-height: 250px; } .wp-block-shortcode .dashicon { margin-right: 8px; } -.wp-social-link { +.block-editor .blocks-shortcode__textarea, +.blocks-shortcode__textarea { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .block-editor .blocks-shortcode__textarea, + .blocks-shortcode__textarea { + transition-duration: 0s; } } + @media (min-width: 600px) { + .block-editor .blocks-shortcode__textarea, + .blocks-shortcode__textarea { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .block-editor .blocks-shortcode__textarea:focus, + .blocks-shortcode__textarea:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder, + .blocks-shortcode__textarea::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .block-editor .blocks-shortcode__textarea::-moz-placeholder, + .blocks-shortcode__textarea::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .block-editor .blocks-shortcode__textarea:-ms-input-placeholder, + .blocks-shortcode__textarea:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder, .is-dark-theme + .blocks-shortcode__textarea::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder, .is-dark-theme + .blocks-shortcode__textarea::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder, .is-dark-theme + .blocks-shortcode__textarea:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + +.wp-block-social-links .wp-social-link button { + color: currentColor; padding: 6px; } -.wp-block-social-links.is-style-pill-shape .wp-social-link { +.wp-block-social-links.is-style-pill-shape .wp-social-link button { padding-left: 16px; padding-right: 16px; } @@ -1285,52 +1238,24 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { display: inline-block; margin-left: 8px; } -.wp-block-social-links .block-editor-block-list__layout { - display: flex; - justify-content: flex-start; } +.editor-styles-wrapper .wp-block-social-link { + margin: 0; + margin-right: 8px; } -[data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout { - margin-left: 0; - margin-right: 0; } - -[data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block { - width: auto; - padding-left: 0; - padding-right: 0; - margin-left: 0; - margin-right: 0; - margin-top: 0; - margin-bottom: 0; } - -[data-type="core/social-links"] .wp-block-social-links > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block::before { - border-right: none; - border-top: none; - border-bottom: none; } - -[data-type="core/social-links"].is-selected .wp-block-social-links .block-editor-block-list__block::before, -[data-type="core/social-links"].has-child-selected .wp-block-social-links .block-editor-block-list__block::before { - border-color: transparent !important; } - -[data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__insertion-point { - display: none; } +.editor-styles-wrapper .wp-block-social-links { + padding: 0; } .wp-block-social-links .block-list-appender { - margin: 0; } - .wp-block-social-links .block-list-appender .block-editor-button-block-appender { - padding: 8px; - outline: none; - background: none; } + margin: 0; + display: flex; + align-items: center; } -[data-type="core/social-links"][data-align="center"] .wp-block-social-links { +.wp-block[data-align="center"] > .wp-block-social-links { justify-content: center; } .block-editor-block-preview__content .wp-social-link:disabled { opacity: 1; } -.block-editor-block-preview__content [data-type="core/social-links"] { - width: auto !important; - display: inline-block; } - [data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links { min-height: 36px; } @@ -1359,33 +1284,48 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { [data-type="core/social-links"] .wp-social-link:focus { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } -.block-library-spacer__resize-container.is-selected { +.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected::after, +.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus::after { + right: 8px; } + +.block-library-spacer__resize-container.has-show-handle { background: #f3f4f5; } + .is-dark-theme .block-library-spacer__resize-container.has-show-handle { + background: rgba(255, 255, 255, 0.15); } .block-library-spacer__resize-container { clear: both; margin-bottom: 28px; } + .block-library-spacer__resize-container .components-resizable-box__handle::before { + content: none; } .edit-post-visual-editor p.wp-block-subhead { color: #6c7781; font-size: 1.1em; font-style: italic; } -.block-editor-block-list__block[data-type="core/table"][data-align="left"], .block-editor-block-list__block[data-type="core/table"][data-align="right"], .block-editor-block-list__block[data-type="core/table"][data-align="center"] { +.wp-block[data-align="left"] > .wp-block-table, +.wp-block[data-align="right"] > .wp-block-table, +.wp-block[data-align="center"] > .wp-block-table { height: auto; } - .block-editor-block-list__block[data-type="core/table"][data-align="left"] table, .block-editor-block-list__block[data-type="core/table"][data-align="right"] table, .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { + .wp-block[data-align="left"] > .wp-block-table table, + .wp-block[data-align="right"] > .wp-block-table table, + .wp-block[data-align="center"] > .wp-block-table table { width: auto; } - .block-editor-block-list__block[data-type="core/table"][data-align="left"] td, - .block-editor-block-list__block[data-type="core/table"][data-align="left"] th, .block-editor-block-list__block[data-type="core/table"][data-align="right"] td, - .block-editor-block-list__block[data-type="core/table"][data-align="right"] th, .block-editor-block-list__block[data-type="core/table"][data-align="center"] td, - .block-editor-block-list__block[data-type="core/table"][data-align="center"] th { + .wp-block[data-align="left"] > .wp-block-table td, + .wp-block[data-align="left"] > .wp-block-table th, + .wp-block[data-align="right"] > .wp-block-table td, + .wp-block[data-align="right"] > .wp-block-table th, + .wp-block[data-align="center"] > .wp-block-table td, + .wp-block[data-align="center"] > .wp-block-table th { word-break: break-word; } -.block-editor-block-list__block[data-type="core/table"][data-align="center"] { +.wp-block[data-align="center"] > .wp-block-table { text-align: initial; } - .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { + .wp-block[data-align="center"] > .wp-block-table table { margin: 0 auto; } .wp-block-table { @@ -1405,19 +1345,27 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { font-size: 13px; text-align: center; } -.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input { +.blocks-table__placeholder-form.blocks-table__placeholder-form { + display: flex; + flex-direction: column; + align-items: flex-start; } + .blocks-table__placeholder-form.blocks-table__placeholder-form > * { + margin-bottom: 8px; } + @media (min-width: 782px) { + .blocks-table__placeholder-form.blocks-table__placeholder-form { + flex-direction: row; + align-items: flex-end; } + .blocks-table__placeholder-form.blocks-table__placeholder-form > * { + margin-bottom: 0; } } + +.blocks-table__placeholder-input { width: 112px; margin-right: 8px; margin-bottom: 0; } - .wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input input { + .blocks-table__placeholder-input input { height: 36px; } - -.wp-block-table__placeholder-form.wp-block-table__placeholder-form .components-base-control__field { - margin-bottom: 0; } - -.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-button { - margin-top: auto; - margin-right: auto; } + .blocks-table__placeholder-input .components-base-control__field { + margin-bottom: 0; } .block-editor .wp-block-tag-cloud a { display: inline-block; @@ -1429,26 +1377,76 @@ body.admin-color-light .blocks-gallery-item figure.is-selected { color: #8f98a1; text-decoration: none; } -.wp-block-template-part__placeholder-input-container { +.wp-block-template-part__placeholder-tabs { display: flex; - flex-wrap: wrap; - width: 100%; } + flex-grow: 1; + flex-direction: column; } + .wp-block-template-part__placeholder-tabs .components-tab-panel__tabs { + border-bottom: 1px solid #e2e4e7; } + .wp-block-template-part__placeholder-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item { + flex-grow: 1; + margin-bottom: -1px; } + .wp-block-template-part__placeholder-tabs .components-tab-panel__tab-content { + margin-top: 16px; + display: flex; + flex-grow: 1; + flex-direction: column; + position: relative; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container { + display: flex; + flex-wrap: wrap; + width: 100%; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container .wp-block-template-part__placeholder-input { + margin: 5px; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-help-phrase { + padding: 0 12px 12px; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-create-button { + align-self: flex-start; } + .wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-preview-filter-input { + width: inherit; } -.wp-block-template-part__placeholder-input { - margin: 5px; } - -.wp-block-template-part__placeholder-preview { - margin-bottom: 15px; - width: 100%; } - .wp-block-template-part__placeholder-preview .block-editor-block-preview__container { - padding: 1px; } - .wp-block-template-part__placeholder-preview .block-editor-block-preview__content { - position: initial; } - -.wp-block-template-part__placeholder-preview-title { - font-size: 15px; - font-weight: 600; - margin-bottom: 4px; } +.wp-block-template-part__placeholder-preview-container { + width: inherit; + max-height: 600px; + overflow-y: scroll; + background: #fff; + border-radius: 2px; + border: 1px solid #e2e4e7; + top: 16px; + left: calc(100% + 16px); } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item { + border-radius: 2px; + cursor: pointer; + margin-top: 16px; + transition: all 0.05s ease-in-out; + position: relative; + border: 1px solid transparent; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover { + border: 1px solid #007cba; + border: 1px solid var(--wp-admin-theme-color); } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:focus { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder { + min-height: 100px; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title { + padding: 4px; + font-size: 12px; + text-align: center; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header { + display: inline-flex; + align-items: center; + padding: 16px 16px 0; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content { + padding: 0 16px; } + .wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title { + color: #007cba; + color: var(--wp-admin-theme-color); + text-transform: uppercase; + font-size: 11px; + font-weight: 500; + margin-right: 8px; } .wp-block-text-columns .block-editor-rich-text__editable:focus { outline: 1px solid #e2e4e7; } @@ -1461,50 +1459,44 @@ pre.wp-block-verse { padding: 1em; overflow: auto; } -.block-editor-block-list__block[data-align="center"] { +.wp-block[data-align="center"] > .wp-block-video { text-align: center; } +.editor-video-poster-control .components-base-control__label { + display: block; } + .editor-video-poster-control .components-button { - display: block; margin-right: 8px; } -.editor-video-poster-control .components-button + .components-button { - margin-top: 1em; } +.wp-block[data-type="core/widget-area"] { + max-width: 700px; } + +.wp-block-widget-area > .components-panel__body > .block-editor-inner-blocks { + padding-top: 24px; } /** * Import styles from internal editor components used by the blocks. */ .block-editor-block-list__layout .reusable-block-edit-panel { align-items: center; - background: #f8f9f9; - color: #555d66; display: flex; flex-wrap: wrap; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - position: relative; - top: -14px; - margin: 0 -14px; - padding: 8px 14px; - z-index: 61; - border: 1px dashed rgba(145, 151, 162, 0.25); - border-bottom: none; } - .block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel { - margin: 0 -14px; - padding: 8px 14px; } - .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner { - margin: 0 5px; } + padding: 6px 12px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 0 0 1px #1e1e1e; + outline: 1px solid transparent; } .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info { margin-right: auto; } .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label { margin-right: 8px; white-space: nowrap; - font-weight: 600; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; } .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { - flex: 1 1 100%; - font-size: 14px; - height: 30px; - margin: 4px 0 8px; } + flex: 1 1 100%; } .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { flex-shrink: 0; } @media (min-width: 960px) { @@ -1513,21 +1505,54 @@ pre.wp-block-verse { .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { margin: 0; } .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { - margin: 0 0 0 5px; } } + margin: 0 0 0 8px; } } -.block-editor-block-list__layout .is-selected .reusable-block-edit-panel { - border-color: rgba(66, 88, 99, 0.4); - border-left-color: transparent; } - .is-dark-theme .block-editor-block-list__layout .is-selected .reusable-block-edit-panel { - border-color: rgba(255, 255, 255, 0.45); - border-left-color: transparent; } +.reusable-block-edit-panel__title[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .reusable-block-edit-panel__title[type="text"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .reusable-block-edit-panel__title[type="text"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .reusable-block-edit-panel__title[type="text"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .reusable-block-edit-panel__title[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .reusable-block-edit-panel__title[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .reusable-block-edit-panel__title[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .reusable-block-edit-panel__title[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .reusable-block-edit-panel__title[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .reusable-block-edit-panel__title[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .is-navigate-mode .is-selected .reusable-block-edit-panel { - border-color: #007cba; - border-left-color: transparent; } + box-shadow: 0 0 0 1px #007cba; + box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } .is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel { - border-color: #007cba; - border-left-color: transparent; } + box-shadow: 0 0 0 1px #007cba; + box-shadow: 0 0 0 1px var(--wp-admin-theme-color); } /** * Editor Normalization Styles @@ -1535,6 +1560,9 @@ pre.wp-block-verse { * These are only output in the editor, but styles here are NOT prefixed .editor-styles-wrapper. * This allows us to create normalization styles that are easily overridden by editor styles. */ -.editor-styles-wrapper .block-editor-block-list__block { +.block-editor-block-list__block { margin-top: 28px; margin-bottom: 28px; } + +#end-resizable-editor-section { + display: none; } diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css index cfd90a46ae..880827edb1 100644 --- a/wp-includes/css/dist/block-library/editor.min.css +++ b/wp-includes/css/dist/block-library/editor.min.css @@ -1,2 +1,2 @@ -.block-editor ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.block-editor-block-list__block[data-type="core/button"][data-align=center]{text-align:center;margin-left:auto;margin-right:auto}.block-editor-block-list__block[data-type="core/button"][data-align=right]{ - /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative}.wp-block-button [contenteditable]{cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button .block-editor-rich-text__editable:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.wp-block-button [data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#555d66;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link,.is-typing .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"]{display:inline-block;width:auto}.wp-block-buttons[data-align=center] .block-editor-block-list__layout{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block-buttons[data-align=right] .block-editor-block-list__layout{display:flex;justify-content:flex-end}.wp-block-buttons .block-list-appender{display:inline-block;margin:0}.wp-block-buttons .block-editor-block-list__layout>div:last-child{display:inline-block}.wp-block-buttons .block-editor-button-block-appender{background:none;outline:none}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;font-size:16px}@media (min-width:600px){.wp-block-code .block-editor-plain-text{font-size:13px}}.wp-block-code .block-editor-plain-text:focus{box-shadow:none}.wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block{max-width:none}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="core/column"]{margin-left:0}.wp-block-columns{display:block}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-wrap:nowrap}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"],.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"] .block-core-columns{display:flex;flex-direction:column;flex:1 1 auto}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"],.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"] .block-core-columns{flex:1}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{padding-left:0;padding-right:0;margin:0 -14px;min-width:0;word-break:break-word;overflow-wrap:break-word;flex-basis:100%}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{flex-basis:calc(50% - 16px);flex-grow:0;margin-left:0;margin-right:0}}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{flex-basis:0;flex-grow:1}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"][data-has-explicit-width]{flex-grow:0}}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:nth-child(2n){margin-left:32px}}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:not(:first-child){margin-left:32px}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:before{left:0;right:0}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-core-columns>.block-editor-inner-blocks{margin-top:-28px;margin-bottom:-28px}[data-type="core/columns"] .block-list-appender{margin-top:28px;margin-bottom:28px}.are-vertically-aligned-top .block-core-columns,div.block-core-columns.is-vertically-aligned-top{justify-content:flex-start}.are-vertically-aligned-center .block-core-columns,div.block-core-columns.is-vertically-aligned-center{justify-content:center}.are-vertically-aligned-bottom .block-core-columns,div.block-core-columns.is-vertically-aligned-bottom{justify-content:flex-end}[data-type="core/column"]>.editor-block-list__breadcrumb{left:-3px}.block-core-columns>.block-editor-inner-blocks.has-overlay:after{left:0;right:0}[data-type="core/columns"][data-align=full] .wp-block-columns{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-type="core/columns"][data-align=full] .wp-block-columns{padding-left:46px;padding-right:46px}}.wp-block-cover-image.components-placeholder h2,.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover-image .block-editor-block-list__layout,.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover-image .block-editor-block-list__block,.wp-block-cover .block-editor-block-list__block{color:#f8f9f9}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{text-align:left}.wp-block-cover-image .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout,.wp-block-cover .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}.wp-block-cover-image .wp-block-cover__placeholder-background-options,.wp-block-cover .wp-block-cover__placeholder-background-options{margin-top:1em;width:100%}[data-align=left] .wp-block-cover,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover,[data-align=right] .wp-block-cover-image{max-width:290px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-left:0;margin-right:0;clear:both}@media (min-width:600px){.wp-block-embed{min-width:360px}.wp-block-embed.components-placeholder{min-width:0}}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #e8eaeb;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #e8eaeb;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #e2e4e7;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#b5bcc2 #b5bcc2 #b5bcc2 transparent}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#23282d}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;margin:0 -14px;position:-webkit-sticky;position:sticky;z-index:10;top:14px;transform:translateY(-14px);border:1px solid #e2e4e7;border-bottom:none;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#b5bcc2}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.is-selected .wp-block-gallery{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus{outline:none}.blocks-gallery-item figure.is-selected{outline:4px solid #0085ba}body.admin-color-sunrise .blocks-gallery-item figure.is-selected{outline:4px solid #d1864a}body.admin-color-ocean .blocks-gallery-item figure.is-selected{outline:4px solid #a3b9a2}body.admin-color-midnight .blocks-gallery-item figure.is-selected{outline:4px solid #e14d43}body.admin-color-ectoplasm .blocks-gallery-item figure.is-selected{outline:4px solid #a7b656}body.admin-color-coffee .blocks-gallery-item figure.is-selected{outline:4px solid #c2a68c}body.admin-color-blue .blocks-gallery-item figure.is-selected{outline:4px solid #82b4cb}body.admin-color-light .blocks-gallery-item figure.is-selected{outline:4px solid #0085ba}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{background:#fff;border:1px solid rgba(66,88,99,.4);border-radius:4px;transition:box-shadow .2s ease-out}@media (prefers-reduced-motion:reduce){.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{transition-duration:0s}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu:hover,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu:hover{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{color:rgba(14,28,46,.62);padding:2px;height:24px}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}@media (min-width:600px){.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{padding:0;width:inherit;height:inherit}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:focus,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:focus{color:inherit}.block-library-gallery-item__inline-menu,.block-library-gallery-item__move-menu{margin:8px;display:inline-flex;z-index:20}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__move-menu .components-button{color:transparent}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-7 .block-library-gallery-item__move-menu,.columns-8 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__move-menu{padding:2px}}.block-library-gallery-item__inline-menu{position:absolute;top:-2px;right:-2px}.block-library-gallery-item__move-menu{position:absolute;top:-2px;left:-2px}.blocks-gallery-item__move-backward,.blocks-gallery-item__move-forward,.blocks-gallery-item__remove{padding:0}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block[data-type="core/group"] .block-editor-block-list__insertion-point{left:0;right:0}.wp-block[data-type="core/group"]>div>.wp-block-group.has-background>.wp-block-group__inner-container>.block-editor-inner-blocks{margin-top:-32px;margin-bottom:-32px}.wp-block[data-type="core/group"]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{margin-left:auto;margin-right:auto;padding-left:28px;padding-right:28px}@media (min-width:600px){.wp-block[data-type="core/group"]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{padding-left:58px;padding-right:58px}}.wp-block[data-type="core/group"]>div>.wp-block-group.has-background>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{margin-left:-30px;width:calc(100% + 60px)}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks{margin-left:auto;margin-right:auto;padding-left:0;padding-right:0}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{padding-right:0;padding-left:0;left:0;width:100%;max-width:none}.wp-block[data-type="core/group"][data-align=full]>div>.wp-block-group.has-background>.wp-block-group__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.wp-block-html{margin-bottom:28px}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}.wp-block-image{position:relative;margin-left:0;margin-right:0}.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.wp-block-image.is-focused .components-resizable-box__handle{display:block;z-index:1}.block-editor-block-list__block[data-type="core/image"][data-align=center] .wp-block-image{margin-left:auto;margin-right:auto}.block-editor-block-list__block[data-type="core/image"][data-align=center][data-resized=false] .wp-block-image>div{margin-left:auto;margin-right:auto}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-type="core/image"][data-align=center] figure,[data-type="core/image"][data-align=left] figure,[data-type="core/image"][data-align=right] figure{margin:0}[data-type="core/image"][data-align=full] figure img,[data-type="core/image"][data-align=wide] figure img{width:100%}[data-type="core/image"] figure.is-resized{margin:0}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__preview{padding-left:2.5em;padding-right:2.5em}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block;box-shadow:none}.wp-block-legacy-widget__update-button{margin-left:auto;display:block}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-legacy-widget__edit-widget-title{margin:-14px -13px 0;background:#f8f9f9;color:#555d66;top:-13px;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 14px;font-weight:600}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-vertically-aligned-top .block-editor-inner-blocks,.wp-block-media-text.is-vertically-aligned-top .editor-media-container__resizer{-ms-grid-row-align:start;align-self:start}.wp-block-media-text .block-editor-inner-blocks,.wp-block-media-text .editor-media-container__resizer,.wp-block-media-text.is-vertically-aligned-center .block-editor-inner-blocks,.wp-block-media-text.is-vertically-aligned-center .editor-media-container__resizer{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .block-editor-inner-blocks,.wp-block-media-text.is-vertically-aligned-bottom .editor-media-container__resizer{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .editor-media-container__resizer{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text .block-editor-inner-blocks,.wp-block-media-text.has-media-on-the-right .editor-media-container__resizer{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text .block-editor-inner-blocks{word-break:break-word;text-align:initial;padding:0 8%}.wp-block-media-text.has-media-on-the-right .block-editor-inner-blocks{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.editor-media-container__resizer .components-resizable-box__handle{display:none}.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle{display:block}@media (min-width:600px){.wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle{display:block}}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile .block-editor-inner-blocks{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-stacked-on-mobile .editor-media-container__resizer,.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .block-editor-inner-blocks{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .editor-media-container__resizer{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks{flex:1}[data-type="core/navigation"] .wp-block-navigation .block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}[data-type="core/navigation"] .wp-block-navigation.items-justification-left .block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:flex-start}[data-type="core/navigation"] .wp-block-navigation.items-justification-center .block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:center}[data-type="core/navigation"] .wp-block-navigation.items-justification-right .block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:flex-end}[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__block:before{left:0;right:0}[data-type="core/navigation"].has-child-selected .wp-block-navigation .block-editor-block-list__block:before,[data-type="core/navigation"].is-selected .wp-block-navigation .block-editor-block-list__block:before{border-color:transparent!important}[data-type="core/navigation"] .wp-block-navigation .block-editor-block-list__insertion-point{display:none}[data-type="core/navigation"] .wp-block-navigation .block-list-appender{width:28px;height:28px}[data-type="core/navigation"] .wp-block-navigation .block-list-appender .block-editor-button-block-appender{padding:4px 8px;outline:none;background:none}[data-type="core/navigation"] .wp-block-navigation .wp-block-navigation-link.is-selected .block-editor-rich-text__editable:focus{min-width:20px}.wp-block-navigation__inserter-content{padding:16px}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__icon-container:after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;margin-left:4px;margin-right:2px}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link.has-link .wp-block-navigation-link__label{text-decoration:underline}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 16px 16px 10px}[data-type="core/navigation-link"] .block-editor-block-toolbar{left:14px}[data-type="core/navigation-link"] .block-editor-block-toolbar .components-toolbar.block-editor-block-mover .components-button.block-editor-block-mover__control-drag-handle{display:none}.wp-block-navigation-link__nofollow-external-link{display:block}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #e2e4e7}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-left:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.block-editor-block-list__block[data-type="core/paragraph"] .has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-type="core/pullquote"][data-align=left] p,.block-editor-block-list__block[data-type="core/pullquote"][data-align=right] p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-left:0;margin-right:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-rss li a>div{display:inline}.wp-block-search__input{border-radius:4px;border:1px solid #7e8993;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px}.wp-block-search__input:focus{outline:none}.wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;padding:6px 10px}.wp-block-search__button,.wp-block-shortcode{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;background-color:rgba(139,139,150,.1);margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{width:80%;max-height:250px}.wp-block-shortcode .dashicon{margin-right:8px}.wp-social-link{padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link{padding-left:16px;padding-right:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-block-social-links .block-editor-block-list__layout{display:flex;justify-content:flex-start}[data-type="core/social-links"] .wp-block-social-links>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}[data-type="core/social-links"] .wp-block-social-links>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{width:auto;padding-left:0;padding-right:0;margin:0}[data-type="core/social-links"] .wp-block-social-links>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block:before{border-right:none;border-top:none;border-bottom:none}[data-type="core/social-links"].has-child-selected .wp-block-social-links .block-editor-block-list__block:before,[data-type="core/social-links"].is-selected .wp-block-social-links .block-editor-block-list__block:before{border-color:transparent!important}[data-type="core/social-links"] .wp-block-social-links .block-editor-block-list__insertion-point{display:none}.wp-block-social-links .block-list-appender{margin:0}.wp-block-social-links .block-list-appender .block-editor-button-block-appender{padding:8px;outline:none;background:none}[data-type="core/social-links"][data-align=center] .wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}.block-editor-block-preview__content [data-type="core/social-links"]{width:auto!important;display:inline-block}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-right:0}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;outline:2px solid transparent}.block-library-spacer__resize-container.is-selected{background:#f3f4f5}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.block-editor-block-list__block[data-type="core/table"][data-align=center],.block-editor-block-list__block[data-type="core/table"][data-align=left],.block-editor-block-list__block[data-type="core/table"][data-align=right]{height:auto}.block-editor-block-list__block[data-type="core/table"][data-align=center] table,.block-editor-block-list__block[data-type="core/table"][data-align=left] table,.block-editor-block-list__block[data-type="core/table"][data-align=right] table{width:auto}.block-editor-block-list__block[data-type="core/table"][data-align=center] td,.block-editor-block-list__block[data-type="core/table"][data-align=center] th,.block-editor-block-list__block[data-type="core/table"][data-align=left] td,.block-editor-block-list__block[data-type="core/table"][data-align=left] th,.block-editor-block-list__block[data-type="core/table"][data-align=right] td,.block-editor-block-list__block[data-type="core/table"][data-align=right] th{word-break:break-word}.block-editor-block-list__block[data-type="core/table"][data-align=center]{text-align:initial}.block-editor-block-list__block[data-type="core/table"][data-align=center] table{margin:0 auto}.wp-block-table{margin:0}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-input input{height:36px}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .components-base-control__field{margin-bottom:0}.wp-block-table__placeholder-form.wp-block-table__placeholder-form .wp-block-table__placeholder-button{margin-top:auto;margin-right:auto}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#8f98a1;text-decoration:none}.wp-block-template-part__placeholder-input-container{display:flex;flex-wrap:wrap;width:100%}.wp-block-template-part__placeholder-input{margin:5px}.wp-block-template-part__placeholder-preview{margin-bottom:15px;width:100%}.wp-block-template-part__placeholder-preview .block-editor-block-preview__container{padding:1px}.wp-block-template-part__placeholder-preview .block-editor-block-preview__content{position:static}.wp-block-template-part__placeholder-preview-title{font-size:15px;font-weight:600;margin-bottom:4px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #e2e4e7}pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.block-editor-block-list__block[data-align=center]{text-align:center}.editor-video-poster-control .components-button{display:block;margin-right:8px}.editor-video-poster-control .components-button+.components-button{margin-top:1em}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative;top:-14px;margin:0 -14px;padding:8px 14px;z-index:61;border:1px dashed rgba(145,151,162,.25);border-bottom:none}.block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel{margin:0 -14px;padding:8px 14px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner{margin:0 5px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-weight:600}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:4px 0 8px}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 5px}}.block-editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:rgba(66,88,99,.4) rgba(66,88,99,.4) rgba(66,88,99,.4) transparent}.is-dark-theme .block-editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:hsla(0,0%,100%,.45) hsla(0,0%,100%,.45) hsla(0,0%,100%,.45) transparent}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{border-color:#007cba #007cba #007cba transparent}.editor-styles-wrapper .block-editor-block-list__block{margin-top:28px;margin-bottom:28px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-left:0;padding-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-left:auto;margin-right:auto}.wp-block[data-align=right]>.wp-block-button{ + /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#555d66;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons .wp-block.block-editor-block-list__block[data-type="core/button"]{display:inline-block;width:auto}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons .block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #e8eaeb;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #e8eaeb;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #e2e4e7;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#23282d}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:10;top:8px;border:1px solid #e2e4e7;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{background:#fff;border:1px solid #1e1e1e;border-radius:2px;transition:box-shadow .2s ease-out}@media (prefers-reduced-motion:reduce){.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu{transition-duration:0s}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu:hover,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{color:#1e1e1e;min-width:24px;height:24px}@media (min-width:600px){.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-7 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button,.columns-8 .blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button{padding:0;width:inherit;height:inherit}}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu .components-button:focus,.blocks-gallery-item .is-selected .block-library-gallery-item__move-menu .components-button:focus{color:inherit}.block-library-gallery-item__inline-menu,.block-library-gallery-item__move-menu{margin:8px;display:inline-flex;z-index:20}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__move-menu .components-button{color:transparent}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-7 .block-library-gallery-item__move-menu,.columns-8 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__move-menu{padding:2px}}.block-library-gallery-item__inline-menu{position:absolute;top:-2px;right:-2px}.block-library-gallery-item__move-menu{position:absolute;top:-2px;left:-2px}.blocks-gallery-item__move-backward.components-button,.blocks-gallery-item__move-forward.components-button,.blocks-gallery-item__remove.components-button{padding:0}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-group{margin-top:0;margin-bottom:0}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-left:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-right:0;padding-left:0;left:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.richimage__crop-area{position:relative;max-width:100%;width:100%}.richimage__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.richimage__crop-icon svg{fill:currentColor}.richimage__zoom-control{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff;margin-top:12px;margin-bottom:12px;padding:12px 12px 8px;line-height:1}.components-toolbar.richimage-toolbar__dropdown{padding:0;border-left:none;border-right:none}.components-toolbar.richimage-toolbar__dropdown .components-icon-button.has-text svg{margin-right:0}.components-toolbar.richimage-toolbar__dropdown .components-dropdown-menu__indicator{display:none}.richimage-toolbar__control,.richimage-toolbar__dropdown,.richimage-toolbar__dropdown>.components-button{padding:6px}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block;box-shadow:none}.wp-block-legacy-widget__edit-container .widget.open{z-index:0}.wp-block-legacy-widget__update-button{margin-left:auto;display:block}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__edit-widget-title,.wp-block-legacy-widget__preview{padding:8px 14px}.wp-block-legacy-widget__edit-widget-title{background:#f8f9f9;color:#555d66;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 14px;font-weight:600}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container{opacity:1;visibility:visible}.has-child .wp-block-navigation__container .block-list-appender .block-editor-button-block-appender{margin-left:16px}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle{color:#fff}.wp-block-navigation.is-style-dark .block-editor-button-block-appender.block-list-appender__toggle>svg{color:#000;background-color:#fff}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 16px 16px 10px}.wp-block-navigation-link__nofollow-external-link{display:block}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #e2e4e7}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-left:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-left:0;margin-right:0}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block-search__input{border-radius:4px;border:1px solid #7e8993;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px}.wp-block-search__input:focus{outline:none}.wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;background-color:rgba(139,139,150,.1);font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-right:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:16px;padding-right:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 8px 0 0}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links .block-list-appender{margin:0;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}[data-type="core/social-links"] .wp-social-link__is-incomplete{transition:transform .1s ease;transform-origin:center center}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-social-link__is-incomplete{opacity:0;transform:scale(0);width:0;padding:0;margin-right:0}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{right:8px}.block-library-spacer__resize-container.has-show-handle{background:#f3f4f5}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table{margin:0}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table figcaption{color:#555d66;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#8f98a1;text-decoration:none}.wp-block-template-part__placeholder-tabs{display:flex;flex-grow:1;flex-direction:column}.wp-block-template-part__placeholder-tabs .components-tab-panel__tabs{border-bottom:1px solid #e2e4e7}.wp-block-template-part__placeholder-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.wp-block-template-part__placeholder-tabs .components-tab-panel__tab-content{margin-top:16px;display:flex;flex-grow:1;flex-direction:column;position:relative}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container{display:flex;flex-wrap:wrap;width:100%}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-input-container .wp-block-template-part__placeholder-input{margin:5px}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-help-phrase{padding:0 12px 12px}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-create-button{align-self:flex-start}.wp-block-template-part__placeholder-tabs .wp-block-template-part__placeholder-preview-filter-input{width:inherit}.wp-block-template-part__placeholder-preview-container{width:inherit;max-height:600px;overflow-y:scroll;background:#fff;border-radius:2px;border:1px solid #e2e4e7;top:16px;left:calc(100% + 16px)}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-preview-item-title{padding:4px;font-size:12px;text-align:center}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-header{display:inline-flex;align-items:center;padding:16px 16px 0}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-content{padding:0 16px}.wp-block-template-part__placeholder-preview-container .wp-block-template-part__placeholder-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500;margin-right:8px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #e2e4e7}pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.wp-block[data-type="core/widget-area"]{max-width:700px}.wp-block-widget-area>.components-panel__body>.block-editor-inner-blocks{padding-top:24px}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 8px}}.reusable-block-edit-panel__title[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style-rtl.css b/wp-includes/css/dist/block-library/style-rtl.css index b8d7bbbc89..9d85b6cfe8 100644 --- a/wp-includes/css/dist/block-library/style-rtl.css +++ b/wp-includes/css/dist/block-library/style-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,14 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + .wp-block-audio figcaption { margin-top: 0.5em; margin-bottom: 1em; } @@ -50,53 +73,52 @@ width: 100%; min-width: 300px; } -.wp-block-button { - color: #fff; } - .wp-block-button.aligncenter { - text-align: center; } - .wp-block-button.alignright { - text-align: right; } - .wp-block-button__link { + color: #fff; background-color: #32373c; border: none; border-radius: 28px; box-shadow: none; - color: inherit; cursor: pointer; display: inline-block; font-size: 18px; - margin: 0; padding: 12px 24px; text-align: center; text-decoration: none; overflow-wrap: break-word; } .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited { - color: inherit; } + color: #fff; } + .wp-block-button__link.aligncenter { + text-align: center; } + .wp-block-button__link.alignright { + text-align: right; } -.wp-gs .wp-block-button__link:not(.has-background) { - background-color: var(--wp-block-core-button--color--background, var(--wp-color--primary, #32373c)); } - -.is-style-squared .wp-block-button__link { +.wp-block-button.is-style-squared, +.wp-block-button__link.wp-block-button.is-style-squared { border-radius: 0; } -.no-border-radius.wp-block-button__link { +.wp-block-button.no-border-radius, +.wp-block-button__link.no-border-radius { border-radius: 0 !important; } -.is-style-outline { - color: #32373c; } - .is-style-outline .wp-block-button__link { - background-color: transparent; - border: 2px solid; } +.wp-block-button.is-style-outline .wp-block-button__link, +.wp-block-button__link.is-style-outline { + color: #32373c; + background-color: transparent; + border: 2px solid; } .wp-block-buttons .wp-block-button { display: inline-block; margin-left: 8px; margin-bottom: 8px; } + .wp-block-buttons .wp-block-button:last-child { + margin-left: 0; } .wp-block-buttons.alignright .wp-block-button { - margin-left: none; + margin-left: 0; margin-right: 8px; } + .wp-block-buttons.alignright .wp-block-button:first-child { + margin-right: 0; } .wp-block-buttons.aligncenter { text-align: center; } @@ -138,7 +160,7 @@ .wp-block-columns { flex-wrap: nowrap; } } .wp-block-columns.has-background { - padding: 20px 30px; } + padding: 20px 38px; } .wp-block-column { flex-grow: 1; @@ -158,7 +180,7 @@ .wp-block-column { flex-basis: 0; flex-grow: 1; } - .wp-block-column[style] { + .wp-block-column[style*="flex-basis"] { flex-grow: 0; } .wp-block-column:not(:first-child) { margin-right: 32px; } } @@ -194,7 +216,6 @@ .wp-block-cover-image, .wp-block-cover { position: relative; - background-color: #000; background-size: cover; background-position: center center; min-height: 430px; @@ -203,7 +224,7 @@ display: flex; justify-content: center; align-items: center; - overflow: hidden; } + padding: 16px; } .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: fixed; } @@ -215,10 +236,13 @@ .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: scroll; } } - .wp-block-cover-image.has-background-dim::before, - .wp-block-cover.has-background-dim::before { - content: ""; - background-color: inherit; } + .wp-block-cover-image.has-background-dim, + .wp-block-cover.has-background-dim { + background-color: #000; } + .wp-block-cover-image.has-background-dim::before, + .wp-block-cover.has-background-dim::before { + content: ""; + background-color: inherit; } .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, @@ -336,6 +360,46 @@ .wp-block-cover h6:not(.has-text-color), .wp-block-cover .wp-block-subhead:not(.has-text-color) { color: inherit; } + .wp-block-cover-image.is-position-top-left, + .wp-block-cover.is-position-top-left { + align-items: flex-start; + justify-content: flex-start; } + .wp-block-cover-image.is-position-top-center, + .wp-block-cover.is-position-top-center { + align-items: flex-start; + justify-content: center; } + .wp-block-cover-image.is-position-top-right, + .wp-block-cover.is-position-top-right { + align-items: flex-start; + justify-content: flex-end; } + .wp-block-cover-image.is-position-center-left, + .wp-block-cover.is-position-center-left { + align-items: center; + justify-content: flex-start; } + .wp-block-cover-image.is-position-center-center, + .wp-block-cover.is-position-center-center { + align-items: center; + justify-content: center; } + .wp-block-cover-image.is-position-center-right, + .wp-block-cover.is-position-center-right { + align-items: center; + justify-content: flex-end; } + .wp-block-cover-image.is-position-bottom-left, + .wp-block-cover.is-position-bottom-left { + align-items: flex-end; + justify-content: flex-start; } + .wp-block-cover-image.is-position-bottom-center, + .wp-block-cover.is-position-bottom-center { + align-items: flex-end; + justify-content: center; } + .wp-block-cover-image.is-position-bottom-right, + .wp-block-cover.is-position-bottom-right { + align-items: flex-end; + justify-content: flex-end; } + .wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container, + .wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container { + margin: 0; + width: auto; } .wp-block-cover__video-background { position: absolute; @@ -396,71 +460,62 @@ section.wp-block-cover-image > h2, padding: 14px; text-align: center; } -.block-editor-block-list__block[data-type="core/embed"][data-align="left"], -.block-editor-block-list__block[data-type="core/embed"][data-align="right"], +.wp-block[data-align="left"] > [data-type^="core-embed"], +.wp-block[data-align="right"] > [data-type^="core-embed"], .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; width: 100%; } + .wp-block[data-align="left"] > [data-type^="core-embed"] .wp-block-embed__wrapper, + .wp-block[data-align="right"] > [data-type^="core-embed"] .wp-block-embed__wrapper, + .wp-block-embed.alignleft .wp-block-embed__wrapper, + .wp-block-embed.alignright .wp-block-embed__wrapper { + min-width: 280px; } .wp-block-embed { margin-bottom: 1em; } .wp-block-embed figcaption { margin-top: 0.5em; margin-bottom: 1em; } + .wp-block-embed iframe { + max-width: 100%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper { +.wp-block-embed__wrapper { position: relative; } - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { - content: ""; - display: block; - padding-top: 50%; } - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe { - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - width: 100%; - height: 100%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { - padding-top: 42.85%; } - -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before { + content: ""; + display: block; padding-top: 50%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-has-aspect-ratio iframe { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + height: 100%; + width: 100%; } + +.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { + padding-top: 42.85%; } + +.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { + padding-top: 50%; } + +.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { padding-top: 56.25%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { - padding-top: 177.78%; } +.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { + padding-top: 66.66%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { padding-top: 200%; } .wp-block-file { @@ -578,7 +633,7 @@ section.wp-block-cover-image > h2, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { - width: calc((100% - 16px) / 2); } + width: calc(50% - 16px); } .wp-block-gallery .blocks-gallery-image:nth-of-type(even), .wp-block-gallery .blocks-gallery-item:nth-of-type(even), .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), @@ -595,74 +650,38 @@ section.wp-block-cover-image > h2, .wp-block-gallery.columns-3 .blocks-gallery-item, .blocks-gallery-grid.columns-3 .blocks-gallery-image, .blocks-gallery-grid.columns-3 .blocks-gallery-item { - width: calc((100% - 16px * 2) / 3); + width: calc(33.33333% - 10.66667px); margin-left: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-3 .blocks-gallery-image, - .wp-block-gallery.columns-3 .blocks-gallery-item, - .blocks-gallery-grid.columns-3 .blocks-gallery-image, - .blocks-gallery-grid.columns-3 .blocks-gallery-item { - width: calc((100% - 16px * 2) / 3 - 1px); } } .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item, .blocks-gallery-grid.columns-4 .blocks-gallery-image, .blocks-gallery-grid.columns-4 .blocks-gallery-item { - width: calc((100% - 16px * 3) / 4); + width: calc(25% - 12px); margin-left: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-4 .blocks-gallery-image, - .wp-block-gallery.columns-4 .blocks-gallery-item, - .blocks-gallery-grid.columns-4 .blocks-gallery-image, - .blocks-gallery-grid.columns-4 .blocks-gallery-item { - width: calc((100% - 16px * 3) / 4 - 1px); } } .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item, .blocks-gallery-grid.columns-5 .blocks-gallery-image, .blocks-gallery-grid.columns-5 .blocks-gallery-item { - width: calc((100% - 16px * 4) / 5); + width: calc(20% - 12.8px); margin-left: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-5 .blocks-gallery-image, - .wp-block-gallery.columns-5 .blocks-gallery-item, - .blocks-gallery-grid.columns-5 .blocks-gallery-image, - .blocks-gallery-grid.columns-5 .blocks-gallery-item { - width: calc((100% - 16px * 4) / 5 - 1px); } } .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item, .blocks-gallery-grid.columns-6 .blocks-gallery-image, .blocks-gallery-grid.columns-6 .blocks-gallery-item { - width: calc((100% - 16px * 5) / 6); + width: calc(16.66667% - 13.33333px); margin-left: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-6 .blocks-gallery-image, - .wp-block-gallery.columns-6 .blocks-gallery-item, - .blocks-gallery-grid.columns-6 .blocks-gallery-image, - .blocks-gallery-grid.columns-6 .blocks-gallery-item { - width: calc((100% - 16px * 5) / 6 - 1px); } } .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item, .blocks-gallery-grid.columns-7 .blocks-gallery-image, .blocks-gallery-grid.columns-7 .blocks-gallery-item { - width: calc((100% - 16px * 6) / 7); + width: calc(14.28571% - 13.71429px); margin-left: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-7 .blocks-gallery-image, - .wp-block-gallery.columns-7 .blocks-gallery-item, - .blocks-gallery-grid.columns-7 .blocks-gallery-image, - .blocks-gallery-grid.columns-7 .blocks-gallery-item { - width: calc((100% - 16px * 6) / 7 - 1px); } } .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item, .blocks-gallery-grid.columns-8 .blocks-gallery-image, .blocks-gallery-grid.columns-8 .blocks-gallery-item { - width: calc((100% - 16px * 7) / 8); + width: calc(12.5% - 14px); margin-left: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-8 .blocks-gallery-image, - .wp-block-gallery.columns-8 .blocks-gallery-item, - .blocks-gallery-grid.columns-8 .blocks-gallery-image, - .blocks-gallery-grid.columns-8 .blocks-gallery-item { - width: calc((100% - 16px * 7) / 8 - 1px); } } .wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n), .blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n), @@ -717,6 +736,14 @@ section.wp-block-cover-image > h2, .blocks-gallery-grid.aligncenter .blocks-gallery-item figure { justify-content: center; } +h1.has-background, +h2.has-background, +h3.has-background, +h4.has-background, +h5.has-background, +h6.has-background { + padding: 20px 38px; } + .wp-block-image { margin-bottom: 1em; } .wp-block-image img { @@ -729,9 +756,7 @@ section.wp-block-cover-image > h2, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image .aligncenter, .wp-block-image.is-resized { - display: table; - margin-right: 0; - margin-left: 0; } + display: table; } .wp-block-image .alignleft > figcaption, .wp-block-image .alignright > figcaption, .wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption { @@ -739,10 +764,16 @@ section.wp-block-cover-image > h2, caption-side: bottom; } .wp-block-image .alignleft { float: left; - margin-right: 1em; } + margin-left: 0; + margin-left: 1em; + margin-top: 0.5em; + margin-bottom: 0.5em; } .wp-block-image .alignright { float: right; - margin-left: 1em; } + margin-right: 0; + margin-right: 1em; + margin-top: 0.5em; + margin-bottom: 0.5em; } .wp-block-image .aligncenter { margin-right: auto; margin-left: auto; } @@ -820,22 +851,23 @@ section.wp-block-cover-image > h2, flex-wrap: wrap; padding: 0; } .wp-block-latest-posts.is-grid li { - margin: 0 0 16px 16px; + margin: 0 0 20px 20px; width: 100%; } @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { - width: calc((100% / 2) - 16px); } + width: calc((100% / 2) - 20px); } .wp-block-latest-posts.columns-3 li { - width: calc((100% / 3) - 16px); } + width: calc((100% / 3) - 20px); } .wp-block-latest-posts.columns-4 li { - width: calc((100% / 4) - 16px); } + width: calc((100% / 4) - 20px); } .wp-block-latest-posts.columns-5 li { - width: calc((100% / 5) - 16px); } + width: calc((100% / 5) - 20px); } .wp-block-latest-posts.columns-6 li { - width: calc((100% / 6) - 16px); } } + width: calc((100% / 6) - 20px); } } -.wp-block-latest-posts__post-date { +.wp-block-latest-posts__post-date, +.wp-block-latest-posts__post-author { display: block; color: #6c7781; font-size: 13px; } @@ -858,6 +890,9 @@ section.wp-block-cover-image > h2, margin-bottom: 1em; text-align: center; } +.edit-post-visual-editor .wp-block-latest-posts.is-grid li { + margin-bottom: 20px; } + .wp-block-media-text { direction: ltr; display: -ms-grid; @@ -915,8 +950,8 @@ section.wp-block-cover-image > h2, -ms-grid-row: 1; grid-row: 1; } -.wp-block-media-text > figure > img, -.wp-block-media-text > figure > video { +.wp-block-media-text__media img, +.wp-block-media-text__media video { max-width: unset; width: 100%; vertical-align: middle; } @@ -968,183 +1003,163 @@ section.wp-block-cover-image > h2, -ms-grid-row: 1; grid-row: 1; } } -/* -* Frontend: reset the default list styles -*/ -.wp-block-navigation > ul { - display: block; +.wp-block-navigation__container { list-style: none; margin: 0; - padding-right: 0; } - @media (min-width: 600px) { - .wp-block-navigation > ul { - display: flex; - flex-wrap: wrap; } } - .wp-block-navigation > ul ul { - list-style: none; - padding-right: 0; - margin-top: 0; - margin-right: 0; } - .wp-block-navigation > ul ul li { - margin: 0; } + padding-right: 0; + display: flex; + flex-wrap: wrap; } + .is-vertical .wp-block-navigation__container { + display: block; } -/* -* Frontend: styles for submenu flyout -*/ -.wp-block-navigation > ul li { - z-index: 1; } - .wp-block-navigation > ul li:hover, .wp-block-navigation > ul li:focus-within { - cursor: pointer; - z-index: 99999; } - .wp-block-navigation > ul li:hover > ul, - .wp-block-navigation > ul li:focus-within > ul, - .wp-block-navigation > ul li ul:hover, - .wp-block-navigation > ul li ul:focus { +.wp-block-navigation-link { + display: flex; + align-items: center; + position: relative; + margin: 0; + padding: 8px; } + .wp-block-navigation-link .wp-block-navigation__container:empty { + display: none; } + +.has-child .wp-block-navigation__container { + border: 1px solid rgba(0, 0, 0, 0.15); + padding: 6px 0; + background-color: inherit; + color: inherit; + position: absolute; + right: 0; + top: 100%; + width: fit-content; + z-index: 1; + opacity: 0; + transition: opacity 0.1s linear; + visibility: hidden; } + .has-child .wp-block-navigation__container > .wp-block-navigation-link { + font-size: 15px; } + .has-child .wp-block-navigation__container > .wp-block-navigation-link > .wp-block-navigation-link__content { + flex-grow: 1; } + .has-child .wp-block-navigation__container > .wp-block-navigation-link > .wp-block-navigation-link__submenu-icon { + padding-left: 8px; } + @media (min-width: 782px) { + .has-child .wp-block-navigation__container { + right: 24px; } + .has-child .wp-block-navigation__container .wp-block-navigation__container { + right: calc(100% + 8px); + top: -7px; } + .has-child .wp-block-navigation__container .wp-block-navigation__container::before { + content: ""; + position: absolute; + left: 100%; + height: 100%; + display: block; + width: 8px; + background: transparent; } + .has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg { + transform: rotate(0); } } + +.has-child:hover { + cursor: pointer; } + .has-child:hover > .wp-block-navigation__container { visibility: visible; opacity: 1; display: flex; flex-direction: column; } -.wp-block-navigation > ul > li ul { - position: absolute; - right: 0; - top: 100%; - min-width: 200px; - max-width: 200px; - opacity: 0; - transition: opacity 0.1s linear; - visibility: hidden; } - -/* -* Styles shared between editor and frontend -*/ -.wp-block-navigation, -.wp-block-navigation .block-editor-block-list__layout { - display: flex; - flex-wrap: wrap; } - -.wp-block-navigation .block-editor-block-list__layout .block-editor-block-list__layout { - width: 200px; } - -.wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block { - margin: 0; - width: auto; } - -.wp-block-navigation, -.wp-block-navigation > .wp-block-navigation__container { - align-items: center; - width: 100%; } - .wp-block-navigation > .wp-block-navigation-link, - .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-link { +.has-child:focus-within { + cursor: pointer; } + .has-child:focus-within > .wp-block-navigation__container { + visibility: visible; + opacity: 1; display: flex; - margin-top: 0; - margin-bottom: 0; } + flex-direction: column; } -.wp-block-navigation .wp-block-navigation-link { - position: relative; - margin: 0; - min-height: 56px; - display: flex; - line-height: 1.4; } - .wp-block-navigation .wp-block-navigation-link .wp-block, - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link { - min-height: auto; - padding: 0; } - .wp-block-navigation .wp-block-navigation-link .wp-block .wp-block-navigation-link { - margin: 0; } - .wp-block-navigation .wp-block-navigation-link > .block-editor-inner-blocks { - display: none; } - .wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container, - .wp-block-navigation .wp-block-navigation-link.is-editing.has-child > .block-editor-inner-blocks { - display: flex; - border: 1px solid rgba(0, 0, 0, 0.15); - position: absolute; - z-index: 1; - top: 100%; - right: 0; } - .wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container .block-editor-inner-blocks, - .wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container .wp-block-navigation__container, - .wp-block-navigation .wp-block-navigation-link.is-editing.has-child > .block-editor-inner-blocks .block-editor-inner-blocks, - .wp-block-navigation .wp-block-navigation-link.is-editing.has-child > .block-editor-inner-blocks .wp-block-navigation__container { - right: 100%; - top: -1px; } - .wp-block-navigation .wp-block-navigation-link .block-editor-inner-blocks, - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation__container { - background-color: inherit; - color: inherit; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content { - display: flex; - align-items: center; - width: max-content; - padding: 6px 16px; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:first-child:not(:only-child) .wp-block-navigation-link__content { - padding-top: 8px; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:last-child .wp-block-navigation-link__content { - padding-bottom: 8px; } - .wp-block-navigation .wp-block-navigation-link.has-child .wp-block-navigation-link__content { - min-width: 100%; - padding-left: 32px; - position: relative; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon { - position: absolute; - left: 16px; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon svg { - fill: currentColor; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link svg { - transform: rotate(0); } - .wp-block-navigation .wp-block-navigation-link.has-text-color .wp-block-navigation-link__content { +.wp-block-navigation-link__content { + text-decoration: none; + padding: 6px 16px; } + .has-text-color .wp-block-navigation-link__content { color: inherit; } -.wp-block-navigation .wp-block-navigation-link:not(.has-text-color) > .block-editor-inner-blocks, -.wp-block-navigation .wp-block-navigation-link:not(.has-text-color) > .wp-block-navigation__container, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) > .wp-block-navigation__container { +.wp-block-navigation-link__label { + font-size: 17px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + word-break: normal; + overflow-wrap: break-word; } + +.wp-block-navigation-link__submenu-icon { + height: inherit; + padding: 6px 16px; } + .wp-block-navigation-link__submenu-icon svg { + fill: currentColor; } + @media (min-width: 782px) { + .wp-block-navigation-link__submenu-icon svg { + transform: rotate(-90deg); } } + +.wp-block-navigation .wp-block-navigation-link:not(.has-text-color), +.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) { color: #111; } -.wp-block-navigation .wp-block-navigation-link:not(.has-background) > .block-editor-inner-blocks, -.wp-block-navigation .wp-block-navigation-link:not(.has-background) > .wp-block-navigation__container, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background) > .wp-block-navigation__container { +.wp-block-navigation:not(.has-background) .wp-block-navigation__container, +.wp-block-navigation.is-style-light:not(.has-background) .wp-block-navigation__container { background-color: #fff; } -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) > .wp-block-navigation__container { +.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) { color: #fff; } -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background) > .wp-block-navigation__container { +.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container { background-color: #333; } -/* -* Frontend: non-shared styles & overrides -*/ -.wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container { - display: flex; - flex-direction: column; - padding: 0; } - -/* -* TODO: organize/untangle styles below this line -*/ -.wp-block-navigation > ul > li > a { - display: flex; - align-items: center; } - -.wp-block-navigation > ul > li:first-of-type > a { - padding-right: 0; } - -.wp-block-navigation > ul > li:last-of-type > a { - padding-left: 0; } - -.wp-block-navigation.items-justified-left > ul { +.items-justified-left > ul { justify-content: flex-start; } -.wp-block-navigation.items-justified-center > ul { +.items-justified-center > ul { justify-content: center; } -.wp-block-navigation.items-justified-right > ul { +.items-justified-right > ul { justify-content: flex-end; } +.wp-block-navigation-placeholder__actions { + display: flex; + align-items: flex-start; } + .wp-block-navigation-placeholder__actions .components-base-control { + margin-left: 5px; } + .wp-block-navigation-placeholder__actions .components-select-control__input { + margin: 0; + min-height: 36px; } + .wp-block-navigation-placeholder__actions .wp-block-navigation-placeholder__button { + height: 36px; } + +.wp-block-navigation-placeholder .components-spinner { + margin-top: -4px; + margin-right: 4px; + vertical-align: middle; + margin-left: 7px; } + +.wp-block-navigation-placeholder .components-custom-select-control__button { + height: auto; + margin-bottom: 0; + min-width: 220px; } + +.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item { + display: list-item; + padding: 10px 25px; } + .wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option { + position: relative; + margin-top: 20px; } + .wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option::before { + content: ""; + position: absolute; + top: -10px; + right: 25px; + left: 25px; + display: list-item; + height: 15px; + border-top: 1px solid #757575; } + +.wp-block-navigation-placeholder .components-custom-select-control__menu { + margin-top: 3px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; } + .is-small-text { font-size: 14px; } @@ -1167,11 +1182,32 @@ section.wp-block-cover-image > h2, font-style: normal; } p.has-background { - padding: 20px 30px; } + padding: 20px 38px; } p.has-text-color a { color: inherit; } +.wp-block-post-author { + display: flex; + flex-wrap: wrap; + line-height: 1.5; } + .wp-block-post-author__byline { + width: 100%; + margin-top: 0; + margin-bottom: 0; + font-size: 0.5em; } + .wp-block-post-author__avatar { + margin-left: 16px; } + .wp-block-post-author__bio { + margin-bottom: 8px; + font-size: 0.7em; } + .wp-block-post-author__content { + flex-grow: 1; + flex-basis: 0; } + .wp-block-post-author__name { + font-weight: bold; + margin: 0; } + .wp-block-pullquote { padding: 3em 0; margin-right: 0; @@ -1283,7 +1319,7 @@ p.has-text-color a { color: currentColor; font-size: 20px; letter-spacing: 2em; - padding-right: 2em; + padding-left: 2em; font-family: serif; } .wp-block-social-links { @@ -1364,7 +1400,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook { - background-color: #1977f2; + background-color: #1778f2; color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx { @@ -1400,7 +1436,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin { - background-color: #0577b5; + background-color: #0d66c2; color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon { @@ -1453,7 +1489,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter { - background-color: #21a1f3; + background-color: #1da1f2; color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo { @@ -1473,7 +1509,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube { - background-color: #ff0100; + background-color: #f00; color: #fff; } .wp-block-social-links.is-style-logos-only .wp-social-link { @@ -1508,7 +1544,7 @@ p.has-text-color a { color: #f45800; } .wp-block-social-links.is-style-logos-only .wp-social-link-facebook { - color: #1977f2; } + color: #1778f2; } .wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx { color: #000; } @@ -1535,7 +1571,7 @@ p.has-text-color a { color: #e21b24; } .wp-block-social-links.is-style-logos-only .wp-social-link-linkedin { - color: #0577b5; } + color: #0d66c2; } .wp-block-social-links.is-style-logos-only .wp-social-link-mastodon { color: #3288d4; } @@ -1575,7 +1611,7 @@ p.has-text-color a { color: #6440a4; } .wp-block-social-links.is-style-logos-only .wp-social-link-twitter { - color: #21a1f3; } + color: #1da1f2; } .wp-block-social-links.is-style-logos-only .wp-social-link-vimeo { color: #1eb7ea; } @@ -1591,7 +1627,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links.is-style-logos-only .wp-social-link-youtube { - color: #ff0100; } + color: #f00; } .wp-block-social-links.is-style-pill-shape .wp-social-link { width: auto; } @@ -1685,107 +1721,173 @@ p.wp-block-subhead { margin-top: 0.5em; margin-bottom: 1em; } +:root .editor-styles-wrapper, :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ } + :root .editor-styles-wrapper .has-pale-pink-background-color, :root .has-pale-pink-background-color { background-color: #f78da7; } + :root .editor-styles-wrapper .has-vivid-red-background-color, :root .has-vivid-red-background-color { background-color: #cf2e2e; } + :root .editor-styles-wrapper .has-luminous-vivid-orange-background-color, :root .has-luminous-vivid-orange-background-color { background-color: #ff6900; } + :root .editor-styles-wrapper .has-luminous-vivid-amber-background-color, :root .has-luminous-vivid-amber-background-color { background-color: #fcb900; } + :root .editor-styles-wrapper .has-light-green-cyan-background-color, :root .has-light-green-cyan-background-color { background-color: #7bdcb5; } + :root .editor-styles-wrapper .has-vivid-green-cyan-background-color, :root .has-vivid-green-cyan-background-color { background-color: #00d084; } + :root .editor-styles-wrapper .has-pale-cyan-blue-background-color, :root .has-pale-cyan-blue-background-color { background-color: #8ed1fc; } + :root .editor-styles-wrapper .has-vivid-cyan-blue-background-color, :root .has-vivid-cyan-blue-background-color { background-color: #0693e3; } + :root .editor-styles-wrapper .has-vivid-purple-background-color, :root .has-vivid-purple-background-color { background-color: #9b51e0; } + :root .editor-styles-wrapper .has-white-background-color, + :root .has-white-background-color { + background-color: #fff; } + :root .editor-styles-wrapper .has-very-light-gray-background-color, :root .has-very-light-gray-background-color { background-color: #eee; } + :root .editor-styles-wrapper .has-cyan-bluish-gray-background-color, :root .has-cyan-bluish-gray-background-color { background-color: #abb8c3; } + :root .editor-styles-wrapper .has-very-dark-gray-background-color, :root .has-very-dark-gray-background-color { background-color: #313131; } + :root .editor-styles-wrapper .has-black-background-color, + :root .has-black-background-color { + background-color: #000; } + :root .editor-styles-wrapper .has-pale-pink-color, :root .has-pale-pink-color { color: #f78da7; } + :root .editor-styles-wrapper .has-vivid-red-color, :root .has-vivid-red-color { color: #cf2e2e; } + :root .editor-styles-wrapper .has-luminous-vivid-orange-color, :root .has-luminous-vivid-orange-color { color: #ff6900; } + :root .editor-styles-wrapper .has-luminous-vivid-amber-color, :root .has-luminous-vivid-amber-color { color: #fcb900; } + :root .editor-styles-wrapper .has-light-green-cyan-color, :root .has-light-green-cyan-color { color: #7bdcb5; } + :root .editor-styles-wrapper .has-vivid-green-cyan-color, :root .has-vivid-green-cyan-color { color: #00d084; } + :root .editor-styles-wrapper .has-pale-cyan-blue-color, :root .has-pale-cyan-blue-color { color: #8ed1fc; } + :root .editor-styles-wrapper .has-vivid-cyan-blue-color, :root .has-vivid-cyan-blue-color { color: #0693e3; } + :root .editor-styles-wrapper .has-vivid-purple-color, :root .has-vivid-purple-color { color: #9b51e0; } + :root .editor-styles-wrapper .has-white-color, + :root .has-white-color { + color: #fff; } + :root .editor-styles-wrapper .has-very-light-gray-color, :root .has-very-light-gray-color { color: #eee; } + :root .editor-styles-wrapper .has-cyan-bluish-gray-color, :root .has-cyan-bluish-gray-color { color: #abb8c3; } + :root .editor-styles-wrapper .has-very-dark-gray-color, :root .has-very-dark-gray-color { color: #313131; } + :root .editor-styles-wrapper .has-black-color, + :root .has-black-color { + color: #000; } + :root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background, :root .has-vivid-cyan-blue-to-vivid-purple-gradient-background { background: linear-gradient(-135deg, #0693e3 0%, #9b51e0 100%); } + :root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background, :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { background: linear-gradient(-135deg, #00d084 0%, #0693e3 100%); } + :root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background, :root .has-light-green-cyan-to-vivid-green-cyan-gradient-background { background: linear-gradient(-135deg, #7adcb4 0%, #00d082 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background, :root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { background: linear-gradient(-135deg, #fcb900 0%, #ff6900 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background, :root .has-luminous-vivid-orange-to-vivid-red-gradient-background { background: linear-gradient(-135deg, #ff6900 0%, #cf2e2e 100%); } + :root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background, :root .has-very-light-gray-to-cyan-bluish-gray-gradient-background { background: linear-gradient(-135deg, #eeeeee 0%, #a9b8c3 100%); } + :root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background, :root .has-cool-to-warm-spectrum-gradient-background { background: linear-gradient(-135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); } + :root .editor-styles-wrapper .has-blush-light-purple-gradient-background, :root .has-blush-light-purple-gradient-background { background: linear-gradient(-135deg, #ffceec 0%, #9896f0 100%); } + :root .editor-styles-wrapper .has-blush-bordeaux-gradient-background, :root .has-blush-bordeaux-gradient-background { background: linear-gradient(-135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); } + :root .editor-styles-wrapper .has-purple-crush-gradient-background, :root .has-purple-crush-gradient-background { background: linear-gradient(-135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); } + :root .editor-styles-wrapper .has-luminous-dusk-gradient-background, :root .has-luminous-dusk-gradient-background { background: linear-gradient(-135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); } + :root .editor-styles-wrapper .has-hazy-dawn-gradient-background, :root .has-hazy-dawn-gradient-background { background: linear-gradient(-135deg, #faaca8 0%, #dad0ec 100%); } + :root .editor-styles-wrapper .has-pale-ocean-gradient-background, :root .has-pale-ocean-gradient-background { background: linear-gradient(-135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); } + :root .editor-styles-wrapper .has-electric-grass-gradient-background, :root .has-electric-grass-gradient-background { background: linear-gradient(-135deg, #caf880 0%, #71ce7e 100%); } + :root .editor-styles-wrapper .has-subdued-olive-gradient-background, :root .has-subdued-olive-gradient-background { background: linear-gradient(-135deg, #fafae1 0%, #67a671 100%); } + :root .editor-styles-wrapper .has-atomic-cream-gradient-background, :root .has-atomic-cream-gradient-background { background: linear-gradient(-135deg, #fdd79a 0%, #004a59 100%); } + :root .editor-styles-wrapper .has-nightshade-gradient-background, :root .has-nightshade-gradient-background { background: linear-gradient(-135deg, #330968 0%, #31cdcf 100%); } + :root .editor-styles-wrapper .has-midnight-gradient-background, :root .has-midnight-gradient-background { background: linear-gradient(-135deg, #020381 0%, #2874fc 100%); } + :root .editor-styles-wrapper .has-link-color a, + :root .has-link-color a { + color: #00e; + color: var(--wp--style--color--link, #00e); } +.editor-styles-wrapper .has-small-font-size, .has-small-font-size { font-size: 13px; } +.editor-styles-wrapper .has-regular-font-size, +.editor-styles-wrapper .has-normal-font-size, .has-regular-font-size, .has-normal-font-size { font-size: 16px; } +.editor-styles-wrapper .has-medium-font-size, .has-medium-font-size { font-size: 20px; } +.editor-styles-wrapper .has-large-font-size, .has-large-font-size { font-size: 36px; } +.editor-styles-wrapper .has-larger-font-size, +.editor-styles-wrapper .has-huge-font-size, .has-larger-font-size, .has-huge-font-size { font-size: 42px; } @@ -1798,3 +1900,9 @@ p.wp-block-subhead { .has-text-align-right { text-align: right; } + +#end-resizable-editor-section { + display: none; } + +.aligncenter { + clear: both; } diff --git a/wp-includes/css/dist/block-library/style-rtl.min.css b/wp-includes/css/dist/block-library/style-rtl.min.css index abf8cd71e3..5ea1d7f47a 100644 --- a/wp-includes/css/dist/block-library/style-rtl.min.css +++ b/wp-includes/css/dist/block-library/style-rtl.min.css @@ -1 +1 @@ -.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button{color:#fff}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link{background-color:#32373c;border:none;border-radius:28px;box-shadow:none;color:inherit;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:inherit}.wp-gs .wp-block-button__link:not(.has-background){background-color:var(--wp-block-core-button--color--background,var(--wp-color--primary,#32373c))}.is-style-squared .wp-block-button__link{border-radius:0}.no-border-radius.wp-block-button__link{border-radius:0!important}.is-style-outline{color:#32373c}.is-style-outline .wp-block-button__link{background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:8px;margin-bottom:8px}.wp-block-buttons.alignright .wp-block-button{margin-left:none;margin-right:8px}.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:400;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:28px;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:20px 30px}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 16px)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style]{flex-grow:0}.wp-block-column:not(:first-child){margin-right:32px}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-color:#000;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:calc(100% - 70px);z-index:1;color:#f8f9f9}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:14px;text-align:center}.block-editor-block-list__block[data-type="core/embed"][data-align=left],.block-editor-block-list__block[data-type="core/embed"][data-align=right],.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.78%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 16px 16px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc((100% - 16px)/2)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3);margin-left:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3 - 1px)}}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4);margin-left:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4 - 1px)}}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5);margin-left:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5 - 1px)}}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6);margin-left:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6 - 1px)}}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7);margin-left:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7 - 1px)}}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8);margin-left:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8 - 1px)}}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-left:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-left:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-left:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-left:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-left:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-left:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table;margin-right:0;margin-left:0}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-right:1em}.wp-block-image .alignright{float:right;margin-left:1em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:right;height:40px;margin-left:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-latest-posts__post-excerpt{margin-top:8px;margin-bottom:16px}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.wp-block-media-text{direction:ltr;display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text>figure>img,.wp-block-media-text>figure>video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}}.wp-block-navigation>ul{display:block;list-style:none;margin:0;padding-right:0}@media (min-width:600px){.wp-block-navigation>ul{display:flex;flex-wrap:wrap}}.wp-block-navigation>ul ul{list-style:none;padding-right:0;margin-top:0;margin-right:0}.wp-block-navigation>ul ul li{margin:0}.wp-block-navigation>ul li{z-index:1}.wp-block-navigation>ul li:focus-within,.wp-block-navigation>ul li:hover{cursor:pointer;z-index:99999}.wp-block-navigation>ul li:focus-within>ul,.wp-block-navigation>ul li:hover>ul,.wp-block-navigation>ul li ul:focus,.wp-block-navigation>ul li ul:hover{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation>ul>li ul{position:absolute;right:0;top:100%;min-width:200px;max-width:200px;opacity:0;transition:opacity .1s linear;visibility:hidden}.wp-block-navigation,.wp-block-navigation .block-editor-block-list__layout{display:flex;flex-wrap:wrap}.wp-block-navigation .block-editor-block-list__layout .block-editor-block-list__layout{width:200px}.wp-block-navigation .block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{margin:0;width:auto}.wp-block-navigation,.wp-block-navigation>.wp-block-navigation__container{align-items:center;width:100%}.wp-block-navigation>.wp-block-navigation-link,.wp-block-navigation>.wp-block-navigation__container>.wp-block-navigation-link{display:flex;margin-top:0;margin-bottom:0}.wp-block-navigation .wp-block-navigation-link{position:relative;margin:0;min-height:56px;display:flex;line-height:1.4}.wp-block-navigation .wp-block-navigation-link .wp-block,.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link{min-height:auto;padding:0}.wp-block-navigation .wp-block-navigation-link .wp-block .wp-block-navigation-link{margin:0}.wp-block-navigation .wp-block-navigation-link>.block-editor-inner-blocks{display:none}.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link.is-editing.has-child>.block-editor-inner-blocks{display:flex;border:1px solid rgba(0,0,0,.15);position:absolute;z-index:1;top:100%;right:0}.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container .block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container .wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link.is-editing.has-child>.block-editor-inner-blocks .block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link.is-editing.has-child>.block-editor-inner-blocks .wp-block-navigation__container{right:100%;top:-1px}.wp-block-navigation .wp-block-navigation-link .block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link .wp-block-navigation__container{background-color:inherit;color:inherit}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content{display:flex;align-items:center;width:max-content;padding:6px 16px}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:first-child:not(:only-child) .wp-block-navigation-link__content{padding-top:8px}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:last-child .wp-block-navigation-link__content{padding-bottom:8px}.wp-block-navigation .wp-block-navigation-link.has-child .wp-block-navigation-link__content{min-width:100%;padding-left:32px;position:relative}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon{position:absolute;left:16px}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon svg{fill:currentColor}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link svg{transform:rotate(0)}.wp-block-navigation .wp-block-navigation-link.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color)>.block-editor-inner-blocks,.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color)>.wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link:not(.has-text-color)>.block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link:not(.has-text-color)>.wp-block-navigation__container{color:#111}.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background)>.block-editor-inner-blocks,.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background)>.wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link:not(.has-background)>.block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link:not(.has-background)>.wp-block-navigation__container{background-color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color)>.block-editor-inner-blocks,.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color)>.wp-block-navigation__container{color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background)>.block-editor-inner-blocks,.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background)>.wp-block-navigation__container{background-color:#333}.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container{display:flex;flex-direction:column;padding:0}.wp-block-navigation>ul>li>a{display:flex;align-items:center}.wp-block-navigation>ul>li:first-of-type>a{padding-right:0}.wp-block-navigation>ul>li:last-of-type>a{padding-left:0}.wp-block-navigation.items-justified-left>ul{justify-content:flex-start}.wp-block-navigation.items-justified-center>ul{justify-content:center}.wp-block-navigation.items-justified-right>ul{justify-content:flex-end}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 30px}p.has-text-color a{color:inherit}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;max-width:360px}.wp-block-search .wp-block-search__button{margin-right:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:20px;letter-spacing:2em;padding-right:2em;font-family:serif}.wp-block-social-links{display:flex;justify-content:flex-start;padding-right:0;padding-left:0;margin-right:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:36px;margin-left:8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1977f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0577b5;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#21a1f3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:#ff0100;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1977f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0577b5}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#21a1f3}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:#ff0100}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-right:16px;padding-left:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.has-small-font-size{font-size:13px}.has-normal-font-size,.has-regular-font-size{font-size:16px}.has-medium-font-size{font-size:20px}.has-large-font-size{font-size:36px}.has-huge-font-size,.has-larger-font-size{font-size:42px}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:28px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;padding:12px 24px;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button.is-style-outline .wp-block-button__link,.wp-block-button__link.is-style-outline{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:8px;margin-bottom:8px}.wp-block-buttons .wp-block-button:last-child{margin-left:0}.wp-block-buttons.alignright .wp-block-button{margin-left:0;margin-right:8px}.wp-block-buttons.alignright .wp-block-button:first-child{margin-right:0}.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:400;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:28px;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:20px 38px}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 16px)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-right:32px}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:16px}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim,.wp-block-cover.has-background-dim{background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:calc(100% - 70px);z-index:1;color:#f8f9f9}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:14px;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type^=core-embed],.wp-block[data-align=right]>[data-type^=core-embed]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type^=core-embed] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type^=core-embed] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;left:0;bottom:0;right:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 16px 16px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(50% - 16px)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - 10.66667px);margin-left:16px}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - 12px);margin-left:16px}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - 12.8px);margin-left:16px}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - 13.33333px);margin-left:16px}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - 13.71429px);margin-left:16px}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - 14px);margin-left:16px}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-left:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-left:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-left:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-left:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-left:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-left:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:20px 38px}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-left:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .alignright{float:right;margin-right:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:right;height:40px;margin-left:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 20px 20px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 20px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 20px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 20px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 20px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 20px)}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-latest-posts__post-excerpt{margin-top:8px;margin-bottom:16px}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.wp-block-media-text{direction:ltr;display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}}.wp-block-navigation__container{list-style:none;margin:0;padding-right:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0;padding:8px}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);padding:6px 0;background-color:inherit;color:inherit;position:absolute;right:0;top:100%;width:fit-content;z-index:1;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link{font-size:15px}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-left:8px}@media (min-width:782px){.has-child .wp-block-navigation__container{right:24px}.has-child .wp-block-navigation__container .wp-block-navigation__container{right:calc(100% + 8px);top:-7px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:8px;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{text-decoration:none;padding:6px 16px}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{font-size:17px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:6px 16px}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(-90deg)}}.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color),.wp-block-navigation .wp-block-navigation-link:not(.has-text-color){color:#111}.wp-block-navigation.is-style-light:not(.has-background) .wp-block-navigation__container,.wp-block-navigation:not(.has-background) .wp-block-navigation__container{background-color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color){color:#fff}.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container{background-color:#333}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-placeholder__actions{display:flex;align-items:flex-start}.wp-block-navigation-placeholder__actions .components-base-control{margin-left:5px}.wp-block-navigation-placeholder__actions .components-select-control__input{margin:0;min-height:36px}.wp-block-navigation-placeholder__actions .wp-block-navigation-placeholder__button{height:36px}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;margin-bottom:0;min-width:220px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item{display:list-item;padding:10px 25px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;right:25px;left:25px;display:list-item;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin-top:3px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 38px}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-left:16px}.wp-block-post-author__bio{margin-bottom:8px;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;max-width:360px}.wp-block-search .wp-block-search__button{margin-right:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:20px;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-social-links{display:flex;justify-content:flex-start;padding-right:0;padding-left:0;margin-right:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:36px;margin-left:8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-right:16px;padding-left:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}:root .editor-styles-wrapper .has-pale-pink-background-color,:root .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color,:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color,:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color,:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color,:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color,:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color,:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color,:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color,:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color,:root .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color,:root .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color,:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color,:root .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color,:root .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color,:root .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color,:root .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color,:root .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color,:root .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color,:root .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color,:root .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color,:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color,:root .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color,:root .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color,:root .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color,:root .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color,:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color,:root .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color,:root .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background,:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background,:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background,:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background,:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background,:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background,:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background,:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background,:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background,:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background,:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background,:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background,:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background,:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background,:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background,:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background,:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background,:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background,:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root .editor-styles-wrapper .has-link-color a,:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.editor-styles-wrapper .has-small-font-size,.has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size,.has-normal-font-size,.has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size,.has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size,.has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size,.has-huge-font-size,.has-larger-font-size{font-size:42px}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style.css b/wp-includes/css/dist/block-library/style.css index 3e36f36ee7..3a865674c6 100644 --- a/wp-includes/css/dist/block-library/style.css +++ b/wp-includes/css/dist/block-library/style.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,14 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + .wp-block-audio figcaption { margin-top: 0.5em; margin-bottom: 1em; } @@ -50,54 +73,53 @@ width: 100%; min-width: 300px; } -.wp-block-button { - color: #fff; } - .wp-block-button.aligncenter { - text-align: center; } - .wp-block-button.alignright { - /*rtl:ignore*/ - text-align: right; } - .wp-block-button__link { + color: #fff; background-color: #32373c; border: none; border-radius: 28px; box-shadow: none; - color: inherit; cursor: pointer; display: inline-block; font-size: 18px; - margin: 0; padding: 12px 24px; text-align: center; text-decoration: none; overflow-wrap: break-word; } .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited { - color: inherit; } + color: #fff; } + .wp-block-button__link.aligncenter { + text-align: center; } + .wp-block-button__link.alignright { + /*rtl:ignore*/ + text-align: right; } -.wp-gs .wp-block-button__link:not(.has-background) { - background-color: var(--wp-block-core-button--color--background, var(--wp-color--primary, #32373c)); } - -.is-style-squared .wp-block-button__link { +.wp-block-button.is-style-squared, +.wp-block-button__link.wp-block-button.is-style-squared { border-radius: 0; } -.no-border-radius.wp-block-button__link { +.wp-block-button.no-border-radius, +.wp-block-button__link.no-border-radius { border-radius: 0 !important; } -.is-style-outline { - color: #32373c; } - .is-style-outline .wp-block-button__link { - background-color: transparent; - border: 2px solid; } +.wp-block-button.is-style-outline .wp-block-button__link, +.wp-block-button__link.is-style-outline { + color: #32373c; + background-color: transparent; + border: 2px solid; } .wp-block-buttons .wp-block-button { display: inline-block; margin-right: 8px; margin-bottom: 8px; } + .wp-block-buttons .wp-block-button:last-child { + margin-right: 0; } .wp-block-buttons.alignright .wp-block-button { - margin-right: none; + margin-right: 0; margin-left: 8px; } + .wp-block-buttons.alignright .wp-block-button:first-child { + margin-left: 0; } .wp-block-buttons.aligncenter { text-align: center; } @@ -141,7 +163,7 @@ .wp-block-columns { flex-wrap: nowrap; } } .wp-block-columns.has-background { - padding: 20px 30px; } + padding: 20px 38px; } .wp-block-column { flex-grow: 1; @@ -161,7 +183,7 @@ .wp-block-column { flex-basis: 0; flex-grow: 1; } - .wp-block-column[style] { + .wp-block-column[style*="flex-basis"] { flex-grow: 0; } .wp-block-column:not(:first-child) { margin-left: 32px; } } @@ -197,7 +219,6 @@ .wp-block-cover-image, .wp-block-cover { position: relative; - background-color: #000; background-size: cover; background-position: center center; min-height: 430px; @@ -206,7 +227,7 @@ display: flex; justify-content: center; align-items: center; - overflow: hidden; } + padding: 16px; } .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: fixed; } @@ -218,10 +239,13 @@ .wp-block-cover-image.has-parallax, .wp-block-cover.has-parallax { background-attachment: scroll; } } - .wp-block-cover-image.has-background-dim::before, - .wp-block-cover.has-background-dim::before { - content: ""; - background-color: inherit; } + .wp-block-cover-image.has-background-dim, + .wp-block-cover.has-background-dim { + background-color: #000; } + .wp-block-cover-image.has-background-dim::before, + .wp-block-cover.has-background-dim::before { + content: ""; + background-color: inherit; } .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before, .wp-block-cover-image .wp-block-cover__gradient-background, .wp-block-cover.has-background-dim:not(.has-background-gradient)::before, @@ -339,6 +363,46 @@ .wp-block-cover h6:not(.has-text-color), .wp-block-cover .wp-block-subhead:not(.has-text-color) { color: inherit; } + .wp-block-cover-image.is-position-top-left, + .wp-block-cover.is-position-top-left { + align-items: flex-start; + justify-content: flex-start; } + .wp-block-cover-image.is-position-top-center, + .wp-block-cover.is-position-top-center { + align-items: flex-start; + justify-content: center; } + .wp-block-cover-image.is-position-top-right, + .wp-block-cover.is-position-top-right { + align-items: flex-start; + justify-content: flex-end; } + .wp-block-cover-image.is-position-center-left, + .wp-block-cover.is-position-center-left { + align-items: center; + justify-content: flex-start; } + .wp-block-cover-image.is-position-center-center, + .wp-block-cover.is-position-center-center { + align-items: center; + justify-content: center; } + .wp-block-cover-image.is-position-center-right, + .wp-block-cover.is-position-center-right { + align-items: center; + justify-content: flex-end; } + .wp-block-cover-image.is-position-bottom-left, + .wp-block-cover.is-position-bottom-left { + align-items: flex-end; + justify-content: flex-start; } + .wp-block-cover-image.is-position-bottom-center, + .wp-block-cover.is-position-bottom-center { + align-items: flex-end; + justify-content: center; } + .wp-block-cover-image.is-position-bottom-right, + .wp-block-cover.is-position-bottom-right { + align-items: flex-end; + justify-content: flex-end; } + .wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container, + .wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container { + margin: 0; + width: auto; } .wp-block-cover__video-background { position: absolute; @@ -399,71 +463,62 @@ section.wp-block-cover-image > h2, padding: 14px; text-align: center; } -.block-editor-block-list__block[data-type="core/embed"][data-align="left"], -.block-editor-block-list__block[data-type="core/embed"][data-align="right"], +.wp-block[data-align="left"] > [data-type^="core-embed"], +.wp-block[data-align="right"] > [data-type^="core-embed"], .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; width: 100%; } + .wp-block[data-align="left"] > [data-type^="core-embed"] .wp-block-embed__wrapper, + .wp-block[data-align="right"] > [data-type^="core-embed"] .wp-block-embed__wrapper, + .wp-block-embed.alignleft .wp-block-embed__wrapper, + .wp-block-embed.alignright .wp-block-embed__wrapper { + min-width: 280px; } .wp-block-embed { margin-bottom: 1em; } .wp-block-embed figcaption { margin-top: 0.5em; margin-bottom: 1em; } + .wp-block-embed iframe { + max-width: 100%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper, -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper { +.wp-block-embed__wrapper { position: relative; } - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { - content: ""; - display: block; - padding-top: 50%; } - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe, - .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { - padding-top: 42.85%; } - -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before { + content: ""; + display: block; padding-top: 50%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-has-aspect-ratio iframe { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + height: 100%; + width: 100%; } + +.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { + padding-top: 42.85%; } + +.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { + padding-top: 50%; } + +.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { padding-top: 56.25%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { - padding-top: 177.78%; } +.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { + padding-top: 66.66%; } -.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { +.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { padding-top: 200%; } .wp-block-file { @@ -582,7 +637,7 @@ section.wp-block-cover-image > h2, .wp-block-gallery .blocks-gallery-item, .blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item { - width: calc((100% - 16px) / 2); } + width: calc(50% - 16px); } .wp-block-gallery .blocks-gallery-image:nth-of-type(even), .wp-block-gallery .blocks-gallery-item:nth-of-type(even), .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even), @@ -599,74 +654,38 @@ section.wp-block-cover-image > h2, .wp-block-gallery.columns-3 .blocks-gallery-item, .blocks-gallery-grid.columns-3 .blocks-gallery-image, .blocks-gallery-grid.columns-3 .blocks-gallery-item { - width: calc((100% - 16px * 2) / 3); + width: calc(33.33333% - 10.66667px); margin-right: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-3 .blocks-gallery-image, - .wp-block-gallery.columns-3 .blocks-gallery-item, - .blocks-gallery-grid.columns-3 .blocks-gallery-image, - .blocks-gallery-grid.columns-3 .blocks-gallery-item { - width: calc((100% - 16px * 2) / 3 - 1px); } } .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item, .blocks-gallery-grid.columns-4 .blocks-gallery-image, .blocks-gallery-grid.columns-4 .blocks-gallery-item { - width: calc((100% - 16px * 3) / 4); + width: calc(25% - 12px); margin-right: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-4 .blocks-gallery-image, - .wp-block-gallery.columns-4 .blocks-gallery-item, - .blocks-gallery-grid.columns-4 .blocks-gallery-image, - .blocks-gallery-grid.columns-4 .blocks-gallery-item { - width: calc((100% - 16px * 3) / 4 - 1px); } } .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item, .blocks-gallery-grid.columns-5 .blocks-gallery-image, .blocks-gallery-grid.columns-5 .blocks-gallery-item { - width: calc((100% - 16px * 4) / 5); + width: calc(20% - 12.8px); margin-right: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-5 .blocks-gallery-image, - .wp-block-gallery.columns-5 .blocks-gallery-item, - .blocks-gallery-grid.columns-5 .blocks-gallery-image, - .blocks-gallery-grid.columns-5 .blocks-gallery-item { - width: calc((100% - 16px * 4) / 5 - 1px); } } .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item, .blocks-gallery-grid.columns-6 .blocks-gallery-image, .blocks-gallery-grid.columns-6 .blocks-gallery-item { - width: calc((100% - 16px * 5) / 6); + width: calc(16.66667% - 13.33333px); margin-right: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-6 .blocks-gallery-image, - .wp-block-gallery.columns-6 .blocks-gallery-item, - .blocks-gallery-grid.columns-6 .blocks-gallery-image, - .blocks-gallery-grid.columns-6 .blocks-gallery-item { - width: calc((100% - 16px * 5) / 6 - 1px); } } .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item, .blocks-gallery-grid.columns-7 .blocks-gallery-image, .blocks-gallery-grid.columns-7 .blocks-gallery-item { - width: calc((100% - 16px * 6) / 7); + width: calc(14.28571% - 13.71429px); margin-right: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-7 .blocks-gallery-image, - .wp-block-gallery.columns-7 .blocks-gallery-item, - .blocks-gallery-grid.columns-7 .blocks-gallery-image, - .blocks-gallery-grid.columns-7 .blocks-gallery-item { - width: calc((100% - 16px * 6) / 7 - 1px); } } .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item, .blocks-gallery-grid.columns-8 .blocks-gallery-image, .blocks-gallery-grid.columns-8 .blocks-gallery-item { - width: calc((100% - 16px * 7) / 8); + width: calc(12.5% - 14px); margin-right: 16px; } - @supports (-ms-ime-align: auto) { - .wp-block-gallery.columns-8 .blocks-gallery-image, - .wp-block-gallery.columns-8 .blocks-gallery-item, - .blocks-gallery-grid.columns-8 .blocks-gallery-image, - .blocks-gallery-grid.columns-8 .blocks-gallery-item { - width: calc((100% - 16px * 7) / 8 - 1px); } } .wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n), .blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n), @@ -721,6 +740,14 @@ section.wp-block-cover-image > h2, .blocks-gallery-grid.aligncenter .blocks-gallery-item figure { justify-content: center; } +h1.has-background, +h2.has-background, +h3.has-background, +h4.has-background, +h5.has-background, +h6.has-background { + padding: 20px 38px; } + .wp-block-image { margin-bottom: 1em; } .wp-block-image img { @@ -733,9 +760,7 @@ section.wp-block-cover-image > h2, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image .aligncenter, .wp-block-image.is-resized { - display: table; - margin-left: 0; - margin-right: 0; } + display: table; } .wp-block-image .alignleft > figcaption, .wp-block-image .alignright > figcaption, .wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption { @@ -745,12 +770,18 @@ section.wp-block-cover-image > h2, /*rtl:ignore*/ float: left; /*rtl:ignore*/ - margin-right: 1em; } + margin-left: 0; + margin-right: 1em; + margin-top: 0.5em; + margin-bottom: 0.5em; } .wp-block-image .alignright { /*rtl:ignore*/ float: right; /*rtl:ignore*/ - margin-left: 1em; } + margin-right: 0; + margin-left: 1em; + margin-top: 0.5em; + margin-bottom: 0.5em; } .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; } @@ -830,22 +861,23 @@ section.wp-block-cover-image > h2, flex-wrap: wrap; padding: 0; } .wp-block-latest-posts.is-grid li { - margin: 0 16px 16px 0; + margin: 0 20px 20px 0; width: 100%; } @media (min-width: 600px) { .wp-block-latest-posts.columns-2 li { - width: calc((100% / 2) - 16px); } + width: calc((100% / 2) - 20px); } .wp-block-latest-posts.columns-3 li { - width: calc((100% / 3) - 16px); } + width: calc((100% / 3) - 20px); } .wp-block-latest-posts.columns-4 li { - width: calc((100% / 4) - 16px); } + width: calc((100% / 4) - 20px); } .wp-block-latest-posts.columns-5 li { - width: calc((100% / 5) - 16px); } + width: calc((100% / 5) - 20px); } .wp-block-latest-posts.columns-6 li { - width: calc((100% / 6) - 16px); } } + width: calc((100% / 6) - 20px); } } -.wp-block-latest-posts__post-date { +.wp-block-latest-posts__post-date, +.wp-block-latest-posts__post-author { display: block; color: #6c7781; font-size: 13px; } @@ -870,6 +902,9 @@ section.wp-block-cover-image > h2, margin-bottom: 1em; text-align: center; } +.edit-post-visual-editor .wp-block-latest-posts.is-grid li { + margin-bottom: 20px; } + .wp-block-media-text { /*!rtl:begin:ignore*/ direction: ltr; @@ -937,8 +972,8 @@ section.wp-block-cover-image > h2, grid-row: 1; /*!rtl:end:ignore*/ } -.wp-block-media-text > figure > img, -.wp-block-media-text > figure > video { +.wp-block-media-text__media img, +.wp-block-media-text__media video { max-width: unset; width: 100%; vertical-align: middle; } @@ -990,183 +1025,163 @@ section.wp-block-cover-image > h2, -ms-grid-row: 1; grid-row: 1; } } -/* -* Frontend: reset the default list styles -*/ -.wp-block-navigation > ul { - display: block; +.wp-block-navigation__container { list-style: none; margin: 0; - padding-left: 0; } - @media (min-width: 600px) { - .wp-block-navigation > ul { - display: flex; - flex-wrap: wrap; } } - .wp-block-navigation > ul ul { - list-style: none; - padding-left: 0; - margin-top: 0; - margin-left: 0; } - .wp-block-navigation > ul ul li { - margin: 0; } + padding-left: 0; + display: flex; + flex-wrap: wrap; } + .is-vertical .wp-block-navigation__container { + display: block; } -/* -* Frontend: styles for submenu flyout -*/ -.wp-block-navigation > ul li { - z-index: 1; } - .wp-block-navigation > ul li:hover, .wp-block-navigation > ul li:focus-within { - cursor: pointer; - z-index: 99999; } - .wp-block-navigation > ul li:hover > ul, - .wp-block-navigation > ul li:focus-within > ul, - .wp-block-navigation > ul li ul:hover, - .wp-block-navigation > ul li ul:focus { +.wp-block-navigation-link { + display: flex; + align-items: center; + position: relative; + margin: 0; + padding: 8px; } + .wp-block-navigation-link .wp-block-navigation__container:empty { + display: none; } + +.has-child .wp-block-navigation__container { + border: 1px solid rgba(0, 0, 0, 0.15); + padding: 6px 0; + background-color: inherit; + color: inherit; + position: absolute; + left: 0; + top: 100%; + width: fit-content; + z-index: 1; + opacity: 0; + transition: opacity 0.1s linear; + visibility: hidden; } + .has-child .wp-block-navigation__container > .wp-block-navigation-link { + font-size: 15px; } + .has-child .wp-block-navigation__container > .wp-block-navigation-link > .wp-block-navigation-link__content { + flex-grow: 1; } + .has-child .wp-block-navigation__container > .wp-block-navigation-link > .wp-block-navigation-link__submenu-icon { + padding-right: 8px; } + @media (min-width: 782px) { + .has-child .wp-block-navigation__container { + left: 24px; } + .has-child .wp-block-navigation__container .wp-block-navigation__container { + left: calc(100% + 8px); + top: -7px; } + .has-child .wp-block-navigation__container .wp-block-navigation__container::before { + content: ""; + position: absolute; + right: 100%; + height: 100%; + display: block; + width: 8px; + background: transparent; } + .has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg { + transform: rotate(0); } } + +.has-child:hover { + cursor: pointer; } + .has-child:hover > .wp-block-navigation__container { visibility: visible; opacity: 1; display: flex; flex-direction: column; } -.wp-block-navigation > ul > li ul { - position: absolute; - left: 0; - top: 100%; - min-width: 200px; - max-width: 200px; - opacity: 0; - transition: opacity 0.1s linear; - visibility: hidden; } - -/* -* Styles shared between editor and frontend -*/ -.wp-block-navigation, -.wp-block-navigation .block-editor-block-list__layout { - display: flex; - flex-wrap: wrap; } - -.wp-block-navigation .block-editor-block-list__layout .block-editor-block-list__layout { - width: 200px; } - -.wp-block-navigation .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block { - margin: 0; - width: auto; } - -.wp-block-navigation, -.wp-block-navigation > .wp-block-navigation__container { - align-items: center; - width: 100%; } - .wp-block-navigation > .wp-block-navigation-link, - .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-link { +.has-child:focus-within { + cursor: pointer; } + .has-child:focus-within > .wp-block-navigation__container { + visibility: visible; + opacity: 1; display: flex; - margin-top: 0; - margin-bottom: 0; } + flex-direction: column; } -.wp-block-navigation .wp-block-navigation-link { - position: relative; - margin: 0; - min-height: 56px; - display: flex; - line-height: 1.4; } - .wp-block-navigation .wp-block-navigation-link .wp-block, - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link { - min-height: auto; - padding: 0; } - .wp-block-navigation .wp-block-navigation-link .wp-block .wp-block-navigation-link { - margin: 0; } - .wp-block-navigation .wp-block-navigation-link > .block-editor-inner-blocks { - display: none; } - .wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container, - .wp-block-navigation .wp-block-navigation-link.is-editing.has-child > .block-editor-inner-blocks { - display: flex; - border: 1px solid rgba(0, 0, 0, 0.15); - position: absolute; - z-index: 1; - top: 100%; - left: 0; } - .wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container .block-editor-inner-blocks, - .wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container .wp-block-navigation__container, - .wp-block-navigation .wp-block-navigation-link.is-editing.has-child > .block-editor-inner-blocks .block-editor-inner-blocks, - .wp-block-navigation .wp-block-navigation-link.is-editing.has-child > .block-editor-inner-blocks .wp-block-navigation__container { - left: 100%; - top: -1px; } - .wp-block-navigation .wp-block-navigation-link .block-editor-inner-blocks, - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation__container { - background-color: inherit; - color: inherit; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content { - display: flex; - align-items: center; - width: max-content; - padding: 6px 16px; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:first-child:not(:only-child) .wp-block-navigation-link__content { - padding-top: 8px; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:last-child .wp-block-navigation-link__content { - padding-bottom: 8px; } - .wp-block-navigation .wp-block-navigation-link.has-child .wp-block-navigation-link__content { - min-width: 100%; - padding-right: 32px; - position: relative; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon { - position: absolute; - right: 16px; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon svg { - fill: currentColor; } - .wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link svg { - transform: rotate(0); } - .wp-block-navigation .wp-block-navigation-link.has-text-color .wp-block-navigation-link__content { +.wp-block-navigation-link__content { + text-decoration: none; + padding: 6px 16px; } + .has-text-color .wp-block-navigation-link__content { color: inherit; } -.wp-block-navigation .wp-block-navigation-link:not(.has-text-color) > .block-editor-inner-blocks, -.wp-block-navigation .wp-block-navigation-link:not(.has-text-color) > .wp-block-navigation__container, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) > .wp-block-navigation__container { +.wp-block-navigation-link__label { + font-size: 17px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + word-break: normal; + overflow-wrap: break-word; } + +.wp-block-navigation-link__submenu-icon { + height: inherit; + padding: 6px 16px; } + .wp-block-navigation-link__submenu-icon svg { + fill: currentColor; } + @media (min-width: 782px) { + .wp-block-navigation-link__submenu-icon svg { + transform: rotate(90deg); } } + +.wp-block-navigation .wp-block-navigation-link:not(.has-text-color), +.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color) { color: #111; } -.wp-block-navigation .wp-block-navigation-link:not(.has-background) > .block-editor-inner-blocks, -.wp-block-navigation .wp-block-navigation-link:not(.has-background) > .wp-block-navigation__container, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background) > .wp-block-navigation__container { +.wp-block-navigation:not(.has-background) .wp-block-navigation__container, +.wp-block-navigation.is-style-light:not(.has-background) .wp-block-navigation__container { background-color: #fff; } -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) > .wp-block-navigation__container { +.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color) { color: #fff; } -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background) > .block-editor-inner-blocks, -.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background) > .wp-block-navigation__container { +.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container { background-color: #333; } -/* -* Frontend: non-shared styles & overrides -*/ -.wp-block-navigation .wp-block-navigation-link.has-child > .wp-block-navigation__container { - display: flex; - flex-direction: column; - padding: 0; } - -/* -* TODO: organize/untangle styles below this line -*/ -.wp-block-navigation > ul > li > a { - display: flex; - align-items: center; } - -.wp-block-navigation > ul > li:first-of-type > a { - padding-left: 0; } - -.wp-block-navigation > ul > li:last-of-type > a { - padding-right: 0; } - -.wp-block-navigation.items-justified-left > ul { +.items-justified-left > ul { justify-content: flex-start; } -.wp-block-navigation.items-justified-center > ul { +.items-justified-center > ul { justify-content: center; } -.wp-block-navigation.items-justified-right > ul { +.items-justified-right > ul { justify-content: flex-end; } +.wp-block-navigation-placeholder__actions { + display: flex; + align-items: flex-start; } + .wp-block-navigation-placeholder__actions .components-base-control { + margin-right: 5px; } + .wp-block-navigation-placeholder__actions .components-select-control__input { + margin: 0; + min-height: 36px; } + .wp-block-navigation-placeholder__actions .wp-block-navigation-placeholder__button { + height: 36px; } + +.wp-block-navigation-placeholder .components-spinner { + margin-top: -4px; + margin-left: 4px; + vertical-align: middle; + margin-right: 7px; } + +.wp-block-navigation-placeholder .components-custom-select-control__button { + height: auto; + margin-bottom: 0; + min-width: 220px; } + +.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item { + display: list-item; + padding: 10px 25px; } + .wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option { + position: relative; + margin-top: 20px; } + .wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option::before { + content: ""; + position: absolute; + top: -10px; + left: 25px; + right: 25px; + display: list-item; + height: 15px; + border-top: 1px solid #757575; } + +.wp-block-navigation-placeholder .components-custom-select-control__menu { + margin-top: 3px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; } + .is-small-text { font-size: 14px; } @@ -1189,11 +1204,32 @@ section.wp-block-cover-image > h2, font-style: normal; } p.has-background { - padding: 20px 30px; } + padding: 20px 38px; } p.has-text-color a { color: inherit; } +.wp-block-post-author { + display: flex; + flex-wrap: wrap; + line-height: 1.5; } + .wp-block-post-author__byline { + width: 100%; + margin-top: 0; + margin-bottom: 0; + font-size: 0.5em; } + .wp-block-post-author__avatar { + margin-right: 16px; } + .wp-block-post-author__bio { + margin-bottom: 8px; + font-size: 0.7em; } + .wp-block-post-author__content { + flex-grow: 1; + flex-basis: 0; } + .wp-block-post-author__name { + font-weight: bold; + margin: 0; } + .wp-block-pullquote { padding: 3em 0; margin-left: 0; @@ -1307,6 +1343,7 @@ p.has-text-color a { color: currentColor; font-size: 20px; letter-spacing: 2em; + /*rtl:ignore*/ padding-left: 2em; font-family: serif; } @@ -1388,7 +1425,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook { - background-color: #1977f2; + background-color: #1778f2; color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx { @@ -1424,7 +1461,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin { - background-color: #0577b5; + background-color: #0d66c2; color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon { @@ -1477,7 +1514,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter { - background-color: #21a1f3; + background-color: #1da1f2; color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo { @@ -1497,7 +1534,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube { - background-color: #ff0100; + background-color: #f00; color: #fff; } .wp-block-social-links.is-style-logos-only .wp-social-link { @@ -1532,7 +1569,7 @@ p.has-text-color a { color: #f45800; } .wp-block-social-links.is-style-logos-only .wp-social-link-facebook { - color: #1977f2; } + color: #1778f2; } .wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx { color: #000; } @@ -1559,7 +1596,7 @@ p.has-text-color a { color: #e21b24; } .wp-block-social-links.is-style-logos-only .wp-social-link-linkedin { - color: #0577b5; } + color: #0d66c2; } .wp-block-social-links.is-style-logos-only .wp-social-link-mastodon { color: #3288d4; } @@ -1599,7 +1636,7 @@ p.has-text-color a { color: #6440a4; } .wp-block-social-links.is-style-logos-only .wp-social-link-twitter { - color: #21a1f3; } + color: #1da1f2; } .wp-block-social-links.is-style-logos-only .wp-social-link-vimeo { color: #1eb7ea; } @@ -1615,7 +1652,7 @@ p.has-text-color a { color: #fff; } .wp-block-social-links.is-style-logos-only .wp-social-link-youtube { - color: #ff0100; } + color: #f00; } .wp-block-social-links.is-style-pill-shape .wp-social-link { width: auto; } @@ -1709,107 +1746,173 @@ p.wp-block-subhead { margin-top: 0.5em; margin-bottom: 1em; } +:root .editor-styles-wrapper, :root { /* stylelint-disable function-comma-space-after */ /* stylelint-enable function-comma-space-after */ } + :root .editor-styles-wrapper .has-pale-pink-background-color, :root .has-pale-pink-background-color { background-color: #f78da7; } + :root .editor-styles-wrapper .has-vivid-red-background-color, :root .has-vivid-red-background-color { background-color: #cf2e2e; } + :root .editor-styles-wrapper .has-luminous-vivid-orange-background-color, :root .has-luminous-vivid-orange-background-color { background-color: #ff6900; } + :root .editor-styles-wrapper .has-luminous-vivid-amber-background-color, :root .has-luminous-vivid-amber-background-color { background-color: #fcb900; } + :root .editor-styles-wrapper .has-light-green-cyan-background-color, :root .has-light-green-cyan-background-color { background-color: #7bdcb5; } + :root .editor-styles-wrapper .has-vivid-green-cyan-background-color, :root .has-vivid-green-cyan-background-color { background-color: #00d084; } + :root .editor-styles-wrapper .has-pale-cyan-blue-background-color, :root .has-pale-cyan-blue-background-color { background-color: #8ed1fc; } + :root .editor-styles-wrapper .has-vivid-cyan-blue-background-color, :root .has-vivid-cyan-blue-background-color { background-color: #0693e3; } + :root .editor-styles-wrapper .has-vivid-purple-background-color, :root .has-vivid-purple-background-color { background-color: #9b51e0; } + :root .editor-styles-wrapper .has-white-background-color, + :root .has-white-background-color { + background-color: #fff; } + :root .editor-styles-wrapper .has-very-light-gray-background-color, :root .has-very-light-gray-background-color { background-color: #eee; } + :root .editor-styles-wrapper .has-cyan-bluish-gray-background-color, :root .has-cyan-bluish-gray-background-color { background-color: #abb8c3; } + :root .editor-styles-wrapper .has-very-dark-gray-background-color, :root .has-very-dark-gray-background-color { background-color: #313131; } + :root .editor-styles-wrapper .has-black-background-color, + :root .has-black-background-color { + background-color: #000; } + :root .editor-styles-wrapper .has-pale-pink-color, :root .has-pale-pink-color { color: #f78da7; } + :root .editor-styles-wrapper .has-vivid-red-color, :root .has-vivid-red-color { color: #cf2e2e; } + :root .editor-styles-wrapper .has-luminous-vivid-orange-color, :root .has-luminous-vivid-orange-color { color: #ff6900; } + :root .editor-styles-wrapper .has-luminous-vivid-amber-color, :root .has-luminous-vivid-amber-color { color: #fcb900; } + :root .editor-styles-wrapper .has-light-green-cyan-color, :root .has-light-green-cyan-color { color: #7bdcb5; } + :root .editor-styles-wrapper .has-vivid-green-cyan-color, :root .has-vivid-green-cyan-color { color: #00d084; } + :root .editor-styles-wrapper .has-pale-cyan-blue-color, :root .has-pale-cyan-blue-color { color: #8ed1fc; } + :root .editor-styles-wrapper .has-vivid-cyan-blue-color, :root .has-vivid-cyan-blue-color { color: #0693e3; } + :root .editor-styles-wrapper .has-vivid-purple-color, :root .has-vivid-purple-color { color: #9b51e0; } + :root .editor-styles-wrapper .has-white-color, + :root .has-white-color { + color: #fff; } + :root .editor-styles-wrapper .has-very-light-gray-color, :root .has-very-light-gray-color { color: #eee; } + :root .editor-styles-wrapper .has-cyan-bluish-gray-color, :root .has-cyan-bluish-gray-color { color: #abb8c3; } + :root .editor-styles-wrapper .has-very-dark-gray-color, :root .has-very-dark-gray-color { color: #313131; } + :root .editor-styles-wrapper .has-black-color, + :root .has-black-color { + color: #000; } + :root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background, :root .has-vivid-cyan-blue-to-vivid-purple-gradient-background { background: linear-gradient(135deg, #0693e3 0%, #9b51e0 100%); } + :root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background, :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { background: linear-gradient(135deg, #00d084 0%, #0693e3 100%); } + :root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background, :root .has-light-green-cyan-to-vivid-green-cyan-gradient-background { background: linear-gradient(135deg, #7adcb4 0%, #00d082 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background, :root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background { background: linear-gradient(135deg, #fcb900 0%, #ff6900 100%); } + :root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background, :root .has-luminous-vivid-orange-to-vivid-red-gradient-background { background: linear-gradient(135deg, #ff6900 0%, #cf2e2e 100%); } + :root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background, :root .has-very-light-gray-to-cyan-bluish-gray-gradient-background { background: linear-gradient(135deg, #eeeeee 0%, #a9b8c3 100%); } + :root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background, :root .has-cool-to-warm-spectrum-gradient-background { background: linear-gradient(135deg, #4aeadc 0%, #9778d1 20%, #cf2aba 40%, #ee2c82 60%, #fb6962 80%, #fef84c 100%); } + :root .editor-styles-wrapper .has-blush-light-purple-gradient-background, :root .has-blush-light-purple-gradient-background { background: linear-gradient(135deg, #ffceec 0%, #9896f0 100%); } + :root .editor-styles-wrapper .has-blush-bordeaux-gradient-background, :root .has-blush-bordeaux-gradient-background { background: linear-gradient(135deg, #fecda5 0%, #fe2d2d 50%, #6b003e 100%); } + :root .editor-styles-wrapper .has-purple-crush-gradient-background, :root .has-purple-crush-gradient-background { background: linear-gradient(135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); } + :root .editor-styles-wrapper .has-luminous-dusk-gradient-background, :root .has-luminous-dusk-gradient-background { background: linear-gradient(135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%); } + :root .editor-styles-wrapper .has-hazy-dawn-gradient-background, :root .has-hazy-dawn-gradient-background { background: linear-gradient(135deg, #faaca8 0%, #dad0ec 100%); } + :root .editor-styles-wrapper .has-pale-ocean-gradient-background, :root .has-pale-ocean-gradient-background { background: linear-gradient(135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%); } + :root .editor-styles-wrapper .has-electric-grass-gradient-background, :root .has-electric-grass-gradient-background { background: linear-gradient(135deg, #caf880 0%, #71ce7e 100%); } + :root .editor-styles-wrapper .has-subdued-olive-gradient-background, :root .has-subdued-olive-gradient-background { background: linear-gradient(135deg, #fafae1 0%, #67a671 100%); } + :root .editor-styles-wrapper .has-atomic-cream-gradient-background, :root .has-atomic-cream-gradient-background { background: linear-gradient(135deg, #fdd79a 0%, #004a59 100%); } + :root .editor-styles-wrapper .has-nightshade-gradient-background, :root .has-nightshade-gradient-background { background: linear-gradient(135deg, #330968 0%, #31cdcf 100%); } + :root .editor-styles-wrapper .has-midnight-gradient-background, :root .has-midnight-gradient-background { background: linear-gradient(135deg, #020381 0%, #2874fc 100%); } + :root .editor-styles-wrapper .has-link-color a, + :root .has-link-color a { + color: #00e; + color: var(--wp--style--color--link, #00e); } +.editor-styles-wrapper .has-small-font-size, .has-small-font-size { font-size: 13px; } +.editor-styles-wrapper .has-regular-font-size, +.editor-styles-wrapper .has-normal-font-size, .has-regular-font-size, .has-normal-font-size { font-size: 16px; } +.editor-styles-wrapper .has-medium-font-size, .has-medium-font-size { font-size: 20px; } +.editor-styles-wrapper .has-large-font-size, .has-large-font-size { font-size: 36px; } +.editor-styles-wrapper .has-larger-font-size, +.editor-styles-wrapper .has-huge-font-size, .has-larger-font-size, .has-huge-font-size { font-size: 42px; } @@ -1824,3 +1927,9 @@ p.wp-block-subhead { .has-text-align-right { /*rtl:ignore*/ text-align: right; } + +#end-resizable-editor-section { + display: none; } + +.aligncenter { + clear: both; } diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css index f047ccc866..94e5f8af29 100644 --- a/wp-includes/css/dist/block-library/style.min.css +++ b/wp-includes/css/dist/block-library/style.min.css @@ -1,4 +1,4 @@ -.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button{color:#fff}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link{background-color:#32373c;border:none;border-radius:28px;box-shadow:none;color:inherit;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:inherit}.wp-gs .wp-block-button__link:not(.has-background){background-color:var(--wp-block-core-button--color--background,var(--wp-color--primary,#32373c))}.is-style-squared .wp-block-button__link{border-radius:0}.no-border-radius.wp-block-button__link{border-radius:0!important}.is-style-outline{color:#32373c}.is-style-outline .wp-block-button__link{background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:8px;margin-bottom:8px}.wp-block-buttons.alignright .wp-block-button{margin-right:none;margin-left:8px}.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:400;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:28px;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:20px 30px}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 16px)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style]{flex-grow:0}.wp-block-column:not(:first-child){margin-left:32px}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-color:#000;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:calc(100% - 70px);z-index:1;color:#f8f9f9}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:14px;text-align:center}.block-editor-block-list__block[data-type="core/embed"][data-align=left],.block-editor-block-list__block[data-type="core/embed"][data-align=right],.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.78%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 16px 16px 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc((100% - 16px)/2)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3);margin-right:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3 - 1px)}}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4);margin-right:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4 - 1px)}}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5);margin-right:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5 - 1px)}}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6);margin-right:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6 - 1px)}}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7);margin-right:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7 - 1px)}}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8);margin-right:16px}@supports (-ms-ime-align:auto){.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8 - 1px)}}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-right:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table;margin-left:0;margin-right:0}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-right:1em}.wp-block-image .alignright{float:right;margin-left:1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:left;height:40px;margin-right:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-latest-posts__post-excerpt{margin-top:8px;margin-bottom:16px}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.wp-block-media-text{ +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:28px;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;padding:12px 24px;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button.is-style-outline .wp-block-button__link,.wp-block-button__link.is-style-outline{color:#32373c;background-color:transparent;border:2px solid}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:8px;margin-bottom:8px}.wp-block-buttons .wp-block-button:last-child{margin-right:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:8px}.wp-block-buttons.alignright .wp-block-button:first-child{margin-left:0}.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:400;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:28px;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:20px 38px}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column{flex-basis:calc(50% - 16px)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-left:32px}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:16px}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim,.wp-block-cover.has-background-dim{background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:calc(100% - 70px);z-index:1;color:#f8f9f9}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:14px;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type^=core-embed],.wp-block[data-align=right]>[data-type^=core-embed]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type^=core-embed] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type^=core-embed] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 16px 16px 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc(50% - 16px)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - 10.66667px);margin-right:16px}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - 12px);margin-right:16px}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - 12.8px);margin-right:16px}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - 13.33333px);margin-right:16px}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - 13.71429px);margin-right:16px}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - 14px);margin-right:16px}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-right:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:20px 38px}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:left;height:40px;margin-right:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 20px 20px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 20px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 20px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 20px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 20px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 20px)}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-latest-posts__post-excerpt{margin-top:8px;margin-bottom:16px}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.wp-block-media-text{ /*!rtl:begin:ignore*/direction:ltr; /*!rtl:end:ignore*/display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{ /*!rtl:begin:ignore*/-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1; @@ -8,4 +8,4 @@ /*!rtl:begin:ignore*/-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1 /*!rtl:end:ignore*/}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{ /*!rtl:begin:ignore*/-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1 - /*!rtl:end:ignore*/}.wp-block-media-text>figure>img,.wp-block-media-text>figure>video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}}.wp-block-navigation>ul{display:block;list-style:none;margin:0;padding-left:0}@media (min-width:600px){.wp-block-navigation>ul{display:flex;flex-wrap:wrap}}.wp-block-navigation>ul ul{list-style:none;padding-left:0;margin-top:0;margin-left:0}.wp-block-navigation>ul ul li{margin:0}.wp-block-navigation>ul li{z-index:1}.wp-block-navigation>ul li:focus-within,.wp-block-navigation>ul li:hover{cursor:pointer;z-index:99999}.wp-block-navigation>ul li:focus-within>ul,.wp-block-navigation>ul li:hover>ul,.wp-block-navigation>ul li ul:focus,.wp-block-navigation>ul li ul:hover{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation>ul>li ul{position:absolute;left:0;top:100%;min-width:200px;max-width:200px;opacity:0;transition:opacity .1s linear;visibility:hidden}.wp-block-navigation,.wp-block-navigation .block-editor-block-list__layout{display:flex;flex-wrap:wrap}.wp-block-navigation .block-editor-block-list__layout .block-editor-block-list__layout{width:200px}.wp-block-navigation .block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{margin:0;width:auto}.wp-block-navigation,.wp-block-navigation>.wp-block-navigation__container{align-items:center;width:100%}.wp-block-navigation>.wp-block-navigation-link,.wp-block-navigation>.wp-block-navigation__container>.wp-block-navigation-link{display:flex;margin-top:0;margin-bottom:0}.wp-block-navigation .wp-block-navigation-link{position:relative;margin:0;min-height:56px;display:flex;line-height:1.4}.wp-block-navigation .wp-block-navigation-link .wp-block,.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link{min-height:auto;padding:0}.wp-block-navigation .wp-block-navigation-link .wp-block .wp-block-navigation-link{margin:0}.wp-block-navigation .wp-block-navigation-link>.block-editor-inner-blocks{display:none}.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link.is-editing.has-child>.block-editor-inner-blocks{display:flex;border:1px solid rgba(0,0,0,.15);position:absolute;z-index:1;top:100%;left:0}.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container .block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container .wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link.is-editing.has-child>.block-editor-inner-blocks .block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link.is-editing.has-child>.block-editor-inner-blocks .wp-block-navigation__container{left:100%;top:-1px}.wp-block-navigation .wp-block-navigation-link .block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link .wp-block-navigation__container{background-color:inherit;color:inherit}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content{display:flex;align-items:center;width:max-content;padding:6px 16px}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:first-child:not(:only-child) .wp-block-navigation-link__content{padding-top:8px}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link:last-child .wp-block-navigation-link__content{padding-bottom:8px}.wp-block-navigation .wp-block-navigation-link.has-child .wp-block-navigation-link__content{min-width:100%;padding-right:32px;position:relative}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon{position:absolute;right:16px}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__submenu-icon svg{fill:currentColor}.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link svg{transform:rotate(0)}.wp-block-navigation .wp-block-navigation-link.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color)>.block-editor-inner-blocks,.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color)>.wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link:not(.has-text-color)>.block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link:not(.has-text-color)>.wp-block-navigation__container{color:#111}.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background)>.block-editor-inner-blocks,.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-background)>.wp-block-navigation__container,.wp-block-navigation .wp-block-navigation-link:not(.has-background)>.block-editor-inner-blocks,.wp-block-navigation .wp-block-navigation-link:not(.has-background)>.wp-block-navigation__container{background-color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color)>.block-editor-inner-blocks,.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color)>.wp-block-navigation__container{color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background)>.block-editor-inner-blocks,.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-background)>.wp-block-navigation__container{background-color:#333}.wp-block-navigation .wp-block-navigation-link.has-child>.wp-block-navigation__container{display:flex;flex-direction:column;padding:0}.wp-block-navigation>ul>li>a{display:flex;align-items:center}.wp-block-navigation>ul>li:first-of-type>a{padding-left:0}.wp-block-navigation>ul>li:last-of-type>a{padding-right:0}.wp-block-navigation.items-justified-left>ul{justify-content:flex-start}.wp-block-navigation.items-justified-center>ul{justify-content:center}.wp-block-navigation.items-justified-right>ul{justify-content:flex-end}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 30px}p.has-text-color a{color:inherit}.wp-block-pullquote{padding:3em 0;margin-left:0;margin-right:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:right}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;max-width:360px}.wp-block-search .wp-block-search__button{margin-left:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:20px;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-social-links{display:flex;justify-content:flex-start;padding-left:0;padding-right:0;margin-left:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:36px;margin-right:8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1977f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0577b5;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#21a1f3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:#ff0100;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1977f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0577b5}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#21a1f3}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:#ff0100}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-left:16px;padding-right:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-left:0;margin-right:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.has-small-font-size{font-size:13px}.has-normal-font-size,.has-regular-font-size{font-size:16px}.has-medium-font-size{font-size:20px}.has-large-font-size{font-size:36px}.has-huge-font-size,.has-larger-font-size{font-size:42px}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right} \ No newline at end of file + /*!rtl:end:ignore*/}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}}.wp-block-navigation__container{list-style:none;margin:0;padding-left:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0;padding:8px}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);padding:6px 0;background-color:inherit;color:inherit;position:absolute;left:0;top:100%;width:fit-content;z-index:1;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link{font-size:15px}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-right:8px}@media (min-width:782px){.has-child .wp-block-navigation__container{left:24px}.has-child .wp-block-navigation__container .wp-block-navigation__container{left:calc(100% + 8px);top:-7px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:8px;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{text-decoration:none;padding:6px 16px}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{font-size:17px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:6px 16px}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(90deg)}}.wp-block-navigation.is-style-light .wp-block-navigation-link:not(.has-text-color),.wp-block-navigation .wp-block-navigation-link:not(.has-text-color){color:#111}.wp-block-navigation.is-style-light:not(.has-background) .wp-block-navigation__container,.wp-block-navigation:not(.has-background) .wp-block-navigation__container{background-color:#fff}.wp-block-navigation.is-style-dark .wp-block-navigation-link:not(.has-text-color){color:#fff}.wp-block-navigation.is-style-dark:not(.has-background) .wp-block-navigation__container{background-color:#333}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-placeholder__actions{display:flex;align-items:flex-start}.wp-block-navigation-placeholder__actions .components-base-control{margin-right:5px}.wp-block-navigation-placeholder__actions .components-select-control__input{margin:0;min-height:36px}.wp-block-navigation-placeholder__actions .wp-block-navigation-placeholder__button{height:36px}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;margin-bottom:0;min-width:220px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item{display:list-item;padding:10px 25px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;left:25px;right:25px;display:list-item;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin-top:3px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}p.has-background{padding:20px 38px}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap;line-height:1.5}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-right:16px}.wp-block-post-author__bio{margin-bottom:8px;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-left:0;margin-right:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:right}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;max-width:360px}.wp-block-search .wp-block-search__button{margin-left:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:20px;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-social-links{display:flex;justify-content:flex-start;padding-left:0;padding-right:0;margin-left:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:36px;margin-right:8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-left:16px;padding-right:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-left:0;margin-right:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}:root .editor-styles-wrapper .has-pale-pink-background-color,:root .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color,:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color,:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color,:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color,:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color,:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color,:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color,:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color,:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color,:root .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color,:root .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color,:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color,:root .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color,:root .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color,:root .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color,:root .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color,:root .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color,:root .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color,:root .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color,:root .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color,:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color,:root .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color,:root .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color,:root .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color,:root .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color,:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color,:root .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color,:root .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background,:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background,:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background,:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background,:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background,:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background,:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background,:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background,:root .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background,:root .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background,:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background,:root .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background,:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background,:root .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background,:root .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background,:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background,:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background,:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background,:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root .editor-styles-wrapper .has-link-color a,:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.editor-styles-wrapper .has-small-font-size,.has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size,.has-normal-font-size,.has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size,.has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size,.has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size,.has-huge-font-size,.has-larger-font-size{font-size:42px}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/theme-rtl.css b/wp-includes/css/dist/block-library/theme-rtl.css index f0511b19ee..82ce4611b0 100644 --- a/wp-includes/css/dist/block-library/theme-rtl.css +++ b/wp-includes/css/dist/block-library/theme-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,14 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + .wp-block-audio figcaption { color: #555d66; font-size: 13px; @@ -49,7 +72,7 @@ .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; + font-size: 15px; color: #23282d; padding: 0.8em 1em; border: 1px solid #e2e4e7; @@ -86,6 +109,9 @@ .wp-block-navigation ul li { list-style: none; } +.wp-block-navigation-link.wp-block-navigation-link { + margin: 0; } + .wp-block-quote { border-right: 4px solid #000; margin: 0 0 28px 0; @@ -149,3 +175,6 @@ color: #555d66; font-size: 13px; text-align: center; } + +#end-resizable-editor-section { + display: none; } diff --git a/wp-includes/css/dist/block-library/theme-rtl.min.css b/wp-includes/css/dist/block-library/theme-rtl.min.css index 8738e0f042..4874933c8d 100644 --- a/wp-includes/css/dist/block-library/theme-rtl.min.css +++ b/wp-includes/css/dist/block-library/theme-rtl.min.css @@ -1 +1 @@ -.wp-block-audio figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;margin-bottom:28px;color:#40464d}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-quote{border-right:4px solid #000;margin:0 0 28px;padding-right:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-right:none;border-left:4px solid #000;padding-right:0;padding-left:1em}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin-right:auto;margin-left:auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555d66;font-size:13px;text-align:center} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;margin-bottom:28px;color:#40464d}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation-link.wp-block-navigation-link{margin:0}.wp-block-quote{border-right:4px solid #000;margin:0 0 28px;padding-right:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-right:none;border-left:4px solid #000;padding-right:0;padding-left:1em}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin-right:auto;margin-left:auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555d66;font-size:13px;text-align:center}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/theme.css b/wp-includes/css/dist/block-library/theme.css index 312011a6a0..1b4e1fd735 100644 --- a/wp-includes/css/dist/block-library/theme.css +++ b/wp-includes/css/dist/block-library/theme.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,14 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +#start-resizable-editor-section { + display: none; } + .wp-block-audio figcaption { color: #555d66; font-size: 13px; @@ -49,7 +72,7 @@ .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; + font-size: 15px; color: #23282d; padding: 0.8em 1em; border: 1px solid #e2e4e7; @@ -86,6 +109,9 @@ .wp-block-navigation ul li { list-style: none; } +.wp-block-navigation-link.wp-block-navigation-link { + margin: 0; } + .wp-block-quote { border-left: 4px solid #000; margin: 0 0 28px 0; @@ -149,3 +175,6 @@ color: #555d66; font-size: 13px; text-align: center; } + +#end-resizable-editor-section { + display: none; } diff --git a/wp-includes/css/dist/block-library/theme.min.css b/wp-includes/css/dist/block-library/theme.min.css index ae92047044..4be15ff526 100644 --- a/wp-includes/css/dist/block-library/theme.min.css +++ b/wp-includes/css/dist/block-library/theme.min.css @@ -1 +1 @@ -.wp-block-audio figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;margin-bottom:28px;color:#40464d}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-quote{border-left:4px solid #000;margin:0 0 28px;padding-left:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-left:none;border-right:4px solid #000;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin-left:auto;margin-right:auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555d66;font-size:13px;text-align:center} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.blocks-gallery-caption,.wp-block-embed figcaption,.wp-block-image figcaption{color:#555d66;font-size:13px;text-align:center}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;margin-bottom:28px;color:#40464d}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation-link.wp-block-navigation-link{margin:0}.wp-block-quote{border-left:4px solid #000;margin:0 0 28px;padding-left:1em}.wp-block-quote__citation,.wp-block-quote cite,.wp-block-quote footer{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-left:none;border-right:4px solid #000;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-group.has-background{padding:20px 30px;margin-top:0;margin-bottom:0}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin-left:auto;margin-right:auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{border-collapse:collapse}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption,.wp-block-video figcaption{color:#555d66;font-size:13px;text-align:center}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index 30dcd3188c..9f2c0788d8 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -8,7 +8,26 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -20,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -38,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .components-animate__appear { animation: components-animate__appear-animation 0.1s cubic-bezier(0, 0, 0.2, 1) 0s; animation-fill-mode: forwards; } @@ -67,6 +91,8 @@ 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 { 100% { @@ -88,9 +114,47 @@ .components-angle-picker-control.components-base-control .components-base-control__label { display: block; } -.components-angle-picker-control__input-field { +.components-angle-picker-control__input-field[type="number"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; width: calc(100% - 36px); max-width: 100px; } + @media (prefers-reduced-motion: reduce) { + .components-angle-picker-control__input-field[type="number"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-angle-picker-control__input-field[type="number"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-angle-picker-control__input-field[type="number"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-angle-picker-control__angle-circle { width: 28px; @@ -120,42 +184,18 @@ margin: auto; background: #555d66; } -.components-autocomplete__popover .components-popover__content { - min-width: 200px; } - -.components-autocomplete__popover .components-autocomplete__results { - padding: 3px; - display: flex; - flex-direction: column; - align-items: stretch; } - .components-autocomplete__popover .components-autocomplete__results:empty { - display: none; } +.components-autocomplete__popover .components-popover__content > div { + padding: 16px; } .components-autocomplete__result.components-button { - margin-bottom: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - color: #555d66; display: flex; - flex-direction: row; - flex-grow: 1; - flex-shrink: 0; - align-items: center; - padding: 6px 8px; - margin-right: -3px; - margin-left: -3px; - text-align: right; } + height: auto; + min-height: 36px; + text-align: right; + width: 100%; } .components-autocomplete__result.components-button.is-selected { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-autocomplete__result.components-button:hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } + box-shadow: 0 0 0 2px #007cba; + box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } .components-base-control { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -166,30 +206,29 @@ margin-bottom: inherit; } .components-base-control .components-base-control__label { display: inline-block; - margin-bottom: 4px; } + margin-bottom: 8px; } .components-base-control .components-base-control__help { margin-top: -8px; font-style: italic; } -.components-base-control + .components-base-control { - margin-bottom: 16px; } - .components-button-group { display: inline-block; } .components-button-group .components-button { border-radius: 0; - display: inline-flex; } + display: inline-flex; + color: #1e1e1e; + box-shadow: inset 0 0 0 1px #1e1e1e; } .components-button-group .components-button + .components-button { margin-right: -1px; } .components-button-group .components-button:first-child { - border-radius: 0 3px 3px 0; } + border-radius: 0 2px 2px 0; } .components-button-group .components-button:last-child { - border-radius: 3px 0 0 3px; } + border-radius: 2px 0 0 2px; } .components-button-group .components-button:focus, .components-button-group .components-button.is-primary { position: relative; z-index: 1; } .components-button-group .components-button.is-primary { - box-shadow: none; } + box-shadow: inset 0 0 0 1px #1e1e1e; } .components-button { display: inline-flex; @@ -204,306 +243,110 @@ height: 36px; align-items: center; box-sizing: border-box; - padding: 0 8px; + padding: 6px 12px; overflow: hidden; - border-radius: 3px; - color: #555d66; - /* Buttons that look like links, for a cross of good semantics with the visual */ - /* Link buttons that are red to indicate destructive behavior. */ } + border-radius: 2px; + color: #1e1e1e; + /** + * Primary button style. + */ + /** + * Secondary and tertiary buttons. + */ + /** + * Secondary button style. + */ + /** + * Tertiary buttons. + */ + /** + * Link buttons. + */ } @media (prefers-reduced-motion: reduce) { .components-button { transition-duration: 0s; } } - .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } - .components-button.is-secondary { - border-width: 1px; - border-style: solid; - white-space: nowrap; - color: rgb(0, 117, 175); - border-color: rgb(0, 117, 175); - background: #f3f5f6; } - body.admin-color-sunrise .components-button.is-secondary { - color: rgb(196, 126, 70); - border-color: rgb(196, 126, 70); } - body.admin-color-ocean .components-button.is-secondary { - color: rgb(153, 174, 152); - border-color: rgb(153, 174, 152); } - body.admin-color-midnight .components-button.is-secondary { - color: rgb(212, 72, 63); - border-color: rgb(212, 72, 63); } - body.admin-color-ectoplasm .components-button.is-secondary { - color: rgb(157, 171, 81); - border-color: rgb(157, 171, 81); } - body.admin-color-coffee .components-button.is-secondary { - color: rgb(182, 156, 132); - border-color: rgb(182, 156, 132); } - body.admin-color-blue .components-button.is-secondary { - color: rgb(204, 161, 84); - border-color: rgb(204, 161, 84); } - body.admin-color-light .components-button.is-secondary { - color: rgb(0, 125, 175); - border-color: rgb(0, 125, 175); } - .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - background: #f1f1f1; - border-color: rgb(0, 93, 140); - color: rgb(0, 93, 140); - text-decoration: none; } - body.admin-color-sunrise .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(157, 101, 56); - color: rgb(157, 101, 56); } - body.admin-color-ocean .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(122, 139, 122); - color: rgb(122, 139, 122); } - body.admin-color-midnight .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(169, 58, 50); - color: rgb(169, 58, 50); } - body.admin-color-ectoplasm .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(125, 137, 65); - color: rgb(125, 137, 65); } - body.admin-color-coffee .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(146, 125, 105); - color: rgb(146, 125, 105); } - body.admin-color-blue .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(163, 128, 67); - color: rgb(163, 128, 67); } - body.admin-color-light .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(0, 100, 140); - color: rgb(0, 100, 140); } - .components-button.is-secondary:focus:enabled { - background: #f3f5f6; - color: rgb(0, 93, 140); - border-color: rgb(0, 118, 177); - box-shadow: 0 0 0 1px rgb(0, 118, 177); - text-decoration: none; } - body.admin-color-sunrise .components-button.is-secondary:focus:enabled { - color: rgb(157, 101, 56); - border-color: rgb(199, 127, 70); - box-shadow: 0 0 0 1px rgb(199, 127, 70); } - body.admin-color-ocean .components-button.is-secondary:focus:enabled { - color: rgb(122, 139, 122); - border-color: rgb(155, 176, 154); - box-shadow: 0 0 0 1px rgb(155, 176, 154); } - body.admin-color-midnight .components-button.is-secondary:focus:enabled { - color: rgb(169, 58, 50); - border-color: rgb(214, 73, 64); - box-shadow: 0 0 0 1px rgb(214, 73, 64); } - body.admin-color-ectoplasm .components-button.is-secondary:focus:enabled { - color: rgb(125, 137, 65); - border-color: rgb(159, 173, 82); - box-shadow: 0 0 0 1px rgb(159, 173, 82); } - body.admin-color-coffee .components-button.is-secondary:focus:enabled { - color: rgb(146, 125, 105); - border-color: rgb(184, 158, 133); - box-shadow: 0 0 0 1px rgb(184, 158, 133); } - body.admin-color-blue .components-button.is-secondary:focus:enabled { - color: rgb(163, 128, 67); - border-color: rgb(206, 162, 85); - box-shadow: 0 0 0 1px rgb(206, 162, 85); } - body.admin-color-light .components-button.is-secondary:focus:enabled { - color: rgb(0, 100, 140); - border-color: rgb(0, 126, 177); - box-shadow: 0 0 0 1px rgb(0, 126, 177); } - .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - background: #f3f5f6; - color: rgb(0, 118, 177); - border-color: #7e8993; - box-shadow: none; } - body.admin-color-sunrise .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(199, 127, 70); } - body.admin-color-ocean .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(155, 176, 154); } - body.admin-color-midnight .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(214, 73, 64); } - body.admin-color-ectoplasm .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(159, 173, 82); } - body.admin-color-coffee .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(184, 158, 133); } - body.admin-color-blue .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(206, 162, 85); } - body.admin-color-light .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(0, 126, 177); } - .components-button.is-secondary:disabled, .components-button.is-secondary[aria-disabled="true"] { - color: #a0a5aa; - border-color: #ddd; - background: #f7f7f7; - text-shadow: 0 1px 0 #fff; - transform: none; - opacity: 1; } + .components-button[aria-expanded="true"], .components-button:hover { + color: #007cba; + color: var(--wp-admin-theme-color); } + .components-button[aria-disabled="true"]:hover { + color: initial; } + .components-button:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 1px solid transparent; } .components-button.is-primary { - border-width: 1px; - border-style: solid; white-space: nowrap; - background: rgb(0, 124, 186); - border-color: rgb(0, 124, 186); + background: #007cba; + background: var(--wp-admin-theme-color); color: #fff; text-decoration: none; text-shadow: none; } - body.admin-color-sunrise .components-button.is-primary { - background: rgb(209, 134, 74); - border-color: rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary { - background: rgb(163, 185, 162); - border-color: rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary { - background: rgb(225, 77, 67); - border-color: rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary { - background: rgb(167, 182, 86); - border-color: rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary { - background: rgb(194, 166, 140); - border-color: rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary { - background: rgb(217, 171, 89); - border-color: rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary { - background: rgb(0, 133, 186); - border-color: rgb(0, 133, 186); } - .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, .components-button.is-primary:focus:enabled { - background: rgb(0, 112, 167); - border-color: rgb(0, 112, 167); + .components-button.is-primary:hover:not(:disabled) { + background: #006ba1; + background: var(--wp-admin-theme-color-darker-10); color: #fff; } - body.admin-color-sunrise .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { - background: rgb(188, 121, 67); - border-color: rgb(188, 121, 67); } - body.admin-color-ocean .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { - background: rgb(147, 167, 146); - border-color: rgb(147, 167, 146); } - body.admin-color-midnight .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { - background: rgb(203, 69, 60); - border-color: rgb(203, 69, 60); } - body.admin-color-ectoplasm .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { - background: rgb(150, 164, 77); - border-color: rgb(150, 164, 77); } - body.admin-color-coffee .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { - background: rgb(175, 149, 126); - border-color: rgb(175, 149, 126); } - body.admin-color-blue .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-blue .components-button.is-primary:focus:enabled { - background: rgb(195, 154, 80); - border-color: rgb(195, 154, 80); } - body.admin-color-light .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-light .components-button.is-primary:focus:enabled { - background: rgb(0, 120, 167); - border-color: rgb(0, 120, 167); } - .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); } - body.admin-color-sunrise .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); } - .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(0, 99, 149); - border-color: rgb(0, 99, 149); + .components-button.is-primary:active:not(:disabled) { + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); + border-color: #005a87; + border-color: var(--wp-admin-theme-color-darker-20); color: #fff; } - body.admin-color-sunrise .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(167, 107, 59); - border-color: rgb(167, 107, 59); } - body.admin-color-ocean .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(130, 148, 130); - border-color: rgb(130, 148, 130); } - body.admin-color-midnight .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(180, 62, 54); - border-color: rgb(180, 62, 54); } - body.admin-color-ectoplasm .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(134, 146, 69); - border-color: rgb(134, 146, 69); } - body.admin-color-coffee .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(155, 133, 112); - border-color: rgb(155, 133, 112); } - body.admin-color-blue .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(174, 137, 71); - border-color: rgb(174, 137, 71); } - body.admin-color-light .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(0, 106, 149); - border-color: rgb(0, 106, 149); } + .components-button.is-primary:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 1px solid transparent; } .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"]:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(102, 176, 214); - background: rgb(25, 137, 193); - border-color: rgb(25, 137, 193); + color: rgba(255, 255, 255, 0.4); + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); opacity: 1; } - body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"], body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(227, 182, 146); - background: rgb(214, 146, 92); - border-color: rgb(214, 146, 92); } - body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"], body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(200, 213, 199); - background: rgb(172, 192, 171); - border-color: rgb(172, 192, 171); } - body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"], body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(237, 148, 142); - background: rgb(228, 95, 86); - border-color: rgb(228, 95, 86); } - body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"], body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(202, 211, 154); - background: rgb(176, 189, 103); - border-color: rgb(176, 189, 103); } - body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"], body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(218, 202, 186); - background: rgb(200, 175, 152); - border-color: rgb(200, 175, 152); } - body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"], body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(232, 205, 155); - background: rgb(221, 179, 106); - border-color: rgb(221, 179, 106); } - body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(102, 182, 214); - background: rgb(25, 145, 193); - border-color: rgb(25, 145, 193); } .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); } - body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary:disabled:focus:enabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary:disabled:focus:enabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] { color: #fff; background-size: 100px 100%; /* stylelint-disable */ - background-image: linear-gradient(45deg, #007cba 28%, rgb(0, 99, 149) 28%, rgb(0, 99, 149) 72%, #007cba 72%); + background-image: linear-gradient(45deg, #007cba 28%, #005a87 28%, #005a87 72%, #007cba 72%); + background-image: linear-gradient(45deg, var(--wp-admin-theme-color) 28%, var(--wp-admin-theme-color-darker-20) 28%, var(--wp-admin-theme-color-darker-20) 72%, var(--wp-admin-theme-color) 72%); /* stylelint-enable */ - border-color: rgb(0, 124, 186); } - body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #d1864a 28%, rgb(167, 107, 59) 28%, rgb(167, 107, 59) 72%, #d1864a 72%); - border-color: rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #a3b9a2 28%, rgb(130, 148, 130) 28%, rgb(130, 148, 130) 72%, #a3b9a2 72%); - border-color: rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #e14d43 28%, rgb(180, 62, 54) 28%, rgb(180, 62, 54) 72%, #e14d43 72%); - border-color: rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #a7b656 28%, rgb(134, 146, 69) 28%, rgb(134, 146, 69) 72%, #a7b656 72%); - border-color: rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #c2a68c 28%, rgb(155, 133, 112) 28%, rgb(155, 133, 112) 72%, #c2a68c 72%); - border-color: rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #d9ab59 28%, rgb(174, 137, 71) 28%, rgb(174, 137, 71) 72%, #d9ab59 72%); - border-color: rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(45deg, #0085ba 28%, rgb(0, 106, 149) 28%, rgb(0, 106, 149) 72%, #0085ba 72%); - border-color: rgb(0, 133, 186); } + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-button.is-secondary:active:not(:disabled), .components-button.is-tertiary:active:not(:disabled) { + background: #e7e8e9; + color: #006ba1; + color: var(--wp-admin-theme-color-darker-10); + box-shadow: none; } + .components-button.is-secondary:hover:not(:disabled), .components-button.is-tertiary:hover:not(:disabled) { + color: #006ba1; + color: var(--wp-admin-theme-color-darker-10); + box-shadow: inset 0 0 0 1px #006ba1; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color-darker-10); } + .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 { + color: #828282; + background: #f4f5f5; + transform: none; + opacity: 1; + box-shadow: none; } + .components-button.is-secondary { + box-shadow: inset 0 0 0 1px #007cba; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); + outline: 1px solid transparent; + white-space: nowrap; + color: #007cba; + color: var(--wp-admin-theme-color); + background: transparent; } + .components-button.is-tertiary { + white-space: nowrap; + color: #007cba; + color: var(--wp-admin-theme-color); + background: transparent; + padding: 6px; } + .components-button.is-tertiary .dashicon { + display: inline-block; + flex: 0 0 auto; } .components-button.is-link { margin: 0; padding: 0; @@ -523,11 +366,11 @@ @media (prefers-reduced-motion: reduce) { .components-button.is-link { transition-duration: 0s; } } - .components-button.is-link:not(:disabled):not([aria-disabled="true"]):hover, .components-button.is-link:not([aria-disabled="true"]):active { + .components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) { color: #00a0d2; } .components-button.is-link:focus { color: #124964; - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); } + box-shadow: 0 0 0 1px #5b9dd9, 0 0 1.5px 1px rgba(30, 140, 190, 0.8); } .components-button.is-link.is-destructive { color: #d94f4f; } .components-button:not([aria-disabled="true"]):active { @@ -535,67 +378,45 @@ .components-button:disabled, .components-button[aria-disabled="true"] { cursor: default; opacity: 0.3; } - .components-button:focus:not(:disabled) { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } .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 2500ms infinite linear; + opacity: 1; background-size: 100px 100%; - background-image: repeating-linear-gradient(45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px); - opacity: 1; } + /* stylelint-disable */ + background-image: linear-gradient(45deg, #fafafa 28%, #e0e0e0 28%, #e0e0e0 72%, #fafafa 72%); + /* stylelint-enable */ } .components-button.is-small { height: 24px; line-height: 22px; padding: 0 8px; font-size: 11px; } - .components-button.is-tertiary { - color: #007cba; } - body.admin-color-sunrise .components-button.is-tertiary { - color: #837425; } - body.admin-color-ocean .components-button.is-tertiary { - color: #5e7d5e; } - body.admin-color-midnight .components-button.is-tertiary { - color: #497b8d; } - body.admin-color-ectoplasm .components-button.is-tertiary { - color: #523f6d; } - body.admin-color-coffee .components-button.is-tertiary { - color: #59524c; } - body.admin-color-blue .components-button.is-tertiary { - color: #417e9B; } - body.admin-color-light .components-button.is-tertiary { - color: #007cba; } - .components-button.is-tertiary .dashicon { + .components-button.is-small.has-icon:not(.has-text) { + padding: 0 8px; + width: 24px; } + .components-button.has-icon { + padding: 6px; + min-width: 36px; + justify-content: center; } + .components-button.has-icon .dashicon { display: inline-block; flex: 0 0 auto; } - .components-button.is-tertiary:not([aria-disabled="true"]):active:focus:enabled { - box-shadow: none; } - .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(0, 93, 140); } - body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(98, 87, 28); } - body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(71, 94, 71); } - body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(55, 92, 106); } - body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(62, 47, 82); } - body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(67, 62, 57); } - body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(49, 95, 116); } - body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(0, 93, 140); } - .components-button.has-icon .dashicon { - display: inline-block; - flex: 0 0 auto; } - .components-button.has-icon.has-text svg { - margin-left: 8px; } + .components-button.has-icon.has-text { + justify-content: left; } + .components-button.has-icon.has-text svg { + margin-left: 8px; } + .components-button.is-pressed { + color: #fff; + background: #1e1e1e; } + .components-button.is-pressed:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-button.is-pressed:hover:not(:disabled) { + background: #1e1e1e; } .components-button svg { fill: currentColor; outline: none; } - .components-button .screen-reader-text { + .components-button .components-visually-hidden { height: auto; } @keyframes components-button__busy-animation { @@ -603,9 +424,22 @@ background-position: 200px 0; } } .components-checkbox-control__input[type="checkbox"] { - border: 1px solid #b4b9be; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 2px solid #757575; + margin-left: 12px; + transition: none; + border-radius: 2px; background: #fff; - color: #555; + color: #1e1e1e; clear: none; cursor: pointer; display: inline-block; @@ -615,22 +449,94 @@ padding: 0 !important; text-align: center; vertical-align: top; - width: 25px; - height: 25px; + width: 24px; + height: 24px; -webkit-appearance: none; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - transition: 0.05s border-color ease-in-out; } + appearance: none; + transition: 0.1s border-color ease-in-out; } + @media (prefers-reduced-motion: reduce) { + .components-checkbox-control__input[type="checkbox"] { + transition-duration: 0s; } } @media (min-width: 600px) { .components-checkbox-control__input[type="checkbox"] { - height: 16px; - width: 16px; } } + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } .components-checkbox-control__input[type="checkbox"]:focus { - border-color: #5b9dd9; - box-shadow: 0 0 2px rgba(30, 140, 190, 0.8); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-checkbox-control__input[type="checkbox"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-checkbox-control__input[type="checkbox"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-checkbox-control__input[type="checkbox"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-checkbox-control__input[type="checkbox"]:focus { + border-color: #757575; + box-shadow: 0 0 0 1px #757575; } + .components-checkbox-control__input[type="checkbox"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"]:checked:focus { + box-shadow: 0 0 0 1.5px #757575; } + .components-checkbox-control__input[type="checkbox"]:checked::before, .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + margin: -3px -5px; + color: #fff; } + @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: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + content: "\f460"; + float: right; + display: inline-block; + vertical-align: middle; + width: 16px; + /* stylelint-disable */ + font: normal 30px/1 dashicons; + /* stylelint-enable */ + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + @media (min-width: 782px) { + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + float: none; + font-size: 21px; } } + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]:focus { + box-shadow: 0 0 0 1.5px #555d66; } + @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-duration: 0s; } } + .components-checkbox-control__input[type="checkbox"]:focus { + box-shadow: 0 0 0 2px #007cba; + box-shadow: 0 0 0 2px var(--wp-admin-theme-color); outline: 2px solid transparent; } .components-checkbox-control__input[type="checkbox"]:checked { - background: #11a0d2; - border-color: #11a0d2; } + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } .components-checkbox-control__input[type="checkbox"]:checked::-ms-check { opacity: 0; } .components-checkbox-control__input[type="checkbox"]:focus:checked { @@ -643,30 +549,29 @@ display: inline-block; margin-left: 12px; vertical-align: middle; - width: 25px; - height: 25px; } + width: 24px; + height: 24px; } @media (min-width: 600px) { .components-checkbox-control__input-container { - width: 16px; - height: 16px; } } + width: 20px; + height: 20px; } } svg.components-checkbox-control__checked { fill: #fff; cursor: pointer; position: absolute; - right: -4px; - top: -2px; - width: 31px; - height: 31px; + right: 0; + top: 0; + width: 24px; + height: 24px; -webkit-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; } @media (min-width: 600px) { svg.components-checkbox-control__checked { - width: 21px; - height: 21px; - right: -3px; } } + right: -2px; + top: -2px; } } .components-circular-option-picker { display: inline-block; @@ -725,14 +630,14 @@ svg.components-checkbox-control__checked { .components-circular-option-picker__option.is-pressed { box-shadow: inset 0 0 0 4px; position: relative; - z-index: 1; } + z-index: 1; + overflow: visible; } .components-circular-option-picker__option.is-pressed + svg { position: absolute; right: 2px; top: 2px; border-radius: 50%; z-index: 2; - background: #fff; pointer-events: none; } .components-circular-option-picker__option::after { content: ""; @@ -804,8 +709,7 @@ svg.components-checkbox-control__checked { * THE SOFTWARE. */ .components-color-picker { - width: 100%; - overflow: hidden; } + width: 100%; } .components-color-picker * { box-sizing: border-box; } @@ -866,7 +770,7 @@ svg.components-checkbox-control__checked { bottom: 0; } .components-color-picker__saturation-color { - overflow: hidden; } + overflow: visible; } .components-color-picker__saturation-white { background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); } @@ -874,14 +778,16 @@ svg.components-checkbox-control__checked { .components-color-picker__saturation-black { background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); } -.components-color-picker__saturation-pointer { +.components-button.components-color-picker__saturation-pointer { width: 14px; height: 14px; padding: 0; - box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4); border-radius: 50%; background-color: transparent; - transform: translate(4px, -4px); } + transform: translate(50%, -50%); + box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px #000, 0 0 0 2px #000; } + .components-button.components-color-picker__saturation-pointer:focus:not(:disabled) { + box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px #000, 0 0 0 3px #000; } /* HUE & ALPHA BARS */ .components-color-picker__toggles { @@ -969,7 +875,7 @@ svg.components-checkbox-control__checked { flex-grow: 1; margin-left: 4px; } .components-color-picker__inputs-fields .components-base-control + .components-base-control { - margin-bottom: 0; } + margin-top: 0; } .components-color-picker__inputs-fields .components-base-control__field { margin: 0 4px; } @@ -987,7 +893,7 @@ svg.components-checkbox-control__checked { width: 100%; height: 24px; border-radius: 24px; - margin-bottom: 16px; + margin-bottom: 8px; padding-right: 3px; padding-left: 21px; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container { @@ -1015,7 +921,8 @@ svg.components-checkbox-control__checked { background: #fafafa; color: #23282d; border-color: #999; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point { margin-right: auto; @@ -1050,45 +957,53 @@ svg.components-checkbox-control__checked { border-radius: 2px; } .components-custom-select-control { - color: #555d66; position: relative; } .components-custom-select-control__label { display: block; - margin-bottom: 5px; } + margin-bottom: 8px; } .components-custom-select-control__button { - border: 1px solid #7e8993; - border-radius: 4px; - color: #555d66; - display: inline; + border: 1px solid #757575; + border-radius: 2px; min-height: 30px; min-width: 130px; position: relative; text-align: right; } - .components-custom-select-control__button:focus { - border-color: #00a0d2; } - .components-custom-select-control__button-icon { + .components-custom-select-control__button.components-custom-select-control__button { + padding-left: 24px; } + .components-custom-select-control__button:focus:not(:disabled) { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); } + .components-custom-select-control__button .components-custom-select-control__button-icon { height: 100%; - padding: 0 4px; + padding: 0; position: absolute; left: 0; top: 0; } .components-custom-select-control__menu { - background: #fff; + background-color: #fff; max-height: 400px; min-width: 100%; overflow: auto; padding: 0; position: absolute; z-index: 1000000; } + .components-custom-select-control__menu:focus { + border: 1px solid #1e1e1e; + border-radius: 2px; + outline: none; + transition: none; } .components-custom-select-control__item { align-items: center; display: flex; list-style-type: none; - padding: 10px 25px 10px 5px; } + padding: 10px 25px 10px 5px; + cursor: default; } .components-custom-select-control__item.is-highlighted { background: #e2e4e7; } .components-custom-select-control__item-icon { @@ -1916,12 +1831,15 @@ svg.dashicon { width: 15px; fill: #cacccd; } .components-datetime { - padding: 16px; } + padding: 0; } .components-datetime .components-datetime__calendar-help { padding: 16px; } .components-datetime .components-datetime__calendar-help h4 { margin: 0; } - .components-datetime .components-datetime__date-help-button { + .components-datetime .components-datetime__buttons { + display: flex; + justify-content: space-between; } + .components-datetime .components-datetime__date-help-toggle { display: block; margin-right: auto; } .components-datetime fieldset { @@ -1932,8 +1850,8 @@ svg.dashicon { .components-datetime input { box-shadow: 0 0 0 transparent; transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #7e8993; } + border-radius: 2px; + border: 1px solid #757575; } @media (prefers-reduced-motion: reduce) { .components-datetime select, .components-datetime input { @@ -1952,50 +1870,35 @@ svg.dashicon { right: 0; } .components-datetime__date .CalendarMonth_caption { font-size: 13px; } + .components-datetime__date .CalendarMonth_table { + border-collapse: separate; + border-spacing: 2px; } .components-datetime__date .CalendarDay { font-size: 13px; - border: 1px solid transparent; + border: none; border-radius: 50%; text-align: center; } + .components-datetime__date .CalendarDay:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; + outline: 2px solid transparent; } .components-datetime__date .CalendarDay__selected { - background: #0085ba; } - body.admin-color-sunrise .components-datetime__date .CalendarDay__selected { - background: #d1864a; } - body.admin-color-ocean .components-datetime__date .CalendarDay__selected { - background: #a3b9a2; } - body.admin-color-midnight .components-datetime__date .CalendarDay__selected { - background: #e14d43; } - body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected { - background: #a7b656; } - body.admin-color-coffee .components-datetime__date .CalendarDay__selected { - background: #c2a68c; } - body.admin-color-blue .components-datetime__date .CalendarDay__selected { - background: #82b4cb; } - body.admin-color-light .components-datetime__date .CalendarDay__selected { - background: #0085ba; } + background: #007cba; + background: var(--wp-admin-theme-color); + border: 2px solid transparent; } .components-datetime__date .CalendarDay__selected:hover { - background: rgb(0, 113, 158); } - body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover { - background: rgb(178, 114, 63); } - body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover { - background: rgb(139, 157, 138); } - body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover { - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover { - background: rgb(142, 155, 73); } - body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover { - background: rgb(165, 141, 119); } - body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover { - background: rgb(111, 153, 173); } - body.admin-color-light .components-datetime__date .CalendarDay__selected:hover { - background: rgb(0, 113, 158); } + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); } + .components-datetime__date .CalendarDay__selected:focus { + box-shadow: inset 0 0 0 1px #fff; } .components-datetime__date .DayPickerNavigation_button__horizontalDefault { padding: 2px 8px; top: 20px; } .components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus { - color: #191e23; border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } .components-datetime__date .DayPicker_weekHeader { top: 50px; } @@ -2003,8 +1906,7 @@ svg.dashicon { margin: 1px 0; padding-right: 0; padding-left: 0; } - .components-datetime__date.is-description-visible .DayPicker, - .components-datetime__date.is-description-visible .components-datetime__date-help-button { + .components-datetime__date.is-description-visible .DayPicker { visibility: hidden; } .components-datetime__time { @@ -2022,30 +1924,8 @@ svg.dashicon { display: inline-block; padding: 0 0 0 3px; color: #555d66; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button { - margin-right: 8px; - margin-left: -1px; - border-radius: 0 3px 3px 0; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button { - margin-right: -1px; - border-radius: 3px 0 0 3px; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button:focus, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button:focus { - position: relative; - z-index: 1; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed { - background: #edeff0; - border-color: #8f98a1; - box-shadow: inset 0 2px 5px -3px #555d66; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed:focus, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed:focus { - box-shadow: inset 0 2px 5px -3px #555d66, 0 0 0 1px #fff, 0 0 0 3px #007cba; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { direction: ltr; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button { - font-size: 11px; - font-weight: 600; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { margin-left: 4px; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus { @@ -2063,7 +1943,7 @@ svg.dashicon { -webkit-appearance: none; margin: 0; } .components-datetime__time.is-12-hour .components-datetime__time-field-day input { - margin: 0 0 0 -4px !important; + margin: -4px 0 0 !important; border-radius: 0 4px 4px 0 !important; } .components-datetime__time.is-12-hour .components-datetime__time-field-year input { border-radius: 4px 0 0 4px !important; } @@ -2131,11 +2011,13 @@ body.is-dragging-components-draggable { .components-draggable__clone { position: fixed; - padding: 20px; + padding: 0; background: transparent; pointer-events: none; - z-index: 1000000000; - opacity: 0.8; } + z-index: 1000000000; } + .components-draggable__clone > * { + margin-top: 0 !important; + margin-bottom: 0 !important; } .components-drop-zone { position: absolute; @@ -2198,24 +2080,14 @@ body.is-dragging-components-draggable { .components-dropdown { display: inline-block; } -.components-dropdown-menu__indicator::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-right: 3px solid transparent; - border-left: 3px solid transparent; - border-top: 5px solid; - margin-right: 4px; - margin-left: 2px; } +.components-dropdown__content .components-popover__content > div { + padding: 12px; } .components-dropdown-menu__popover .components-popover__content { width: 200px; } .components-dropdown-menu__menu { width: 100%; - padding: 7px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; } @@ -2242,52 +2114,52 @@ body.is-dragging-components-draggable { right: 0; left: 0; height: 1px; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-secondary), - .components-dropdown-menu__menu .components-menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-secondary) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:hover, .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover, - .components-dropdown-menu__menu .components-menu-item:hover, - .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; - box-shadow: none; } + .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg, + .components-dropdown-menu__menu .components-menu-item.is-active svg { + color: #fff; + background: #1e1e1e; + box-shadow: 0 0 0 1px #1e1e1e; + border-radius: 1px; } .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg, .components-dropdown-menu__menu .components-menu-item > svg { - border-radius: 4px; - padding: 2px; + border-radius: 2px; width: 24px; - height: 24px; - margin: -1px 0 -1px 8px; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary).is-active > svg, - .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary).is-active > svg { - outline: none; - color: #fff; - box-shadow: none; - background: #555d66; } - .components-dropdown-menu__menu .components-menu-group:not(:last-child) { - border-bottom: 1px solid #e2e4e7; } + height: 24px; } .components-dropdown-menu__menu .components-menu-item__button, .components-dropdown-menu__menu .components-menu-item__button.components-button { + min-height: 36px; height: auto; - padding-right: 2rem; } + padding-right: 40px; + text-align: right; } .components-dropdown-menu__menu .components-menu-item__button.has-icon, .components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon { - padding-right: 0.5rem; } - .components-dropdown-menu__menu .components-menu-item__button .dashicon, - .components-dropdown-menu__menu .components-menu-item__button.components-button .dashicon { - margin-left: 4px; } + padding-right: 8px; } + .components-dropdown-menu__menu .components-menu-group { + padding: 12px; + margin-top: 0; + margin-bottom: 0; + margin-right: -12px; + margin-left: -12px; } + .components-dropdown-menu__menu .components-menu-group:first-child { + margin-top: -12px; } + .components-dropdown-menu__menu .components-menu-group:last-child { + margin-bottom: -12px; } + .components-dropdown-menu__menu .components-menu-group + .components-menu-group { + margin-top: 0; + border-top: 1px solid #ccc; + padding: 12px; } + .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { + border-color: #1e1e1e; } + +.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button { + padding: 0 12px; } .components-external-link__icon { width: 1.4em; height: 1.4em; margin: -0.2em 0.1em 0; - vertical-align: middle; } + vertical-align: middle; + fill: currentColor; } .components-focal-point-picker-wrapper { background-color: transparent; @@ -2335,21 +2207,8 @@ body.is-dragging-components-draggable { .components-focal-point-picker__icon .components-focal-point-picker__icon-outline { fill: #fff; } .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #0085ba; } - body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #d1864a; } - body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #a3b9a2; } - body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #e14d43; } - body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #a7b656; } - body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #c2a68c; } - body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #82b4cb; } - body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #0085ba; } + fill: #007cba; + fill: var(--wp-admin-theme-color); } .components-focal-point-picker_position-display-container { margin: 1em 0; @@ -2365,27 +2224,68 @@ body.is-dragging-components-draggable { .components-font-size-picker__controls { max-width: 248px; display: flex; + flex-wrap: wrap; align-items: center; margin-bottom: 24px; } - .components-font-size-picker__controls .components-range-control__number { + .components-font-size-picker__controls .components-font-size-picker__number { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + display: inline-block; + font-weight: 500; height: 30px; margin-bottom: 0; - margin-top: 5px; margin-right: 0; - margin-left: 8px; } - .components-font-size-picker__controls .components-range-control__number[value=""] + .components-button { + margin-left: 8px; + margin-top: 8px; + width: 54px; } + @media (prefers-reduced-motion: reduce) { + .components-font-size-picker__controls .components-font-size-picker__number { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-font-size-picker__controls .components-font-size-picker__number { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-font-size-picker__controls .components-font-size-picker__number:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-font-size-picker__controls .components-font-size-picker__number[value=""] + .components-button { cursor: default; opacity: 0.3; pointer-events: none; } - .components-font-size-picker__controls .components-range-control__number-container { + .components-font-size-picker__controls .components-font-size-picker__number-container { display: flex; flex-direction: column; } .components-font-size-picker__controls .components-font-size-picker__select { - margin-left: 8px; - flex-grow: 1; } + margin-left: 8px; } .components-font-size-picker__controls .components-color-palette__clear { height: 30px; - margin-top: 23px; } + margin-top: 26px; } .components-font-size-picker__custom-input .components-range-control__slider + .dashicon { width: 30px; @@ -2399,17 +2299,6 @@ body.is-dragging-components-draggable { .components-form-toggle { position: relative; display: inline-block; } - .components-form-toggle .components-form-toggle__on, - .components-form-toggle .components-form-toggle__off { - position: absolute; - top: 6px; - box-sizing: border-box; } - .components-form-toggle .components-form-toggle__off { - color: #6c7781; - fill: currentColor; - left: 6px; } - .components-form-toggle .components-form-toggle__on { - right: 8px; } .components-form-toggle .components-form-toggle__track { content: ""; display: inline-block; @@ -2447,62 +2336,20 @@ body.is-dragging-components-draggable { .components-form-toggle:hover .components-form-toggle__off { color: #555d66; } .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #11a0d2; - border: 2px solid #11a0d2; + background-color: #007cba; + background-color: var(--wp-admin-theme-color); + border: 2px solid #007cba; + border: 2px solid var(--wp-admin-theme-color); border: 9px solid transparent; } - body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #c8b03c; - border: 2px solid #c8b03c; } - body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #a3b9a2; - border: 2px solid #a3b9a2; } - body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #77a6b9; - border: 2px solid #77a6b9; } - body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #a7b656; - border: 2px solid #a7b656; } - body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #c2a68c; - border: 2px solid #c2a68c; } - body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #82b4cb; - border: 2px solid #82b4cb; } - body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #11a0d2; - border: 2px solid #11a0d2; } .components-form-toggle__input:focus + .components-form-toggle__track { - box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--wp-admin-theme-color); 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-form-toggle.is-checked::before { - background-color: #11a0d2; - border: 2px solid #11a0d2; } - body.admin-color-sunrise .components-form-toggle.is-checked::before { - background-color: #c8b03c; - border: 2px solid #c8b03c; } - body.admin-color-ocean .components-form-toggle.is-checked::before { - background-color: #a3b9a2; - border: 2px solid #a3b9a2; } - body.admin-color-midnight .components-form-toggle.is-checked::before { - background-color: #77a6b9; - border: 2px solid #77a6b9; } - body.admin-color-ectoplasm .components-form-toggle.is-checked::before { - background-color: #a7b656; - border: 2px solid #a7b656; } - body.admin-color-coffee .components-form-toggle.is-checked::before { - background-color: #c2a68c; - border: 2px solid #c2a68c; } - body.admin-color-blue .components-form-toggle.is-checked::before { - background-color: #82b4cb; - border: 2px solid #82b4cb; } - body.admin-color-light .components-form-toggle.is-checked::before { - background-color: #11a0d2; - border: 2px solid #11a0d2; } .components-disabled .components-form-toggle { opacity: 0.3; } @@ -2522,48 +2369,60 @@ body.is-dragging-components-draggable { .components-form-toggle input.components-form-toggle__input[type="checkbox"]::before { content: ""; } -.components-form-toggle .components-form-toggle__on { - outline: 1px solid transparent; - outline-offset: -1px; - border: 1px solid #000; - filter: invert(100%) contrast(500%); } - -@supports (-ms-high-contrast-adjust: auto) { - .components-form-toggle .components-form-toggle__on { - filter: none; - border: 1px solid #fff; } } - .components-form-token-field__input-container { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; display: flex; flex-wrap: wrap; align-items: flex-start; width: 100%; margin: 0 0 8px 0; padding: 4px; - background-color: #fff; - border: 1px solid #ccd0d4; - color: #32373c; - cursor: text; - box-shadow: 0 0 0 transparent; - transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #7e8993; } + cursor: text; } @media (prefers-reduced-motion: reduce) { .components-form-token-field__input-container { transition-duration: 0s; } } + @media (min-width: 600px) { + .components-form-token-field__input-container { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-form-token-field__input-container:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-form-token-field__input-container::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-form-token-field__input-container::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-form-token-field__input-container:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-form-token-field__input-container::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-form-token-field__input-container.is-disabled { background: #e2e4e7; border-color: #ccd0d4; } - .components-form-token-field__input-container.is-active { - color: #191e23; - border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; - outline: 2px solid transparent; } .components-form-token-field__input-container input[type="text"].components-form-token-field__input { display: inline-block; width: 100%; max-width: 100%; - margin: 2px 8px 2px 0; + margin-right: 4px; padding: 0; min-height: 24px; background: inherit; @@ -2604,21 +2463,8 @@ body.is-dragging-components-draggable { padding: 0 0 0 16px; } .components-form-token-field__token.is-borderless .components-form-token-field__token-text { background: transparent; - color: #11a0d2; } - body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c8b03c; } - body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #a89d8a; } - body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #77a6b9; } - body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c77430; } - body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #9fa47b; } - body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #d9ab59; } - body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c75726; } + color: #007cba; + color: var(--wp-admin-theme-color); } .components-form-token-field__token.is-borderless .components-form-token-field__remove-token { background: transparent; color: #555d66; @@ -2693,87 +2539,103 @@ body.is-dragging-components-draggable { .components-form-token-field__suggestion-match { text-decoration: underline; } +@media (min-width: 600px) { + .components-guide { + width: 600px; } } + .components-guide .components-modal__header { background: none; - border-bottom: none; } + border-bottom: none; + width: 100%; + padding: 0; + margin: 0; } .components-guide .components-modal__header .components-button { align-self: flex-start; - margin-top: 24px; + 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; - margin-top: -56px; + 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: auto 0 24px 0; + margin: 0 0 24px 0; + padding: 0 32px; position: relative; width: 100%; } - @media (min-width: 600px) { + @media (max-width: 600px) { .components-guide__footer { - margin: 24px 0 0; } } + position: absolute; + bottom: 0; } } .components-guide__page-control { - margin: 0; } + margin: 8px 0 8px 0; + text-align: center; } .components-guide__page-control li { - display: inline-block; - margin: 0 2px; } + display: inline-block; } .components-guide__page-control .components-button { - height: 30px; } + height: 30px; + min-width: 20px; } -@media (max-width: 600px) { - .components-modal__frame.components-guide { - bottom: 15%; - right: 24px; - left: 24px; - top: 15%; } } +.components-guide .components-modal__content { + padding: 0; } + +.components-modal__frame.components-guide { + border: none; + min-width: 312px; + height: 80vh; + max-height: 575px; } + @media (max-width: 600px) { + .components-modal__frame.components-guide { + bottom: 5%; + right: 16px; + left: 16px; + top: 5%; + margin: 0 auto; } } .components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button { height: 30px; position: absolute; } .components-button.components-guide__back-button, .components-button.components-guide__forward-button { - font-size: 0; + 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; } - @media (min-width: 600px) { - .components-button.components-guide__back-button, .components-button.components-guide__forward-button { - font-size: 13px; } } + .components-button.components-guide__back-button:hover, .components-button.components-guide__forward-button:hover { + text-decoration: underline; } .components-button.components-guide__back-button { - right: 0; } - @media (min-width: 600px) { - .components-button.components-guide__back-button { - padding: 4px 2px 4px 8px; } - .components-button.components-guide__back-button.has-text svg { - margin-left: 4px; } } + right: 32px; } .components-button.components-guide__forward-button { - left: 0; } - @media (min-width: 600px) { - .components-button.components-guide__forward-button { - padding: 4px 8px 4px 2px; } - .components-button.components-guide__forward-button.has-text svg { - margin-right: 4px; - order: 1; } } + left: 32px; + color: #1386bf; + font-weight: bold; } .components-button.components-guide__finish-button { - display: none; - left: 0; } - @media (min-width: 600px) { - .components-button.components-guide__finish-button { - display: block; } } + left: 32px; } -@media (min-width: 600px) { - .components-button.components-guide__inline-finish-button { - display: none; } } +.components-button.components-guide__inline-finish-button { + display: none; } .components-navigate-regions.is-focusing-regions [role="region"] { position: relative; } @@ -2796,23 +2658,22 @@ body.is-dragging-components-draggable { outline-width: 4px; outline-offset: -4px; } } -.components-menu-group { - width: 100%; - padding: 7px 0; } +.components-menu-group + .components-menu-group { + margin-top: 8px; + padding-top: 8px; + border-top: 1px solid #1e1e1e; } .components-menu-group__label { - margin-bottom: 8px; - color: #6c7781; - padding: 0 7px; } + padding: 0; + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } .components-menu-item__button, .components-menu-item__button.components-button { - width: 100%; - padding: 8px 15px; - text-align: right; - color: #40464d; - border: none; - box-shadow: none; } + width: 100%; } .components-menu-item__button .dashicon, .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button svg.components-menu-items__item-icon, @@ -2821,27 +2682,11 @@ body.is-dragging-components-draggable { .components-menu-item__button.components-button .components-menu-items__item-icon, .components-menu-item__button.components-button svg.components-menu-items__item-icon, .components-menu-item__button.components-button > span > svg { - margin-left: 4px; } + margin-left: 8px; } .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-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover, - .components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .components-menu-item__button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut, - .components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut { - color: #40464d; } - .components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]), - .components-menu-item__button.components-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } .components-menu-item__info-wrapper { display: flex; @@ -2850,15 +2695,15 @@ body.is-dragging-components-draggable { .components-menu-item__info { margin-top: 4px; font-size: 12px; - color: #6c7781; } + color: #757575; } .components-menu-item__shortcut { -ms-grid-row-align: center; align-self: center; - color: #6c7781; margin-left: 0; margin-right: auto; - padding-right: 8px; + padding-right: 12px; + color: currentColor; display: none; } @media (min-width: 480px) { .components-menu-item__shortcut { @@ -2866,10 +2711,13 @@ body.is-dragging-components-draggable { .components-menu-items-choice, .components-menu-items-choice.components-button { - padding-right: 2rem; } + padding-right: 40px; } + .components-menu-items-choice svg, + .components-menu-items-choice.components-button svg { + margin-left: 8px; } .components-menu-items-choice.has-icon, .components-menu-items-choice.components-button.has-icon { - padding-right: 0.5rem; } + padding-right: 8px; } .components-modal__screen-overlay { position: fixed; @@ -2905,7 +2753,7 @@ body.is-dragging-components-draggable { right: 50%; min-width: 360px; max-width: calc(100% - 16px - 16px); - max-height: calc(100% - 56px - 56px); + max-height: calc(100% - 60px - 60px); transform: translate(50%, -50%); animation: components-modal__appear-animation 0.1s ease-out; animation-fill-mode: forwards; } } @@ -2928,7 +2776,7 @@ body.is-dragging-components-draggable { justify-content: space-between; background: #fff; align-items: center; - height: 56px; + height: 60px; z-index: 10; position: relative; position: -webkit-sticky; @@ -2969,7 +2817,7 @@ body.is-dragging-components-draggable { padding: 0 24px 24px; } @supports (-ms-ime-align: auto) { .components-modal__content { - padding-top: 56px; } } + padding-top: 60px; } } .components-notice { display: flex; @@ -2998,7 +2846,7 @@ body.is-dragging-components-draggable { margin: 4px 0 4px 25px; } .components-notice__action.components-button, .components-notice__action.components-button.is-link { - margin-right: 4px; } + margin-right: 12px; } .components-notice__action.components-button.is-secondary { vertical-align: initial; } @@ -3020,10 +2868,11 @@ body.is-dragging-components-draggable { .components-notice-list .components-notice__content { margin-top: 12px; margin-bottom: 12px; - line-height: 1.6; } + line-height: 2; } .components-notice-list .components-notice__action.components-button { - margin-top: -2px; - margin-bottom: -2px; } + display: block; + margin-right: 0; + margin-top: 8px; } .components-panel { background: #fff; @@ -3051,7 +2900,7 @@ body.is-dragging-components-draggable { justify-content: space-between; align-items: center; padding: 0 16px; - height: 50px; + height: 48px; border-top: 1px solid #e2e4e7; border-bottom: 1px solid #e2e4e7; } .components-panel__header h2 { @@ -3081,17 +2930,17 @@ body.is-dragging-components-draggable { margin-bottom: 5px; } .components-panel__body > .components-panel__body-title:hover { - background: #f3f4f5 !important; - border: none !important; } + background: #f3f4f5; + border: none; } .components-panel__body-toggle.components-button { position: relative; - padding: 15px; + padding: 16px; outline: none; width: 100%; - font-weight: 600; + font-weight: 500; text-align: right; - color: #191e23; + color: #1e1e1e; border: none; box-shadow: none; transition: 0.1s background ease-in-out; @@ -3099,19 +2948,13 @@ body.is-dragging-components-draggable { @media (prefers-reduced-motion: reduce) { .components-panel__body-toggle.components-button { transition-duration: 0s; } } - .components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-panel__body-toggle.components-button:hover { - background: transparent !important; - border: none !important; - box-shadow: none !important; } + .components-panel__body-toggle.components-button:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 0; } .components-panel__body-toggle.components-button .components-panel__arrow { position: absolute; - left: 10px; + left: 16px; top: 50%; transform: translateY(-50%); color: #191e23; @@ -3156,20 +2999,24 @@ body.is-dragging-components-draggable { .components-placeholder.components-placeholder { position: relative; - margin-bottom: 28px; padding: 1em; min-height: 200px; width: 100%; text-align: right; - background: rgba(139, 139, 150, 0.1); } + margin: 0; + color: #1e1e1e; + -moz-font-smoothing: subpixel-antialiased; + -webkit-font-smoothing: subpixel-antialiased; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + outline: 1px solid transparent; } @supports ((position: -webkit-sticky) or (position: sticky)) { .components-placeholder.components-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; } } - .is-dark-theme .components-placeholder.components-placeholder { - background: rgba(255, 255, 255, 0.15); } .components-placeholder.components-placeholder .components-base-control__label { font-size: 13px; } @@ -3183,7 +3030,8 @@ body.is-dragging-components-draggable { .components-placeholder__label { display: flex; font-weight: 600; - margin-bottom: 1em; } + margin-bottom: 16px; + align-items: center; } .components-placeholder__label > svg, .components-placeholder__label .dashicon, .components-placeholder__label .block-editor-block-icon { @@ -3195,8 +3043,7 @@ body.is-dragging-components-draggable { display: flex; flex-direction: row; width: 100%; - flex-wrap: wrap; - z-index: 1; } + flex-wrap: wrap; } .components-placeholder__fieldset p, .components-placeholder__fieldset form p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -3206,9 +3053,47 @@ body.is-dragging-components-draggable { .components-placeholder__fieldset.is-column-layout form { flex-direction: column; } -.components-placeholder__input { +.components-placeholder__input[type="url"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; margin: 0 0 0 8px; flex: 1 1 auto; } + @media (prefers-reduced-motion: reduce) { + .components-placeholder__input[type="url"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-placeholder__input[type="url"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-placeholder__input[type="url"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-placeholder__input[type="url"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-placeholder__input[type="url"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-placeholder__input[type="url"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-placeholder__input[type="url"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-placeholder__input[type="url"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-placeholder__input[type="url"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-placeholder__instructions { margin-bottom: 1em; } @@ -3222,8 +3107,8 @@ body.is-dragging-components-draggable { width: 50%; } .components-placeholder__fieldset .components-button { - margin-left: 8px; - margin-bottom: 8px; } + margin-left: 12px; + margin-bottom: 12px; } .components-placeholder__fieldset .components-button:last-child { margin-bottom: 0; margin-left: 0; } @@ -3234,6 +3119,10 @@ body.is-dragging-components-draggable { .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: normal; } + .components-placeholder.is-medium .components-placeholder__instructions, .components-placeholder.is-small .components-placeholder__instructions { display: none; } @@ -3245,9 +3134,6 @@ body.is-dragging-components-draggable { .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 .block-editor-block-icon { - display: none; } - .components-placeholder.is-small .components-button { padding: 0 8px 2px; } .components-popover { @@ -3267,7 +3153,7 @@ body.is-dragging-components-draggable { .components-popover:not(.is-without-arrow) { margin-left: 2px; } .components-popover:not(.is-without-arrow)::before { - border: 8px solid #e2e4e7; } + border: 8px solid #1e1e1e; } .components-popover:not(.is-without-arrow)::after { border: 8px solid #fff; } .components-popover:not(.is-without-arrow)::before, .components-popover:not(.is-without-arrow)::after { @@ -3329,12 +3215,24 @@ body.is-dragging-components-draggable { .components-popover[data-y-axis="middle"] { align-items: center; display: flex; } + .components-popover.is-from-top { + margin-top: 12px; } + .components-popover.is-from-bottom { + margin-top: -12px; } + .components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom) { + margin-left: 12px; } + .components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom) { + margin-right: 12px; } .components-popover__content { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - border: 1px solid #e2e4e7; + height: 100%; background: #fff; - height: 100%; } + border: 1px solid #ccc; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); + border-radius: 2px; } + .is-alternate .components-popover__content { + border: 1px solid #1e1e1e; + box-shadow: none; } .components-popover .components-popover__content { position: absolute; height: auto; @@ -3342,11 +3240,11 @@ body.is-dragging-components-draggable { min-width: 260px; } .components-popover.is-expanded .components-popover__content { position: static; - height: calc(100% - 50px); + height: calc(100% - 48px); overflow-y: visible; min-width: auto; border: none; - border-top: 1px solid #e2e4e7; } + border-top: 1px solid #1e1e1e; } .components-popover[data-y-axis="top"] .components-popover__content { bottom: 100%; } .components-popover[data-x-axis="center"] .components-popover__content { @@ -3356,21 +3254,18 @@ body.is-dragging-components-draggable { position: absolute; left: 100%; } .components-popover:not([data-y-axis="middle"])[data-x-axis="right"] .components-popover__content { - margin-left: -24px; } + margin-left: -25px; } .components-popover[data-x-axis="left"] .components-popover__content { position: absolute; right: 100%; } .components-popover:not([data-y-axis="middle"])[data-x-axis="left"] .components-popover__content { - margin-right: -24px; } - -.components-popover__content > div { - height: 100%; } + margin-right: -25px; } .components-popover__header { align-items: center; background: #fff; display: flex; - height: 50px; + height: 48px; justify-content: space-between; padding: 0 8px 0 16px; } @@ -3394,123 +3289,73 @@ body.is-dragging-components-draggable { margin-bottom: 4px; } .components-radio-control__input[type="radio"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 2px solid #757575; + margin-left: 12px; + transition: none; + border-radius: 50%; margin-top: 0; margin-left: 6px; } - -.components-range-control .components-base-control__field { - display: flex; - justify-content: center; - flex-wrap: wrap; - align-items: center; } - -.components-range-control .dashicon { - flex-shrink: 0; - margin-left: 10px; } - -.components-range-control .components-base-control__label { - width: 100%; } - -.components-range-control .components-range-control__slider { - margin-right: 0; - flex: 1; } - -.components-range-control__reset { - margin-right: 8px; } - -.components-range-control__slider { - width: 100%; - margin-right: 8px; - padding: 0; - -webkit-appearance: none; - background: transparent; - /** - * Thumb - */ - /** - * Track - */ } - .components-range-control__slider::-webkit-slider-thumb { - -webkit-appearance: none; - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; - margin-top: -7px; } - .components-range-control__slider::-moz-range-thumb { - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; } - .components-range-control__slider::-ms-thumb { - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; - margin-top: 0; - height: 14px; - width: 14px; - border: 2px solid transparent; } - .components-range-control__slider:focus { - outline: none; } - .components-range-control__slider:focus::-webkit-slider-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; + @media (prefers-reduced-motion: reduce) { + .components-radio-control__input[type="radio"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-radio-control__input[type="radio"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-radio-control__input[type="radio"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } - .components-range-control__slider:focus::-moz-range-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } - .components-range-control__slider:focus::-ms-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } - .components-range-control__slider::-webkit-slider-runnable-track { - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; - margin-top: -4px; } - .components-range-control__slider::-moz-range-track { - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; } - .components-range-control__slider::-ms-track { - margin-top: -4px; - background: transparent; - border-color: transparent; - color: transparent; - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; } - -.components-range-control__number { - display: inline-block; - margin-right: 8px; - font-weight: 500; - width: 54px; } + .components-radio-control__input[type="radio"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-radio-control__input[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-radio-control__input[type="radio"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-radio-control__input[type="radio"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-radio-control__input[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-radio-control__input[type="radio"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-radio-control__input[type="radio"]:checked::before { + width: 6px; + height: 6px; + margin: 6px 6px 0 0; + background-color: #fff; } + @media (min-width: 782px) { + .components-radio-control__input[type="radio"]:checked::before { + margin: 3px 3px 0 0; } } + .components-radio-control__input[type="radio"]:focus { + border-color: #757575; + box-shadow: 0 0 0 1px #757575; } + .components-radio-control__input[type="radio"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-radio-control__input[type="radio"]:checked:focus { + box-shadow: 0 0 0 1.5px #757575; } .components-resizable-box__handle { display: none; width: 23px; height: 23px; } - .components-resizable-box__container.is-selected .components-resizable-box__handle, .components-resizable-box__container.has-show-handle .components-resizable-box__handle { display: block; } @@ -3521,67 +3366,27 @@ body.is-dragging-components-draggable { height: 15px; border: 2px solid #fff; border-radius: 50%; - background: #0085ba; + background: #007cba; + background: var(--wp-admin-theme-color); cursor: inherit; position: absolute; top: calc(50% - 8px); left: calc(50% - 8px); } -body.admin-color-sunrise .components-resizable-box__handle::after { - background: #d1864a; } - -body.admin-color-ocean .components-resizable-box__handle::after { - background: #a3b9a2; } - -body.admin-color-midnight .components-resizable-box__handle::after { - background: #e14d43; } - -body.admin-color-ectoplasm .components-resizable-box__handle::after { - background: #a7b656; } - -body.admin-color-coffee .components-resizable-box__handle::after { - background: #c2a68c; } - -body.admin-color-blue .components-resizable-box__handle::after { - background: #82b4cb; } - -body.admin-color-light .components-resizable-box__handle::after { - background: #0085ba; } - .components-resizable-box__side-handle::before { display: block; content: ""; width: 7px; height: 7px; border: 2px solid #fff; - background: #0085ba; + background: #007cba; + background: var(--wp-admin-theme-color); cursor: inherit; position: absolute; top: calc(50% - 4px); left: calc(50% - 4px); transition: transform 0.1s ease-in; opacity: 0; } - -body.admin-color-sunrise .components-resizable-box__side-handle::before { - background: #d1864a; } - -body.admin-color-ocean .components-resizable-box__side-handle::before { - background: #a3b9a2; } - -body.admin-color-midnight .components-resizable-box__side-handle::before { - background: #e14d43; } - -body.admin-color-ectoplasm .components-resizable-box__side-handle::before { - background: #a7b656; } - -body.admin-color-coffee .components-resizable-box__side-handle::before { - background: #c2a68c; } - -body.admin-color-blue .components-resizable-box__side-handle::before { - background: #82b4cb; } - -body.admin-color-light .components-resizable-box__side-handle::before { - background: #0085ba; } @media (prefers-reduced-motion: reduce) { .components-resizable-box__side-handle::before { transition-duration: 0s; } } @@ -3590,8 +3395,11 @@ body.admin-color-light .components-resizable-box__side-handle::before { .is-dark-theme .components-resizable-box__handle::after { border-color: #d7dade; } +.components-resizable-box__handle { + z-index: 2; } + .components-resizable-box__side-handle { - z-index: 1; } + z-index: 2; } .components-resizable-box__corner-handle { z-index: 2; } @@ -3729,7 +3537,8 @@ body.lockscroll { background-color: #191e23; } .components-snackbar:focus { background-color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-snackbar__action.components-button { margin-right: 32px; @@ -3791,13 +3600,262 @@ body.lockscroll { to { transform: rotate(-360deg); } } -.components-text-control__input { +.components-tab-panel__tabs { + display: flex; + align-items: stretch; } + +.components-tab-panel__tabs-item { + background: transparent; + border: none; + box-shadow: none; + border-radius: 0; + cursor: pointer; + height: 48px; + padding: 3px 16px; + margin-right: 0; + font-weight: 500; + transition: box-shadow 0.1s linear; + box-sizing: border-box; } + .components-tab-panel__tabs-item::after { + content: attr(data-label); + display: block; + height: 0; + overflow: hidden; + speak: none; + visibility: hidden; } + .components-tab-panel__tabs-item:focus:not(:disabled) { + box-shadow: inset 0 1.5px #007cba; + box-shadow: inset 0 1.5px var(--wp-admin-theme-color); } + .components-tab-panel__tabs-item.is-active { + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 var(--wp-admin-theme-color); + position: relative; } + .components-tab-panel__tabs-item.is-active::before { + content: ""; + position: absolute; + top: 0; + bottom: 1px; + left: 0; + right: 0; + border-bottom: 4px solid transparent; } + .components-tab-panel__tabs-item:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } + .components-tab-panel__tabs-item.is-active:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color); } + +.components-text-control__input, +.components-text-control__input[type="text"], +.components-text-control__input[type="tel"], +.components-text-control__input[type="time"], +.components-text-control__input[type="url"], +.components-text-control__input[type="week"], +.components-text-control__input[type="password"], +.components-text-control__input[type="color"], +.components-text-control__input[type="date"], +.components-text-control__input[type="datetime"], +.components-text-control__input[type="datetime-local"], +.components-text-control__input[type="email"], +.components-text-control__input[type="month"], +.components-text-control__input[type="number"] { width: 100%; - padding: 6px 8px; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .components-text-control__input, + .components-text-control__input[type="text"], + .components-text-control__input[type="tel"], + .components-text-control__input[type="time"], + .components-text-control__input[type="url"], + .components-text-control__input[type="week"], + .components-text-control__input[type="password"], + .components-text-control__input[type="color"], + .components-text-control__input[type="date"], + .components-text-control__input[type="datetime"], + .components-text-control__input[type="datetime-local"], + .components-text-control__input[type="email"], + .components-text-control__input[type="month"], + .components-text-control__input[type="number"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-text-control__input, + .components-text-control__input[type="text"], + .components-text-control__input[type="tel"], + .components-text-control__input[type="time"], + .components-text-control__input[type="url"], + .components-text-control__input[type="week"], + .components-text-control__input[type="password"], + .components-text-control__input[type="color"], + .components-text-control__input[type="date"], + .components-text-control__input[type="datetime"], + .components-text-control__input[type="datetime-local"], + .components-text-control__input[type="email"], + .components-text-control__input[type="month"], + .components-text-control__input[type="number"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-text-control__input:focus, + .components-text-control__input[type="text"]:focus, + .components-text-control__input[type="tel"]:focus, + .components-text-control__input[type="time"]:focus, + .components-text-control__input[type="url"]:focus, + .components-text-control__input[type="week"]:focus, + .components-text-control__input[type="password"]:focus, + .components-text-control__input[type="color"]:focus, + .components-text-control__input[type="date"]:focus, + .components-text-control__input[type="datetime"]:focus, + .components-text-control__input[type="datetime-local"]:focus, + .components-text-control__input[type="email"]:focus, + .components-text-control__input[type="month"]:focus, + .components-text-control__input[type="number"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-text-control__input::-webkit-input-placeholder, + .components-text-control__input[type="text"]::-webkit-input-placeholder, + .components-text-control__input[type="tel"]::-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, + .components-text-control__input[type="password"]::-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"]::-webkit-input-placeholder, + .components-text-control__input[type="datetime-local"]::-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 { + color: rgba(14, 28, 46, 0.62); } + .components-text-control__input::-moz-placeholder, + .components-text-control__input[type="text"]::-moz-placeholder, + .components-text-control__input[type="tel"]::-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, + .components-text-control__input[type="password"]::-moz-placeholder, + .components-text-control__input[type="color"]::-moz-placeholder, + .components-text-control__input[type="date"]::-moz-placeholder, + .components-text-control__input[type="datetime"]::-moz-placeholder, + .components-text-control__input[type="datetime-local"]::-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 { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-text-control__input:-ms-input-placeholder, + .components-text-control__input[type="text"]:-ms-input-placeholder, + .components-text-control__input[type="tel"]:-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, + .components-text-control__input[type="password"]:-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"]:-ms-input-placeholder, + .components-text-control__input[type="datetime-local"]:-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 { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-text-control__input::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="text"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="time"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="url"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="week"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="password"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="color"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="date"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="email"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="month"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="number"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-text-control__input::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="text"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="time"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="url"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="week"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="password"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="color"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="date"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="email"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="month"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-text-control__input:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="text"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="time"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="url"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="week"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="password"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="color"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="date"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="email"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="month"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="number"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-textarea-control__input { width: 100%; - padding: 6px 8px; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .components-textarea-control__input { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-textarea-control__input { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-textarea-control__input:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-textarea-control__input::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-textarea-control__input::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-textarea-control__input:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-textarea-control__input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-textarea-control__input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-textarea-control__input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-tip { display: flex; @@ -3817,47 +3875,88 @@ body.lockscroll { line-height: initial; align-items: center; } .components-toggle-control .components-base-control__field .components-form-toggle { - margin-left: 16px; } + margin-left: 12px; } .components-toggle-control .components-base-control__field .components-toggle-control__label { display: block; } .components-accessible-toolbar { display: inline-flex; + border: 1px solid #1e1e1e; + border-radius: 2px; flex-shrink: 0; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .components-accessible-toolbar { - display: flex; } } + .components-accessible-toolbar > .components-toolbar-group:last-child { + border-left: none; } -.components-tab-button { - padding: 3px; - color: #555d66; - height: 36px; - font-weight: 500; } - .components-tab-button.is-pressed, .components-tab-button.is-pressed:hover { - color: #fff; } - .components-tab-button:disabled { - cursor: default; } - .components-tab-button > span { - border: 1px solid transparent; - padding: 0 6px; - box-sizing: content-box; - height: 28px; - line-height: 28px; } - .components-tab-button:hover > span, - .components-tab-button:focus > span { - color: #555d66; } - .components-tab-button:not(:disabled).is-pressed > span, - .components-tab-button:not(:disabled):hover > span, - .components-tab-button:not(:disabled):focus > span { - border: 1px solid #555d66; } - .components-tab-button.is-pressed > span, - .components-tab-button.is-pressed:hover > span { - background-color: #555d66; - color: #fff; } +.components-accessible-toolbar .components-button, +.components-toolbar .components-button { + position: relative; + height: 48px; + z-index: 1; + padding-right: 16px; + padding-left: 16px; } + .components-accessible-toolbar .components-button:focus:enabled, + .components-toolbar .components-button:focus:enabled { + box-shadow: none; + outline: none; } + .components-accessible-toolbar .components-button::before, + .components-toolbar .components-button::before { + content: ""; + position: absolute; + display: block; + border-radius: 2px; + height: 32px; + right: 8px; + left: 8px; + z-index: -1; + animation: components-button__appear-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-accessible-toolbar .components-button::before, + .components-toolbar .components-button::before { + animation-duration: 1ms; } } + .components-accessible-toolbar .components-button svg, + .components-toolbar .components-button svg { + position: relative; + margin-right: auto; + margin-left: auto; } + .components-accessible-toolbar .components-button.is-pressed, + .components-toolbar .components-button.is-pressed { + background: transparent; } + .components-accessible-toolbar .components-button.is-pressed:hover, + .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 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; + outline: 2px solid transparent; } + .components-accessible-toolbar .components-button.has-icon, + .components-toolbar .components-button.has-icon { + padding-right: 8px; + padding-left: 8px; + min-width: 48px; + justify-content: center; } + .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-right: 0; + padding-left: 0; + position: relative; } + +@keyframes components-button__appear-animation { + from { + transform: scaleY(0); } + to { + transform: scaleY(1); } } .components-toolbar__control.components-button { - width: 36px; - height: 36px; } + position: relative; } .components-toolbar__control.components-button[data-subscript] svg { padding: 5px 0 5px 10px; } .components-toolbar__control.components-button[data-subscript]::after { @@ -3869,39 +3968,32 @@ body.lockscroll { position: absolute; left: 8px; bottom: 10px; } + .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__control.components-button.is-pressed { - padding: 3px; - outline: none; } - .components-toolbar__control.components-button.is-pressed > svg { - padding: 5px; - border-radius: 4px; - height: 30px; - width: 30px; - box-sizing: border-box; - outline: none; - color: #fff; - box-shadow: none; - background: #555d66; } .components-toolbar-group { - border: 1px solid #e2e4e7; + min-height: 48px; + border-left: 1px solid #1e1e1e; background-color: #fff; - display: flex; + display: inline-flex; flex-shrink: 0; - margin-left: -1px; + flex-wrap: wrap; line-height: 0; } .components-toolbar-group .components-toolbar-group { border-width: 0; margin: 0; } .components-toolbar { + min-height: 48px; margin: 0; - border: 1px solid #e2e4e7; + border: 1px solid #1e1e1e; + border-radius: 2px; background-color: #fff; - display: flex; - flex-shrink: 0; } + display: inline-flex; + flex-shrink: 0; + flex-wrap: wrap; } div.components-toolbar > div { display: block; @@ -3910,45 +4002,90 @@ div.components-toolbar > div { div.components-toolbar > div { display: flex; } } -div.components-toolbar > div + div { - margin-right: -3px; } - div.components-toolbar > div + div.has-left-divider { - margin-right: 6px; - position: relative; - overflow: visible; } - div.components-toolbar > div + div.has-left-divider::before { - display: inline-block; - content: ""; - box-sizing: content-box; - background-color: #e2e4e7; - position: absolute; - top: 8px; - right: -3px; - width: 1px; - height: 20px; } +div.components-toolbar > div + div.has-left-divider { + margin-right: 6px; + position: relative; + overflow: visible; } + +div.components-toolbar > div + div.has-left-divider::before { + display: inline-block; + content: ""; + box-sizing: content-box; + background-color: #e2e4e7; + position: absolute; + top: 8px; + right: -3px; + width: 1px; + height: 20px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon, +.components-toolbar div > .components-button.components-button.has-icon { + min-width: 36px; + padding-right: 6px; + padding-left: 6px; } + .components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon svg, + .components-toolbar div > .components-button.components-button.has-icon svg { + min-width: 24px; } + .components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon::before, + .components-toolbar div > .components-button.components-button.has-icon::before { + right: 2px; + left: 2px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:first-child.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:first-child > .components-button.has-icon, +.components-toolbar div:first-child .components-button.has-icon { + min-width: 42px; + padding-right: 11px; + padding-left: 6px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:first-child.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:first-child > .components-button.has-icon::before, + .components-toolbar div:first-child .components-button.has-icon::before { + right: 8px; + left: 2px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon, +.components-toolbar div:last-child .components-button.has-icon { + min-width: 42px; + padding-right: 6px; + padding-left: 11px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon::before, + .components-toolbar div:last-child .components-button.has-icon::before { + right: 2px; + left: 8px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:first-of-type:last-of-type.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:first-child:last-child > .components-button.has-icon, +.components-toolbar div:first-child:last-child > .components-button.has-icon { + min-width: 48px; + padding-right: 12px; + padding-left: 12px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:first-of-type:last-of-type.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:first-child:last-child > .components-button.has-icon::before, + .components-toolbar div:first-child:last-child > .components-button.has-icon::before { + right: 8px; + left: 8px; } .components-tooltip.components-popover { z-index: 1000002; } - .components-tooltip.components-popover::before { - border-color: transparent; } - .components-tooltip.components-popover[data-y-axis="top"]::after { - border-top-color: #191e23; } - .components-tooltip.components-popover[data-y-axis="bottom"]::after { - border-bottom-color: #191e23; } .components-tooltip.components-popover .components-popover__content { min-width: 0; } .components-tooltip .components-popover__content { - padding: 4px 12px; - background: #191e23; + background: #1e1e1e; + border-radius: 2px; border-width: 0; color: #fff; white-space: nowrap; - text-align: center; } + text-align: center; + pointer-events: none; } + .components-tooltip .components-popover__content > div { + padding: 4px 8px; } .components-tooltip__shortcut { - display: block; - color: #7e8993; } + display: inline-block; + margin-right: 8px; } .components-visually-hidden { border: 0; diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index 4e986e439a..e40d525bb1 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/style-rtl.min.css @@ -1 +1 @@ -.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-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-duration:1ms}}.components-animate__slide-in.is-from-left{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-angle-picker-control{width:50%}.components-angle-picker-control.components-base-control .components-base-control__label{display:block}.components-angle-picker-control__input-field{width:calc(100% - 36px);max-width:100px}.components-angle-picker-control__angle-circle{width:28px;height:28px;border:2px solid #555d66;border-radius:50%;float:right;margin-left:4px;cursor:grab}.components-angle-picker-control__angle-circle-indicator-wrapper{position:relative;width:100%;height:100%}.components-angle-picker-control__angle-circle-indicator{width:1px;height:1px;border-radius:50%;border:3px solid #555d66;display:block;position:absolute;top:-14px;bottom:0;right:0;left:0;margin:auto;background:#555d66}.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px 8px;margin-right:-3px;margin-left:-3px;text-align:right}.components-autocomplete__result.components-button.is-selected{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-autocomplete__result.components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-base-control+.components-base-control{margin-bottom:16px}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 3px 3px 0}.components-button-group .components-button:last-child{border-radius:3px 0 0 3px}.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:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:0 8px;overflow:hidden;border-radius:3px;color:#555d66}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-button.is-secondary{white-space:nowrap;color:#0075af;border:1px solid #0075af;background:#f3f5f6}body.admin-color-sunrise .components-button.is-secondary{color:#c47e46;border-color:#c47e46}body.admin-color-ocean .components-button.is-secondary{color:#99ae98;border-color:#99ae98}body.admin-color-midnight .components-button.is-secondary{color:#d4483f;border-color:#d4483f}body.admin-color-ectoplasm .components-button.is-secondary{color:#9dab51;border-color:#9dab51}body.admin-color-coffee .components-button.is-secondary{color:#b69c84;border-color:#b69c84}body.admin-color-blue .components-button.is-secondary{color:#cca154;border-color:#cca154}body.admin-color-light .components-button.is-secondary{color:#007daf;border-color:#007daf}.components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none}body.admin-color-sunrise .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#9d6538;color:#9d6538}body.admin-color-ocean .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#7a8b7a;color:#7a8b7a}body.admin-color-midnight .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#a93a32;color:#a93a32}body.admin-color-ectoplasm .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#7d8941;color:#7d8941}body.admin-color-coffee .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#927d69;color:#927d69}body.admin-color-blue .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#a38043;color:#a38043}body.admin-color-light .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#00648c;color:#00648c}.components-button.is-secondary:focus:enabled{background:#f3f5f6;color:#005d8c;border-color:#0076b1;box-shadow:0 0 0 1px #0076b1;text-decoration:none}body.admin-color-sunrise .components-button.is-secondary:focus:enabled{color:#9d6538;border-color:#c77f46;box-shadow:0 0 0 1px #c77f46}body.admin-color-ocean .components-button.is-secondary:focus:enabled{color:#7a8b7a;border-color:#9bb09a;box-shadow:0 0 0 1px #9bb09a}body.admin-color-midnight .components-button.is-secondary:focus:enabled{color:#a93a32;border-color:#d64940;box-shadow:0 0 0 1px #d64940}body.admin-color-ectoplasm .components-button.is-secondary:focus:enabled{color:#7d8941;border-color:#9fad52;box-shadow:0 0 0 1px #9fad52}body.admin-color-coffee .components-button.is-secondary:focus:enabled{color:#927d69;border-color:#b89e85;box-shadow:0 0 0 1px #b89e85}body.admin-color-blue .components-button.is-secondary:focus:enabled{color:#a38043;border-color:#cea255;box-shadow:0 0 0 1px #cea255}body.admin-color-light .components-button.is-secondary:focus:enabled{color:#00648c;border-color:#007eb1;box-shadow:0 0 0 1px #007eb1}.components-button.is-secondary:not([aria-disabled=true]):active:enabled{background:#f3f5f6;color:#0076b1;border-color:#7e8993;box-shadow:none}body.admin-color-sunrise .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#c77f46}body.admin-color-ocean .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#9bb09a}body.admin-color-midnight .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#d64940}body.admin-color-ectoplasm .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#9fad52}body.admin-color-coffee .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#b89e85}body.admin-color-blue .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#cea255}body.admin-color-light .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#007eb1}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;text-shadow:0 1px 0 #fff;transform:none;opacity:1}.components-button.is-primary{white-space:nowrap;background:#007cba;border:1px solid #007cba;color:#fff;text-decoration:none;text-shadow:none}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#d1864a}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#e14d43}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#d9ab59}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#0085ba}.components-button.is-primary:focus:enabled,.components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#0070a7;border-color:#0070a7;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#bc7943;border-color:#bc7943}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#93a792;border-color:#93a792}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#cb453c;border-color:#cb453c}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#96a44d;border-color:#96a44d}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#af957e;border-color:#af957e}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#c39a50;border-color:#c39a50}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#0078a7;border-color:#0078a7}.components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d1864a}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b9a2}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a7b656}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #c2a68c}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d9ab59}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #0085ba}.components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#006395;border-color:#006395;color:#fff}body.admin-color-sunrise .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#a76b3b;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#829482;border-color:#829482}body.admin-color-midnight .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#b43e36;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#869245;border-color:#869245}body.admin-color-coffee .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#9b8570;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#ae8947;border-color:#ae8947}body.admin-color-light .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#006a95;border-color:#006a95}.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{color:#66b0d6;background:#1989c1;border-color:#1989c1;opacity:1}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true],body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:enabled{color:#e3b692;background:#d6925c;border-color:#d6925c}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary:disabled:active:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true],body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:enabled{color:#c8d5c7;background:#acc0ab;border-color:#acc0ab}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary:disabled:active:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true],body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:enabled{color:#ed948e;background:#e45f56;border-color:#e45f56}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true],body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:enabled{color:#cad39a;background:#b0bd67;border-color:#b0bd67}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary:disabled:active:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true],body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:enabled{color:#dacaba;background:#c8af98;border-color:#c8af98}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary:disabled:active:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true],body.admin-color-blue .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:enabled{color:#e8cd9b;background:#ddb36a;border-color:#ddb36a}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary:disabled:active:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true],body.admin-color-light .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:enabled{color:#66b6d6;background:#1991c1;border-color:#1991c1}.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 #fff,0 0 0 3px #007cba}body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d1864a}body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b9a2}body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a7b656}body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #c2a68c}body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-blue .components-button.is-primary:disabled:focus:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d9ab59}body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-light .components-button.is-primary:disabled:focus:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #0085ba}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#007cba 28%,#006395 0,#006395 72%,#007cba 0);border-color:#007cba}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#d1864a 28%,#a76b3b 0,#a76b3b 72%,#d1864a 0);border-color:#d1864a}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a3b9a2 28%,#829482 0,#829482 72%,#a3b9a2 0);border-color:#a3b9a2}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#e14d43 28%,#b43e36 0,#b43e36 72%,#e14d43 0);border-color:#e14d43}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a7b656 28%,#869245 0,#869245 72%,#a7b656 0);border-color:#a7b656}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#c2a68c 28%,#9b8570 0,#9b8570 72%,#c2a68c 0);border-color:#c2a68c}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#d9ab59 28%,#ae8947 0,#ae8947 72%,#d9ab59 0);border-color:#d9ab59}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#0085ba 28%,#006a95 0,#006a95 72%,#0085ba 0);border-color:#0085ba}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:not(:disabled):not([aria-disabled=true]):hover,.components-button.is-link:not([aria-disabled=true]):active{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:not(:disabled){background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.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-size:100px 100%;background-image:repeating-linear-gradient(45deg,#e2e4e7,#fff 11px,#fff 0,#e2e4e7 20px);opacity:1}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-tertiary{color:#007cba}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary:not([aria-disabled=true]):active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#005d8c}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text svg{margin-left:8px}.components-button svg{fill:currentColor;outline:none}.components-button .screen-reader-text{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{border:1px solid #b4b9be;background:#fff;color:#555;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:25px;height:25px;-webkit-appearance:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);transition:border-color .05s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:16px;width:16px}}.components-checkbox-control__input[type=checkbox]:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#11a0d2;border-color:#11a0d2}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:focus:checked{border:none}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:25px;height:25px}@media (min-width:600px){.components-checkbox-control__input-container{width:16px;height:16px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:-4px;top:-2px;width:31px;height:31px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{width:21px;height:21px;right:-3px}}.components-circular-option-picker{display:inline-block;margin-top:.6rem;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-left:12px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{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{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;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")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{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;position:relative;z-index:1}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;background:#fff;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-picker{width:100%;overflow:hidden}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 8px}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-left:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-bottom:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-custom-gradient-picker{margin-top:8px}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{width:100%;height:24px;border-radius:24px;margin-bottom:16px;padding-right:3px;padding-left:21px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;min-width:24px;width:24px;height:24px;position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;height:18px;padding:0;position:absolute;width:18px;top:3px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{background:#fafafa;color:#23282d;border-color:#999;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{display:flex;justify-content:space-between}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.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 #7e8993;border-radius:2px}.components-custom-select-control{color:#555d66;position:relative}.components-custom-select-control__label{display:block;margin-bottom:5px}.components-custom-select-control__button{border:1px solid #7e8993;border-radius:4px;color:#555d66;display:inline;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button:focus{border-color:#00a0d2}.components-custom-select-control__button-icon{height:100%;padding:0 4px;position:absolute;left:0;top:0}.components-custom-select-control__menu{background:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px}.components-custom-select-control__item.is-highlighted{background:#e2e4e7}.components-custom-select-control__item-icon{margin-right:-20px;margin-left:0}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime,.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #7e8993}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{right:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .components-datetime__date-help-button,.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-right:8px;margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button:focus,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed:focus,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed:focus{box-shadow:inset 0 2px 5px -3px #555d66,0 0 0 1px #fff,0 0 0 3px #007cba}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 0 0 -4px!important;border-radius:0 4px 4px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:4px 0 0 4px!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:transparent;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown-menu__indicator:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:7px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-secondary),.components-dropdown-menu__menu .components-menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-secondary){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:hover,.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover,.components-dropdown-menu__menu .components-menu-item:hover,.components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover{color:#191e23;border:none;background:#f3f4f5;box-shadow:none}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 0 -1px 8px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary).is-active>svg,.components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-dropdown-menu__menu .components-menu-group:not(:last-child){border-bottom:1px solid #e2e4e7}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;padding-right:2rem}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-right:.5rem}.components-dropdown-menu__menu .components-menu-item__button.components-button .dashicon,.components-dropdown-menu__menu .components-menu-item__button .dashicon{margin-left:4px}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;right:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#d1864a}body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a3b9a2}body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#e14d43}body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a7b656}body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#c2a68c}body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#82b4cb}body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 0 0 1em}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 .2em 0 0}.components-font-size-picker__controls{max-width:248px;display:flex;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-range-control__number{height:30px;margin:5px 0 0 8px}.components-font-size-picker__controls .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-range-control__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-left:8px;flex-grow:1}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:23px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px;box-sizing:border-box}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;left:6px}.components-form-toggle .components-form-toggle__on{right:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;right:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;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-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked:before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked:before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked:before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked:before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked:before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked:before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.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-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;background-color:#fff;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #7e8993}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 8px 2px 0;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.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{outline:none;box-shadow: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__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.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:#d94f4f}.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:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;left:0}.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{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.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{display:inline-block;line-height:24px;height:auto;background:#e2e4e7;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{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-guide .components-modal__header{background:none;border-bottom:none}.components-guide .components-modal__header .components-button{align-self:flex-start;margin-top:24px;position:static}.components-guide__container{display:flex;flex-direction:column;margin-top:-56px;min-height:100%}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:auto 0 24px;position:relative;width:100%}@media (min-width:600px){.components-guide__footer{margin:24px 0 0}}.components-guide__page-control{margin:0}.components-guide__page-control li{display:inline-block;margin:0 2px}.components-guide__page-control .components-button{height:30px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:15%;right:24px;left:24px;top:15%}}.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:0;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}@media (min-width:600px){.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px}}.components-button.components-guide__back-button{right:0}@media (min-width:600px){.components-button.components-guide__back-button{padding:4px 2px 4px 8px}.components-button.components-guide__back-button.has-text svg{margin-left:4px}}.components-button.components-guide__forward-button{left:0}@media (min-width:600px){.components-button.components-guide__forward-button{padding:4px 8px 4px 2px}.components-button.components-guide__forward-button.has-text svg{margin-right:4px;order:1}}.components-button.components-guide__finish-button{display:none;left:0}@media (min-width:600px){.components-button.components-guide__finish-button{display:block}}@media (min-width:600px){.components-button.components-guide__inline-finish-button{display:none}}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-menu-group{width:100%;padding:7px 0}.components-menu-group__label{margin-bottom:8px;color:#6c7781;padding:0 7px}.components-menu-item__button,.components-menu-item__button.components-button{width:100%;padding:8px 15px;text-align:right;color:#40464d;border:none;box-shadow:none}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button.components-button .dashicon,.components-menu-item__button.components-button>span>svg,.components-menu-item__button.components-button svg.components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg,.components-menu-item__button svg.components-menu-items__item-icon{margin-left:4px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover,.components-menu-item__button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut,.components-menu-item__button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut{color:#40464d}.components-menu-item__button.components-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#6c7781}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;color:#6c7781;margin-left:0;margin-right:auto;padding-right:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{padding-right:2rem}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:.5rem}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-right:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:4px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#6c7781;align-self:flex-start;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{color:#191e23;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:1.6}.components-notice-list .components-notice__action.components-button{margin-top:-2px;margin-bottom:-2px}.components-panel{background:#fff;border:1px solid #e2e4e7}.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-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.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;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{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:#f3f4f5!important;border:none!important}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:right;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button:hover{background:transparent!important;border:none!important;box-shadow:none!important}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:10px;flex-shrink:0;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{position:relative;margin-bottom:28px;padding:1em;min-height:200px;width:100%;text-align:right;background:rgba(139,139,150,.1)}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.is-dark-theme .components-placeholder.components-placeholder{background:hsla(0,0%,100%,.15)}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.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{display:flex;font-weight:600;margin-bottom:1em}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap;z-index:1}.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.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input{margin:0 0 0 8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:8px;margin-bottom:8px}.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-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.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 .block-editor-block-icon{display:none}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 50px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #e2e4e7}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-24px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;display:flex;height:50px;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-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-left:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-left:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-right:0;flex:1}.components-range-control__reset{margin-right:8px}.components-range-control__slider{width:100%;margin-right:8px;padding:0;-webkit-appearance:none;background:transparent}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:none}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:transparent;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-right:8px;font-weight:500;width:54px}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle,.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px)}body.admin-color-sunrise .components-resizable-box__handle:after{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle:after{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle:after{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle:after{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle:after{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle:after{background:#82b4cb}body.admin-color-light .components-resizable-box__handle:after{background:#0085ba}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#0085ba;cursor:inherit;position:absolute;top:calc(50% - 4px);left:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}body.admin-color-sunrise .components-resizable-box__side-handle:before{background:#d1864a}body.admin-color-ocean .components-resizable-box__side-handle:before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__side-handle:before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__side-handle:before{background:#a7b656}body.admin-color-coffee .components-resizable-box__side-handle:before{background:#c2a68c}body.admin-color-blue .components-resizable-box__side-handle:before{background:#82b4cb}body.admin-color-light .components-resizable-box__side-handle:before{background:#0085ba}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#d7dade}.components-resizable-box__side-handle{z-index:1}.components-resizable-box__corner-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{width:100%;right:0;border-right:0;border-left:0}.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{height:100%;top:0;border-top:0;border-bottom: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-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-duration:1ms}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity: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{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#32373c;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:hover{background-color:#191e23}.components-snackbar:focus{background-color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#33b3db}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-text-control__input,.components-textarea-control__input{width:100%;padding:6px 8px}.components-tip{display:flex;color:#555d66}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;flex-shrink:0}@supports ((position:-webkit-sticky) or (position:sticky)){.components-accessible-toolbar{display:flex}}.components-tab-button{padding:3px;color:#555d66;height:36px;font-weight:500}.components-tab-button.is-pressed,.components-tab-button.is-pressed:hover{color:#fff}.components-tab-button:disabled{cursor:default}.components-tab-button>span{border:1px solid transparent;padding:0 6px;box-sizing:content-box;height:28px;line-height:28px}.components-tab-button:focus>span,.components-tab-button:hover>span{color:#555d66}.components-tab-button:not(:disabled).is-pressed>span,.components-tab-button:not(:disabled):focus>span,.components-tab-button:not(:disabled):hover>span{border:1px solid #555d66}.components-tab-button.is-pressed:hover>span,.components-tab-button.is-pressed>span{background-color:#555d66;color:#fff}.components-toolbar__control.components-button{width:36px;height:36px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{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;left:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar__control.components-button.is-pressed{padding:3px;outline:none}.components-toolbar__control.components-button.is-pressed>svg{padding:5px;border-radius:4px;height:30px;width:30px;box-sizing:border-box;outline:none;color:#fff;box-shadow:none;background:#555d66}.components-toolbar-group{border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0;margin-left:-1px;line-height:0}.components-toolbar-group .components-toolbar-group{border-width:0;margin:0}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-right:-3px}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover:before{border-color:transparent}.components-tooltip.components-popover[data-y-axis=top]:after{border-top-color:#191e23}.components-tooltip.components-popover[data-y-axis=bottom]:after{border-bottom-color:#191e23}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap;text-align:center}.components-tooltip__shortcut{display:block;color:#7e8993}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#e2e4e7;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.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-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-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-angle-picker-control{width:50%}.components-angle-picker-control.components-base-control .components-base-control__label{display:block}.components-angle-picker-control__input-field[type=number]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;width:calc(100% - 36px);max-width:100px}@media (prefers-reduced-motion:reduce){.components-angle-picker-control__input-field[type=number]{transition-duration:0s}}@media (min-width:600px){.components-angle-picker-control__input-field[type=number]{font-size:13px;line-height:normal}}.components-angle-picker-control__input-field[type=number]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-angle-picker-control__angle-circle{width:28px;height:28px;border:2px solid #555d66;border-radius:50%;float:right;margin-left:4px;cursor:grab}.components-angle-picker-control__angle-circle-indicator-wrapper{position:relative;width:100%;height:100%}.components-angle-picker-control__angle-circle-indicator{width:1px;height:1px;border-radius:50%;border:3px solid #555d66;display:block;position:absolute;top:-14px;bottom:0;right:0;left:0;margin:auto;background:#555d66}.components-autocomplete__popover .components-popover__content>div{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 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.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{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;overflow:hidden;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.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{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.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 #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#e7e8e9;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.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{color:#828282;background:#f4f5f5;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:not([aria-disabled=true]):active{color:inherit}.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;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;border:2px solid #757575;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:focus{border-color:#757575;box-shadow:0 0 0 1px #757575}.components-checkbox-control__input[type=checkbox]:checked:focus{box-shadow:0 0 0 1.5px #757575}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@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:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:focus{box-shadow:0 0 0 1.5px #555d66}@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-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:focus:checked{border:none}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;margin-top:.6rem;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-left:12px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{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{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;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")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{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;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 8px}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-left:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-custom-gradient-picker{margin-top:8px}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{width:100%;height:24px;border-radius:24px;margin-bottom:8px;padding-right:3px;padding-left:21px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;min-width:24px;width:24px;height:24px;position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;height:18px;padding:0;position:absolute;width:18px;top:3px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{background:#fafafa;color:#23282d;border-color:#999;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{display:flex;justify-content:space-between}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.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 #7e8993;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 25px 10px 5px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#e2e4e7}.components-custom-select-control__item-icon{margin-right:-20px;margin-left:0}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{right:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 4px 4px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:4px 0 0 4px!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-draggable__clone>*{margin-top:0!important;margin-bottom:0!important}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;padding-right:40px;text-align:right}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-right:8px}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button{padding:0 12px}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;right:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#007cba;fill:var(--wp-admin-theme-color)}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 0 0 1em}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 .2em 0 0}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-left:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;right:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);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{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.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{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.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{outline:none;box-shadow: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__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.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:#d94f4f}.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:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;left:0}.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{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.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{display:inline-block;line-height:24px;height:auto;background:#e2e4e7;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{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.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%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;right:16px;left:16px;top:5%;margin:0 auto}}.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{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button.components-button .dashicon,.components-menu-item__button.components-button>span>svg,.components-menu-item__button.components-button svg.components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg,.components-menu-item__button svg.components-menu-items__item-icon{margin-left:8px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-left:0;margin-right:auto;padding-right:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{padding-right:40px}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:8px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:8px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-right:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.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{color:#6c7781;align-self:flex-start;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{color:#191e23;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e2e4e7}.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-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.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;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{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:#f3f4f5;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:10px;flex-shrink:0;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{position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.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{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.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.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom: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-right:10px;margin-left: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-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.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-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;border:2px solid #757575;transition:none;border-radius:50%;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:6px 6px 0 0;background-color:#fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{margin:3px 3px 0 0}}.components-radio-control__input[type=radio]:focus{border-color:#757575;box-shadow:0 0 0 1px #757575}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:checked:focus{box-shadow:0 0 0 1.5px #757575}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);left:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#d7dade}.components-resizable-box__corner-handle,.components-resizable-box__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{width:100%;right:0;border-right:0;border-left:0}.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{height:100%;top:0;border-top:0;border-bottom: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-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-duration:1ms}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity: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{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#32373c;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:hover{background-color:#191e23}.components-snackbar:focus{background-color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#33b3db}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.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]{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@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-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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px 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(14,28,46,.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{opacity:1;color:rgba(14,28,46,.62)}.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(14,28,46,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#555d66}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.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 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-right:8px;padding-left:8px;min-width:48px;justify-content:center}.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-right:0;padding-left: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{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;left:8px;bottom:10px}.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{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-right:6px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{right:2px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-right:11px;padding-left:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{right:8px;left:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-right:6px;padding-left:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{right:2px;left:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-right:12px;padding-left:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{right:8px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;pointer-events:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#e2e4e7;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ 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 b8ae5001ac..e71ce33798 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -8,7 +8,26 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -20,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -38,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .components-animate__appear { animation: components-animate__appear-animation 0.1s cubic-bezier(0, 0, 0.2, 1) 0s; animation-fill-mode: forwards; } @@ -67,6 +91,8 @@ 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 { 100% { @@ -88,9 +114,47 @@ .components-angle-picker-control.components-base-control .components-base-control__label { display: block; } -.components-angle-picker-control__input-field { +.components-angle-picker-control__input-field[type="number"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; width: calc(100% - 36px); max-width: 100px; } + @media (prefers-reduced-motion: reduce) { + .components-angle-picker-control__input-field[type="number"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-angle-picker-control__input-field[type="number"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-angle-picker-control__input-field[type="number"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-angle-picker-control__angle-circle { width: 28px; @@ -120,42 +184,18 @@ margin: auto; background: #555d66; } -.components-autocomplete__popover .components-popover__content { - min-width: 200px; } - -.components-autocomplete__popover .components-autocomplete__results { - padding: 3px; - display: flex; - flex-direction: column; - align-items: stretch; } - .components-autocomplete__popover .components-autocomplete__results:empty { - display: none; } +.components-autocomplete__popover .components-popover__content > div { + padding: 16px; } .components-autocomplete__result.components-button { - margin-bottom: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - color: #555d66; display: flex; - flex-direction: row; - flex-grow: 1; - flex-shrink: 0; - align-items: center; - padding: 6px 8px; - margin-left: -3px; - margin-right: -3px; - text-align: left; } + height: auto; + min-height: 36px; + text-align: left; + width: 100%; } .components-autocomplete__result.components-button.is-selected { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-autocomplete__result.components-button:hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } + box-shadow: 0 0 0 2px #007cba; + box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } .components-base-control { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -166,30 +206,29 @@ margin-bottom: inherit; } .components-base-control .components-base-control__label { display: inline-block; - margin-bottom: 4px; } + margin-bottom: 8px; } .components-base-control .components-base-control__help { margin-top: -8px; font-style: italic; } -.components-base-control + .components-base-control { - margin-bottom: 16px; } - .components-button-group { display: inline-block; } .components-button-group .components-button { border-radius: 0; - display: inline-flex; } + display: inline-flex; + color: #1e1e1e; + box-shadow: inset 0 0 0 1px #1e1e1e; } .components-button-group .components-button + .components-button { margin-left: -1px; } .components-button-group .components-button:first-child { - border-radius: 3px 0 0 3px; } + border-radius: 2px 0 0 2px; } .components-button-group .components-button:last-child { - border-radius: 0 3px 3px 0; } + border-radius: 0 2px 2px 0; } .components-button-group .components-button:focus, .components-button-group .components-button.is-primary { position: relative; z-index: 1; } .components-button-group .components-button.is-primary { - box-shadow: none; } + box-shadow: inset 0 0 0 1px #1e1e1e; } .components-button { display: inline-flex; @@ -204,306 +243,110 @@ height: 36px; align-items: center; box-sizing: border-box; - padding: 0 8px; + padding: 6px 12px; overflow: hidden; - border-radius: 3px; - color: #555d66; - /* Buttons that look like links, for a cross of good semantics with the visual */ - /* Link buttons that are red to indicate destructive behavior. */ } + border-radius: 2px; + color: #1e1e1e; + /** + * Primary button style. + */ + /** + * Secondary and tertiary buttons. + */ + /** + * Secondary button style. + */ + /** + * Tertiary buttons. + */ + /** + * Link buttons. + */ } @media (prefers-reduced-motion: reduce) { .components-button { transition-duration: 0s; } } - .components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } - .components-button.is-secondary { - border-width: 1px; - border-style: solid; - white-space: nowrap; - color: rgb(0, 117, 175); - border-color: rgb(0, 117, 175); - background: #f3f5f6; } - body.admin-color-sunrise .components-button.is-secondary { - color: rgb(196, 126, 70); - border-color: rgb(196, 126, 70); } - body.admin-color-ocean .components-button.is-secondary { - color: rgb(153, 174, 152); - border-color: rgb(153, 174, 152); } - body.admin-color-midnight .components-button.is-secondary { - color: rgb(212, 72, 63); - border-color: rgb(212, 72, 63); } - body.admin-color-ectoplasm .components-button.is-secondary { - color: rgb(157, 171, 81); - border-color: rgb(157, 171, 81); } - body.admin-color-coffee .components-button.is-secondary { - color: rgb(182, 156, 132); - border-color: rgb(182, 156, 132); } - body.admin-color-blue .components-button.is-secondary { - color: rgb(204, 161, 84); - border-color: rgb(204, 161, 84); } - body.admin-color-light .components-button.is-secondary { - color: rgb(0, 125, 175); - border-color: rgb(0, 125, 175); } - .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - background: #f1f1f1; - border-color: rgb(0, 93, 140); - color: rgb(0, 93, 140); - text-decoration: none; } - body.admin-color-sunrise .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(157, 101, 56); - color: rgb(157, 101, 56); } - body.admin-color-ocean .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(122, 139, 122); - color: rgb(122, 139, 122); } - body.admin-color-midnight .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(169, 58, 50); - color: rgb(169, 58, 50); } - body.admin-color-ectoplasm .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(125, 137, 65); - color: rgb(125, 137, 65); } - body.admin-color-coffee .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(146, 125, 105); - color: rgb(146, 125, 105); } - body.admin-color-blue .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(163, 128, 67); - color: rgb(163, 128, 67); } - body.admin-color-light .components-button.is-secondary:not(:disabled):not([aria-disabled="true"]):hover { - border-color: rgb(0, 100, 140); - color: rgb(0, 100, 140); } - .components-button.is-secondary:focus:enabled { - background: #f3f5f6; - color: rgb(0, 93, 140); - border-color: rgb(0, 118, 177); - box-shadow: 0 0 0 1px rgb(0, 118, 177); - text-decoration: none; } - body.admin-color-sunrise .components-button.is-secondary:focus:enabled { - color: rgb(157, 101, 56); - border-color: rgb(199, 127, 70); - box-shadow: 0 0 0 1px rgb(199, 127, 70); } - body.admin-color-ocean .components-button.is-secondary:focus:enabled { - color: rgb(122, 139, 122); - border-color: rgb(155, 176, 154); - box-shadow: 0 0 0 1px rgb(155, 176, 154); } - body.admin-color-midnight .components-button.is-secondary:focus:enabled { - color: rgb(169, 58, 50); - border-color: rgb(214, 73, 64); - box-shadow: 0 0 0 1px rgb(214, 73, 64); } - body.admin-color-ectoplasm .components-button.is-secondary:focus:enabled { - color: rgb(125, 137, 65); - border-color: rgb(159, 173, 82); - box-shadow: 0 0 0 1px rgb(159, 173, 82); } - body.admin-color-coffee .components-button.is-secondary:focus:enabled { - color: rgb(146, 125, 105); - border-color: rgb(184, 158, 133); - box-shadow: 0 0 0 1px rgb(184, 158, 133); } - body.admin-color-blue .components-button.is-secondary:focus:enabled { - color: rgb(163, 128, 67); - border-color: rgb(206, 162, 85); - box-shadow: 0 0 0 1px rgb(206, 162, 85); } - body.admin-color-light .components-button.is-secondary:focus:enabled { - color: rgb(0, 100, 140); - border-color: rgb(0, 126, 177); - box-shadow: 0 0 0 1px rgb(0, 126, 177); } - .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - background: #f3f5f6; - color: rgb(0, 118, 177); - border-color: #7e8993; - box-shadow: none; } - body.admin-color-sunrise .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(199, 127, 70); } - body.admin-color-ocean .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(155, 176, 154); } - body.admin-color-midnight .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(214, 73, 64); } - body.admin-color-ectoplasm .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(159, 173, 82); } - body.admin-color-coffee .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(184, 158, 133); } - body.admin-color-blue .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(206, 162, 85); } - body.admin-color-light .components-button.is-secondary:not([aria-disabled="true"]):active:enabled { - color: rgb(0, 126, 177); } - .components-button.is-secondary:disabled, .components-button.is-secondary[aria-disabled="true"] { - color: #a0a5aa; - border-color: #ddd; - background: #f7f7f7; - text-shadow: 0 1px 0 #fff; - transform: none; - opacity: 1; } + .components-button[aria-expanded="true"], .components-button:hover { + color: #007cba; + color: var(--wp-admin-theme-color); } + .components-button[aria-disabled="true"]:hover { + color: initial; } + .components-button:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 1px solid transparent; } .components-button.is-primary { - border-width: 1px; - border-style: solid; white-space: nowrap; - background: rgb(0, 124, 186); - border-color: rgb(0, 124, 186); + background: #007cba; + background: var(--wp-admin-theme-color); color: #fff; text-decoration: none; text-shadow: none; } - body.admin-color-sunrise .components-button.is-primary { - background: rgb(209, 134, 74); - border-color: rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary { - background: rgb(163, 185, 162); - border-color: rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary { - background: rgb(225, 77, 67); - border-color: rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary { - background: rgb(167, 182, 86); - border-color: rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary { - background: rgb(194, 166, 140); - border-color: rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary { - background: rgb(217, 171, 89); - border-color: rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary { - background: rgb(0, 133, 186); - border-color: rgb(0, 133, 186); } - .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, .components-button.is-primary:focus:enabled { - background: rgb(0, 112, 167); - border-color: rgb(0, 112, 167); + .components-button.is-primary:hover:not(:disabled) { + background: #006ba1; + background: var(--wp-admin-theme-color-darker-10); color: #fff; } - body.admin-color-sunrise .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { - background: rgb(188, 121, 67); - border-color: rgb(188, 121, 67); } - body.admin-color-ocean .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { - background: rgb(147, 167, 146); - border-color: rgb(147, 167, 146); } - body.admin-color-midnight .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { - background: rgb(203, 69, 60); - border-color: rgb(203, 69, 60); } - body.admin-color-ectoplasm .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { - background: rgb(150, 164, 77); - border-color: rgb(150, 164, 77); } - body.admin-color-coffee .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { - background: rgb(175, 149, 126); - border-color: rgb(175, 149, 126); } - body.admin-color-blue .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-blue .components-button.is-primary:focus:enabled { - background: rgb(195, 154, 80); - border-color: rgb(195, 154, 80); } - body.admin-color-light .components-button.is-primary:not(:disabled):not([aria-disabled="true"]):hover, body.admin-color-light .components-button.is-primary:focus:enabled { - background: rgb(0, 120, 167); - border-color: rgb(0, 120, 167); } - .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); } - body.admin-color-sunrise .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); } - .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(0, 99, 149); - border-color: rgb(0, 99, 149); + .components-button.is-primary:active:not(:disabled) { + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); + border-color: #005a87; + border-color: var(--wp-admin-theme-color-darker-20); color: #fff; } - body.admin-color-sunrise .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(167, 107, 59); - border-color: rgb(167, 107, 59); } - body.admin-color-ocean .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(130, 148, 130); - border-color: rgb(130, 148, 130); } - body.admin-color-midnight .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(180, 62, 54); - border-color: rgb(180, 62, 54); } - body.admin-color-ectoplasm .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(134, 146, 69); - border-color: rgb(134, 146, 69); } - body.admin-color-coffee .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(155, 133, 112); - border-color: rgb(155, 133, 112); } - body.admin-color-blue .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(174, 137, 71); - border-color: rgb(174, 137, 71); } - body.admin-color-light .components-button.is-primary:not([aria-disabled="true"]):active:enabled { - background: rgb(0, 106, 149); - border-color: rgb(0, 106, 149); } + .components-button.is-primary:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 1px solid transparent; } .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"]:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(102, 176, 214); - background: rgb(25, 137, 193); - border-color: rgb(25, 137, 193); + color: rgba(255, 255, 255, 0.4); + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); opacity: 1; } - body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"], body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(227, 182, 146); - background: rgb(214, 146, 92); - border-color: rgb(214, 146, 92); } - body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"], body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(200, 213, 199); - background: rgb(172, 192, 171); - border-color: rgb(172, 192, 171); } - body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"], body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(237, 148, 142); - background: rgb(228, 95, 86); - border-color: rgb(228, 95, 86); } - body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"], body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(202, 211, 154); - background: rgb(176, 189, 103); - border-color: rgb(176, 189, 103); } - body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"], body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(218, 202, 186); - background: rgb(200, 175, 152); - border-color: rgb(200, 175, 152); } - body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"], body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(232, 205, 155); - background: rgb(221, 179, 106); - border-color: rgb(221, 179, 106); } - body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled { - color: rgb(102, 182, 214); - background: rgb(25, 145, 193); - border-color: rgb(25, 145, 193); } .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); } - body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary:disabled:focus:enabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary:disabled:focus:enabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { - box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] { color: #fff; background-size: 100px 100%; /* stylelint-disable */ - background-image: linear-gradient(-45deg, #007cba 28%, rgb(0, 99, 149) 28%, rgb(0, 99, 149) 72%, #007cba 72%); + background-image: linear-gradient(-45deg, #007cba 28%, #005a87 28%, #005a87 72%, #007cba 72%); + background-image: linear-gradient(-45deg, var(--wp-admin-theme-color) 28%, var(--wp-admin-theme-color-darker-20) 28%, var(--wp-admin-theme-color-darker-20) 72%, var(--wp-admin-theme-color) 72%); /* stylelint-enable */ - border-color: rgb(0, 124, 186); } - body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #d1864a 28%, rgb(167, 107, 59) 28%, rgb(167, 107, 59) 72%, #d1864a 72%); - border-color: rgb(209, 134, 74); } - body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #a3b9a2 28%, rgb(130, 148, 130) 28%, rgb(130, 148, 130) 72%, #a3b9a2 72%); - border-color: rgb(163, 185, 162); } - body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #e14d43 28%, rgb(180, 62, 54) 28%, rgb(180, 62, 54) 72%, #e14d43 72%); - border-color: rgb(225, 77, 67); } - body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #a7b656 28%, rgb(134, 146, 69) 28%, rgb(134, 146, 69) 72%, #a7b656 72%); - border-color: rgb(167, 182, 86); } - body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #c2a68c 28%, rgb(155, 133, 112) 28%, rgb(155, 133, 112) 72%, #c2a68c 72%); - border-color: rgb(194, 166, 140); } - body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #d9ab59 28%, rgb(174, 137, 71) 28%, rgb(174, 137, 71) 72%, #d9ab59 72%); - border-color: rgb(217, 171, 89); } - body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #0085ba 28%, rgb(0, 106, 149) 28%, rgb(0, 106, 149) 72%, #0085ba 72%); - border-color: rgb(0, 133, 186); } + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-button.is-secondary:active:not(:disabled), .components-button.is-tertiary:active:not(:disabled) { + background: #e7e8e9; + color: #006ba1; + color: var(--wp-admin-theme-color-darker-10); + box-shadow: none; } + .components-button.is-secondary:hover:not(:disabled), .components-button.is-tertiary:hover:not(:disabled) { + color: #006ba1; + color: var(--wp-admin-theme-color-darker-10); + box-shadow: inset 0 0 0 1px #006ba1; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color-darker-10); } + .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 { + color: #828282; + background: #f4f5f5; + transform: none; + opacity: 1; + box-shadow: none; } + .components-button.is-secondary { + box-shadow: inset 0 0 0 1px #007cba; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); + outline: 1px solid transparent; + white-space: nowrap; + color: #007cba; + color: var(--wp-admin-theme-color); + background: transparent; } + .components-button.is-tertiary { + white-space: nowrap; + color: #007cba; + color: var(--wp-admin-theme-color); + background: transparent; + padding: 6px; } + .components-button.is-tertiary .dashicon { + display: inline-block; + flex: 0 0 auto; } .components-button.is-link { margin: 0; padding: 0; @@ -523,11 +366,11 @@ @media (prefers-reduced-motion: reduce) { .components-button.is-link { transition-duration: 0s; } } - .components-button.is-link:not(:disabled):not([aria-disabled="true"]):hover, .components-button.is-link:not([aria-disabled="true"]):active { + .components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) { color: #00a0d2; } .components-button.is-link:focus { color: #124964; - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); } + box-shadow: 0 0 0 1px #5b9dd9, 0 0 1.5px 1px rgba(30, 140, 190, 0.8); } .components-button.is-link.is-destructive { color: #d94f4f; } .components-button:not([aria-disabled="true"]):active { @@ -535,67 +378,45 @@ .components-button:disabled, .components-button[aria-disabled="true"] { cursor: default; opacity: 0.3; } - .components-button:focus:not(:disabled) { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } .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 2500ms infinite linear; + opacity: 1; background-size: 100px 100%; - background-image: repeating-linear-gradient(-45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px); - opacity: 1; } + /* stylelint-disable */ + background-image: linear-gradient(-45deg, #fafafa 28%, #e0e0e0 28%, #e0e0e0 72%, #fafafa 72%); + /* stylelint-enable */ } .components-button.is-small { height: 24px; line-height: 22px; padding: 0 8px; font-size: 11px; } - .components-button.is-tertiary { - color: #007cba; } - body.admin-color-sunrise .components-button.is-tertiary { - color: #837425; } - body.admin-color-ocean .components-button.is-tertiary { - color: #5e7d5e; } - body.admin-color-midnight .components-button.is-tertiary { - color: #497b8d; } - body.admin-color-ectoplasm .components-button.is-tertiary { - color: #523f6d; } - body.admin-color-coffee .components-button.is-tertiary { - color: #59524c; } - body.admin-color-blue .components-button.is-tertiary { - color: #417e9B; } - body.admin-color-light .components-button.is-tertiary { - color: #007cba; } - .components-button.is-tertiary .dashicon { + .components-button.is-small.has-icon:not(.has-text) { + padding: 0 8px; + width: 24px; } + .components-button.has-icon { + padding: 6px; + min-width: 36px; + justify-content: center; } + .components-button.has-icon .dashicon { display: inline-block; flex: 0 0 auto; } - .components-button.is-tertiary:not([aria-disabled="true"]):active:focus:enabled { - box-shadow: none; } - .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(0, 93, 140); } - body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(98, 87, 28); } - body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(71, 94, 71); } - body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(55, 92, 106); } - body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(62, 47, 82); } - body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(67, 62, 57); } - body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(49, 95, 116); } - body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):hover { - color: rgb(0, 93, 140); } - .components-button.has-icon .dashicon { - display: inline-block; - flex: 0 0 auto; } - .components-button.has-icon.has-text svg { - margin-right: 8px; } + .components-button.has-icon.has-text { + justify-content: left; } + .components-button.has-icon.has-text svg { + margin-right: 8px; } + .components-button.is-pressed { + color: #fff; + background: #1e1e1e; } + .components-button.is-pressed:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-button.is-pressed:hover:not(:disabled) { + background: #1e1e1e; } .components-button svg { fill: currentColor; outline: none; } - .components-button .screen-reader-text { + .components-button .components-visually-hidden { height: auto; } @keyframes components-button__busy-animation { @@ -603,9 +424,22 @@ background-position: 200px 0; } } .components-checkbox-control__input[type="checkbox"] { - border: 1px solid #b4b9be; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 2px solid #757575; + margin-right: 12px; + transition: none; + border-radius: 2px; background: #fff; - color: #555; + color: #1e1e1e; clear: none; cursor: pointer; display: inline-block; @@ -615,22 +449,94 @@ padding: 0 !important; text-align: center; vertical-align: top; - width: 25px; - height: 25px; + width: 24px; + height: 24px; -webkit-appearance: none; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - transition: 0.05s border-color ease-in-out; } + appearance: none; + transition: 0.1s border-color ease-in-out; } + @media (prefers-reduced-motion: reduce) { + .components-checkbox-control__input[type="checkbox"] { + transition-duration: 0s; } } @media (min-width: 600px) { .components-checkbox-control__input[type="checkbox"] { - height: 16px; - width: 16px; } } + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } .components-checkbox-control__input[type="checkbox"]:focus { - border-color: #5b9dd9; - box-shadow: 0 0 2px rgba(30, 140, 190, 0.8); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-checkbox-control__input[type="checkbox"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-checkbox-control__input[type="checkbox"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-checkbox-control__input[type="checkbox"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-checkbox-control__input[type="checkbox"]:focus { + border-color: #757575; + box-shadow: 0 0 0 1px #757575; } + .components-checkbox-control__input[type="checkbox"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"]:checked:focus { + box-shadow: 0 0 0 1.5px #757575; } + .components-checkbox-control__input[type="checkbox"]:checked::before, .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + margin: -3px -5px; + color: #fff; } + @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: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + content: "\f460"; + float: left; + display: inline-block; + vertical-align: middle; + width: 16px; + /* stylelint-disable */ + font: normal 30px/1 dashicons; + /* stylelint-enable */ + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + @media (min-width: 782px) { + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + float: none; + font-size: 21px; } } + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]:focus { + box-shadow: 0 0 0 1.5px #555d66; } + @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-duration: 0s; } } + .components-checkbox-control__input[type="checkbox"]:focus { + box-shadow: 0 0 0 2px #007cba; + box-shadow: 0 0 0 2px var(--wp-admin-theme-color); outline: 2px solid transparent; } .components-checkbox-control__input[type="checkbox"]:checked { - background: #11a0d2; - border-color: #11a0d2; } + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } .components-checkbox-control__input[type="checkbox"]:checked::-ms-check { opacity: 0; } .components-checkbox-control__input[type="checkbox"]:focus:checked { @@ -643,30 +549,29 @@ display: inline-block; margin-right: 12px; vertical-align: middle; - width: 25px; - height: 25px; } + width: 24px; + height: 24px; } @media (min-width: 600px) { .components-checkbox-control__input-container { - width: 16px; - height: 16px; } } + width: 20px; + height: 20px; } } svg.components-checkbox-control__checked { fill: #fff; cursor: pointer; position: absolute; - left: -4px; - top: -2px; - width: 31px; - height: 31px; + left: 0; + top: 0; + width: 24px; + height: 24px; -webkit-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; } @media (min-width: 600px) { svg.components-checkbox-control__checked { - width: 21px; - height: 21px; - left: -3px; } } + left: -2px; + top: -2px; } } .components-circular-option-picker { display: inline-block; @@ -725,14 +630,14 @@ svg.components-checkbox-control__checked { .components-circular-option-picker__option.is-pressed { box-shadow: inset 0 0 0 4px; position: relative; - z-index: 1; } + z-index: 1; + overflow: visible; } .components-circular-option-picker__option.is-pressed + svg { position: absolute; left: 2px; top: 2px; border-radius: 50%; z-index: 2; - background: #fff; pointer-events: none; } .components-circular-option-picker__option::after { content: ""; @@ -804,8 +709,7 @@ svg.components-checkbox-control__checked { * THE SOFTWARE. */ .components-color-picker { - width: 100%; - overflow: hidden; } + width: 100%; } .components-color-picker * { box-sizing: border-box; } @@ -866,7 +770,7 @@ svg.components-checkbox-control__checked { bottom: 0; } .components-color-picker__saturation-color { - overflow: hidden; } + overflow: visible; } .components-color-picker__saturation-white { /*rtl:ignore*/ @@ -875,14 +779,16 @@ svg.components-checkbox-control__checked { .components-color-picker__saturation-black { background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); } -.components-color-picker__saturation-pointer { +.components-button.components-color-picker__saturation-pointer { width: 14px; height: 14px; padding: 0; - box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4); border-radius: 50%; background-color: transparent; - transform: translate(-4px, -4px); } + transform: translate(-50%, -50%); + box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px #000, 0 0 0 2px #000; } + .components-button.components-color-picker__saturation-pointer:focus:not(:disabled) { + box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px #000, 0 0 0 3px #000; } /* HUE & ALPHA BARS */ .components-color-picker__toggles { @@ -973,7 +879,7 @@ svg.components-checkbox-control__checked { flex-grow: 1; margin-right: 4px; } .components-color-picker__inputs-fields .components-base-control + .components-base-control { - margin-bottom: 0; } + margin-top: 0; } .components-color-picker__inputs-fields .components-base-control__field { margin: 0 4px; } @@ -991,7 +897,7 @@ svg.components-checkbox-control__checked { width: 100%; height: 24px; border-radius: 24px; - margin-bottom: 16px; + margin-bottom: 8px; padding-left: 3px; padding-right: 21px; } .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container { @@ -1019,7 +925,8 @@ svg.components-checkbox-control__checked { background: #fafafa; color: #23282d; border-color: #999; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point { margin-left: auto; @@ -1054,45 +961,53 @@ svg.components-checkbox-control__checked { border-radius: 2px; } .components-custom-select-control { - color: #555d66; position: relative; } .components-custom-select-control__label { display: block; - margin-bottom: 5px; } + margin-bottom: 8px; } .components-custom-select-control__button { - border: 1px solid #7e8993; - border-radius: 4px; - color: #555d66; - display: inline; + border: 1px solid #757575; + border-radius: 2px; min-height: 30px; min-width: 130px; position: relative; text-align: left; } - .components-custom-select-control__button:focus { - border-color: #00a0d2; } - .components-custom-select-control__button-icon { + .components-custom-select-control__button.components-custom-select-control__button { + padding-right: 24px; } + .components-custom-select-control__button:focus:not(:disabled) { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); } + .components-custom-select-control__button .components-custom-select-control__button-icon { height: 100%; - padding: 0 4px; + padding: 0; position: absolute; right: 0; top: 0; } .components-custom-select-control__menu { - background: #fff; + background-color: #fff; max-height: 400px; min-width: 100%; overflow: auto; padding: 0; position: absolute; z-index: 1000000; } + .components-custom-select-control__menu:focus { + border: 1px solid #1e1e1e; + border-radius: 2px; + outline: none; + transition: none; } .components-custom-select-control__item { align-items: center; display: flex; list-style-type: none; - padding: 10px 5px 10px 25px; } + padding: 10px 5px 10px 25px; + cursor: default; } .components-custom-select-control__item.is-highlighted { background: #e2e4e7; } .components-custom-select-control__item-icon { @@ -1924,12 +1839,15 @@ svg.dashicon { /*rtl:end:ignore*/ .components-datetime { - padding: 16px; } + padding: 0; } .components-datetime .components-datetime__calendar-help { padding: 16px; } .components-datetime .components-datetime__calendar-help h4 { margin: 0; } - .components-datetime .components-datetime__date-help-button { + .components-datetime .components-datetime__buttons { + display: flex; + justify-content: space-between; } + .components-datetime .components-datetime__date-help-toggle { display: block; margin-left: auto; } .components-datetime fieldset { @@ -1940,8 +1858,8 @@ svg.dashicon { .components-datetime input { box-shadow: 0 0 0 transparent; transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #7e8993; } + border-radius: 2px; + border: 1px solid #757575; } @media (prefers-reduced-motion: reduce) { .components-datetime select, .components-datetime input { @@ -1960,50 +1878,35 @@ svg.dashicon { left: 0; } .components-datetime__date .CalendarMonth_caption { font-size: 13px; } + .components-datetime__date .CalendarMonth_table { + border-collapse: separate; + border-spacing: 2px; } .components-datetime__date .CalendarDay { font-size: 13px; - border: 1px solid transparent; + border: none; border-radius: 50%; text-align: center; } + .components-datetime__date .CalendarDay:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; + outline: 2px solid transparent; } .components-datetime__date .CalendarDay__selected { - background: #0085ba; } - body.admin-color-sunrise .components-datetime__date .CalendarDay__selected { - background: #d1864a; } - body.admin-color-ocean .components-datetime__date .CalendarDay__selected { - background: #a3b9a2; } - body.admin-color-midnight .components-datetime__date .CalendarDay__selected { - background: #e14d43; } - body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected { - background: #a7b656; } - body.admin-color-coffee .components-datetime__date .CalendarDay__selected { - background: #c2a68c; } - body.admin-color-blue .components-datetime__date .CalendarDay__selected { - background: #82b4cb; } - body.admin-color-light .components-datetime__date .CalendarDay__selected { - background: #0085ba; } + background: #007cba; + background: var(--wp-admin-theme-color); + border: 2px solid transparent; } .components-datetime__date .CalendarDay__selected:hover { - background: rgb(0, 113, 158); } - body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover { - background: rgb(178, 114, 63); } - body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover { - background: rgb(139, 157, 138); } - body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover { - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover { - background: rgb(142, 155, 73); } - body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover { - background: rgb(165, 141, 119); } - body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover { - background: rgb(111, 153, 173); } - body.admin-color-light .components-datetime__date .CalendarDay__selected:hover { - background: rgb(0, 113, 158); } + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); } + .components-datetime__date .CalendarDay__selected:focus { + box-shadow: inset 0 0 0 1px #fff; } .components-datetime__date .DayPickerNavigation_button__horizontalDefault { padding: 2px 8px; top: 20px; } .components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus { - color: #191e23; border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } .components-datetime__date .DayPicker_weekHeader { top: 50px; } @@ -2011,8 +1914,7 @@ svg.dashicon { margin: 1px 0; padding-left: 0; padding-right: 0; } - .components-datetime__date.is-description-visible .DayPicker, - .components-datetime__date.is-description-visible .components-datetime__date-help-button { + .components-datetime__date.is-description-visible .DayPicker { visibility: hidden; } .components-datetime__time { @@ -2030,31 +1932,9 @@ svg.dashicon { display: inline-block; padding: 0 3px 0 0; color: #555d66; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button { - margin-left: 8px; - margin-right: -1px; - border-radius: 3px 0 0 3px; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button { - margin-left: -1px; - border-radius: 0 3px 3px 0; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button:focus, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button:focus { - position: relative; - z-index: 1; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed { - background: #edeff0; - border-color: #8f98a1; - box-shadow: inset 0 2px 5px -3px #555d66; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed:focus, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed:focus { - box-shadow: inset 0 2px 5px -3px #555d66, 0 0 0 1px #fff, 0 0 0 3px #007cba; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { /*rtl:ignore*/ direction: ltr; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button { - font-size: 11px; - font-weight: 600; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { margin-right: 4px; } .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus { @@ -2072,7 +1952,7 @@ svg.dashicon { -webkit-appearance: none; margin: 0; } .components-datetime__time.is-12-hour .components-datetime__time-field-day input { - margin: 0 -4px 0 0 !important; + margin: -4px 0 0 !important; border-radius: 4px 0 0 4px !important; } .components-datetime__time.is-12-hour .components-datetime__time-field-year input { border-radius: 0 4px 4px 0 !important; } @@ -2140,11 +2020,13 @@ body.is-dragging-components-draggable { .components-draggable__clone { position: fixed; - padding: 20px; + padding: 0; background: transparent; pointer-events: none; - z-index: 1000000000; - opacity: 0.8; } + z-index: 1000000000; } + .components-draggable__clone > * { + margin-top: 0 !important; + margin-bottom: 0 !important; } .components-drop-zone { position: absolute; @@ -2207,24 +2089,14 @@ body.is-dragging-components-draggable { .components-dropdown { display: inline-block; } -.components-dropdown-menu__indicator::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-left: 3px solid transparent; - border-right: 3px solid transparent; - border-top: 5px solid; - margin-left: 4px; - margin-right: 2px; } +.components-dropdown__content .components-popover__content > div { + padding: 12px; } .components-dropdown-menu__popover .components-popover__content { width: 200px; } .components-dropdown-menu__menu { width: 100%; - padding: 7px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; } @@ -2251,52 +2123,52 @@ body.is-dragging-components-draggable { left: 0; right: 0; height: 1px; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-secondary), - .components-dropdown-menu__menu .components-menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-secondary) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:hover, .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover, - .components-dropdown-menu__menu .components-menu-item:hover, - .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; - box-shadow: none; } + .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg, + .components-dropdown-menu__menu .components-menu-item.is-active svg { + color: #fff; + background: #1e1e1e; + box-shadow: 0 0 0 1px #1e1e1e; + border-radius: 1px; } .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg, .components-dropdown-menu__menu .components-menu-item > svg { - border-radius: 4px; - padding: 2px; + border-radius: 2px; width: 24px; - height: 24px; - margin: -1px 8px -1px 0; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary).is-active > svg, - .components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-secondary).is-active > svg { - outline: none; - color: #fff; - box-shadow: none; - background: #555d66; } - .components-dropdown-menu__menu .components-menu-group:not(:last-child) { - border-bottom: 1px solid #e2e4e7; } + height: 24px; } .components-dropdown-menu__menu .components-menu-item__button, .components-dropdown-menu__menu .components-menu-item__button.components-button { + min-height: 36px; height: auto; - padding-left: 2rem; } + padding-left: 40px; + text-align: left; } .components-dropdown-menu__menu .components-menu-item__button.has-icon, .components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon { - padding-left: 0.5rem; } - .components-dropdown-menu__menu .components-menu-item__button .dashicon, - .components-dropdown-menu__menu .components-menu-item__button.components-button .dashicon { - margin-right: 4px; } + padding-left: 8px; } + .components-dropdown-menu__menu .components-menu-group { + padding: 12px; + margin-top: 0; + margin-bottom: 0; + margin-left: -12px; + margin-right: -12px; } + .components-dropdown-menu__menu .components-menu-group:first-child { + margin-top: -12px; } + .components-dropdown-menu__menu .components-menu-group:last-child { + margin-bottom: -12px; } + .components-dropdown-menu__menu .components-menu-group + .components-menu-group { + margin-top: 0; + border-top: 1px solid #ccc; + padding: 12px; } + .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { + border-color: #1e1e1e; } + +.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button { + padding: 0 12px; } .components-external-link__icon { width: 1.4em; height: 1.4em; margin: -0.2em 0.1em 0; - vertical-align: middle; } + vertical-align: middle; + fill: currentColor; } .components-focal-point-picker-wrapper { background-color: transparent; @@ -2344,21 +2216,8 @@ body.is-dragging-components-draggable { .components-focal-point-picker__icon .components-focal-point-picker__icon-outline { fill: #fff; } .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #0085ba; } - body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #d1864a; } - body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #a3b9a2; } - body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #e14d43; } - body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #a7b656; } - body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #c2a68c; } - body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #82b4cb; } - body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #0085ba; } + fill: #007cba; + fill: var(--wp-admin-theme-color); } .components-focal-point-picker_position-display-container { margin: 1em 0; @@ -2374,27 +2233,68 @@ body.is-dragging-components-draggable { .components-font-size-picker__controls { max-width: 248px; display: flex; + flex-wrap: wrap; align-items: center; margin-bottom: 24px; } - .components-font-size-picker__controls .components-range-control__number { + .components-font-size-picker__controls .components-font-size-picker__number { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + display: inline-block; + font-weight: 500; height: 30px; margin-bottom: 0; - margin-top: 5px; margin-left: 0; - margin-right: 8px; } - .components-font-size-picker__controls .components-range-control__number[value=""] + .components-button { + margin-right: 8px; + margin-top: 8px; + width: 54px; } + @media (prefers-reduced-motion: reduce) { + .components-font-size-picker__controls .components-font-size-picker__number { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-font-size-picker__controls .components-font-size-picker__number { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-font-size-picker__controls .components-font-size-picker__number:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-font-size-picker__controls .components-font-size-picker__number[value=""] + .components-button { cursor: default; opacity: 0.3; pointer-events: none; } - .components-font-size-picker__controls .components-range-control__number-container { + .components-font-size-picker__controls .components-font-size-picker__number-container { display: flex; flex-direction: column; } .components-font-size-picker__controls .components-font-size-picker__select { - margin-right: 8px; - flex-grow: 1; } + margin-right: 8px; } .components-font-size-picker__controls .components-color-palette__clear { height: 30px; - margin-top: 23px; } + margin-top: 26px; } .components-font-size-picker__custom-input .components-range-control__slider + .dashicon { width: 30px; @@ -2408,17 +2308,6 @@ body.is-dragging-components-draggable { .components-form-toggle { position: relative; display: inline-block; } - .components-form-toggle .components-form-toggle__on, - .components-form-toggle .components-form-toggle__off { - position: absolute; - top: 6px; - box-sizing: border-box; } - .components-form-toggle .components-form-toggle__off { - color: #6c7781; - fill: currentColor; - right: 6px; } - .components-form-toggle .components-form-toggle__on { - left: 8px; } .components-form-toggle .components-form-toggle__track { content: ""; display: inline-block; @@ -2456,62 +2345,20 @@ body.is-dragging-components-draggable { .components-form-toggle:hover .components-form-toggle__off { color: #555d66; } .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #11a0d2; - border: 2px solid #11a0d2; + background-color: #007cba; + background-color: var(--wp-admin-theme-color); + border: 2px solid #007cba; + border: 2px solid var(--wp-admin-theme-color); border: 9px solid transparent; } - body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #c8b03c; - border: 2px solid #c8b03c; } - body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #a3b9a2; - border: 2px solid #a3b9a2; } - body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #77a6b9; - border: 2px solid #77a6b9; } - body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #a7b656; - border: 2px solid #a7b656; } - body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #c2a68c; - border: 2px solid #c2a68c; } - body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #82b4cb; - border: 2px solid #82b4cb; } - body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #11a0d2; - border: 2px solid #11a0d2; } .components-form-toggle__input:focus + .components-form-toggle__track { - box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--wp-admin-theme-color); 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-form-toggle.is-checked::before { - background-color: #11a0d2; - border: 2px solid #11a0d2; } - body.admin-color-sunrise .components-form-toggle.is-checked::before { - background-color: #c8b03c; - border: 2px solid #c8b03c; } - body.admin-color-ocean .components-form-toggle.is-checked::before { - background-color: #a3b9a2; - border: 2px solid #a3b9a2; } - body.admin-color-midnight .components-form-toggle.is-checked::before { - background-color: #77a6b9; - border: 2px solid #77a6b9; } - body.admin-color-ectoplasm .components-form-toggle.is-checked::before { - background-color: #a7b656; - border: 2px solid #a7b656; } - body.admin-color-coffee .components-form-toggle.is-checked::before { - background-color: #c2a68c; - border: 2px solid #c2a68c; } - body.admin-color-blue .components-form-toggle.is-checked::before { - background-color: #82b4cb; - border: 2px solid #82b4cb; } - body.admin-color-light .components-form-toggle.is-checked::before { - background-color: #11a0d2; - border: 2px solid #11a0d2; } .components-disabled .components-form-toggle { opacity: 0.3; } @@ -2531,48 +2378,60 @@ body.is-dragging-components-draggable { .components-form-toggle input.components-form-toggle__input[type="checkbox"]::before { content: ""; } -.components-form-toggle .components-form-toggle__on { - outline: 1px solid transparent; - outline-offset: -1px; - border: 1px solid #000; - filter: invert(100%) contrast(500%); } - -@supports (-ms-high-contrast-adjust: auto) { - .components-form-toggle .components-form-toggle__on { - filter: none; - border: 1px solid #fff; } } - .components-form-token-field__input-container { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; display: flex; flex-wrap: wrap; align-items: flex-start; width: 100%; margin: 0 0 8px 0; padding: 4px; - background-color: #fff; - border: 1px solid #ccd0d4; - color: #32373c; - cursor: text; - box-shadow: 0 0 0 transparent; - transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #7e8993; } + cursor: text; } @media (prefers-reduced-motion: reduce) { .components-form-token-field__input-container { transition-duration: 0s; } } + @media (min-width: 600px) { + .components-form-token-field__input-container { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-form-token-field__input-container:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-form-token-field__input-container::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-form-token-field__input-container::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-form-token-field__input-container:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-form-token-field__input-container::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-form-token-field__input-container.is-disabled { background: #e2e4e7; border-color: #ccd0d4; } - .components-form-token-field__input-container.is-active { - color: #191e23; - border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; - outline: 2px solid transparent; } .components-form-token-field__input-container input[type="text"].components-form-token-field__input { display: inline-block; width: 100%; max-width: 100%; - margin: 2px 0 2px 8px; + margin-left: 4px; padding: 0; min-height: 24px; background: inherit; @@ -2613,21 +2472,8 @@ body.is-dragging-components-draggable { padding: 0 16px 0 0; } .components-form-token-field__token.is-borderless .components-form-token-field__token-text { background: transparent; - color: #11a0d2; } - body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c8b03c; } - body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #a89d8a; } - body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #77a6b9; } - body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c77430; } - body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #9fa47b; } - body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #d9ab59; } - body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c75726; } + color: #007cba; + color: var(--wp-admin-theme-color); } .components-form-token-field__token.is-borderless .components-form-token-field__remove-token { background: transparent; color: #555d66; @@ -2702,87 +2548,103 @@ body.is-dragging-components-draggable { .components-form-token-field__suggestion-match { text-decoration: underline; } +@media (min-width: 600px) { + .components-guide { + width: 600px; } } + .components-guide .components-modal__header { background: none; - border-bottom: none; } + border-bottom: none; + width: 100%; + padding: 0; + margin: 0; } .components-guide .components-modal__header .components-button { align-self: flex-start; - margin-top: 24px; + 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; - margin-top: -56px; + 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: auto 0 24px 0; + margin: 0 0 24px 0; + padding: 0 32px; position: relative; width: 100%; } - @media (min-width: 600px) { + @media (max-width: 600px) { .components-guide__footer { - margin: 24px 0 0; } } + position: absolute; + bottom: 0; } } .components-guide__page-control { - margin: 0; } + margin: 8px 0 8px 0; + text-align: center; } .components-guide__page-control li { - display: inline-block; - margin: 0 2px; } + display: inline-block; } .components-guide__page-control .components-button { - height: 30px; } + height: 30px; + min-width: 20px; } -@media (max-width: 600px) { - .components-modal__frame.components-guide { - bottom: 15%; - left: 24px; - right: 24px; - top: 15%; } } +.components-guide .components-modal__content { + padding: 0; } + +.components-modal__frame.components-guide { + border: none; + min-width: 312px; + height: 80vh; + max-height: 575px; } + @media (max-width: 600px) { + .components-modal__frame.components-guide { + bottom: 5%; + left: 16px; + right: 16px; + top: 5%; + margin: 0 auto; } } .components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button { height: 30px; position: absolute; } .components-button.components-guide__back-button, .components-button.components-guide__forward-button { - font-size: 0; + 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; } - @media (min-width: 600px) { - .components-button.components-guide__back-button, .components-button.components-guide__forward-button { - font-size: 13px; } } + .components-button.components-guide__back-button:hover, .components-button.components-guide__forward-button:hover { + text-decoration: underline; } .components-button.components-guide__back-button { - left: 0; } - @media (min-width: 600px) { - .components-button.components-guide__back-button { - padding: 4px 8px 4px 2px; } - .components-button.components-guide__back-button.has-text svg { - margin-right: 4px; } } + left: 32px; } .components-button.components-guide__forward-button { - right: 0; } - @media (min-width: 600px) { - .components-button.components-guide__forward-button { - padding: 4px 2px 4px 8px; } - .components-button.components-guide__forward-button.has-text svg { - margin-left: 4px; - order: 1; } } + right: 32px; + color: #1386bf; + font-weight: bold; } .components-button.components-guide__finish-button { - display: none; - right: 0; } - @media (min-width: 600px) { - .components-button.components-guide__finish-button { - display: block; } } + right: 32px; } -@media (min-width: 600px) { - .components-button.components-guide__inline-finish-button { - display: none; } } +.components-button.components-guide__inline-finish-button { + display: none; } .components-navigate-regions.is-focusing-regions [role="region"] { position: relative; } @@ -2805,23 +2667,22 @@ body.is-dragging-components-draggable { outline-width: 4px; outline-offset: -4px; } } -.components-menu-group { - width: 100%; - padding: 7px 0; } +.components-menu-group + .components-menu-group { + margin-top: 8px; + padding-top: 8px; + border-top: 1px solid #1e1e1e; } .components-menu-group__label { - margin-bottom: 8px; - color: #6c7781; - padding: 0 7px; } + padding: 0; + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } .components-menu-item__button, .components-menu-item__button.components-button { - width: 100%; - padding: 8px 15px; - text-align: left; - color: #40464d; - border: none; - box-shadow: none; } + width: 100%; } .components-menu-item__button .dashicon, .components-menu-item__button .components-menu-items__item-icon, .components-menu-item__button svg.components-menu-items__item-icon, @@ -2830,27 +2691,11 @@ body.is-dragging-components-draggable { .components-menu-item__button.components-button .components-menu-items__item-icon, .components-menu-item__button.components-button svg.components-menu-items__item-icon, .components-menu-item__button.components-button > span > svg { - margin-right: 4px; } + margin-right: 8px; } .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-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover, - .components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .components-menu-item__button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut, - .components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut { - color: #40464d; } - .components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]), - .components-menu-item__button.components-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } .components-menu-item__info-wrapper { display: flex; @@ -2859,15 +2704,15 @@ body.is-dragging-components-draggable { .components-menu-item__info { margin-top: 4px; font-size: 12px; - color: #6c7781; } + color: #757575; } .components-menu-item__shortcut { -ms-grid-row-align: center; align-self: center; - color: #6c7781; margin-right: 0; margin-left: auto; - padding-left: 8px; + padding-left: 12px; + color: currentColor; display: none; } @media (min-width: 480px) { .components-menu-item__shortcut { @@ -2875,10 +2720,13 @@ body.is-dragging-components-draggable { .components-menu-items-choice, .components-menu-items-choice.components-button { - padding-left: 2rem; } + padding-left: 40px; } + .components-menu-items-choice svg, + .components-menu-items-choice.components-button svg { + margin-right: 8px; } .components-menu-items-choice.has-icon, .components-menu-items-choice.components-button.has-icon { - padding-left: 0.5rem; } + padding-left: 8px; } .components-modal__screen-overlay { position: fixed; @@ -2914,7 +2762,7 @@ body.is-dragging-components-draggable { left: 50%; min-width: 360px; max-width: calc(100% - 16px - 16px); - max-height: calc(100% - 56px - 56px); + max-height: calc(100% - 60px - 60px); transform: translate(-50%, -50%); animation: components-modal__appear-animation 0.1s ease-out; animation-fill-mode: forwards; } } @@ -2937,7 +2785,7 @@ body.is-dragging-components-draggable { justify-content: space-between; background: #fff; align-items: center; - height: 56px; + height: 60px; z-index: 10; position: relative; position: -webkit-sticky; @@ -2978,7 +2826,7 @@ body.is-dragging-components-draggable { padding: 0 24px 24px; } @supports (-ms-ime-align: auto) { .components-modal__content { - padding-top: 56px; } } + padding-top: 60px; } } .components-notice { display: flex; @@ -3007,7 +2855,7 @@ body.is-dragging-components-draggable { margin: 4px 25px 4px 0; } .components-notice__action.components-button, .components-notice__action.components-button.is-link { - margin-left: 4px; } + margin-left: 12px; } .components-notice__action.components-button.is-secondary { vertical-align: initial; } @@ -3029,10 +2877,11 @@ body.is-dragging-components-draggable { .components-notice-list .components-notice__content { margin-top: 12px; margin-bottom: 12px; - line-height: 1.6; } + line-height: 2; } .components-notice-list .components-notice__action.components-button { - margin-top: -2px; - margin-bottom: -2px; } + display: block; + margin-left: 0; + margin-top: 8px; } .components-panel { background: #fff; @@ -3060,7 +2909,7 @@ body.is-dragging-components-draggable { justify-content: space-between; align-items: center; padding: 0 16px; - height: 50px; + height: 48px; border-top: 1px solid #e2e4e7; border-bottom: 1px solid #e2e4e7; } .components-panel__header h2 { @@ -3090,17 +2939,17 @@ body.is-dragging-components-draggable { margin-bottom: 5px; } .components-panel__body > .components-panel__body-title:hover { - background: #f3f4f5 !important; - border: none !important; } + background: #f3f4f5; + border: none; } .components-panel__body-toggle.components-button { position: relative; - padding: 15px; + padding: 16px; outline: none; width: 100%; - font-weight: 600; + font-weight: 500; text-align: left; - color: #191e23; + color: #1e1e1e; border: none; box-shadow: none; transition: 0.1s background ease-in-out; @@ -3110,19 +2959,13 @@ body.is-dragging-components-draggable { @media (prefers-reduced-motion: reduce) { .components-panel__body-toggle.components-button { transition-duration: 0s; } } - .components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-panel__body-toggle.components-button:hover { - background: transparent !important; - border: none !important; - box-shadow: none !important; } + .components-panel__body-toggle.components-button:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 0; } .components-panel__body-toggle.components-button .components-panel__arrow { position: absolute; - right: 10px; + right: 16px; top: 50%; transform: translateY(-50%); color: #191e23; @@ -3167,20 +3010,24 @@ body.is-dragging-components-draggable { .components-placeholder.components-placeholder { position: relative; - margin-bottom: 28px; padding: 1em; min-height: 200px; width: 100%; text-align: left; - background: rgba(139, 139, 150, 0.1); } + margin: 0; + color: #1e1e1e; + -moz-font-smoothing: subpixel-antialiased; + -webkit-font-smoothing: subpixel-antialiased; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + outline: 1px solid transparent; } @supports ((position: -webkit-sticky) or (position: sticky)) { .components-placeholder.components-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; } } - .is-dark-theme .components-placeholder.components-placeholder { - background: rgba(255, 255, 255, 0.15); } .components-placeholder.components-placeholder .components-base-control__label { font-size: 13px; } @@ -3194,7 +3041,8 @@ body.is-dragging-components-draggable { .components-placeholder__label { display: flex; font-weight: 600; - margin-bottom: 1em; } + margin-bottom: 16px; + align-items: center; } .components-placeholder__label > svg, .components-placeholder__label .dashicon, .components-placeholder__label .block-editor-block-icon { @@ -3206,8 +3054,7 @@ body.is-dragging-components-draggable { display: flex; flex-direction: row; width: 100%; - flex-wrap: wrap; - z-index: 1; } + flex-wrap: wrap; } .components-placeholder__fieldset p, .components-placeholder__fieldset form p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -3217,9 +3064,47 @@ body.is-dragging-components-draggable { .components-placeholder__fieldset.is-column-layout form { flex-direction: column; } -.components-placeholder__input { +.components-placeholder__input[type="url"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; margin: 0 8px 0 0; flex: 1 1 auto; } + @media (prefers-reduced-motion: reduce) { + .components-placeholder__input[type="url"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-placeholder__input[type="url"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-placeholder__input[type="url"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-placeholder__input[type="url"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-placeholder__input[type="url"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-placeholder__input[type="url"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-placeholder__input[type="url"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-placeholder__input[type="url"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-placeholder__input[type="url"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-placeholder__instructions { margin-bottom: 1em; } @@ -3233,8 +3118,8 @@ body.is-dragging-components-draggable { width: 50%; } .components-placeholder__fieldset .components-button { - margin-right: 8px; - margin-bottom: 8px; } + margin-right: 12px; + margin-bottom: 12px; } .components-placeholder__fieldset .components-button:last-child { margin-bottom: 0; margin-right: 0; } @@ -3245,6 +3130,10 @@ body.is-dragging-components-draggable { .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: normal; } + .components-placeholder.is-medium .components-placeholder__instructions, .components-placeholder.is-small .components-placeholder__instructions { display: none; } @@ -3256,9 +3145,6 @@ body.is-dragging-components-draggable { .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 .block-editor-block-icon { - display: none; } - .components-placeholder.is-small .components-button { padding: 0 8px 2px; } @@ -3280,7 +3166,7 @@ body.is-dragging-components-draggable { .components-popover:not(.is-without-arrow) { margin-left: 2px; } .components-popover:not(.is-without-arrow)::before { - border: 8px solid #e2e4e7; } + border: 8px solid #1e1e1e; } .components-popover:not(.is-without-arrow)::after { border: 8px solid #fff; } .components-popover:not(.is-without-arrow)::before, .components-popover:not(.is-without-arrow)::after { @@ -3342,12 +3228,24 @@ body.is-dragging-components-draggable { .components-popover[data-y-axis="middle"] { align-items: center; display: flex; } + .components-popover.is-from-top { + margin-top: 12px; } + .components-popover.is-from-bottom { + margin-top: -12px; } + .components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom) { + margin-left: 12px; } + .components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom) { + margin-right: 12px; } .components-popover__content { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - border: 1px solid #e2e4e7; + height: 100%; background: #fff; - height: 100%; } + border: 1px solid #ccc; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); + border-radius: 2px; } + .is-alternate .components-popover__content { + border: 1px solid #1e1e1e; + box-shadow: none; } .components-popover .components-popover__content { position: absolute; height: auto; @@ -3355,11 +3253,11 @@ body.is-dragging-components-draggable { min-width: 260px; } .components-popover.is-expanded .components-popover__content { position: static; - height: calc(100% - 50px); + height: calc(100% - 48px); overflow-y: visible; min-width: auto; border: none; - border-top: 1px solid #e2e4e7; } + border-top: 1px solid #1e1e1e; } .components-popover[data-y-axis="top"] .components-popover__content { bottom: 100%; } .components-popover[data-x-axis="center"] .components-popover__content { @@ -3369,21 +3267,18 @@ body.is-dragging-components-draggable { position: absolute; left: 100%; } .components-popover:not([data-y-axis="middle"])[data-x-axis="right"] .components-popover__content { - margin-left: -24px; } + margin-left: -25px; } .components-popover[data-x-axis="left"] .components-popover__content { position: absolute; right: 100%; } .components-popover:not([data-y-axis="middle"])[data-x-axis="left"] .components-popover__content { - margin-right: -24px; } - -.components-popover__content > div { - height: 100%; } + margin-right: -25px; } .components-popover__header { align-items: center; background: #fff; display: flex; - height: 50px; + height: 48px; justify-content: space-between; padding: 0 8px 0 16px; } @@ -3409,123 +3304,73 @@ body.is-dragging-components-draggable { margin-bottom: 4px; } .components-radio-control__input[type="radio"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 2px solid #757575; + margin-right: 12px; + transition: none; + border-radius: 50%; margin-top: 0; margin-right: 6px; } - -.components-range-control .components-base-control__field { - display: flex; - justify-content: center; - flex-wrap: wrap; - align-items: center; } - -.components-range-control .dashicon { - flex-shrink: 0; - margin-right: 10px; } - -.components-range-control .components-base-control__label { - width: 100%; } - -.components-range-control .components-range-control__slider { - margin-left: 0; - flex: 1; } - -.components-range-control__reset { - margin-left: 8px; } - -.components-range-control__slider { - width: 100%; - margin-left: 8px; - padding: 0; - -webkit-appearance: none; - background: transparent; - /** - * Thumb - */ - /** - * Track - */ } - .components-range-control__slider::-webkit-slider-thumb { - -webkit-appearance: none; - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; - margin-top: -7px; } - .components-range-control__slider::-moz-range-thumb { - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; } - .components-range-control__slider::-ms-thumb { - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; - margin-top: 0; - height: 14px; - width: 14px; - border: 2px solid transparent; } - .components-range-control__slider:focus { - outline: none; } - .components-range-control__slider:focus::-webkit-slider-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; + @media (prefers-reduced-motion: reduce) { + .components-radio-control__input[type="radio"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-radio-control__input[type="radio"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-radio-control__input[type="radio"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } - .components-range-control__slider:focus::-moz-range-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } - .components-range-control__slider:focus::-ms-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; } - .components-range-control__slider::-webkit-slider-runnable-track { - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; - margin-top: -4px; } - .components-range-control__slider::-moz-range-track { - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; } - .components-range-control__slider::-ms-track { - margin-top: -4px; - background: transparent; - border-color: transparent; - color: transparent; - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; } - -.components-range-control__number { - display: inline-block; - margin-left: 8px; - font-weight: 500; - width: 54px; } + .components-radio-control__input[type="radio"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-radio-control__input[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-radio-control__input[type="radio"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-radio-control__input[type="radio"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-radio-control__input[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-radio-control__input[type="radio"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-radio-control__input[type="radio"]:checked::before { + width: 6px; + height: 6px; + margin: 6px 0 0 6px; + background-color: #fff; } + @media (min-width: 782px) { + .components-radio-control__input[type="radio"]:checked::before { + margin: 3px 0 0 3px; } } + .components-radio-control__input[type="radio"]:focus { + border-color: #757575; + box-shadow: 0 0 0 1px #757575; } + .components-radio-control__input[type="radio"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-radio-control__input[type="radio"]:checked:focus { + box-shadow: 0 0 0 1.5px #757575; } .components-resizable-box__handle { display: none; width: 23px; height: 23px; } - .components-resizable-box__container.is-selected .components-resizable-box__handle, .components-resizable-box__container.has-show-handle .components-resizable-box__handle { display: block; } @@ -3536,67 +3381,27 @@ body.is-dragging-components-draggable { height: 15px; border: 2px solid #fff; border-radius: 50%; - background: #0085ba; + background: #007cba; + background: var(--wp-admin-theme-color); cursor: inherit; position: absolute; top: calc(50% - 8px); right: calc(50% - 8px); } -body.admin-color-sunrise .components-resizable-box__handle::after { - background: #d1864a; } - -body.admin-color-ocean .components-resizable-box__handle::after { - background: #a3b9a2; } - -body.admin-color-midnight .components-resizable-box__handle::after { - background: #e14d43; } - -body.admin-color-ectoplasm .components-resizable-box__handle::after { - background: #a7b656; } - -body.admin-color-coffee .components-resizable-box__handle::after { - background: #c2a68c; } - -body.admin-color-blue .components-resizable-box__handle::after { - background: #82b4cb; } - -body.admin-color-light .components-resizable-box__handle::after { - background: #0085ba; } - .components-resizable-box__side-handle::before { display: block; content: ""; width: 7px; height: 7px; border: 2px solid #fff; - background: #0085ba; + background: #007cba; + background: var(--wp-admin-theme-color); cursor: inherit; position: absolute; top: calc(50% - 4px); right: calc(50% - 4px); transition: transform 0.1s ease-in; opacity: 0; } - -body.admin-color-sunrise .components-resizable-box__side-handle::before { - background: #d1864a; } - -body.admin-color-ocean .components-resizable-box__side-handle::before { - background: #a3b9a2; } - -body.admin-color-midnight .components-resizable-box__side-handle::before { - background: #e14d43; } - -body.admin-color-ectoplasm .components-resizable-box__side-handle::before { - background: #a7b656; } - -body.admin-color-coffee .components-resizable-box__side-handle::before { - background: #c2a68c; } - -body.admin-color-blue .components-resizable-box__side-handle::before { - background: #82b4cb; } - -body.admin-color-light .components-resizable-box__side-handle::before { - background: #0085ba; } @media (prefers-reduced-motion: reduce) { .components-resizable-box__side-handle::before { transition-duration: 0s; } } @@ -3605,8 +3410,11 @@ body.admin-color-light .components-resizable-box__side-handle::before { .is-dark-theme .components-resizable-box__handle::after { border-color: #d7dade; } +.components-resizable-box__handle { + z-index: 2; } + .components-resizable-box__side-handle { - z-index: 1; } + z-index: 2; } .components-resizable-box__corner-handle { z-index: 2; } @@ -3748,7 +3556,8 @@ body.lockscroll { background-color: #191e23; } .components-snackbar:focus { background-color: #191e23; - box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; } + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-snackbar__action.components-button { margin-left: 32px; @@ -3812,13 +3621,262 @@ body.lockscroll { to { transform: rotate(360deg); } } -.components-text-control__input { +.components-tab-panel__tabs { + display: flex; + align-items: stretch; } + +.components-tab-panel__tabs-item { + background: transparent; + border: none; + box-shadow: none; + border-radius: 0; + cursor: pointer; + height: 48px; + padding: 3px 16px; + margin-left: 0; + font-weight: 500; + transition: box-shadow 0.1s linear; + box-sizing: border-box; } + .components-tab-panel__tabs-item::after { + content: attr(data-label); + display: block; + height: 0; + overflow: hidden; + speak: none; + visibility: hidden; } + .components-tab-panel__tabs-item:focus:not(:disabled) { + box-shadow: inset 0 1.5px #007cba; + box-shadow: inset 0 1.5px var(--wp-admin-theme-color); } + .components-tab-panel__tabs-item.is-active { + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 var(--wp-admin-theme-color); + position: relative; } + .components-tab-panel__tabs-item.is-active::before { + content: ""; + position: absolute; + top: 0; + bottom: 1px; + right: 0; + left: 0; + border-bottom: 4px solid transparent; } + .components-tab-panel__tabs-item:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } + .components-tab-panel__tabs-item.is-active:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color); } + +.components-text-control__input, +.components-text-control__input[type="text"], +.components-text-control__input[type="tel"], +.components-text-control__input[type="time"], +.components-text-control__input[type="url"], +.components-text-control__input[type="week"], +.components-text-control__input[type="password"], +.components-text-control__input[type="color"], +.components-text-control__input[type="date"], +.components-text-control__input[type="datetime"], +.components-text-control__input[type="datetime-local"], +.components-text-control__input[type="email"], +.components-text-control__input[type="month"], +.components-text-control__input[type="number"] { width: 100%; - padding: 6px 8px; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .components-text-control__input, + .components-text-control__input[type="text"], + .components-text-control__input[type="tel"], + .components-text-control__input[type="time"], + .components-text-control__input[type="url"], + .components-text-control__input[type="week"], + .components-text-control__input[type="password"], + .components-text-control__input[type="color"], + .components-text-control__input[type="date"], + .components-text-control__input[type="datetime"], + .components-text-control__input[type="datetime-local"], + .components-text-control__input[type="email"], + .components-text-control__input[type="month"], + .components-text-control__input[type="number"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-text-control__input, + .components-text-control__input[type="text"], + .components-text-control__input[type="tel"], + .components-text-control__input[type="time"], + .components-text-control__input[type="url"], + .components-text-control__input[type="week"], + .components-text-control__input[type="password"], + .components-text-control__input[type="color"], + .components-text-control__input[type="date"], + .components-text-control__input[type="datetime"], + .components-text-control__input[type="datetime-local"], + .components-text-control__input[type="email"], + .components-text-control__input[type="month"], + .components-text-control__input[type="number"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-text-control__input:focus, + .components-text-control__input[type="text"]:focus, + .components-text-control__input[type="tel"]:focus, + .components-text-control__input[type="time"]:focus, + .components-text-control__input[type="url"]:focus, + .components-text-control__input[type="week"]:focus, + .components-text-control__input[type="password"]:focus, + .components-text-control__input[type="color"]:focus, + .components-text-control__input[type="date"]:focus, + .components-text-control__input[type="datetime"]:focus, + .components-text-control__input[type="datetime-local"]:focus, + .components-text-control__input[type="email"]:focus, + .components-text-control__input[type="month"]:focus, + .components-text-control__input[type="number"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-text-control__input::-webkit-input-placeholder, + .components-text-control__input[type="text"]::-webkit-input-placeholder, + .components-text-control__input[type="tel"]::-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, + .components-text-control__input[type="password"]::-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"]::-webkit-input-placeholder, + .components-text-control__input[type="datetime-local"]::-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 { + color: rgba(14, 28, 46, 0.62); } + .components-text-control__input::-moz-placeholder, + .components-text-control__input[type="text"]::-moz-placeholder, + .components-text-control__input[type="tel"]::-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, + .components-text-control__input[type="password"]::-moz-placeholder, + .components-text-control__input[type="color"]::-moz-placeholder, + .components-text-control__input[type="date"]::-moz-placeholder, + .components-text-control__input[type="datetime"]::-moz-placeholder, + .components-text-control__input[type="datetime-local"]::-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 { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-text-control__input:-ms-input-placeholder, + .components-text-control__input[type="text"]:-ms-input-placeholder, + .components-text-control__input[type="tel"]:-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, + .components-text-control__input[type="password"]:-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"]:-ms-input-placeholder, + .components-text-control__input[type="datetime-local"]:-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 { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-text-control__input::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="text"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="time"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="url"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="week"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="password"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="color"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="date"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="email"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="month"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="number"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-text-control__input::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="text"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="time"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="url"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="week"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="password"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="color"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="date"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="email"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="month"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-text-control__input:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="text"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="time"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="url"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="week"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="password"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="color"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="date"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="email"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="month"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="number"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-textarea-control__input { width: 100%; - padding: 6px 8px; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .components-textarea-control__input { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-textarea-control__input { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-textarea-control__input:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-textarea-control__input::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .components-textarea-control__input::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .components-textarea-control__input:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .components-textarea-control__input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-textarea-control__input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-textarea-control__input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-tip { display: flex; @@ -3838,47 +3896,88 @@ body.lockscroll { line-height: initial; align-items: center; } .components-toggle-control .components-base-control__field .components-form-toggle { - margin-right: 16px; } + margin-right: 12px; } .components-toggle-control .components-base-control__field .components-toggle-control__label { display: block; } .components-accessible-toolbar { display: inline-flex; + border: 1px solid #1e1e1e; + border-radius: 2px; flex-shrink: 0; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .components-accessible-toolbar { - display: flex; } } + .components-accessible-toolbar > .components-toolbar-group:last-child { + border-right: none; } -.components-tab-button { - padding: 3px; - color: #555d66; - height: 36px; - font-weight: 500; } - .components-tab-button.is-pressed, .components-tab-button.is-pressed:hover { - color: #fff; } - .components-tab-button:disabled { - cursor: default; } - .components-tab-button > span { - border: 1px solid transparent; - padding: 0 6px; - box-sizing: content-box; - height: 28px; - line-height: 28px; } - .components-tab-button:hover > span, - .components-tab-button:focus > span { - color: #555d66; } - .components-tab-button:not(:disabled).is-pressed > span, - .components-tab-button:not(:disabled):hover > span, - .components-tab-button:not(:disabled):focus > span { - border: 1px solid #555d66; } - .components-tab-button.is-pressed > span, - .components-tab-button.is-pressed:hover > span { - background-color: #555d66; - color: #fff; } +.components-accessible-toolbar .components-button, +.components-toolbar .components-button { + position: relative; + height: 48px; + z-index: 1; + padding-left: 16px; + padding-right: 16px; } + .components-accessible-toolbar .components-button:focus:enabled, + .components-toolbar .components-button:focus:enabled { + box-shadow: none; + outline: none; } + .components-accessible-toolbar .components-button::before, + .components-toolbar .components-button::before { + content: ""; + position: absolute; + display: block; + border-radius: 2px; + height: 32px; + left: 8px; + right: 8px; + z-index: -1; + animation: components-button__appear-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-accessible-toolbar .components-button::before, + .components-toolbar .components-button::before { + animation-duration: 1ms; } } + .components-accessible-toolbar .components-button svg, + .components-toolbar .components-button svg { + position: relative; + margin-left: auto; + margin-right: auto; } + .components-accessible-toolbar .components-button.is-pressed, + .components-toolbar .components-button.is-pressed { + background: transparent; } + .components-accessible-toolbar .components-button.is-pressed:hover, + .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 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; + outline: 2px solid transparent; } + .components-accessible-toolbar .components-button.has-icon, + .components-toolbar .components-button.has-icon { + padding-left: 8px; + padding-right: 8px; + min-width: 48px; + justify-content: center; } + .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 { + from { + transform: scaleY(0); } + to { + transform: scaleY(1); } } .components-toolbar__control.components-button { - width: 36px; - height: 36px; } + position: relative; } .components-toolbar__control.components-button[data-subscript] svg { padding: 5px 10px 5px 0; } .components-toolbar__control.components-button[data-subscript]::after { @@ -3890,39 +3989,32 @@ body.lockscroll { position: absolute; right: 8px; bottom: 10px; } + .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__control.components-button.is-pressed { - padding: 3px; - outline: none; } - .components-toolbar__control.components-button.is-pressed > svg { - padding: 5px; - border-radius: 4px; - height: 30px; - width: 30px; - box-sizing: border-box; - outline: none; - color: #fff; - box-shadow: none; - background: #555d66; } .components-toolbar-group { - border: 1px solid #e2e4e7; + min-height: 48px; + border-right: 1px solid #1e1e1e; background-color: #fff; - display: flex; + display: inline-flex; flex-shrink: 0; - margin-right: -1px; + flex-wrap: wrap; line-height: 0; } .components-toolbar-group .components-toolbar-group { border-width: 0; margin: 0; } .components-toolbar { + min-height: 48px; margin: 0; - border: 1px solid #e2e4e7; + border: 1px solid #1e1e1e; + border-radius: 2px; background-color: #fff; - display: flex; - flex-shrink: 0; } + display: inline-flex; + flex-shrink: 0; + flex-wrap: wrap; } div.components-toolbar > div { display: block; @@ -3931,45 +4023,90 @@ div.components-toolbar > div { div.components-toolbar > div { display: flex; } } -div.components-toolbar > div + div { - margin-left: -3px; } - div.components-toolbar > div + div.has-left-divider { - margin-left: 6px; - position: relative; - overflow: visible; } - div.components-toolbar > div + div.has-left-divider::before { - display: inline-block; - content: ""; - box-sizing: content-box; - background-color: #e2e4e7; - position: absolute; - top: 8px; - left: -3px; - width: 1px; - height: 20px; } +div.components-toolbar > div + div.has-left-divider { + margin-left: 6px; + position: relative; + overflow: visible; } + +div.components-toolbar > div + div.has-left-divider::before { + display: inline-block; + content: ""; + box-sizing: content-box; + background-color: #e2e4e7; + position: absolute; + top: 8px; + left: -3px; + width: 1px; + height: 20px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon, +.components-toolbar div > .components-button.components-button.has-icon { + min-width: 36px; + padding-left: 6px; + padding-right: 6px; } + .components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon svg, + .components-toolbar div > .components-button.components-button.has-icon svg { + min-width: 24px; } + .components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon::before, + .components-toolbar div > .components-button.components-button.has-icon::before { + left: 2px; + right: 2px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:first-child.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:first-child > .components-button.has-icon, +.components-toolbar div:first-child .components-button.has-icon { + min-width: 42px; + padding-left: 11px; + padding-right: 6px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:first-child.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:first-child > .components-button.has-icon::before, + .components-toolbar div:first-child .components-button.has-icon::before { + left: 8px; + right: 2px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon, +.components-toolbar div:last-child .components-button.has-icon { + min-width: 42px; + padding-left: 6px; + padding-right: 11px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon::before, + .components-toolbar div:last-child .components-button.has-icon::before { + left: 2px; + right: 8px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:first-of-type:last-of-type.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:first-child:last-child > .components-button.has-icon, +.components-toolbar div:first-child:last-child > .components-button.has-icon { + min-width: 48px; + padding-left: 12px; + padding-right: 12px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:first-of-type:last-of-type.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:first-child:last-child > .components-button.has-icon::before, + .components-toolbar div:first-child:last-child > .components-button.has-icon::before { + left: 8px; + right: 8px; } .components-tooltip.components-popover { z-index: 1000002; } - .components-tooltip.components-popover::before { - border-color: transparent; } - .components-tooltip.components-popover[data-y-axis="top"]::after { - border-top-color: #191e23; } - .components-tooltip.components-popover[data-y-axis="bottom"]::after { - border-bottom-color: #191e23; } .components-tooltip.components-popover .components-popover__content { min-width: 0; } .components-tooltip .components-popover__content { - padding: 4px 12px; - background: #191e23; + background: #1e1e1e; + border-radius: 2px; border-width: 0; color: #fff; white-space: nowrap; - text-align: center; } + text-align: center; + pointer-events: none; } + .components-tooltip .components-popover__content > div { + padding: 4px 8px; } .components-tooltip__shortcut { - display: block; - color: #7e8993; } + display: inline-block; + margin-left: 8px; } .components-visually-hidden { border: 0; diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index 794fc122a9..8da753c15e 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1,9 +1,9 @@ -.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-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-duration:1ms}}.components-animate__slide-in.is-from-left{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-angle-picker-control{width:50%}.components-angle-picker-control.components-base-control .components-base-control__label{display:block}.components-angle-picker-control__input-field{width:calc(100% - 36px);max-width:100px}.components-angle-picker-control__angle-circle{width:28px;height:28px;border:2px solid #555d66;border-radius:50%;float:left;margin-right:4px;cursor:grab}.components-angle-picker-control__angle-circle-indicator-wrapper{position:relative;width:100%;height:100%}.components-angle-picker-control__angle-circle-indicator{width:1px;height:1px;border-radius:50%;border:3px solid #555d66;display:block;position:absolute;top:-14px;bottom:0;left:0;right:0;margin:auto;background:#555d66}.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px 8px;margin-left:-3px;margin-right:-3px;text-align:left}.components-autocomplete__result.components-button.is-selected{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-autocomplete__result.components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-base-control+.components-base-control{margin-bottom:16px}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:3px 0 0 3px}.components-button-group .components-button:last-child{border-radius:0 3px 3px 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:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:0 8px;overflow:hidden;border-radius:3px;color:#555d66}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-button.is-secondary{white-space:nowrap;color:#0075af;border:1px solid #0075af;background:#f3f5f6}body.admin-color-sunrise .components-button.is-secondary{color:#c47e46;border-color:#c47e46}body.admin-color-ocean .components-button.is-secondary{color:#99ae98;border-color:#99ae98}body.admin-color-midnight .components-button.is-secondary{color:#d4483f;border-color:#d4483f}body.admin-color-ectoplasm .components-button.is-secondary{color:#9dab51;border-color:#9dab51}body.admin-color-coffee .components-button.is-secondary{color:#b69c84;border-color:#b69c84}body.admin-color-blue .components-button.is-secondary{color:#cca154;border-color:#cca154}body.admin-color-light .components-button.is-secondary{color:#007daf;border-color:#007daf}.components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none}body.admin-color-sunrise .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#9d6538;color:#9d6538}body.admin-color-ocean .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#7a8b7a;color:#7a8b7a}body.admin-color-midnight .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#a93a32;color:#a93a32}body.admin-color-ectoplasm .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#7d8941;color:#7d8941}body.admin-color-coffee .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#927d69;color:#927d69}body.admin-color-blue .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#a38043;color:#a38043}body.admin-color-light .components-button.is-secondary:not(:disabled):not([aria-disabled=true]):hover{border-color:#00648c;color:#00648c}.components-button.is-secondary:focus:enabled{background:#f3f5f6;color:#005d8c;border-color:#0076b1;box-shadow:0 0 0 1px #0076b1;text-decoration:none}body.admin-color-sunrise .components-button.is-secondary:focus:enabled{color:#9d6538;border-color:#c77f46;box-shadow:0 0 0 1px #c77f46}body.admin-color-ocean .components-button.is-secondary:focus:enabled{color:#7a8b7a;border-color:#9bb09a;box-shadow:0 0 0 1px #9bb09a}body.admin-color-midnight .components-button.is-secondary:focus:enabled{color:#a93a32;border-color:#d64940;box-shadow:0 0 0 1px #d64940}body.admin-color-ectoplasm .components-button.is-secondary:focus:enabled{color:#7d8941;border-color:#9fad52;box-shadow:0 0 0 1px #9fad52}body.admin-color-coffee .components-button.is-secondary:focus:enabled{color:#927d69;border-color:#b89e85;box-shadow:0 0 0 1px #b89e85}body.admin-color-blue .components-button.is-secondary:focus:enabled{color:#a38043;border-color:#cea255;box-shadow:0 0 0 1px #cea255}body.admin-color-light .components-button.is-secondary:focus:enabled{color:#00648c;border-color:#007eb1;box-shadow:0 0 0 1px #007eb1}.components-button.is-secondary:not([aria-disabled=true]):active:enabled{background:#f3f5f6;color:#0076b1;border-color:#7e8993;box-shadow:none}body.admin-color-sunrise .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#c77f46}body.admin-color-ocean .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#9bb09a}body.admin-color-midnight .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#d64940}body.admin-color-ectoplasm .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#9fad52}body.admin-color-coffee .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#b89e85}body.admin-color-blue .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#cea255}body.admin-color-light .components-button.is-secondary:not([aria-disabled=true]):active:enabled{color:#007eb1}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;text-shadow:0 1px 0 #fff;transform:none;opacity:1}.components-button.is-primary{white-space:nowrap;background:#007cba;border:1px solid #007cba;color:#fff;text-decoration:none;text-shadow:none}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#d1864a}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#e14d43}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#d9ab59}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#0085ba}.components-button.is-primary:focus:enabled,.components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#0070a7;border-color:#0070a7;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#bc7943;border-color:#bc7943}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#93a792;border-color:#93a792}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#cb453c;border-color:#cb453c}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#96a44d;border-color:#96a44d}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#af957e;border-color:#af957e}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#c39a50;border-color:#c39a50}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:not(:disabled):not([aria-disabled=true]):hover{background:#0078a7;border-color:#0078a7}.components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d1864a}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b9a2}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a7b656}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #c2a68c}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d9ab59}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #0085ba}.components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#006395;border-color:#006395;color:#fff}body.admin-color-sunrise .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#a76b3b;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#829482;border-color:#829482}body.admin-color-midnight .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#b43e36;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#869245;border-color:#869245}body.admin-color-coffee .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#9b8570;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#ae8947;border-color:#ae8947}body.admin-color-light .components-button.is-primary:not([aria-disabled=true]):active:enabled{background:#006a95;border-color:#006a95}.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{color:#66b0d6;background:#1989c1;border-color:#1989c1;opacity:1}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true],body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:enabled{color:#e3b692;background:#d6925c;border-color:#d6925c}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary:disabled:active:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true],body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:enabled{color:#c8d5c7;background:#acc0ab;border-color:#acc0ab}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary:disabled:active:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true],body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:enabled{color:#ed948e;background:#e45f56;border-color:#e45f56}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true],body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:enabled{color:#cad39a;background:#b0bd67;border-color:#b0bd67}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary:disabled:active:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true],body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:enabled{color:#dacaba;background:#c8af98;border-color:#c8af98}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary:disabled:active:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true],body.admin-color-blue .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:enabled{color:#e8cd9b;background:#ddb36a;border-color:#ddb36a}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary:disabled:active:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true],body.admin-color-light .components-button.is-primary[aria-disabled=true]:active:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:enabled{color:#66b6d6;background:#1991c1;border-color:#1991c1}.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 #fff,0 0 0 3px #007cba}body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d1864a}body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b9a2}body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #a7b656}body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #c2a68c}body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-blue .components-button.is-primary:disabled:focus:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #d9ab59}body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled,body.admin-color-light .components-button.is-primary:disabled:focus:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px #0085ba}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#007cba 28%,#006395 0,#006395 72%,#007cba 0);border-color:#007cba}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#d1864a 28%,#a76b3b 0,#a76b3b 72%,#d1864a 0);border-color:#d1864a}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a3b9a2 28%,#829482 0,#829482 72%,#a3b9a2 0);border-color:#a3b9a2}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#e14d43 28%,#b43e36 0,#b43e36 72%,#e14d43 0);border-color:#e14d43}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a7b656 28%,#869245 0,#869245 72%,#a7b656 0);border-color:#a7b656}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#c2a68c 28%,#9b8570 0,#9b8570 72%,#c2a68c 0);border-color:#c2a68c}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#d9ab59 28%,#ae8947 0,#ae8947 72%,#d9ab59 0);border-color:#d9ab59}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#0085ba 28%,#006a95 0,#006a95 72%,#0085ba 0);border-color:#0085ba}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:not(:disabled):not([aria-disabled=true]):hover,.components-button.is-link:not([aria-disabled=true]):active{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:not(:disabled){background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.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-size:100px 100%;background-image:repeating-linear-gradient(-45deg,#e2e4e7,#fff 11px,#fff 0,#e2e4e7 20px);opacity:1}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-tertiary{color:#007cba}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary:not([aria-disabled=true]):active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#005d8c}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text svg{margin-right:8px}.components-button svg{fill:currentColor;outline:none}.components-button .screen-reader-text{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{border:1px solid #b4b9be;background:#fff;color:#555;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:25px;height:25px;-webkit-appearance:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);transition:border-color .05s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:16px;width:16px}}.components-checkbox-control__input[type=checkbox]:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#11a0d2;border-color:#11a0d2}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:focus:checked{border:none}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:25px;height:25px}@media (min-width:600px){.components-checkbox-control__input-container{width:16px;height:16px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:-4px;top:-2px;width:31px;height:31px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{width:21px;height:21px;left:-3px}}.components-circular-option-picker{display:inline-block;margin-top:.6rem;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-right:12px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{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{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;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")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{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;position:relative;z-index:1}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;background:#fff;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-picker{width:100%;overflow:hidden}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(-4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 8px}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-right:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-bottom:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-custom-gradient-picker{margin-top:8px}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{width:100%;height:24px;border-radius:24px;margin-bottom:16px;padding-left:3px;padding-right:21px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;min-width:24px;width:24px;height:24px;position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;height:18px;padding:0;position:absolute;width:18px;top:3px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{background:#fafafa;color:#23282d;border-color:#999;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{display:flex;justify-content:space-between}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.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 #7e8993;border-radius:2px}.components-custom-select-control{color:#555d66;position:relative}.components-custom-select-control__label{display:block;margin-bottom:5px}.components-custom-select-control__button{border:1px solid #7e8993;border-radius:4px;color:#555d66;display:inline;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button:focus{border-color:#00a0d2}.components-custom-select-control__button-icon{height:100%;padding:0 4px;position:absolute;right:0;top:0}.components-custom-select-control__menu{background:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px}.components-custom-select-control__item.is-highlighted{background:#e2e4e7}.components-custom-select-control__item-icon{margin-left:-20px;margin-right:0}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime,.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #7e8993}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .components-datetime__date-help-button,.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-left:8px;margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button:focus,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-pressed:focus,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-pressed:focus{box-shadow:inset 0 2px 5px -3px #555d66,0 0 0 1px #fff,0 0 0 3px #007cba}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 -4px 0 0!important;border-radius:4px 0 0 4px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 4px 4px 0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:transparent;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown-menu__indicator:after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;margin-left:4px;margin-right:2px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:7px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-secondary),.components-dropdown-menu__menu .components-menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-secondary){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:hover,.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover,.components-dropdown-menu__menu .components-menu-item:hover,.components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover{color:#191e23;border:none;background:#f3f4f5;box-shadow:none}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 8px -1px 0}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary).is-active>svg,.components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled=true]):not(.is-secondary).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-dropdown-menu__menu .components-menu-group:not(:last-child){border-bottom:1px solid #e2e4e7}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;padding-left:2rem}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-left:.5rem}.components-dropdown-menu__menu .components-menu-item__button.components-button .dashicon,.components-dropdown-menu__menu .components-menu-item__button .dashicon{margin-right:4px}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;left:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#d1864a}body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a3b9a2}body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#e14d43}body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a7b656}body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#c2a68c}body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#82b4cb}body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 1em 0 0}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 0 0 .2em}.components-font-size-picker__controls{max-width:248px;display:flex;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-range-control__number{height:30px;margin:5px 8px 0 0}.components-font-size-picker__controls .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-range-control__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-right:8px;flex-grow:1}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:23px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px;box-sizing:border-box}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;right:6px}.components-form-toggle .components-form-toggle__on{left:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;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-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked:before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked:before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked:before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked:before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked:before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked:before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.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-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;background-color:#fff;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #7e8993}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s}}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 0 2px 8px;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.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{outline:none;box-shadow: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__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.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:#d94f4f}.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:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;right:0}.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{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.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{display:inline-block;line-height:24px;height:auto;background:#e2e4e7;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{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-guide .components-modal__header{background:none;border-bottom:none}.components-guide .components-modal__header .components-button{align-self:flex-start;margin-top:24px;position:static}.components-guide__container{display:flex;flex-direction:column;margin-top:-56px;min-height:100%}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:auto 0 24px;position:relative;width:100%}@media (min-width:600px){.components-guide__footer{margin:24px 0 0}}.components-guide__page-control{margin:0}.components-guide__page-control li{display:inline-block;margin:0 2px}.components-guide__page-control .components-button{height:30px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:15%;left:24px;right:24px;top:15%}}.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:0;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}@media (min-width:600px){.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px}}.components-button.components-guide__back-button{left:0}@media (min-width:600px){.components-button.components-guide__back-button{padding:4px 8px 4px 2px}.components-button.components-guide__back-button.has-text svg{margin-right:4px}}.components-button.components-guide__forward-button{right:0}@media (min-width:600px){.components-button.components-guide__forward-button{padding:4px 2px 4px 8px}.components-button.components-guide__forward-button.has-text svg{margin-left:4px;order:1}}.components-button.components-guide__finish-button{display:none;right:0}@media (min-width:600px){.components-button.components-guide__finish-button{display:block}}@media (min-width:600px){.components-button.components-guide__inline-finish-button{display:none}}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-menu-group{width:100%;padding:7px 0}.components-menu-group__label{margin-bottom:8px;color:#6c7781;padding:0 7px}.components-menu-item__button,.components-menu-item__button.components-button{width:100%;padding:8px 15px;text-align:left;color:#40464d;border:none;box-shadow:none}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button.components-button .dashicon,.components-menu-item__button.components-button>span>svg,.components-menu-item__button.components-button svg.components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg,.components-menu-item__button svg.components-menu-items__item-icon{margin-right:4px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover,.components-menu-item__button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-menu-item__button.components-button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut,.components-menu-item__button.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-tertiary):not(.is-primary):hover .components-menu-item__shortcut{color:#40464d}.components-menu-item__button.components-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#6c7781}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;color:#6c7781;margin-right:0;margin-left:auto;padding-left:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{padding-left:2rem}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:.5rem}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:4px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#6c7781;align-self:flex-start;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{color:#191e23;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:1.6}.components-notice-list .components-notice__action.components-button{margin-top:-2px;margin-bottom:-2px}.components-panel{background:#fff;border:1px solid #e2e4e7}.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-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.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;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{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:#f3f4f5!important;border:none!important}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:left;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button:hover{background:transparent!important;border:none!important;box-shadow:none!important}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:10px;flex-shrink:0;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{position:relative;margin-bottom:28px;padding:1em;min-height:200px;width:100%;text-align:left;background:rgba(139,139,150,.1)}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.is-dark-theme .components-placeholder.components-placeholder{background:hsla(0,0%,100%,.15)}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.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{display:flex;font-weight:600;margin-bottom:1em}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap;z-index:1}.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.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input{margin:0 8px 0 0;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:8px;margin-bottom:8px}.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-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 .block-editor-block-icon{display:none}.components-placeholder.is-small .components-button{padding:0 8px 2px} +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.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-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-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-angle-picker-control{width:50%}.components-angle-picker-control.components-base-control .components-base-control__label{display:block}.components-angle-picker-control__input-field[type=number]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;width:calc(100% - 36px);max-width:100px}@media (prefers-reduced-motion:reduce){.components-angle-picker-control__input-field[type=number]{transition-duration:0s}}@media (min-width:600px){.components-angle-picker-control__input-field[type=number]{font-size:13px;line-height:normal}}.components-angle-picker-control__input-field[type=number]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-angle-picker-control__input-field[type=number]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-angle-picker-control__angle-circle{width:28px;height:28px;border:2px solid #555d66;border-radius:50%;float:left;margin-right:4px;cursor:grab}.components-angle-picker-control__angle-circle-indicator-wrapper{position:relative;width:100%;height:100%}.components-angle-picker-control__angle-circle-indicator{width:1px;height:1px;border-radius:50%;border:3px solid #555d66;display:block;position:absolute;top:-14px;bottom:0;left:0;right:0;margin:auto;background:#555d66}.components-autocomplete__popover .components-popover__content>div{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 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:inline-block;margin-bottom:8px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.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{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;overflow:hidden;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:#007cba;color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-primary{white-space:nowrap;background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.components-button.is-primary:hover:not(:disabled){background:#006ba1;background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:#005a87;background:var(--wp-admin-theme-color-darker-20);border-color:#005a87;border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.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{color:hsla(0,0%,100%,.4);background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color);opacity:1}.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 #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#007cba 28%,#005a87 0,#005a87 72%,#007cba 0);background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 28%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 72%,var(--wp-admin-theme-color) 0);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#e7e8e9;color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:#006ba1;color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px #006ba1;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.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{color:#828282;background:#f4f5f5;transform:none;opacity:1;box-shadow:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:#007cba;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s}}.components-button.is-link:active:not(:disabled),.components-button.is-link:hover:not(:disabled){color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 1.5px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:not([aria-disabled=true]):active{color:inherit}.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;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 28%,#e0e0e0 0,#e0e0e0 72%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;border:2px solid #757575;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-checkbox-control__input[type=checkbox]:focus{border-color:#757575;box-shadow:0 0 0 1px #757575}.components-checkbox-control__input[type=checkbox]:checked:focus{box-shadow:0 0 0 1.5px #757575}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@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:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:focus{box-shadow:0 0 0 1.5px #555d66}@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-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #007cba;box-shadow:0 0 0 2px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:focus:checked{border:none}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;margin-top:.6rem;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;margin-right:12px;margin-bottom:12px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{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{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;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")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{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;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-picker{width:100%}.components-color-picker *{box-sizing:border-box}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:visible}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-button.components-color-picker__saturation-pointer{width:14px;height:14px;padding:0;border-radius:50%;background-color:transparent;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #fff,inset 0 0 0 1px #000,0 0 0 2px #000}.components-button.components-color-picker__saturation-pointer:focus:not(:disabled){box-shadow:0 0 0 2px #fff,inset 0 0 0 1px #000,0 0 0 3px #000}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition-duration:0s}}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1;border:none;margin:0;padding:0}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:6px 8px}.components-color-picker__inputs-field{width:100%}.components-color-picker__inputs-fields{display:flex;direction:ltr;flex-grow:1;margin-right:4px}.components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}.components-color-picker__inputs-toggle{height:30px;padding:0 5px}.components-custom-gradient-picker{margin-top:8px}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{width:100%;height:24px;border-radius:24px;margin-bottom:8px;padding-left:3px;padding-right:21px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;min-width:24px;width:24px;height:24px;position:relative}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;height:18px;padding:0;position:absolute;width:18px;top:3px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{background:#fafafa;color:#23282d;border-color:#999;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker__ui-line{display:flex;justify-content:space-between}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.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 #7e8993;border-radius:2px}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{background-color:#fff;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu:focus{border:1px solid #1e1e1e;border-radius:2px;outline:none;transition:none}.components-custom-select-control__item{align-items:center;display:flex;list-style-type:none;padding:10px 5px 10px 25px;cursor:default}.components-custom-select-control__item.is-highlighted{background:#e2e4e7}.components-custom-select-control__item-icon{margin-left:-20px;margin-right:0}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:0}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:#007cba;background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:#005a87;background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px 0;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:4px 0 0 4px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 4px 4px 0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-draggable__clone>*{margin-top:0!important;margin-bottom:0!important}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}@media (prefers-reduced-motion:reduce){.components-drop-zone{transition-duration:0s}}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}@media (prefers-reduced-motion:reduce){.components-drop-zone.is-active{transition-duration:0s}}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:50;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.components-drop-zone__content{transition-duration:0s}}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:12px}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;padding-left:40px;text-align:left}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-left:8px}.components-dropdown-menu__menu .components-menu-group{padding:12px;margin:0 -12px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-12px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-12px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:12px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button{padding:0 12px}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle;fill:currentColor}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;left:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#007cba;fill:var(--wp-admin-theme-color)}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 1em 0 0}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 0 0 .2em}.components-font-size-picker__controls{max-width:248px;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:24px}.components-font-size-picker__controls .components-font-size-picker__number{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:inline-block;font-weight:500;height:30px;margin:8px 8px 0 0;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-font-size-picker__select{margin-right:8px}.components-font-size-picker__controls .components-color-palette__clear{height:30px;margin-top:26px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s}}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#007cba;background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--wp-admin-theme-color);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{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.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{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.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{outline:none;box-shadow: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__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-style:italic}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.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:#d94f4f}.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:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#007cba;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;right:0}.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{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.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{display:inline-block;line-height:24px;height:auto;background:#e2e4e7;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{transition-duration:0s;animation-duration:1ms}}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s}}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__header{background:none;border-bottom:none;width:100%;padding:0;margin:0}.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%}@media (max-width:600px){.components-guide__footer{position:absolute;bottom:0}}.components-guide__page-control{margin:8px 0;text-align:center}.components-guide__page-control li{display:inline-block}.components-guide__page-control .components-button{height:30px;min-width:20px}.components-guide .components-modal__content{padding:0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{bottom:5%;left:16px;right:16px;top:5%;margin:0 auto}}.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{right:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{right:32px}.components-button.components-guide__inline-finish-button{display:none}.components-navigate-regions.is-focusing-regions [role=region]{position:relative}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group__label{padding:0;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button.components-button .dashicon,.components-menu-item__button.components-button>span>svg,.components-menu-item__button.components-button svg.components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg,.components-menu-item__button svg.components-menu-items__item-icon{margin-right:8px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575}.components-menu-item__shortcut{-ms-grid-row-align:center;align-self:center;margin-right:0;margin-left:auto;padding-left:12px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{padding-left:40px}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-right:8px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:8px}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.7);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 24px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:60px;z-index:10;position:relative;position:-webkit-sticky;position:sticky;top:0;margin:0 -24px 24px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 24px 24px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:60px}}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.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{color:#6c7781;align-self:flex-start;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{color:#191e23;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box;z-index:29}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e2e4e7}.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-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.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;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{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:#f3f4f5;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:10px;flex-shrink:0;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{position:relative;padding:1em;min-height:200px;width:100%;text-align:left;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports ((position:-webkit-sticky) or (position:sticky)){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.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{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.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.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0 8px 0 0;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-placeholder__input[type=url]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-placeholder__input[type=url]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:12px;margin-bottom: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} -/*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 50px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #e2e4e7}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-24px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;display:flex;height:50px;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} +/*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.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} -/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-right:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-right:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-left:0;flex:1}.components-range-control__reset{margin-left:8px}.components-range-control__slider{width:100%;margin-left:8px;padding:0;-webkit-appearance:none;background:transparent}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:none}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:transparent;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-left:8px;font-weight:500;width:54px}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle,.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px)}body.admin-color-sunrise .components-resizable-box__handle:after{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle:after{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle:after{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle:after{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle:after{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle:after{background:#82b4cb}body.admin-color-light .components-resizable-box__handle:after{background:#0085ba}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#0085ba;cursor:inherit;position:absolute;top:calc(50% - 4px);right:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}body.admin-color-sunrise .components-resizable-box__side-handle:before{background:#d1864a}body.admin-color-ocean .components-resizable-box__side-handle:before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__side-handle:before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__side-handle:before{background:#a7b656}body.admin-color-coffee .components-resizable-box__side-handle:before{background:#c2a68c}body.admin-color-blue .components-resizable-box__side-handle:before{background:#82b4cb}body.admin-color-light .components-resizable-box__side-handle:before{background:#0085ba}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#d7dade}.components-resizable-box__side-handle{z-index:1}.components-resizable-box__corner-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{width:100%;left:0;border-left:0;border-right:0}.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{height:100%;top:0;border-top:0;border-bottom: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-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-duration:1ms}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}} +/*!rtl:end:ignore*/.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;border:2px solid #757575;transition:none;border-radius:50%;margin-top:0;margin-right:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-radio-control__input[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-radio-control__input[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-radio-control__input[type=radio]:checked:before{width:6px;height:6px;margin:6px 0 0 6px;background-color:#fff}@media (min-width:782px){.components-radio-control__input[type=radio]:checked:before{margin:3px 0 0 3px}}.components-radio-control__input[type=radio]:focus{border-color:#757575;box-shadow:0 0 0 1px #757575}.components-radio-control__input[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:checked:focus{box-shadow:0 0 0 1.5px #757575}.components-resizable-box__handle{display:none;width:23px;height:23px}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 8px);right:calc(50% - 8px)}.components-resizable-box__side-handle:before{display:block;content:"";width:7px;height:7px;border:2px solid #fff;background:#007cba;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 4px);right:calc(50% - 4px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s}}.is-dark-theme .components-resizable-box__handle:after,.is-dark-theme .components-resizable-box__side-handle:before{border-color:#d7dade}.components-resizable-box__corner-handle,.components-resizable-box__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{width:100%;left:0;border-left:0;border-right:0}.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{height:100%;top:0;border-top:0;border-bottom: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-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-duration:1ms}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity: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{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#32373c;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:hover{background-color:#191e23}.components-snackbar:focus{background-color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#33b3db}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-text-control__input,.components-textarea-control__input{width:100%;padding:6px 8px}.components-tip{display:flex;color:#555d66}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;flex-shrink:0}@supports ((position:-webkit-sticky) or (position:sticky)){.components-accessible-toolbar{display:flex}}.components-tab-button{padding:3px;color:#555d66;height:36px;font-weight:500}.components-tab-button.is-pressed,.components-tab-button.is-pressed:hover{color:#fff}.components-tab-button:disabled{cursor:default}.components-tab-button>span{border:1px solid transparent;padding:0 6px;box-sizing:content-box;height:28px;line-height:28px}.components-tab-button:focus>span,.components-tab-button:hover>span{color:#555d66}.components-tab-button:not(:disabled).is-pressed>span,.components-tab-button:not(:disabled):focus>span,.components-tab-button:not(:disabled):hover>span{border:1px solid #555d66}.components-tab-button.is-pressed:hover>span,.components-tab-button.is-pressed>span{background-color:#555d66;color:#fff}.components-toolbar__control.components-button{width:36px;height:36px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{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;bottom:10px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar__control.components-button.is-pressed{padding:3px;outline:none}.components-toolbar__control.components-button.is-pressed>svg{padding:5px;border-radius:4px;height:30px;width:30px;box-sizing:border-box;outline:none;color:#fff;box-shadow:none;background:#555d66}.components-toolbar-group{border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0;margin-right:-1px;line-height:0}.components-toolbar-group .components-toolbar-group{border-width:0;margin:0}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-left:-3px}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover:before{border-color:transparent}.components-tooltip.components-popover[data-y-axis=top]:after{border-top-color:#191e23}.components-tooltip.components-popover[data-y-axis=bottom]:after{border-bottom-color:#191e23}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap;text-align:center}.components-tooltip__shortcut{display:block;color:#7e8993}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#e2e4e7;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file +/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#32373c;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:hover{background-color:#191e23}.components-snackbar:focus{background-color:#191e23;box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{margin-left:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#33b3db}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{display:flex;align-items:stretch}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.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]{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@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-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:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px 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(14,28,46,.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{opacity:1;color:rgba(14,28,46,.62)}.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(14,28,46,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-textarea-control__input{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.components-textarea-control__input{transition-duration:0s}}@media (min-width:600px){.components-textarea-control__input{font-size:13px;line-height:normal}}.components-textarea-control__input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-textarea-control__input::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-textarea-control__input::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-textarea-control__input:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-textarea-control__input::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-textarea-control__input:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{display:flex;color:#555d66}.components-tip svg{-ms-grid-row-align:center;align-self:center;fill:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-left:16px;padding-right:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;left:8px;right:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-left:auto;margin-right:auto}.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent}.components-accessible-toolbar .components-button.is-pressed:hover,.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 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{padding-left:8px;padding-right:8px;min-width:48px;justify-content:center}.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{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;bottom:10px}.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{min-height:48px;border-right:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;pointer-events:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.components-visually-hidden:focus{background-color:#e2e4e7;clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ 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 db49a8aaf2..513c6faeb8 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.css +++ b/wp-includes/css/dist/edit-post/style-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,35 +57,258 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -@media (min-width: 782px) { - body.js.is-fullscreen-mode { - margin-top: -46px; - height: calc(100% + 46px); } } - @media (min-width: 782px) and (min-width: 782px) { - body.js.is-fullscreen-mode { - margin-top: -32px; - height: calc(100% + 32px); } } +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +.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; } } + +.interface-complementary-area { + background: #fff; + color: #1e1e1e; + overflow: visible; } + @media (min-width: 600px) { + .interface-complementary-area { + z-index: auto; + height: 100%; + overflow: auto; + -webkit-overflow-scrolling: touch; } } + @media (min-width: 782px) { + .interface-complementary-area { + width: 280px; } } + .interface-complementary-area > .components-panel { + border-right: none; + border-left: none; + overflow: auto; + -webkit-overflow-scrolling: touch; + height: auto; + max-height: calc(100vh - 142px); + margin-top: -1px; + margin-bottom: -1px; + position: relative; } + @media (min-width: 600px) { + .interface-complementary-area > .components-panel { + overflow: visible; + height: auto; + max-height: none; } } + .interface-complementary-area > .components-panel .components-panel__header { + position: fixed; + z-index: 1; + top: 0; + right: 0; + left: 0; + height: 48px; } + @media (min-width: 600px) { + .interface-complementary-area > .components-panel .components-panel__header { + position: inherit; + top: auto; + right: auto; + left: auto; } } + .interface-complementary-area p { + margin-top: 0; } + .interface-complementary-area h2, + .interface-complementary-area h3 { + font-size: 13px; + color: #1e1e1e; + margin-bottom: 1.5em; } + .interface-complementary-area hr { + border-top: none; + border-bottom: 1px solid #e2e4e7; + margin: 1.5em 0; } + .interface-complementary-area div.components-toolbar-group, + .interface-complementary-area div.components-toolbar { + 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 { + top: auto; + left: 10px; + bottom: 10px; + right: auto; } @media (min-width: 782px) { + body.js.is-fullscreen-mode { + margin-top: -32px; + height: calc(100% + 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; } - body.js.is-fullscreen-mode .edit-post-header { - transform: translateY(-100%); - animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } } - @media (min-width: 782px) and (prefers-reduced-motion: reduce) { - body.js.is-fullscreen-mode .edit-post-header { - animation-duration: 1ms; } } + margin-right: 0; } } -@keyframes edit-post-fullscreen-mode__slide-in-animation { - 100% { - transform: translateY(0%); } } +html.interface-interface-skeleton__html-container { + position: fixed; + width: 100%; } + @media (min-width: 782px) { + html.interface-interface-skeleton__html-container { + position: initial; + width: initial; } } + +.interface-interface-skeleton { + display: flex; + flex-direction: column; + height: auto; + max-height: 100%; + position: fixed; + top: 46px; + right: 0; + left: 0; + bottom: 0; } + @media (min-width: 783px) { + .interface-interface-skeleton { + top: 32px; } + .is-fullscreen-mode .interface-interface-skeleton { + top: 0; } } + +.interface-interface-skeleton { + /* Set left position when auto-fold is not on the body element. */ + right: 0; } + @media (min-width: 783px) { + .interface-interface-skeleton { + right: 160px; } } + +.auto-fold .interface-interface-skeleton { + /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ } + @media (min-width: 783px) { + .auto-fold .interface-interface-skeleton { + right: 36px; } } + @media (min-width: 961px) { + .auto-fold .interface-interface-skeleton { + right: 160px; } } + +/* Sidebar manually collapsed. */ +.folded .interface-interface-skeleton { + right: 0; } + @media (min-width: 783px) { + .folded .interface-interface-skeleton { + right: 36px; } } + +/* Mobile menu opened. */ +@media (max-width: 783px) { + .auto-fold .wp-responsive-open .interface-interface-skeleton { + right: 190px; } } + +/* In small screens with responsive menu expanded there is small white space. */ +@media (max-width: 600px) { + .auto-fold .wp-responsive-open .interface-interface-skeleton { + margin-right: -18px; } } + +body.is-fullscreen-mode .interface-interface-skeleton { + right: 0 !important; } + +.interface-interface-skeleton__body { + flex-grow: 1; + display: flex; + overflow: auto; + overscroll-behavior-y: none; } + +.interface-interface-skeleton__content { + flex-grow: 1; + display: flex; + flex-direction: column; + overflow: auto; } + +.interface-interface-skeleton__left-sidebar, +.interface-interface-skeleton__sidebar { + display: block; + width: auto; + flex-shrink: 0; + position: absolute; + z-index: 100000; + top: 0; + left: 0; + bottom: 0; + right: 0; + background: #fff; + color: #1e1e1e; } + @media (min-width: 782px) { + .interface-interface-skeleton__left-sidebar, + .interface-interface-skeleton__sidebar { + position: relative !important; + z-index: 90; } } + +@media (min-width: 782px) { + .interface-interface-skeleton__sidebar { + overflow: auto; + border-right: 1px solid #e2e4e7; } } + +@media (min-width: 782px) { + .interface-interface-skeleton__left-sidebar { + border-left: 1px solid #e2e4e7; } } + +.interface-interface-skeleton__header { + flex-shrink: 0; + height: auto; + border-bottom: 1px solid #e2e4e7; + z-index: 30; + color: #1e1e1e; + position: -webkit-sticky; + position: sticky; + top: 0; } + @media (min-width: 600px) { + .interface-interface-skeleton__header { + position: initial; + top: 0; } } + +.interface-interface-skeleton__footer { + height: auto; + flex-shrink: 0; + border-top: 1px solid #e2e4e7; + color: #1e1e1e; + display: none; } + @media (min-width: 782px) { + .interface-interface-skeleton__footer { + display: block; } } + +.interface-interface-skeleton__actions { + z-index: 100000; + position: fixed !important; + top: -9999em; + bottom: auto; + right: auto; + left: 0; + width: 280px; + color: #1e1e1e; } + .interface-interface-skeleton__actions:focus { + top: auto; + bottom: 0; } + +.interface-pinned-items { + display: flex; } + .interface-pinned-items .components-button { + margin-right: 4px; } + .interface-pinned-items .components-button svg { + max-width: 24px; + max-height: 24px; } .edit-post-header { - height: 56px; + height: 60px; background: #fff; display: flex; flex-wrap: wrap; @@ -88,46 +326,64 @@ .edit-post-header__toolbar { display: flex; flex-grow: 1; - padding-right: 16px; } + padding-right: 8px; } + @media (min-width: 600px) { + .edit-post-header__toolbar { + padding-right: 24px; } } + .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__settings { display: inline-flex; align-items: center; flex-wrap: wrap; - padding-left: 8px; } - -.edit-post-header .components-button.is-pressed { - color: #fff; - background: #555d66; } - -.edit-post-header .components-button.is-pressed:hover, .edit-post-header .components-button.is-pressed:focus { - box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff !important; - color: #fff !important; - background: #555d66 !important; } - -.edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft, .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - margin: 2px; - font-size: 13px; } - -.edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft { - padding: 0 5px; } + padding-left: 4px; } @media (min-width: 600px) { - .edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft { - padding: 0 12px; } } + .edit-post-header__settings { + padding-left: 16px; } } -.edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - padding-right: 5px; - padding-left: 5px; } +/** + * Buttons in the Toolbar + */ +.edit-post-header__settings .components-button.editor-post-save-draft, +.edit-post-header__settings .editor-post-saved-state, +.edit-post-header__settings .components-button.editor-post-switch-to-draft, +.edit-post-header__settings .components-button.editor-post-preview, +.edit-post-header__settings .components-button.block-editor-post-preview__dropdown, +.edit-post-header__settings .components-button.editor-post-publish-button, +.edit-post-header__settings .components-button.editor-post-publish-panel__toggle { + padding: 0 6px; + margin-left: 4px; } @media (min-width: 600px) { - .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - padding-right: 12px; - padding-left: 12px; } } + .edit-post-header__settings .components-button.editor-post-save-draft, + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.editor-post-switch-to-draft, + .edit-post-header__settings .components-button.editor-post-preview, + .edit-post-header__settings .components-button.block-editor-post-preview__dropdown, + .edit-post-header__settings .components-button.editor-post-publish-button, + .edit-post-header__settings .components-button.editor-post-publish-panel__toggle { + padding: 0 12px; + margin-left: 12px; } } -@media (min-width: 782px) { - .edit-post-header .components-button.editor-post-preview { - margin: 0 12px 0 3px; } - .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - margin: 0 3px 0 12px; } } +.edit-post-header-preview__grouping-external { + display: flex; + position: relative; + padding-bottom: 0; } + +.edit-post-header-preview__button-external { + padding-right: 8px; + margin-left: auto; + width: 100%; + display: flex; + justify-content: flex-start; } + .edit-post-header-preview__button-external svg { + margin-left: 8px; } + +.edit-post-post-preview-dropdown .components-popover__content > div { + padding-bottom: 0; } .edit-post-fullscreen-mode-close.has-icon { display: none; } @@ -141,43 +397,58 @@ color: #fff; border-radius: 0; height: auto; - width: 56px; } + width: 60px; } .edit-post-fullscreen-mode-close.has-icon:hover { - background: #32373d !important; - color: #fff !important; - box-shadow: none !important; } + background: #32373d; } .edit-post-fullscreen-mode-close.has-icon:active { - color: #fff; } } - .edit-post-fullscreen-mode-close.has-icon svg { - margin-right: auto; - margin-left: auto; } + color: #fff; } + .edit-post-fullscreen-mode-close.has-icon:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; } } .edit-post-header-toolbar { display: inline-flex; - align-items: center; } + align-items: center; + border: none; } .edit-post-header-toolbar > .components-button { display: none; } @media (min-width: 600px) { .edit-post-header-toolbar > .components-button { display: inline-flex; } } - .edit-post-header-toolbar .block-editor-block-navigation, - .edit-post-header-toolbar .table-of-contents { + .edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle { + display: inline-flex; } + .edit-post-header-toolbar .block-editor-block-navigation { display: none; } @media (min-width: 600px) { - .edit-post-header-toolbar .block-editor-block-navigation, - .edit-post-header-toolbar .table-of-contents { + .edit-post-header-toolbar .block-editor-block-navigation { display: flex; } } + .edit-post-header-toolbar > .components-button.has-icon, + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon { + height: 36px; + min-width: 36px; + padding: 6px; } + .edit-post-header-toolbar > .components-button.has-icon.is-pressed, + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon.is-pressed { + background: #1e1e1e; } + .edit-post-header-toolbar > .components-button.has-icon:focus:not(:disabled), + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff; + outline: 1px solid transparent; } + .edit-post-header-toolbar > .components-button.has-icon::before, + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon::before { + display: none; } .edit-post-header-toolbar__block-toolbar { position: absolute; - top: 57px; + top: 61px; right: 0; left: 0; background: #fff; - min-height: 37px; border-bottom: 1px solid #e2e4e7; } .edit-post-header-toolbar__block-toolbar:empty { display: none; } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group, .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { border-top: none; border-bottom: none; } @@ -194,14 +465,22 @@ right: auto; left: auto; background: none; - border-bottom: none; - min-height: auto; } + border-bottom: none; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { left: auto; } .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar { - margin: -9px 0; } + border-right: 1px solid #e2e4e7; } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group, .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { - padding: 10px 4px 9px; } } + height: 60px; + padding: 6px 0; } } + +.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon { + margin-left: 8px; + min-width: 32px; + width: 32px; + height: 32px; + padding: 0; } .edit-post-more-menu { margin-right: -4px; } @@ -210,11 +489,9 @@ padding: 0 2px; } @media (min-width: 600px) { .edit-post-more-menu { - margin-right: 4px; } + margin-right: 0; } .edit-post-more-menu .components-button { padding: 0 4px; } } - .edit-post-more-menu .components-button svg { - transform: rotate(-90deg); } .edit-post-more-menu__content .components-popover__content { min-width: 260px; } @@ -228,36 +505,6 @@ .components-popover.edit-post-more-menu__content { z-index: 99998; } -.edit-post-pinned-plugins { - display: none; } - @media (min-width: 600px) { - .edit-post-pinned-plugins { - display: flex; } } - .edit-post-pinned-plugins .components-button { - margin-right: 4px; } - .edit-post-pinned-plugins .components-button.is-pressed { - margin-right: 5px; } - .edit-post-pinned-plugins .components-button svg { - max-width: 24px; - max-height: 24px; } - .edit-post-pinned-plugins .components-button:not(.is-pressed) svg, - .edit-post-pinned-plugins .components-button:not(.is-pressed) svg * { - stroke: #555d66; - fill: #555d66; - stroke-width: 0; } - .edit-post-pinned-plugins .components-button.is-pressed svg, - .edit-post-pinned-plugins .components-button.is-pressed svg *, - .edit-post-pinned-plugins .components-button.is-pressed:hover svg, - .edit-post-pinned-plugins .components-button.is-pressed:hover svg * { - stroke: #fff !important; - fill: #fff !important; - stroke-width: 0; } - .edit-post-pinned-plugins .components-button:hover svg, - .edit-post-pinned-plugins .components-button:hover svg * { - stroke: #191e23 !important; - fill: #191e23 !important; - stroke-width: 0; } - .edit-post-keyboard-shortcut-help-modal__section { margin: 0 0 2rem 0; } @@ -317,20 +564,20 @@ .edit-post-layout .components-editor-notices__snackbar { position: fixed; left: 0; - bottom: 20px; + bottom: 40px; padding-right: 16px; padding-left: 16px; } .edit-post-layout .components-editor-notices__snackbar { /* Set left position when auto-fold is not on the body element. */ right: 0; } - @media (min-width: 782px) { + @media (min-width: 783px) { .edit-post-layout .components-editor-notices__snackbar { right: 160px; } } .auto-fold .edit-post-layout .components-editor-notices__snackbar { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ } - @media (min-width: 782px) { + @media (min-width: 783px) { .auto-fold .edit-post-layout .components-editor-notices__snackbar { right: 36px; } } @media (min-width: 961px) { @@ -340,12 +587,12 @@ /* Sidebar manually collapsed. */ .folded .edit-post-layout .components-editor-notices__snackbar { right: 0; } - @media (min-width: 782px) { + @media (min-width: 783px) { .folded .edit-post-layout .components-editor-notices__snackbar { right: 36px; } } /* Mobile menu opened. */ -@media (max-width: 782px) { +@media (max-width: 783px) { .auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar { right: 190px; } } @@ -387,59 +634,48 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { 100% { transform: translateX(0%); } } -.block-editor-editor-skeleton__sidebar > div { +.interface-interface-skeleton__sidebar > div { height: 100%; } .edit-post-layout .editor-post-publish-panel__header-publish-button { justify-content: center; } -.edit-post-layout__toogle-publish-panel, -.edit-post-layout__toogle-sidebar-panel { +.edit-post-layout__toggle-publish-panel, +.edit-post-layout__toogle-sidebar-panel, +.edit-post-layout__toggle-entities-saved-states-panel { + z-index: 100000; + position: fixed !important; + top: -9999em; + bottom: auto; + right: auto; + left: 0; + width: 280px; background-color: #fff; - padding: 10px 0 10px 10px; } - -.edit-post-layout__toogle-publish-panel-button, -.edit-post-layout__toogle-sidebar-panel-button { - width: auto; - height: auto; - display: block; - font-size: 14px; - font-weight: 600; - margin: 0 auto 0 0; - padding: 15px 23px 14px; - line-height: normal; - text-decoration: none; - outline: none; - background: #f1f1f1; - color: #11a0d2; } - -body.admin-color-sunrise .edit-post-layout__toogle-publish-panel-button, body.admin-color-sunrise .edit-post-layout__toogle-sidebar-panel-button { - color: #c8b03c; } - -body.admin-color-ocean .edit-post-layout__toogle-publish-panel-button, body.admin-color-ocean .edit-post-layout__toogle-sidebar-panel-button { - color: #a89d8a; } - -body.admin-color-midnight .edit-post-layout__toogle-publish-panel-button, body.admin-color-midnight .edit-post-layout__toogle-sidebar-panel-button { - color: #77a6b9; } - -body.admin-color-ectoplasm .edit-post-layout__toogle-publish-panel-button, body.admin-color-ectoplasm .edit-post-layout__toogle-sidebar-panel-button { - color: #c77430; } - -body.admin-color-coffee .edit-post-layout__toogle-publish-panel-button, body.admin-color-coffee .edit-post-layout__toogle-sidebar-panel-button { - color: #9fa47b; } - -body.admin-color-blue .edit-post-layout__toogle-publish-panel-button, body.admin-color-blue .edit-post-layout__toogle-sidebar-panel-button { - color: #d9ab59; } - -body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admin-color-light .edit-post-layout__toogle-sidebar-panel-button { - color: #c75726; } - .edit-post-layout__toogle-publish-panel-button:focus, - .edit-post-layout__toogle-sidebar-panel-button:focus { - position: fixed; + border: 1px dotted #e2e4e7; + height: auto !important; + padding: 24px; + display: flex; + justify-content: center; } + .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, + .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, + .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, + .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus + .edit-post-layout__toogle-sidebar-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toogle-sidebar-panel, + .interface-interface-skeleton__actions:focus + .edit-post-layout__toogle-sidebar-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus + .edit-post-layout__toggle-entities-saved-states-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toggle-entities-saved-states-panel, + .interface-interface-skeleton__actions:focus + .edit-post-layout__toggle-entities-saved-states-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toggle-entities-saved-states-panel { top: auto; - left: 10px; - bottom: 10px; - right: auto; } + bottom: 0; } .edit-post-layout__footer { display: none; @@ -449,13 +685,36 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi display: flex; background: #fff; height: 24px; - padding: 0 8px; align-items: center; - font-size: 13px; } } + font-size: 13px; + padding: 0 18px; } } + +.edit-post-layout .interface-interface-skeleton__content { + background-color: #ccd0d4; } + +.edit-post-layout__inserter-panel { + height: 100%; + display: flex; + flex-direction: column; } + +.edit-post-layout__inserter-panel-header { + padding-top: 8px; + padding-left: 8px; + display: flex; + justify-content: flex-end; } + @media (min-width: 782px) { + .edit-post-layout__inserter-panel-header { + display: none; } } + +.edit-post-layout__inserter-panel-content { + height: calc(100% - 36px - 8px); } + @media (min-width: 782px) { + .edit-post-layout__inserter-panel-content { + height: 100%; } } @media (min-width: 600px) { .edit-post-manage-blocks-modal { - height: calc(100% - 56px - 56px); } } + height: calc(100% - 60px - 60px); } } .edit-post-manage-blocks-modal .components-modal__content { padding-bottom: 0; @@ -622,149 +881,32 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .edit-post-meta-boxes-area__clear { clear: both; } -.edit-post-sidebar { - background: #fff; - color: #555d66; - overflow: visible; } - @media (min-width: 600px) { - .edit-post-sidebar { - z-index: auto; - height: 100%; - overflow: auto; - -webkit-overflow-scrolling: touch; } } - @media (min-width: 782px) { - .edit-post-sidebar { - width: 280px; } } - .edit-post-sidebar > .components-panel { - border-right: none; - border-left: none; - overflow: auto; - -webkit-overflow-scrolling: touch; - height: auto; - max-height: calc(100vh - 96px); - margin-top: -1px; - margin-bottom: -1px; - position: relative; } - @media (min-width: 600px) { - .edit-post-sidebar > .components-panel { - overflow: visible; - height: auto; - max-height: none; } } - .edit-post-sidebar > .components-panel .components-panel__header { - position: fixed; - z-index: 1; - top: 0; - right: 0; - left: 0; - height: 50px; } - @media (min-width: 600px) { - .edit-post-sidebar > .components-panel .components-panel__header { - position: inherit; - top: auto; - right: auto; - left: auto; } } - .edit-post-sidebar p { - margin-top: 0; } - .edit-post-sidebar h2, - .edit-post-sidebar h3 { - font-size: 13px; - color: #555d66; - margin-bottom: 1.5em; } - .edit-post-sidebar hr { - border-top: none; - border-bottom: 1px solid #e2e4e7; - margin: 1.5em 0; } - .edit-post-sidebar div.components-toolbar { - box-shadow: none; - margin-bottom: 1.5em; } - .edit-post-sidebar div.components-toolbar:last-child { - margin-bottom: 0; } - .edit-post-sidebar p + div.components-toolbar { - margin-top: -1em; } - .edit-post-sidebar .block-editor-skip-to-selected-block:focus { - top: auto; - left: 10px; - bottom: 10px; - right: auto; } - -/* Text Editor specific */ -.components-panel__header.edit-post-sidebar__header { - background: #fff; - padding-left: 8px; } - .components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: 100%; } - @media (min-width: 782px) { - .components-panel__header.edit-post-sidebar__header { - display: none; } } - .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-right: 0; - padding-left: 4px; + padding-left: 16px; border-top: 0; margin-top: 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; - margin-right: auto; } + margin: 0 auto 0 0; + padding: 0; + min-width: 24px; + height: 24px; } @media (min-width: 782px) { .components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon { display: flex; } } -.edit-post-sidebar__panel-tab { - background: transparent; - border: none; - border-radius: 0; - box-shadow: none; - cursor: pointer; - height: 50px; - padding: 3px 15px; - margin-right: 0; - font-weight: 400; - outline-offset: -1px; - transition: box-shadow 0.1s linear; } - @media (prefers-reduced-motion: reduce) { - .edit-post-sidebar__panel-tab { - transition-duration: 0s; } } - .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; - font-weight: 600; - position: relative; } - body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #837425; } - body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #5e7d5e; } - body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #497b8d; } - body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #523f6d; } - body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #59524c; } - body.admin-color-blue .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #417e9B; } - body.admin-color-light .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; } - .edit-post-sidebar__panel-tab.is-active::before { - content: ""; - position: absolute; - top: 0; - bottom: 1px; - left: 0; - right: 0; - border-bottom: 3px solid transparent; } - .edit-post-sidebar__panel-tab:focus:not(:disabled) { - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; - box-shadow: none; } - .components-panel__body.is-opened.edit-post-last-revision__panel { - padding: 0; } + padding: 0; + height: 48px; } -.editor-post-last-revision__title { - padding: 13px 16px; } +.editor-post-last-revision__title.components-button { + padding: 16px; } .editor-post-author__select { margin: -5px 0; @@ -777,6 +919,7 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi font-weight: 600; } .edit-post-post-link__preview-label { + font-weight: 400; margin: 0; } .edit-post-post-link__link { @@ -804,11 +947,9 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .edit-post-post-visibility { width: 100%; } -.edit-post-post-visibility__dialog .components-popover__content { - padding: 10px; } - @media (min-width: 782px) { - .edit-post-post-visibility__dialog .components-popover__content { - width: 257px; } } +@media (min-width: 782px) { + .edit-post-post-visibility__dialog .components-popover__content { + width: 257px; } } .edit-post-post-visibility__dialog-legend { font-weight: 600; } @@ -831,17 +972,9 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi margin: 4px 0 0; line-height: 1.4; } -.components-panel__header.edit-post-sidebar__panel-tabs { - justify-content: flex-start; - padding-right: 0; - padding-left: 4px; - border-top: 0; } - .components-panel__header.edit-post-sidebar__panel-tabs ul { - display: flex; } - .components-panel__header.edit-post-sidebar__panel-tabs li { - margin: 0; } - .components-button.edit-post-sidebar__panel-tab { + border-radius: 0; + height: 48px; background: transparent; border: none; box-shadow: none; @@ -849,13 +982,7 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi display: inline-block; padding: 3px 15px; margin-right: 0; - font-weight: 400; - color: #191e23; - outline-offset: -1px; - transition: box-shadow 0.1s linear; } - @media (prefers-reduced-motion: reduce) { - .components-button.edit-post-sidebar__panel-tab { - transition-duration: 0s; } } + font-weight: 500; } .components-button.edit-post-sidebar__panel-tab::after { content: attr(data-label); display: block; @@ -865,23 +992,10 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi speak: none; visibility: hidden; } .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; - font-weight: 600; - position: relative; } - body.admin-color-sunrise .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #837425; } - body.admin-color-ocean .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #5e7d5e; } - body.admin-color-midnight .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #497b8d; } - body.admin-color-ectoplasm .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #523f6d; } - body.admin-color-coffee .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #59524c; } - body.admin-color-blue .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #417e9B; } - body.admin-color-light .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; } + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 var(--wp-admin-theme-color); + position: relative; + z-index: 1; } .components-button.edit-post-sidebar__panel-tab.is-active::before { content: ""; position: absolute; @@ -889,98 +1003,85 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi bottom: 1px; left: 0; right: 0; - border-bottom: 3px solid transparent; } + border-bottom: 4px solid transparent; } .components-button.edit-post-sidebar__panel-tab:focus { - background-color: transparent; - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; } - -/* Text Editor specific */ -.components-panel__header.edit-post-sidebar-header__small { - background: #fff; - padding-left: 4px; } - .components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: 100%; } - @media (min-width: 782px) { - .components-panel__header.edit-post-sidebar-header__small { - display: none; } } - -.components-panel__header.edit-post-sidebar-header { - padding-left: 4px; - background: #f3f4f5; } - .components-panel__header.edit-post-sidebar-header .components-button.has-icon { - display: none; - margin-right: auto; } - .components-panel__header.edit-post-sidebar-header .components-button.has-icon ~ .components-button { - margin-right: 0; } - @media (min-width: 782px) { - .components-panel__header.edit-post-sidebar-header .components-button.has-icon { - display: flex; } } + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } + .components-button.edit-post-sidebar__panel-tab.is-active:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color); } .edit-post-text-editor { position: relative; width: 100%; - padding-top: 44px; } - .edit-post-text-editor .editor-post-title__block textarea { - border: 1px solid #e2e4e7; - margin-bottom: 4px; - padding: 14px; } - .edit-post-text-editor .editor-post-title__block textarea:focus { - border: 1px solid #e2e4e7; } - .edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover, - .edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input { - box-shadow: none; - border-right-width: 1px; } - .edit-post-text-editor .editor-post-title__block textarea:hover, - .edit-post-text-editor .editor-post-title__block.is-selected textarea { - box-shadow: 0 0 0 1px #e2e4e7; } - .edit-post-text-editor .editor-post-permalink { - margin-top: -6px; - box-shadow: none; - border: none; - outline: 1px solid #b5bcc2; } - @media (min-width: 600px) { - .edit-post-text-editor .editor-post-title, - .edit-post-text-editor .editor-post-title__block { - padding: 0; } } - -.edit-post-text-editor__toolbar { - position: absolute; - top: 8px; - right: 0; - left: 0; - height: 36px; - line-height: 36px; - padding: 0 16px 0 8px; - display: flex; } - .edit-post-text-editor__toolbar h2 { - margin: 0 0 0 auto; - font-size: 13px; - color: #555d66; } - .edit-post-text-editor__toolbar .components-button svg { - order: 1; } + background-color: #fff; + flex-grow: 1; } + .edit-post-text-editor .wp-block.editor-post-title { + max-width: none; + line-height: 1.4; } + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input { + font-family: Menlo, Consolas, monaco, monospace; + font-size: 2.5em; + font-weight: normal; } + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { + border: 1px solid #ccc; + margin-bottom: -1px; + padding: 16px; } + @media (min-width: 600px) { + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { + padding: 24px; } } + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus { + border: 1px solid #1e1e1e; } + @media (min-width: 600px) { + .edit-post-text-editor .wp-block.editor-post-title { + padding: 0; } } .edit-post-text-editor__body { - max-width: calc(100% - 32px); - margin-right: 16px; - margin-left: 16px; - padding-top: 40px; } - @media (min-width: 600px) { + width: 100%; + padding: 0 12px 12px 12px; + max-width: 1080px; + margin-right: auto; + margin-left: auto; } + @media (min-width: 960px) { .edit-post-text-editor__body { - max-width: 580px; - margin-right: auto; - margin-left: auto; } } + padding: 16px 24px 96px 24px; + padding: 0 24px 24px 24px; } } + +.edit-post-text-editor__toolbar { + position: -webkit-sticky; + position: sticky; + z-index: 1; + top: 0; + right: 0; + left: 0; + display: flex; + background: rgba(255, 255, 255, 0.8); + padding: 4px 12px; } + @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 { + line-height: 36px; + margin: 0 0 0 auto; + font-size: 13px; + color: #1e1e1e; } + .edit-post-text-editor__toolbar .components-button svg { + order: 1; } .edit-post-visual-editor { position: relative; padding-top: 50px; + background-color: #fff; flex: 1 1 auto; } .edit-post-visual-editor .components-button { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + 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.is-tertiary { + padding: 6px; } @supports ((position: -webkit-sticky) or (position: sticky)) { .edit-post-visual-editor { flex-basis: 100%; } } @@ -998,30 +1099,10 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 0; } -.edit-post-visual-editor .block-editor-block-list__block { - margin-right: auto; - margin-left: auto; } - -@media (min-width: 600px) { - .editor-post-title { - padding-right: 58px; - padding-left: 58px; } } - -.edit-post-visual-editor .editor-post-title__block { +.edit-post-visual-editor__post-title-wrapper .editor-post-title { margin-right: auto; margin-left: auto; margin-bottom: 32px; } - .edit-post-visual-editor .editor-post-title__block > div { - margin-right: 0; - margin-left: 0; } - @media (min-width: 600px) { - .edit-post-visual-editor .editor-post-title__block > div { - margin-right: -16px; - margin-left: -16px; } } - -.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="left"]:first-child, -.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="right"]:first-child { - margin-top: 34px; } .edit-post-options-modal__section { margin: 0 0 2rem 0; } @@ -1051,49 +1132,32 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { max-width: 300px; } } -.edit-post-welcome-guide__page { - display: flex; - flex-direction: column; - justify-content: center; - position: relative; } - @media (min-width: 600px) { - .edit-post-welcome-guide__page { - min-height: 300px; - padding-right: 344px; } } - -.edit-post-welcome-guide__heading { - font-family: "Noto Serif", serif; - font-size: 21px; - line-height: 1.4; - margin: 8px 0; } - -.edit-post-welcome-guide__image { - background: #66c6e4; - border-radius: 4px; - height: 200px; - margin: 8px 0; } - @media (min-width: 600px) { - .edit-post-welcome-guide__image { - position: absolute; - right: 0; - top: 50%; - height: 300px; - width: 320px; - margin-top: -150px; } } - -.edit-post-welcome-guide__text { - font-size: 16px; - line-height: 1.4; - margin: 8px 0; } - -.edit-post-welcome-guide__inserter-icon { - margin: 0 4px; - position: relative; - top: 4px; } - -@media (min-width: 600px) { - .edit-post-welcome-guide { - width: 600px; } } +.edit-post-welcome-guide { + width: 312px; } + .edit-post-welcome-guide__image { + background: #00a0d2; + height: 240px; } + .edit-post-welcome-guide__image__prm-r { + display: none; } + @media (prefers-reduced-motion: reduce) { + .edit-post-welcome-guide__image__prm-r { + display: block; } + .edit-post-welcome-guide__image__prm-np { + display: none; } } + .edit-post-welcome-guide__heading { + font-family: "Noto Serif", serif; + font-size: 24px; + line-height: 1.4; + margin: 0 0 16px 0; + padding: 0 32px; } + .edit-post-welcome-guide__text { + font-size: 13px; + line-height: 1.4; + margin: 0 0 24px 0; + padding: 0 32px; } + .edit-post-welcome-guide__inserter-icon { + margin: 0 4px; + vertical-align: text-top; } /** * Animations @@ -1159,896 +1223,6 @@ body.block-editor-page { .components-modal__frame *::before, .components-modal__frame *::after { box-sizing: inherit; } - .edit-post-header .input-control, - .edit-post-header input[type="text"], - .edit-post-header input[type="search"], - .edit-post-header input[type="radio"], - .edit-post-header input[type="tel"], - .edit-post-header input[type="time"], - .edit-post-header input[type="url"], - .edit-post-header input[type="week"], - .edit-post-header input[type="password"], - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="color"], - .edit-post-header input[type="date"], - .edit-post-header input[type="datetime"], - .edit-post-header input[type="datetime-local"], - .edit-post-header input[type="email"], - .edit-post-header input[type="month"], - .edit-post-header input[type="number"], - .edit-post-header select, - .edit-post-header textarea, - .edit-post-visual-editor .input-control, - .edit-post-visual-editor input[type="text"], - .edit-post-visual-editor input[type="search"], - .edit-post-visual-editor input[type="radio"], - .edit-post-visual-editor input[type="tel"], - .edit-post-visual-editor input[type="time"], - .edit-post-visual-editor input[type="url"], - .edit-post-visual-editor input[type="week"], - .edit-post-visual-editor input[type="password"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="color"], - .edit-post-visual-editor input[type="date"], - .edit-post-visual-editor input[type="datetime"], - .edit-post-visual-editor input[type="datetime-local"], - .edit-post-visual-editor input[type="email"], - .edit-post-visual-editor input[type="month"], - .edit-post-visual-editor input[type="number"], - .edit-post-visual-editor select, - .edit-post-visual-editor textarea, - .edit-post-text-editor .input-control, - .edit-post-text-editor input[type="text"], - .edit-post-text-editor input[type="search"], - .edit-post-text-editor input[type="radio"], - .edit-post-text-editor input[type="tel"], - .edit-post-text-editor input[type="time"], - .edit-post-text-editor input[type="url"], - .edit-post-text-editor input[type="week"], - .edit-post-text-editor input[type="password"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="color"], - .edit-post-text-editor input[type="date"], - .edit-post-text-editor input[type="datetime"], - .edit-post-text-editor input[type="datetime-local"], - .edit-post-text-editor input[type="email"], - .edit-post-text-editor input[type="month"], - .edit-post-text-editor input[type="number"], - .edit-post-text-editor select, - .edit-post-text-editor textarea, - .edit-post-sidebar .input-control, - .edit-post-sidebar input[type="text"], - .edit-post-sidebar input[type="search"], - .edit-post-sidebar input[type="radio"], - .edit-post-sidebar input[type="tel"], - .edit-post-sidebar input[type="time"], - .edit-post-sidebar input[type="url"], - .edit-post-sidebar input[type="week"], - .edit-post-sidebar input[type="password"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="color"], - .edit-post-sidebar input[type="date"], - .edit-post-sidebar input[type="datetime"], - .edit-post-sidebar input[type="datetime-local"], - .edit-post-sidebar input[type="email"], - .edit-post-sidebar input[type="month"], - .edit-post-sidebar input[type="number"], - .edit-post-sidebar select, - .edit-post-sidebar textarea, - .editor-post-publish-panel .input-control, - .editor-post-publish-panel input[type="text"], - .editor-post-publish-panel input[type="search"], - .editor-post-publish-panel input[type="radio"], - .editor-post-publish-panel input[type="tel"], - .editor-post-publish-panel input[type="time"], - .editor-post-publish-panel input[type="url"], - .editor-post-publish-panel input[type="week"], - .editor-post-publish-panel input[type="password"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="color"], - .editor-post-publish-panel input[type="date"], - .editor-post-publish-panel input[type="datetime"], - .editor-post-publish-panel input[type="datetime-local"], - .editor-post-publish-panel input[type="email"], - .editor-post-publish-panel input[type="month"], - .editor-post-publish-panel input[type="number"], - .editor-post-publish-panel select, - .editor-post-publish-panel textarea, - .components-popover .input-control, - .components-popover input[type="text"], - .components-popover input[type="search"], - .components-popover input[type="radio"], - .components-popover input[type="tel"], - .components-popover input[type="time"], - .components-popover input[type="url"], - .components-popover input[type="week"], - .components-popover input[type="password"], - .components-popover input[type="checkbox"], - .components-popover input[type="color"], - .components-popover input[type="date"], - .components-popover input[type="datetime"], - .components-popover input[type="datetime-local"], - .components-popover input[type="email"], - .components-popover input[type="month"], - .components-popover input[type="number"], - .components-popover select, - .components-popover textarea, - .components-modal__frame .input-control, - .components-modal__frame input[type="text"], - .components-modal__frame input[type="search"], - .components-modal__frame input[type="radio"], - .components-modal__frame input[type="tel"], - .components-modal__frame input[type="time"], - .components-modal__frame input[type="url"], - .components-modal__frame input[type="week"], - .components-modal__frame input[type="password"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="color"], - .components-modal__frame input[type="date"], - .components-modal__frame input[type="datetime"], - .components-modal__frame input[type="datetime-local"], - .components-modal__frame input[type="email"], - .components-modal__frame input[type="month"], - .components-modal__frame input[type="number"], - .components-modal__frame select, - .components-modal__frame textarea { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - padding: 6px 8px; - box-shadow: 0 0 0 transparent; - transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #7e8993; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } - @media (prefers-reduced-motion: reduce) { - .edit-post-header .input-control, - .edit-post-header input[type="text"], - .edit-post-header input[type="search"], - .edit-post-header input[type="radio"], - .edit-post-header input[type="tel"], - .edit-post-header input[type="time"], - .edit-post-header input[type="url"], - .edit-post-header input[type="week"], - .edit-post-header input[type="password"], - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="color"], - .edit-post-header input[type="date"], - .edit-post-header input[type="datetime"], - .edit-post-header input[type="datetime-local"], - .edit-post-header input[type="email"], - .edit-post-header input[type="month"], - .edit-post-header input[type="number"], - .edit-post-header select, - .edit-post-header textarea, - .edit-post-visual-editor .input-control, - .edit-post-visual-editor input[type="text"], - .edit-post-visual-editor input[type="search"], - .edit-post-visual-editor input[type="radio"], - .edit-post-visual-editor input[type="tel"], - .edit-post-visual-editor input[type="time"], - .edit-post-visual-editor input[type="url"], - .edit-post-visual-editor input[type="week"], - .edit-post-visual-editor input[type="password"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="color"], - .edit-post-visual-editor input[type="date"], - .edit-post-visual-editor input[type="datetime"], - .edit-post-visual-editor input[type="datetime-local"], - .edit-post-visual-editor input[type="email"], - .edit-post-visual-editor input[type="month"], - .edit-post-visual-editor input[type="number"], - .edit-post-visual-editor select, - .edit-post-visual-editor textarea, - .edit-post-text-editor .input-control, - .edit-post-text-editor input[type="text"], - .edit-post-text-editor input[type="search"], - .edit-post-text-editor input[type="radio"], - .edit-post-text-editor input[type="tel"], - .edit-post-text-editor input[type="time"], - .edit-post-text-editor input[type="url"], - .edit-post-text-editor input[type="week"], - .edit-post-text-editor input[type="password"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="color"], - .edit-post-text-editor input[type="date"], - .edit-post-text-editor input[type="datetime"], - .edit-post-text-editor input[type="datetime-local"], - .edit-post-text-editor input[type="email"], - .edit-post-text-editor input[type="month"], - .edit-post-text-editor input[type="number"], - .edit-post-text-editor select, - .edit-post-text-editor textarea, - .edit-post-sidebar .input-control, - .edit-post-sidebar input[type="text"], - .edit-post-sidebar input[type="search"], - .edit-post-sidebar input[type="radio"], - .edit-post-sidebar input[type="tel"], - .edit-post-sidebar input[type="time"], - .edit-post-sidebar input[type="url"], - .edit-post-sidebar input[type="week"], - .edit-post-sidebar input[type="password"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="color"], - .edit-post-sidebar input[type="date"], - .edit-post-sidebar input[type="datetime"], - .edit-post-sidebar input[type="datetime-local"], - .edit-post-sidebar input[type="email"], - .edit-post-sidebar input[type="month"], - .edit-post-sidebar input[type="number"], - .edit-post-sidebar select, - .edit-post-sidebar textarea, - .editor-post-publish-panel .input-control, - .editor-post-publish-panel input[type="text"], - .editor-post-publish-panel input[type="search"], - .editor-post-publish-panel input[type="radio"], - .editor-post-publish-panel input[type="tel"], - .editor-post-publish-panel input[type="time"], - .editor-post-publish-panel input[type="url"], - .editor-post-publish-panel input[type="week"], - .editor-post-publish-panel input[type="password"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="color"], - .editor-post-publish-panel input[type="date"], - .editor-post-publish-panel input[type="datetime"], - .editor-post-publish-panel input[type="datetime-local"], - .editor-post-publish-panel input[type="email"], - .editor-post-publish-panel input[type="month"], - .editor-post-publish-panel input[type="number"], - .editor-post-publish-panel select, - .editor-post-publish-panel textarea, - .components-popover .input-control, - .components-popover input[type="text"], - .components-popover input[type="search"], - .components-popover input[type="radio"], - .components-popover input[type="tel"], - .components-popover input[type="time"], - .components-popover input[type="url"], - .components-popover input[type="week"], - .components-popover input[type="password"], - .components-popover input[type="checkbox"], - .components-popover input[type="color"], - .components-popover input[type="date"], - .components-popover input[type="datetime"], - .components-popover input[type="datetime-local"], - .components-popover input[type="email"], - .components-popover input[type="month"], - .components-popover input[type="number"], - .components-popover select, - .components-popover textarea, - .components-modal__frame .input-control, - .components-modal__frame input[type="text"], - .components-modal__frame input[type="search"], - .components-modal__frame input[type="radio"], - .components-modal__frame input[type="tel"], - .components-modal__frame input[type="time"], - .components-modal__frame input[type="url"], - .components-modal__frame input[type="week"], - .components-modal__frame input[type="password"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="color"], - .components-modal__frame input[type="date"], - .components-modal__frame input[type="datetime"], - .components-modal__frame input[type="datetime-local"], - .components-modal__frame input[type="email"], - .components-modal__frame input[type="month"], - .components-modal__frame input[type="number"], - .components-modal__frame select, - .components-modal__frame textarea { - transition-duration: 0s; } } - @media (min-width: 600px) { - .edit-post-header .input-control, - .edit-post-header input[type="text"], - .edit-post-header input[type="search"], - .edit-post-header input[type="radio"], - .edit-post-header input[type="tel"], - .edit-post-header input[type="time"], - .edit-post-header input[type="url"], - .edit-post-header input[type="week"], - .edit-post-header input[type="password"], - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="color"], - .edit-post-header input[type="date"], - .edit-post-header input[type="datetime"], - .edit-post-header input[type="datetime-local"], - .edit-post-header input[type="email"], - .edit-post-header input[type="month"], - .edit-post-header input[type="number"], - .edit-post-header select, - .edit-post-header textarea, - .edit-post-visual-editor .input-control, - .edit-post-visual-editor input[type="text"], - .edit-post-visual-editor input[type="search"], - .edit-post-visual-editor input[type="radio"], - .edit-post-visual-editor input[type="tel"], - .edit-post-visual-editor input[type="time"], - .edit-post-visual-editor input[type="url"], - .edit-post-visual-editor input[type="week"], - .edit-post-visual-editor input[type="password"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="color"], - .edit-post-visual-editor input[type="date"], - .edit-post-visual-editor input[type="datetime"], - .edit-post-visual-editor input[type="datetime-local"], - .edit-post-visual-editor input[type="email"], - .edit-post-visual-editor input[type="month"], - .edit-post-visual-editor input[type="number"], - .edit-post-visual-editor select, - .edit-post-visual-editor textarea, - .edit-post-text-editor .input-control, - .edit-post-text-editor input[type="text"], - .edit-post-text-editor input[type="search"], - .edit-post-text-editor input[type="radio"], - .edit-post-text-editor input[type="tel"], - .edit-post-text-editor input[type="time"], - .edit-post-text-editor input[type="url"], - .edit-post-text-editor input[type="week"], - .edit-post-text-editor input[type="password"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="color"], - .edit-post-text-editor input[type="date"], - .edit-post-text-editor input[type="datetime"], - .edit-post-text-editor input[type="datetime-local"], - .edit-post-text-editor input[type="email"], - .edit-post-text-editor input[type="month"], - .edit-post-text-editor input[type="number"], - .edit-post-text-editor select, - .edit-post-text-editor textarea, - .edit-post-sidebar .input-control, - .edit-post-sidebar input[type="text"], - .edit-post-sidebar input[type="search"], - .edit-post-sidebar input[type="radio"], - .edit-post-sidebar input[type="tel"], - .edit-post-sidebar input[type="time"], - .edit-post-sidebar input[type="url"], - .edit-post-sidebar input[type="week"], - .edit-post-sidebar input[type="password"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="color"], - .edit-post-sidebar input[type="date"], - .edit-post-sidebar input[type="datetime"], - .edit-post-sidebar input[type="datetime-local"], - .edit-post-sidebar input[type="email"], - .edit-post-sidebar input[type="month"], - .edit-post-sidebar input[type="number"], - .edit-post-sidebar select, - .edit-post-sidebar textarea, - .editor-post-publish-panel .input-control, - .editor-post-publish-panel input[type="text"], - .editor-post-publish-panel input[type="search"], - .editor-post-publish-panel input[type="radio"], - .editor-post-publish-panel input[type="tel"], - .editor-post-publish-panel input[type="time"], - .editor-post-publish-panel input[type="url"], - .editor-post-publish-panel input[type="week"], - .editor-post-publish-panel input[type="password"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="color"], - .editor-post-publish-panel input[type="date"], - .editor-post-publish-panel input[type="datetime"], - .editor-post-publish-panel input[type="datetime-local"], - .editor-post-publish-panel input[type="email"], - .editor-post-publish-panel input[type="month"], - .editor-post-publish-panel input[type="number"], - .editor-post-publish-panel select, - .editor-post-publish-panel textarea, - .components-popover .input-control, - .components-popover input[type="text"], - .components-popover input[type="search"], - .components-popover input[type="radio"], - .components-popover input[type="tel"], - .components-popover input[type="time"], - .components-popover input[type="url"], - .components-popover input[type="week"], - .components-popover input[type="password"], - .components-popover input[type="checkbox"], - .components-popover input[type="color"], - .components-popover input[type="date"], - .components-popover input[type="datetime"], - .components-popover input[type="datetime-local"], - .components-popover input[type="email"], - .components-popover input[type="month"], - .components-popover input[type="number"], - .components-popover select, - .components-popover textarea, - .components-modal__frame .input-control, - .components-modal__frame input[type="text"], - .components-modal__frame input[type="search"], - .components-modal__frame input[type="radio"], - .components-modal__frame input[type="tel"], - .components-modal__frame input[type="time"], - .components-modal__frame input[type="url"], - .components-modal__frame input[type="week"], - .components-modal__frame input[type="password"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="color"], - .components-modal__frame input[type="date"], - .components-modal__frame input[type="datetime"], - .components-modal__frame input[type="datetime-local"], - .components-modal__frame input[type="email"], - .components-modal__frame input[type="month"], - .components-modal__frame input[type="number"], - .components-modal__frame select, - .components-modal__frame textarea { - font-size: 13px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } } - .edit-post-header .input-control:focus, - .edit-post-header input[type="text"]:focus, - .edit-post-header input[type="search"]:focus, - .edit-post-header input[type="radio"]:focus, - .edit-post-header input[type="tel"]:focus, - .edit-post-header input[type="time"]:focus, - .edit-post-header input[type="url"]:focus, - .edit-post-header input[type="week"]:focus, - .edit-post-header input[type="password"]:focus, - .edit-post-header input[type="checkbox"]:focus, - .edit-post-header input[type="color"]:focus, - .edit-post-header input[type="date"]:focus, - .edit-post-header input[type="datetime"]:focus, - .edit-post-header input[type="datetime-local"]:focus, - .edit-post-header input[type="email"]:focus, - .edit-post-header input[type="month"]:focus, - .edit-post-header input[type="number"]:focus, - .edit-post-header select:focus, - .edit-post-header textarea:focus, - .edit-post-visual-editor .input-control:focus, - .edit-post-visual-editor input[type="text"]:focus, - .edit-post-visual-editor input[type="search"]:focus, - .edit-post-visual-editor input[type="radio"]:focus, - .edit-post-visual-editor input[type="tel"]:focus, - .edit-post-visual-editor input[type="time"]:focus, - .edit-post-visual-editor input[type="url"]:focus, - .edit-post-visual-editor input[type="week"]:focus, - .edit-post-visual-editor input[type="password"]:focus, - .edit-post-visual-editor input[type="checkbox"]:focus, - .edit-post-visual-editor input[type="color"]:focus, - .edit-post-visual-editor input[type="date"]:focus, - .edit-post-visual-editor input[type="datetime"]:focus, - .edit-post-visual-editor input[type="datetime-local"]:focus, - .edit-post-visual-editor input[type="email"]:focus, - .edit-post-visual-editor input[type="month"]:focus, - .edit-post-visual-editor input[type="number"]:focus, - .edit-post-visual-editor select:focus, - .edit-post-visual-editor textarea:focus, - .edit-post-text-editor .input-control:focus, - .edit-post-text-editor input[type="text"]:focus, - .edit-post-text-editor input[type="search"]:focus, - .edit-post-text-editor input[type="radio"]:focus, - .edit-post-text-editor input[type="tel"]:focus, - .edit-post-text-editor input[type="time"]:focus, - .edit-post-text-editor input[type="url"]:focus, - .edit-post-text-editor input[type="week"]:focus, - .edit-post-text-editor input[type="password"]:focus, - .edit-post-text-editor input[type="checkbox"]:focus, - .edit-post-text-editor input[type="color"]:focus, - .edit-post-text-editor input[type="date"]:focus, - .edit-post-text-editor input[type="datetime"]:focus, - .edit-post-text-editor input[type="datetime-local"]:focus, - .edit-post-text-editor input[type="email"]:focus, - .edit-post-text-editor input[type="month"]:focus, - .edit-post-text-editor input[type="number"]:focus, - .edit-post-text-editor select:focus, - .edit-post-text-editor textarea:focus, - .edit-post-sidebar .input-control:focus, - .edit-post-sidebar input[type="text"]:focus, - .edit-post-sidebar input[type="search"]:focus, - .edit-post-sidebar input[type="radio"]:focus, - .edit-post-sidebar input[type="tel"]:focus, - .edit-post-sidebar input[type="time"]:focus, - .edit-post-sidebar input[type="url"]:focus, - .edit-post-sidebar input[type="week"]:focus, - .edit-post-sidebar input[type="password"]:focus, - .edit-post-sidebar input[type="checkbox"]:focus, - .edit-post-sidebar input[type="color"]:focus, - .edit-post-sidebar input[type="date"]:focus, - .edit-post-sidebar input[type="datetime"]:focus, - .edit-post-sidebar input[type="datetime-local"]:focus, - .edit-post-sidebar input[type="email"]:focus, - .edit-post-sidebar input[type="month"]:focus, - .edit-post-sidebar input[type="number"]:focus, - .edit-post-sidebar select:focus, - .edit-post-sidebar textarea:focus, - .editor-post-publish-panel .input-control:focus, - .editor-post-publish-panel input[type="text"]:focus, - .editor-post-publish-panel input[type="search"]:focus, - .editor-post-publish-panel input[type="radio"]:focus, - .editor-post-publish-panel input[type="tel"]:focus, - .editor-post-publish-panel input[type="time"]:focus, - .editor-post-publish-panel input[type="url"]:focus, - .editor-post-publish-panel input[type="week"]:focus, - .editor-post-publish-panel input[type="password"]:focus, - .editor-post-publish-panel input[type="checkbox"]:focus, - .editor-post-publish-panel input[type="color"]:focus, - .editor-post-publish-panel input[type="date"]:focus, - .editor-post-publish-panel input[type="datetime"]:focus, - .editor-post-publish-panel input[type="datetime-local"]:focus, - .editor-post-publish-panel input[type="email"]:focus, - .editor-post-publish-panel input[type="month"]:focus, - .editor-post-publish-panel input[type="number"]:focus, - .editor-post-publish-panel select:focus, - .editor-post-publish-panel textarea:focus, - .components-popover .input-control:focus, - .components-popover input[type="text"]:focus, - .components-popover input[type="search"]:focus, - .components-popover input[type="radio"]:focus, - .components-popover input[type="tel"]:focus, - .components-popover input[type="time"]:focus, - .components-popover input[type="url"]:focus, - .components-popover input[type="week"]:focus, - .components-popover input[type="password"]:focus, - .components-popover input[type="checkbox"]:focus, - .components-popover input[type="color"]:focus, - .components-popover input[type="date"]:focus, - .components-popover input[type="datetime"]:focus, - .components-popover input[type="datetime-local"]:focus, - .components-popover input[type="email"]:focus, - .components-popover input[type="month"]:focus, - .components-popover input[type="number"]:focus, - .components-popover select:focus, - .components-popover textarea:focus, - .components-modal__frame .input-control:focus, - .components-modal__frame input[type="text"]:focus, - .components-modal__frame input[type="search"]:focus, - .components-modal__frame input[type="radio"]:focus, - .components-modal__frame input[type="tel"]:focus, - .components-modal__frame input[type="time"]:focus, - .components-modal__frame input[type="url"]:focus, - .components-modal__frame input[type="week"]:focus, - .components-modal__frame input[type="password"]:focus, - .components-modal__frame input[type="checkbox"]:focus, - .components-modal__frame input[type="color"]:focus, - .components-modal__frame input[type="date"]:focus, - .components-modal__frame input[type="datetime"]:focus, - .components-modal__frame input[type="datetime-local"]:focus, - .components-modal__frame input[type="email"]:focus, - .components-modal__frame input[type="month"]:focus, - .components-modal__frame input[type="number"]:focus, - .components-modal__frame select:focus, - .components-modal__frame textarea:focus { - color: #191e23; - border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; - outline: 2px solid transparent; } - .edit-post-header input[type="number"], - .edit-post-visual-editor input[type="number"], - .edit-post-text-editor input[type="number"], - .edit-post-sidebar input[type="number"], - .editor-post-publish-panel input[type="number"], - .components-popover input[type="number"], - .components-modal__frame input[type="number"] { - padding-right: 4px; - padding-left: 4px; } - .edit-post-header select, - .edit-post-visual-editor select, - .edit-post-text-editor select, - .edit-post-sidebar select, - .editor-post-publish-panel select, - .components-popover select, - .components-modal__frame select { - padding: 3px 8px 3px 24px; - font-size: 13px; - color: #555d66; } - .edit-post-header select:focus, - .edit-post-visual-editor select:focus, - .edit-post-text-editor select:focus, - .edit-post-sidebar select:focus, - .editor-post-publish-panel select:focus, - .components-popover select:focus, - .components-modal__frame select:focus { - border-color: #008dbe; - outline: 2px solid transparent; - outline-offset: 0; } - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="radio"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="radio"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="radio"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="radio"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="radio"], - .components-popover input[type="checkbox"], - .components-popover input[type="radio"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="radio"] { - border: 2px solid #6c7781; - margin-left: 12px; - transition: none; } - .edit-post-header input[type="checkbox"]:focus, - .edit-post-header input[type="radio"]:focus, - .edit-post-visual-editor input[type="checkbox"]:focus, - .edit-post-visual-editor input[type="radio"]:focus, - .edit-post-text-editor input[type="checkbox"]:focus, - .edit-post-text-editor input[type="radio"]:focus, - .edit-post-sidebar input[type="checkbox"]:focus, - .edit-post-sidebar input[type="radio"]:focus, - .editor-post-publish-panel input[type="checkbox"]:focus, - .editor-post-publish-panel input[type="radio"]:focus, - .components-popover input[type="checkbox"]:focus, - .components-popover input[type="radio"]:focus, - .components-modal__frame input[type="checkbox"]:focus, - .components-modal__frame input[type="radio"]:focus { - border-color: #6c7781; - box-shadow: 0 0 0 1px #6c7781; } - .edit-post-header input[type="checkbox"]:checked, - .edit-post-header input[type="radio"]:checked, - .edit-post-visual-editor input[type="checkbox"]:checked, - .edit-post-visual-editor input[type="radio"]:checked, - .edit-post-text-editor input[type="checkbox"]:checked, - .edit-post-text-editor input[type="radio"]:checked, - .edit-post-sidebar input[type="checkbox"]:checked, - .edit-post-sidebar input[type="radio"]:checked, - .editor-post-publish-panel input[type="checkbox"]:checked, - .editor-post-publish-panel input[type="radio"]:checked, - .components-popover input[type="checkbox"]:checked, - .components-popover input[type="radio"]:checked, - .components-modal__frame input[type="checkbox"]:checked, - .components-modal__frame input[type="radio"]:checked { - background: #11a0d2; - border-color: #11a0d2; } - body.admin-color-sunrise .edit-post-header input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-header input[type="radio"]:checked, body.admin-color-sunrise .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-sunrise .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-text-editor input[type="radio"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="radio"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-sunrise .components-popover input[type="checkbox"]:checked, body.admin-color-sunrise .components-popover input[type="radio"]:checked, body.admin-color-sunrise .components-modal__frame input[type="checkbox"]:checked, body.admin-color-sunrise .components-modal__frame input[type="radio"]:checked { - background: #c8b03c; - border-color: #c8b03c; } - body.admin-color-ocean .edit-post-header input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-header input[type="radio"]:checked, body.admin-color-ocean .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-ocean .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-text-editor input[type="radio"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ocean .components-popover input[type="checkbox"]:checked, body.admin-color-ocean .components-popover input[type="radio"]:checked, body.admin-color-ocean .components-modal__frame input[type="checkbox"]:checked, body.admin-color-ocean .components-modal__frame input[type="radio"]:checked { - background: #a3b9a2; - border-color: #a3b9a2; } - body.admin-color-midnight .edit-post-header input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-header input[type="radio"]:checked, body.admin-color-midnight .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-midnight .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-text-editor input[type="radio"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="radio"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-midnight .components-popover input[type="checkbox"]:checked, body.admin-color-midnight .components-popover input[type="radio"]:checked, body.admin-color-midnight .components-modal__frame input[type="checkbox"]:checked, body.admin-color-midnight .components-modal__frame input[type="radio"]:checked { - background: #77a6b9; - border-color: #77a6b9; } - body.admin-color-ectoplasm .edit-post-header input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-header input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-text-editor input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ectoplasm .components-popover input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-popover input[type="radio"]:checked, body.admin-color-ectoplasm .components-modal__frame input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-modal__frame input[type="radio"]:checked { - background: #a7b656; - border-color: #a7b656; } - body.admin-color-coffee .edit-post-header input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-header input[type="radio"]:checked, body.admin-color-coffee .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-coffee .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-text-editor input[type="radio"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="radio"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-coffee .components-popover input[type="checkbox"]:checked, body.admin-color-coffee .components-popover input[type="radio"]:checked, body.admin-color-coffee .components-modal__frame input[type="checkbox"]:checked, body.admin-color-coffee .components-modal__frame input[type="radio"]:checked { - background: #c2a68c; - border-color: #c2a68c; } - body.admin-color-blue .edit-post-header input[type="checkbox"]:checked, body.admin-color-blue .edit-post-header input[type="radio"]:checked, body.admin-color-blue .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-blue .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-blue .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-blue .edit-post-text-editor input[type="radio"]:checked, body.admin-color-blue .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-blue .edit-post-sidebar input[type="radio"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-blue .components-popover input[type="checkbox"]:checked, body.admin-color-blue .components-popover input[type="radio"]:checked, body.admin-color-blue .components-modal__frame input[type="checkbox"]:checked, body.admin-color-blue .components-modal__frame input[type="radio"]:checked { - background: #82b4cb; - border-color: #82b4cb; } - body.admin-color-light .edit-post-header input[type="checkbox"]:checked, body.admin-color-light .edit-post-header input[type="radio"]:checked, body.admin-color-light .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-light .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-light .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-light .edit-post-text-editor input[type="radio"]:checked, body.admin-color-light .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-light .edit-post-sidebar input[type="radio"]:checked, body.admin-color-light .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-light .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-light .components-popover input[type="checkbox"]:checked, body.admin-color-light .components-popover input[type="radio"]:checked, body.admin-color-light .components-modal__frame input[type="checkbox"]:checked, body.admin-color-light .components-modal__frame input[type="radio"]:checked { - background: #11a0d2; - border-color: #11a0d2; } - .edit-post-header input[type="checkbox"]:checked:focus, - .edit-post-header input[type="radio"]:checked:focus, - .edit-post-visual-editor input[type="checkbox"]:checked:focus, - .edit-post-visual-editor input[type="radio"]:checked:focus, - .edit-post-text-editor input[type="checkbox"]:checked:focus, - .edit-post-text-editor input[type="radio"]:checked:focus, - .edit-post-sidebar input[type="checkbox"]:checked:focus, - .edit-post-sidebar input[type="radio"]:checked:focus, - .editor-post-publish-panel input[type="checkbox"]:checked:focus, - .editor-post-publish-panel input[type="radio"]:checked:focus, - .components-popover input[type="checkbox"]:checked:focus, - .components-popover input[type="radio"]:checked:focus, - .components-modal__frame input[type="checkbox"]:checked:focus, - .components-modal__frame input[type="radio"]:checked:focus { - box-shadow: 0 0 0 2px #555d66; } - .edit-post-header input[type="checkbox"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-sidebar input[type="checkbox"], - .editor-post-publish-panel input[type="checkbox"], - .components-popover input[type="checkbox"], - .components-modal__frame input[type="checkbox"] { - border-radius: 2px; } - .edit-post-header input[type="checkbox"]:checked::before, .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"]:checked::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"]:checked::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"]:checked::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"]:checked::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"]:checked::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"]:checked::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - margin: -3px -5px; - color: #fff; } - @media (min-width: 782px) { - .edit-post-header input[type="checkbox"]:checked::before, .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"]:checked::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"]:checked::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"]:checked::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"]:checked::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"]:checked::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"]:checked::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - margin: -4px -5px 0 0; } } - .edit-post-header input[type="checkbox"][aria-checked="mixed"], - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], - .components-popover input[type="checkbox"][aria-checked="mixed"], - .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #11a0d2; - border-color: #11a0d2; } - body.admin-color-sunrise .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #c8b03c; - border-color: #c8b03c; } - body.admin-color-ocean .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #a3b9a2; - border-color: #a3b9a2; } - body.admin-color-midnight .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #77a6b9; - border-color: #77a6b9; } - body.admin-color-ectoplasm .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #a7b656; - border-color: #a7b656; } - body.admin-color-coffee .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #c2a68c; - border-color: #c2a68c; } - body.admin-color-blue .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #82b4cb; - border-color: #82b4cb; } - body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #11a0d2; - border-color: #11a0d2; } - .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - content: "\f460"; - float: right; - display: inline-block; - vertical-align: middle; - width: 16px; - /* stylelint-disable */ - font: normal 30px/1 dashicons; - /* stylelint-enable */ - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; } - @media (min-width: 782px) { - .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - float: none; - font-size: 21px; } } - .edit-post-header input[type="checkbox"][aria-checked="mixed"]:focus, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]:focus, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]:focus, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]:focus, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]:focus, - .components-popover input[type="checkbox"][aria-checked="mixed"]:focus, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]:focus { - box-shadow: 0 0 0 2px #555d66; } - .edit-post-header input[type="radio"], - .edit-post-visual-editor input[type="radio"], - .edit-post-text-editor input[type="radio"], - .edit-post-sidebar input[type="radio"], - .editor-post-publish-panel input[type="radio"], - .components-popover input[type="radio"], - .components-modal__frame input[type="radio"] { - border-radius: 50%; } - .edit-post-header input[type="radio"]:checked::before, - .edit-post-visual-editor input[type="radio"]:checked::before, - .edit-post-text-editor input[type="radio"]:checked::before, - .edit-post-sidebar input[type="radio"]:checked::before, - .editor-post-publish-panel input[type="radio"]:checked::before, - .components-popover input[type="radio"]:checked::before, - .components-modal__frame input[type="radio"]:checked::before { - width: 6px; - height: 6px; - margin: 6px 6px 0 0; - background-color: #fff; } - @media (min-width: 782px) { - .edit-post-header input[type="radio"]:checked::before, - .edit-post-visual-editor input[type="radio"]:checked::before, - .edit-post-text-editor input[type="radio"]:checked::before, - .edit-post-sidebar input[type="radio"]:checked::before, - .editor-post-publish-panel input[type="radio"]:checked::before, - .components-popover input[type="radio"]:checked::before, - .components-modal__frame input[type="radio"]:checked::before { - margin: 3px 3px 0 0; } } - .edit-post-header input::-webkit-input-placeholder, - .edit-post-header textarea::-webkit-input-placeholder, - .edit-post-visual-editor input::-webkit-input-placeholder, - .edit-post-visual-editor textarea::-webkit-input-placeholder, - .edit-post-text-editor input::-webkit-input-placeholder, - .edit-post-text-editor textarea::-webkit-input-placeholder, - .edit-post-sidebar input::-webkit-input-placeholder, - .edit-post-sidebar textarea::-webkit-input-placeholder, - .editor-post-publish-panel input::-webkit-input-placeholder, - .editor-post-publish-panel textarea::-webkit-input-placeholder, - .components-popover input::-webkit-input-placeholder, - .components-popover textarea::-webkit-input-placeholder, - .components-modal__frame input::-webkit-input-placeholder, - .components-modal__frame textarea::-webkit-input-placeholder { - color: rgba(14, 28, 46, 0.62); } - .edit-post-header input::-moz-placeholder, - .edit-post-header textarea::-moz-placeholder, - .edit-post-visual-editor input::-moz-placeholder, - .edit-post-visual-editor textarea::-moz-placeholder, - .edit-post-text-editor input::-moz-placeholder, - .edit-post-text-editor textarea::-moz-placeholder, - .edit-post-sidebar input::-moz-placeholder, - .edit-post-sidebar textarea::-moz-placeholder, - .editor-post-publish-panel input::-moz-placeholder, - .editor-post-publish-panel textarea::-moz-placeholder, - .components-popover input::-moz-placeholder, - .components-popover textarea::-moz-placeholder, - .components-modal__frame input::-moz-placeholder, - .components-modal__frame textarea::-moz-placeholder { - opacity: 1; - color: rgba(14, 28, 46, 0.62); } - .edit-post-header input:-ms-input-placeholder, - .edit-post-header textarea:-ms-input-placeholder, - .edit-post-visual-editor input:-ms-input-placeholder, - .edit-post-visual-editor textarea:-ms-input-placeholder, - .edit-post-text-editor input:-ms-input-placeholder, - .edit-post-text-editor textarea:-ms-input-placeholder, - .edit-post-sidebar input:-ms-input-placeholder, - .edit-post-sidebar textarea:-ms-input-placeholder, - .editor-post-publish-panel input:-ms-input-placeholder, - .editor-post-publish-panel textarea:-ms-input-placeholder, - .components-popover input:-ms-input-placeholder, - .components-popover textarea:-ms-input-placeholder, - .components-modal__frame input:-ms-input-placeholder, - .components-modal__frame textarea:-ms-input-placeholder { - color: rgba(14, 28, 46, 0.62); } - .is-dark-theme .edit-post-header input::-webkit-input-placeholder, .is-dark-theme - .edit-post-header textarea::-webkit-input-placeholder, .is-dark-theme - .edit-post-visual-editor input::-webkit-input-placeholder, .is-dark-theme - .edit-post-visual-editor textarea::-webkit-input-placeholder, .is-dark-theme - .edit-post-text-editor input::-webkit-input-placeholder, .is-dark-theme - .edit-post-text-editor textarea::-webkit-input-placeholder, .is-dark-theme - .edit-post-sidebar input::-webkit-input-placeholder, .is-dark-theme - .edit-post-sidebar textarea::-webkit-input-placeholder, .is-dark-theme - .editor-post-publish-panel input::-webkit-input-placeholder, .is-dark-theme - .editor-post-publish-panel textarea::-webkit-input-placeholder, .is-dark-theme - .components-popover input::-webkit-input-placeholder, .is-dark-theme - .components-popover textarea::-webkit-input-placeholder, .is-dark-theme - .components-modal__frame input::-webkit-input-placeholder, .is-dark-theme - .components-modal__frame textarea::-webkit-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .edit-post-header input::-moz-placeholder, .is-dark-theme - .edit-post-header textarea::-moz-placeholder, .is-dark-theme - .edit-post-visual-editor input::-moz-placeholder, .is-dark-theme - .edit-post-visual-editor textarea::-moz-placeholder, .is-dark-theme - .edit-post-text-editor input::-moz-placeholder, .is-dark-theme - .edit-post-text-editor textarea::-moz-placeholder, .is-dark-theme - .edit-post-sidebar input::-moz-placeholder, .is-dark-theme - .edit-post-sidebar textarea::-moz-placeholder, .is-dark-theme - .editor-post-publish-panel input::-moz-placeholder, .is-dark-theme - .editor-post-publish-panel textarea::-moz-placeholder, .is-dark-theme - .components-popover input::-moz-placeholder, .is-dark-theme - .components-popover textarea::-moz-placeholder, .is-dark-theme - .components-modal__frame input::-moz-placeholder, .is-dark-theme - .components-modal__frame textarea::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .edit-post-header input:-ms-input-placeholder, .is-dark-theme - .edit-post-header textarea:-ms-input-placeholder, .is-dark-theme - .edit-post-visual-editor input:-ms-input-placeholder, .is-dark-theme - .edit-post-visual-editor textarea:-ms-input-placeholder, .is-dark-theme - .edit-post-text-editor input:-ms-input-placeholder, .is-dark-theme - .edit-post-text-editor textarea:-ms-input-placeholder, .is-dark-theme - .edit-post-sidebar input:-ms-input-placeholder, .is-dark-theme - .edit-post-sidebar textarea:-ms-input-placeholder, .is-dark-theme - .editor-post-publish-panel input:-ms-input-placeholder, .is-dark-theme - .editor-post-publish-panel textarea:-ms-input-placeholder, .is-dark-theme - .components-popover input:-ms-input-placeholder, .is-dark-theme - .components-popover textarea:-ms-input-placeholder, .is-dark-theme - .components-modal__frame input:-ms-input-placeholder, .is-dark-theme - .components-modal__frame textarea:-ms-input-placeholder { - color: rgba(255, 255, 255, 0.65); } @media (min-width: 600px) { .block-editor__container { @@ -2081,3 +1255,38 @@ body.block-editor-page { max-width: 1100px; } .wp-block[data-align="full"] { max-width: none; } + +body.admin-color-light { + --wp-admin-theme-color: #0085ba; + --wp-admin-theme-color-darker-10: #0073a1; + --wp-admin-theme-color-darker-20: #006187; } + +body.admin-color-blue { + --wp-admin-theme-color: #096484; + --wp-admin-theme-color-darker-10: #07526c; + --wp-admin-theme-color-darker-20: #064054; } + +body.admin-color-coffee { + --wp-admin-theme-color: #46403c; + --wp-admin-theme-color-darker-10: #383330; + --wp-admin-theme-color-darker-20: #2b2724; } + +body.admin-color-ectoplasm { + --wp-admin-theme-color: #523f6d; + --wp-admin-theme-color-darker-10: #46365d; + --wp-admin-theme-color-darker-20: #3a2c4d; } + +body.admin-color-midnight { + --wp-admin-theme-color: #e14d43; + --wp-admin-theme-color-darker-10: #dd382d; + --wp-admin-theme-color-darker-20: #d02c21; } + +body.admin-color-ocean { + --wp-admin-theme-color: #627c83; + --wp-admin-theme-color-darker-10: #576e74; + --wp-admin-theme-color-darker-20: #4c6066; } + +body.admin-color-sunrise { + --wp-admin-theme-color: #dd823b; + --wp-admin-theme-color-darker-10: #d97426; + --wp-admin-theme-color-darker-20: #c36922; } 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 c9b596e5fa..dfcaa1f289 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 @@ -@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-46px;height:calc(100% + 46px)}}@media (min-width:782px) and (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}}@media (min-width:782px){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}body.js.is-fullscreen-mode .edit-post-header{transform:translateY(-100%);animation:edit-post-fullscreen-mode__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){body.js.is-fullscreen-mode .edit-post-header{animation-duration:1ms}}@keyframes edit-post-fullscreen-mode__slide-in-animation{to{transform:translateY(0)}}.edit-post-header{height:56px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-right:16px}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:8px}.edit-post-header .components-button.is-pressed{color:#fff;background:#555d66}.edit-post-header .components-button.is-pressed:focus,.edit-post-header .components-button.is-pressed:hover{box-shadow:0 0 0 1px #555d66,inset 0 0 0 1px #fff!important;color:#fff!important;background:#555d66!important}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle,.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{margin:2px;font-size:13px}.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 12px}}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding-right:5px;padding-left:5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding-right:12px;padding-left:12px}}@media (min-width:782px){.edit-post-header .components-button.editor-post-preview{margin:0 12px 0 3px}.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{margin:0 3px 0 12px}}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:56px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d!important;color:#fff!important;box-shadow:none!important}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}}.edit-post-fullscreen-mode-close.has-icon svg{margin-right:auto;margin-left:auto}.edit-post-header-toolbar{display:inline-flex;align-items:center}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:flex}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:57px;right:0;left:0;background:#fff;min-height:37px;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none;min-height:auto}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{margin:-9px 0}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{padding:10px 4px 9px}}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:4px}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu .components-button svg{transform:rotate(-90deg)}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-pinned-plugins{display:none}@media (min-width:600px){.edit-post-pinned-plugins{display:flex}}.edit-post-pinned-plugins .components-button{margin-right:4px}.edit-post-pinned-plugins .components-button.is-pressed{margin-right:5px}.edit-post-pinned-plugins .components-button svg{max-width:24px;max-height:24px}.edit-post-pinned-plugins .components-button:not(.is-pressed) svg,.edit-post-pinned-plugins .components-button:not(.is-pressed) svg *{stroke:#555d66;fill:#555d66;stroke-width:0}.edit-post-pinned-plugins .components-button.is-pressed:hover svg,.edit-post-pinned-plugins .components-button.is-pressed:hover svg *,.edit-post-pinned-plugins .components-button.is-pressed svg,.edit-post-pinned-plugins .components-button.is-pressed svg *{stroke:#fff!important;fill:#fff!important;stroke-width:0}.edit-post-pinned-plugins .components-button:hover svg,.edit-post-pinned-plugins .components-button:hover svg *{stroke:#191e23!important;fill:#191e23!important;stroke-width:0}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #e2e4e7;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #e2e4e7}.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;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;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{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;left:0;bottom:20px;padding-right:16px;padding-left:16px;right:0}@media (min-width:782px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:782px){.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:782px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-right:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #e2e4e7;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.block-editor-editor-skeleton__sidebar>div{height:100%}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toogle-publish-panel,.edit-post-layout__toogle-sidebar-panel{background-color:#fff;padding:10px 0 10px 10px}.edit-post-layout__toogle-publish-panel-button,.edit-post-layout__toogle-sidebar-panel-button{width:auto;height:auto;display:block;font-size:14px;font-weight:600;margin:0 auto 0 0;padding:15px 23px 14px;line-height:normal;text-decoration:none;outline:none;background:#f1f1f1;color:#11a0d2}body.admin-color-sunrise .edit-post-layout__toogle-publish-panel-button,body.admin-color-sunrise .edit-post-layout__toogle-sidebar-panel-button{color:#c8b03c}body.admin-color-ocean .edit-post-layout__toogle-publish-panel-button,body.admin-color-ocean .edit-post-layout__toogle-sidebar-panel-button{color:#a89d8a}body.admin-color-midnight .edit-post-layout__toogle-publish-panel-button,body.admin-color-midnight .edit-post-layout__toogle-sidebar-panel-button{color:#77a6b9}body.admin-color-ectoplasm .edit-post-layout__toogle-publish-panel-button,body.admin-color-ectoplasm .edit-post-layout__toogle-sidebar-panel-button{color:#c77430}body.admin-color-coffee .edit-post-layout__toogle-publish-panel-button,body.admin-color-coffee .edit-post-layout__toogle-sidebar-panel-button{color:#9fa47b}body.admin-color-blue .edit-post-layout__toogle-publish-panel-button,body.admin-color-blue .edit-post-layout__toogle-sidebar-panel-button{color:#d9ab59}body.admin-color-light .edit-post-layout__toogle-publish-panel-button,body.admin-color-light .edit-post-layout__toogle-sidebar-panel-button{color:#c75726}.edit-post-layout__toogle-publish-panel-button:focus,.edit-post-layout__toogle-sidebar-panel-button:focus{position:fixed;top:auto;left:10px;bottom:10px;right:auto}.edit-post-layout__footer{display:none;z-index:30}@media (min-width:782px){.edit-post-layout__footer{display:flex;background:#fff;height:24px;padding:0 8px;align-items:center;font-size:13px}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 112px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:12px;border-radius:4px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #e2e4e7;margin-right:-24px;margin-left:-24px;padding:.6rem 24px;background-color:#f3f4f5}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-left:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px;border-top:1px solid #e2e4e7}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;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 #6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#6c7781}.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-sidebar{background:#fff;color:#555d66;overflow:visible}@media (min-width:600px){.edit-post-sidebar{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.edit-post-sidebar{width:280px}}.edit-post-sidebar>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 96px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.edit-post-sidebar>.components-panel{overflow:visible;height:auto;max-height:none}}.edit-post-sidebar>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:50px}@media (min-width:600px){.edit-post-sidebar>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.edit-post-sidebar p{margin-top:0}.edit-post-sidebar h2,.edit-post-sidebar h3{font-size:13px;color:#555d66;margin-bottom:1.5em}.edit-post-sidebar hr{border-top:none;border-bottom:1px solid #e2e4e7;margin:1.5em 0}.edit-post-sidebar div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.edit-post-sidebar div.components-toolbar:last-child{margin-bottom:0}.edit-post-sidebar p+div.components-toolbar{margin-top:-1em}.edit-post-sidebar .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}.components-panel__header.edit-post-sidebar__header{background:#fff;padding-left:8px}.components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar__header{display:none}}.components-panel__header.edit-post-sidebar__panel-tabs{margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin-right:auto}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;height:50px;padding:3px 15px;margin-right:0;font-weight:400;outline-offset:-1px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.edit-post-sidebar__panel-tab{transition-duration:0s}}.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:3px solid transparent}.edit-post-sidebar__panel-tab:focus:not(:disabled){color:#191e23;outline-offset:-1px;outline:1px dotted #555d66;box-shadow:none}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0}.editor-post-last-revision__title{padding:13px 16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{margin:0}.edit-post-post-link__link{text-align:right;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative}.components-button.edit-post-post-schedule__toggle{text-align:left}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}.edit-post-post-visibility__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:4px;border-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:400;color:#191e23;outline-offset:-1px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab{transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:3px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{background-color:transparent;color:#191e23;outline-offset:-1px;outline:1px dotted #555d66}.components-panel__header.edit-post-sidebar-header__small{background:#fff;padding-left:4px}.components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header__small{display:none}}.components-panel__header.edit-post-sidebar-header{padding-left:4px;background:#f3f4f5}.components-panel__header.edit-post-sidebar-header .components-button.has-icon{display:none;margin-right:auto}.components-panel__header.edit-post-sidebar-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header .components-button.has-icon{display:flex}}.edit-post-text-editor{position:relative;width:100%;padding-top:44px}.edit-post-text-editor .editor-post-title__block textarea{border:1px solid #e2e4e7;margin-bottom:4px;padding:14px}.edit-post-text-editor .editor-post-title__block textarea:focus{border:1px solid #e2e4e7}.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input,.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover{box-shadow:none;border-right-width:1px}.edit-post-text-editor .editor-post-title__block.is-selected textarea,.edit-post-text-editor .editor-post-title__block textarea:hover{box-shadow:0 0 0 1px #e2e4e7}.edit-post-text-editor .editor-post-permalink{margin-top:-6px;box-shadow:none;border:none;outline:1px solid #b5bcc2}@media (min-width:600px){.edit-post-text-editor .editor-post-title,.edit-post-text-editor .editor-post-title__block{padding:0}}.edit-post-text-editor__toolbar{position:absolute;top:8px;right:0;left:0;height:36px;line-height:36px;padding:0 16px 0 8px;display:flex}.edit-post-text-editor__toolbar h2{margin:0 0 0 auto;font-size:13px;color:#555d66}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-text-editor__body{max-width:calc(100% - 32px);margin-right:16px;margin-left:16px;padding-top:40px}@media (min-width:600px){.edit-post-text-editor__body{max-width:580px;margin-right:auto;margin-left:auto}}.edit-post-visual-editor{position:relative;padding-top:50px;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor .block-editor-block-list__block{margin-right:auto;margin-left:auto}@media (min-width:600px){.editor-post-title{padding-right:58px;padding-left:58px}}.edit-post-visual-editor .editor-post-title__block{margin-right:auto;margin-left:auto;margin-bottom:32px}.edit-post-visual-editor .editor-post-title__block>div{margin-right:0;margin-left:0}@media (min-width:600px){.edit-post-visual-editor .editor-post-title__block>div{margin-right:-16px;margin-left:-16px}}.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=left]:first-child,.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=right]:first-child{margin-top:34px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 48px .6rem 0}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-right:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.edit-post-welcome-guide__page{min-height:300px;padding-right:344px}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:21px;line-height:1.4;margin:8px 0}.edit-post-welcome-guide__image{background:#66c6e4;border-radius:4px;height:200px;margin:8px 0}@media (min-width:600px){.edit-post-welcome-guide__image{position:absolute;right:0;top:50%;height:300px;width:320px;margin-top:-150px}}.edit-post-welcome-guide__text{font-size:16px;line-height:1.4;margin:8px 0}.edit-post-welcome-guide__inserter-icon{margin:0 4px;position:relative;top:4px}@media (min-width:600px){.edit-post-welcome-guide{width:600px}}@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){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-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-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,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}.components-modal__frame .input-control,.components-modal__frame input[type=checkbox],.components-modal__frame input[type=color],.components-modal__frame input[type=date],.components-modal__frame input[type=datetime-local],.components-modal__frame input[type=datetime],.components-modal__frame input[type=email],.components-modal__frame input[type=month],.components-modal__frame input[type=number],.components-modal__frame input[type=password],.components-modal__frame input[type=radio],.components-modal__frame input[type=search],.components-modal__frame input[type=tel],.components-modal__frame input[type=text],.components-modal__frame input[type=time],.components-modal__frame input[type=url],.components-modal__frame input[type=week],.components-modal__frame select,.components-modal__frame textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-header .input-control,.edit-post-header input[type=checkbox],.edit-post-header input[type=color],.edit-post-header input[type=date],.edit-post-header input[type=datetime-local],.edit-post-header input[type=datetime],.edit-post-header input[type=email],.edit-post-header input[type=month],.edit-post-header input[type=number],.edit-post-header input[type=password],.edit-post-header input[type=radio],.edit-post-header input[type=search],.edit-post-header input[type=tel],.edit-post-header input[type=text],.edit-post-header input[type=time],.edit-post-header input[type=url],.edit-post-header input[type=week],.edit-post-header select,.edit-post-header textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.edit-post-text-editor .input-control,.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=color],.edit-post-text-editor input[type=date],.edit-post-text-editor input[type=datetime-local],.edit-post-text-editor input[type=datetime],.edit-post-text-editor input[type=email],.edit-post-text-editor input[type=month],.edit-post-text-editor input[type=number],.edit-post-text-editor input[type=password],.edit-post-text-editor input[type=radio],.edit-post-text-editor input[type=search],.edit-post-text-editor input[type=tel],.edit-post-text-editor input[type=text],.edit-post-text-editor input[type=time],.edit-post-text-editor input[type=url],.edit-post-text-editor input[type=week],.edit-post-text-editor select,.edit-post-text-editor textarea,.edit-post-visual-editor .input-control,.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=color],.edit-post-visual-editor input[type=date],.edit-post-visual-editor input[type=datetime-local],.edit-post-visual-editor input[type=datetime],.edit-post-visual-editor input[type=email],.edit-post-visual-editor input[type=month],.edit-post-visual-editor input[type=number],.edit-post-visual-editor input[type=password],.edit-post-visual-editor input[type=radio],.edit-post-visual-editor input[type=search],.edit-post-visual-editor input[type=tel],.edit-post-visual-editor input[type=text],.edit-post-visual-editor input[type=time],.edit-post-visual-editor input[type=url],.edit-post-visual-editor input[type=week],.edit-post-visual-editor select,.edit-post-visual-editor textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #7e8993;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.components-modal__frame .input-control,.components-modal__frame input[type=checkbox],.components-modal__frame input[type=color],.components-modal__frame input[type=date],.components-modal__frame input[type=datetime-local],.components-modal__frame input[type=datetime],.components-modal__frame input[type=email],.components-modal__frame input[type=month],.components-modal__frame input[type=number],.components-modal__frame input[type=password],.components-modal__frame input[type=radio],.components-modal__frame input[type=search],.components-modal__frame input[type=tel],.components-modal__frame input[type=text],.components-modal__frame input[type=time],.components-modal__frame input[type=url],.components-modal__frame input[type=week],.components-modal__frame select,.components-modal__frame textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-header .input-control,.edit-post-header input[type=checkbox],.edit-post-header input[type=color],.edit-post-header input[type=date],.edit-post-header input[type=datetime-local],.edit-post-header input[type=datetime],.edit-post-header input[type=email],.edit-post-header input[type=month],.edit-post-header input[type=number],.edit-post-header input[type=password],.edit-post-header input[type=radio],.edit-post-header input[type=search],.edit-post-header input[type=tel],.edit-post-header input[type=text],.edit-post-header input[type=time],.edit-post-header input[type=url],.edit-post-header input[type=week],.edit-post-header select,.edit-post-header textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.edit-post-text-editor .input-control,.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=color],.edit-post-text-editor input[type=date],.edit-post-text-editor input[type=datetime-local],.edit-post-text-editor input[type=datetime],.edit-post-text-editor input[type=email],.edit-post-text-editor input[type=month],.edit-post-text-editor input[type=number],.edit-post-text-editor input[type=password],.edit-post-text-editor input[type=radio],.edit-post-text-editor input[type=search],.edit-post-text-editor input[type=tel],.edit-post-text-editor input[type=text],.edit-post-text-editor input[type=time],.edit-post-text-editor input[type=url],.edit-post-text-editor input[type=week],.edit-post-text-editor select,.edit-post-text-editor textarea,.edit-post-visual-editor .input-control,.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=color],.edit-post-visual-editor input[type=date],.edit-post-visual-editor input[type=datetime-local],.edit-post-visual-editor input[type=datetime],.edit-post-visual-editor input[type=email],.edit-post-visual-editor input[type=month],.edit-post-visual-editor input[type=number],.edit-post-visual-editor input[type=password],.edit-post-visual-editor input[type=radio],.edit-post-visual-editor input[type=search],.edit-post-visual-editor input[type=tel],.edit-post-visual-editor input[type=text],.edit-post-visual-editor input[type=time],.edit-post-visual-editor input[type=url],.edit-post-visual-editor input[type=week],.edit-post-visual-editor select,.edit-post-visual-editor textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{transition-duration:0s}}@media (min-width:600px){.components-modal__frame .input-control,.components-modal__frame input[type=checkbox],.components-modal__frame input[type=color],.components-modal__frame input[type=date],.components-modal__frame input[type=datetime-local],.components-modal__frame input[type=datetime],.components-modal__frame input[type=email],.components-modal__frame input[type=month],.components-modal__frame input[type=number],.components-modal__frame input[type=password],.components-modal__frame input[type=radio],.components-modal__frame input[type=search],.components-modal__frame input[type=tel],.components-modal__frame input[type=text],.components-modal__frame input[type=time],.components-modal__frame input[type=url],.components-modal__frame input[type=week],.components-modal__frame select,.components-modal__frame textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-header .input-control,.edit-post-header input[type=checkbox],.edit-post-header input[type=color],.edit-post-header input[type=date],.edit-post-header input[type=datetime-local],.edit-post-header input[type=datetime],.edit-post-header input[type=email],.edit-post-header input[type=month],.edit-post-header input[type=number],.edit-post-header input[type=password],.edit-post-header input[type=radio],.edit-post-header input[type=search],.edit-post-header input[type=tel],.edit-post-header input[type=text],.edit-post-header input[type=time],.edit-post-header input[type=url],.edit-post-header input[type=week],.edit-post-header select,.edit-post-header textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.edit-post-text-editor .input-control,.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=color],.edit-post-text-editor input[type=date],.edit-post-text-editor input[type=datetime-local],.edit-post-text-editor input[type=datetime],.edit-post-text-editor input[type=email],.edit-post-text-editor input[type=month],.edit-post-text-editor input[type=number],.edit-post-text-editor input[type=password],.edit-post-text-editor input[type=radio],.edit-post-text-editor input[type=search],.edit-post-text-editor input[type=tel],.edit-post-text-editor input[type=text],.edit-post-text-editor input[type=time],.edit-post-text-editor input[type=url],.edit-post-text-editor input[type=week],.edit-post-text-editor select,.edit-post-text-editor textarea,.edit-post-visual-editor .input-control,.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=color],.edit-post-visual-editor input[type=date],.edit-post-visual-editor input[type=datetime-local],.edit-post-visual-editor input[type=datetime],.edit-post-visual-editor input[type=email],.edit-post-visual-editor input[type=month],.edit-post-visual-editor input[type=number],.edit-post-visual-editor input[type=password],.edit-post-visual-editor input[type=radio],.edit-post-visual-editor input[type=search],.edit-post-visual-editor input[type=tel],.edit-post-visual-editor input[type=text],.edit-post-visual-editor input[type=time],.edit-post-visual-editor input[type=url],.edit-post-visual-editor input[type=week],.edit-post-visual-editor select,.edit-post-visual-editor textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-size:13px;line-height:normal}}.components-modal__frame .input-control:focus,.components-modal__frame input[type=checkbox]:focus,.components-modal__frame input[type=color]:focus,.components-modal__frame input[type=date]:focus,.components-modal__frame input[type=datetime-local]:focus,.components-modal__frame input[type=datetime]:focus,.components-modal__frame input[type=email]:focus,.components-modal__frame input[type=month]:focus,.components-modal__frame input[type=number]:focus,.components-modal__frame input[type=password]:focus,.components-modal__frame input[type=radio]:focus,.components-modal__frame input[type=search]:focus,.components-modal__frame input[type=tel]:focus,.components-modal__frame input[type=text]:focus,.components-modal__frame input[type=time]:focus,.components-modal__frame input[type=url]:focus,.components-modal__frame input[type=week]:focus,.components-modal__frame select:focus,.components-modal__frame textarea:focus,.components-popover .input-control:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=color]:focus,.components-popover input[type=date]:focus,.components-popover input[type=datetime-local]:focus,.components-popover input[type=datetime]:focus,.components-popover input[type=email]:focus,.components-popover input[type=month]:focus,.components-popover input[type=number]:focus,.components-popover input[type=password]:focus,.components-popover input[type=radio]:focus,.components-popover input[type=search]:focus,.components-popover input[type=tel]:focus,.components-popover input[type=text]:focus,.components-popover input[type=time]:focus,.components-popover input[type=url]:focus,.components-popover input[type=week]:focus,.components-popover select:focus,.components-popover textarea:focus,.edit-post-header .input-control:focus,.edit-post-header input[type=checkbox]:focus,.edit-post-header input[type=color]:focus,.edit-post-header input[type=date]:focus,.edit-post-header input[type=datetime-local]:focus,.edit-post-header input[type=datetime]:focus,.edit-post-header input[type=email]:focus,.edit-post-header input[type=month]:focus,.edit-post-header input[type=number]:focus,.edit-post-header input[type=password]:focus,.edit-post-header input[type=radio]:focus,.edit-post-header input[type=search]:focus,.edit-post-header input[type=tel]:focus,.edit-post-header input[type=text]:focus,.edit-post-header input[type=time]:focus,.edit-post-header input[type=url]:focus,.edit-post-header input[type=week]:focus,.edit-post-header select:focus,.edit-post-header textarea:focus,.edit-post-sidebar .input-control:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=color]:focus,.edit-post-sidebar input[type=date]:focus,.edit-post-sidebar input[type=datetime-local]:focus,.edit-post-sidebar input[type=datetime]:focus,.edit-post-sidebar input[type=email]:focus,.edit-post-sidebar input[type=month]:focus,.edit-post-sidebar input[type=number]:focus,.edit-post-sidebar input[type=password]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-sidebar input[type=search]:focus,.edit-post-sidebar input[type=tel]:focus,.edit-post-sidebar input[type=text]:focus,.edit-post-sidebar input[type=time]:focus,.edit-post-sidebar input[type=url]:focus,.edit-post-sidebar input[type=week]:focus,.edit-post-sidebar select:focus,.edit-post-sidebar textarea:focus,.edit-post-text-editor .input-control:focus,.edit-post-text-editor input[type=checkbox]:focus,.edit-post-text-editor input[type=color]:focus,.edit-post-text-editor input[type=date]:focus,.edit-post-text-editor input[type=datetime-local]:focus,.edit-post-text-editor input[type=datetime]:focus,.edit-post-text-editor input[type=email]:focus,.edit-post-text-editor input[type=month]:focus,.edit-post-text-editor input[type=number]:focus,.edit-post-text-editor input[type=password]:focus,.edit-post-text-editor input[type=radio]:focus,.edit-post-text-editor input[type=search]:focus,.edit-post-text-editor input[type=tel]:focus,.edit-post-text-editor input[type=text]:focus,.edit-post-text-editor input[type=time]:focus,.edit-post-text-editor input[type=url]:focus,.edit-post-text-editor input[type=week]:focus,.edit-post-text-editor select:focus,.edit-post-text-editor textarea:focus,.edit-post-visual-editor .input-control:focus,.edit-post-visual-editor input[type=checkbox]:focus,.edit-post-visual-editor input[type=color]:focus,.edit-post-visual-editor input[type=date]:focus,.edit-post-visual-editor input[type=datetime-local]:focus,.edit-post-visual-editor input[type=datetime]:focus,.edit-post-visual-editor input[type=email]:focus,.edit-post-visual-editor input[type=month]:focus,.edit-post-visual-editor input[type=number]:focus,.edit-post-visual-editor input[type=password]:focus,.edit-post-visual-editor input[type=radio]:focus,.edit-post-visual-editor input[type=search]:focus,.edit-post-visual-editor input[type=tel]:focus,.edit-post-visual-editor input[type=text]:focus,.edit-post-visual-editor input[type=time]:focus,.edit-post-visual-editor input[type=url]:focus,.edit-post-visual-editor input[type=week]:focus,.edit-post-visual-editor select:focus,.edit-post-visual-editor textarea:focus,.editor-post-publish-panel .input-control:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=color]:focus,.editor-post-publish-panel input[type=date]:focus,.editor-post-publish-panel input[type=datetime-local]:focus,.editor-post-publish-panel input[type=datetime]:focus,.editor-post-publish-panel input[type=email]:focus,.editor-post-publish-panel input[type=month]:focus,.editor-post-publish-panel input[type=number]:focus,.editor-post-publish-panel input[type=password]:focus,.editor-post-publish-panel input[type=radio]:focus,.editor-post-publish-panel input[type=search]:focus,.editor-post-publish-panel input[type=tel]:focus,.editor-post-publish-panel input[type=text]:focus,.editor-post-publish-panel input[type=time]:focus,.editor-post-publish-panel input[type=url]:focus,.editor-post-publish-panel input[type=week]:focus,.editor-post-publish-panel select:focus,.editor-post-publish-panel textarea:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.components-modal__frame input[type=number],.components-popover input[type=number],.edit-post-header input[type=number],.edit-post-sidebar input[type=number],.edit-post-text-editor input[type=number],.edit-post-visual-editor input[type=number],.editor-post-publish-panel input[type=number]{padding-right:4px;padding-left:4px}.components-modal__frame select,.components-popover select,.edit-post-header select,.edit-post-sidebar select,.edit-post-text-editor select,.edit-post-visual-editor select,.editor-post-publish-panel select{padding:3px 8px 3px 24px;font-size:13px;color:#555d66}.components-modal__frame select:focus,.components-popover select:focus,.edit-post-header select:focus,.edit-post-sidebar select:focus,.edit-post-text-editor select:focus,.edit-post-visual-editor select:focus,.editor-post-publish-panel select:focus{border-color:#008dbe;outline:2px solid transparent;outline-offset:0}.components-modal__frame input[type=checkbox],.components-modal__frame input[type=radio],.components-popover input[type=checkbox],.components-popover input[type=radio],.edit-post-header input[type=checkbox],.edit-post-header input[type=radio],.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=radio],.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=radio],.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=radio],.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=radio]{border:2px solid #6c7781;margin-left:12px;transition:none}.components-modal__frame input[type=checkbox]:focus,.components-modal__frame input[type=radio]:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=radio]:focus,.edit-post-header input[type=checkbox]:focus,.edit-post-header input[type=radio]:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-text-editor input[type=checkbox]:focus,.edit-post-text-editor input[type=radio]:focus,.edit-post-visual-editor input[type=checkbox]:focus,.edit-post-visual-editor input[type=radio]:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=radio]:focus{border-color:#6c7781;box-shadow:0 0 0 1px #6c7781}.components-modal__frame input[type=checkbox]:checked,.components-modal__frame input[type=radio]:checked,.components-popover input[type=checkbox]:checked,.components-popover input[type=radio]:checked,.edit-post-header input[type=checkbox]:checked,.edit-post-header input[type=radio]:checked,.edit-post-sidebar input[type=checkbox]:checked,.edit-post-sidebar input[type=radio]:checked,.edit-post-text-editor input[type=checkbox]:checked,.edit-post-text-editor input[type=radio]:checked,.edit-post-visual-editor input[type=checkbox]:checked,.edit-post-visual-editor input[type=radio]:checked,.editor-post-publish-panel input[type=checkbox]:checked,.editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .components-modal__frame input[type=checkbox]:checked,body.admin-color-sunrise .components-modal__frame input[type=radio]:checked,body.admin-color-sunrise .components-popover input[type=checkbox]:checked,body.admin-color-sunrise .components-popover input[type=radio]:checked,body.admin-color-sunrise .edit-post-header input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-header input[type=radio]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=radio]:checked,body.admin-color-sunrise .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-text-editor input[type=radio]:checked,body.admin-color-sunrise .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-visual-editor input[type=radio]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=radio]:checked{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .components-modal__frame input[type=checkbox]:checked,body.admin-color-ocean .components-modal__frame input[type=radio]:checked,body.admin-color-ocean .components-popover input[type=checkbox]:checked,body.admin-color-ocean .components-popover input[type=radio]:checked,body.admin-color-ocean .edit-post-header input[type=checkbox]:checked,body.admin-color-ocean .edit-post-header input[type=radio]:checked,body.admin-color-ocean .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ocean .edit-post-sidebar input[type=radio]:checked,body.admin-color-ocean .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-ocean .edit-post-text-editor input[type=radio]:checked,body.admin-color-ocean .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-ocean .edit-post-visual-editor input[type=radio]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=radio]:checked{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-modal__frame input[type=checkbox]:checked,body.admin-color-midnight .components-modal__frame input[type=radio]:checked,body.admin-color-midnight .components-popover input[type=checkbox]:checked,body.admin-color-midnight .components-popover input[type=radio]:checked,body.admin-color-midnight .edit-post-header input[type=checkbox]:checked,body.admin-color-midnight .edit-post-header input[type=radio]:checked,body.admin-color-midnight .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-midnight .edit-post-sidebar input[type=radio]:checked,body.admin-color-midnight .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-midnight .edit-post-text-editor input[type=radio]:checked,body.admin-color-midnight .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-midnight .edit-post-visual-editor input[type=radio]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=radio]:checked{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .components-modal__frame input[type=checkbox]:checked,body.admin-color-ectoplasm .components-modal__frame input[type=radio]:checked,body.admin-color-ectoplasm .components-popover input[type=checkbox]:checked,body.admin-color-ectoplasm .components-popover input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-header input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-header input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-text-editor input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-visual-editor input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=radio]:checked{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-modal__frame input[type=checkbox]:checked,body.admin-color-coffee .components-modal__frame input[type=radio]:checked,body.admin-color-coffee .components-popover input[type=checkbox]:checked,body.admin-color-coffee .components-popover input[type=radio]:checked,body.admin-color-coffee .edit-post-header input[type=checkbox]:checked,body.admin-color-coffee .edit-post-header input[type=radio]:checked,body.admin-color-coffee .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-coffee .edit-post-sidebar input[type=radio]:checked,body.admin-color-coffee .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-coffee .edit-post-text-editor input[type=radio]:checked,body.admin-color-coffee .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-coffee .edit-post-visual-editor input[type=radio]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=radio]:checked{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-modal__frame input[type=checkbox]:checked,body.admin-color-blue .components-modal__frame input[type=radio]:checked,body.admin-color-blue .components-popover input[type=checkbox]:checked,body.admin-color-blue .components-popover input[type=radio]:checked,body.admin-color-blue .edit-post-header input[type=checkbox]:checked,body.admin-color-blue .edit-post-header input[type=radio]:checked,body.admin-color-blue .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-blue .edit-post-sidebar input[type=radio]:checked,body.admin-color-blue .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-blue .edit-post-text-editor input[type=radio]:checked,body.admin-color-blue .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-blue .edit-post-visual-editor input[type=radio]:checked,body.admin-color-blue .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-blue .editor-post-publish-panel input[type=radio]:checked{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .components-modal__frame input[type=checkbox]:checked,body.admin-color-light .components-modal__frame input[type=radio]:checked,body.admin-color-light .components-popover input[type=checkbox]:checked,body.admin-color-light .components-popover input[type=radio]:checked,body.admin-color-light .edit-post-header input[type=checkbox]:checked,body.admin-color-light .edit-post-header input[type=radio]:checked,body.admin-color-light .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-light .edit-post-sidebar input[type=radio]:checked,body.admin-color-light .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-light .edit-post-text-editor input[type=radio]:checked,body.admin-color-light .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-light .edit-post-visual-editor input[type=radio]:checked,body.admin-color-light .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-light .editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}.components-modal__frame input[type=checkbox]:checked:focus,.components-modal__frame input[type=radio]:checked:focus,.components-popover input[type=checkbox]:checked:focus,.components-popover input[type=radio]:checked:focus,.edit-post-header input[type=checkbox]:checked:focus,.edit-post-header input[type=radio]:checked:focus,.edit-post-sidebar input[type=checkbox]:checked:focus,.edit-post-sidebar input[type=radio]:checked:focus,.edit-post-text-editor input[type=checkbox]:checked:focus,.edit-post-text-editor input[type=radio]:checked:focus,.edit-post-visual-editor input[type=checkbox]:checked:focus,.edit-post-visual-editor input[type=radio]:checked:focus,.editor-post-publish-panel input[type=checkbox]:checked:focus,.editor-post-publish-panel input[type=radio]:checked:focus{box-shadow:0 0 0 2px #555d66}.components-modal__frame input[type=checkbox],.components-popover input[type=checkbox],.edit-post-header input[type=checkbox],.edit-post-sidebar input[type=checkbox],.edit-post-text-editor input[type=checkbox],.edit-post-visual-editor input[type=checkbox],.editor-post-publish-panel input[type=checkbox]{border-radius:2px}.components-modal__frame input[type=checkbox]:checked:before,.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox]:checked:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox]:checked:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox]:checked:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-modal__frame input[type=checkbox]:checked:before,.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox]:checked:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox]:checked:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox]:checked:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-modal__frame input[type=checkbox][aria-checked=mixed],.components-popover input[type=checkbox][aria-checked=mixed],.edit-post-header input[type=checkbox][aria-checked=mixed],.edit-post-sidebar input[type=checkbox][aria-checked=mixed],.edit-post-text-editor input[type=checkbox][aria-checked=mixed],.edit-post-visual-editor input[type=checkbox][aria-checked=mixed],.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-blue .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-blue .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-light .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-light .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-modal__frame input[type=checkbox][aria-checked=mixed]:focus,.components-popover input[type=checkbox][aria-checked=mixed]:focus,.edit-post-header input[type=checkbox][aria-checked=mixed]:focus,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:focus,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:focus,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:focus,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:focus{box-shadow:0 0 0 2px #555d66}.components-modal__frame input[type=radio],.components-popover input[type=radio],.edit-post-header input[type=radio],.edit-post-sidebar input[type=radio],.edit-post-text-editor input[type=radio],.edit-post-visual-editor input[type=radio],.editor-post-publish-panel input[type=radio]{border-radius:50%}.components-modal__frame input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-header input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.edit-post-text-editor input[type=radio]:checked:before,.edit-post-visual-editor input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{width:6px;height:6px;margin:6px 6px 0 0;background-color:#fff}@media (min-width:782px){.components-modal__frame input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-header input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.edit-post-text-editor input[type=radio]:checked:before,.edit-post-visual-editor input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{margin:3px 3px 0 0}}.components-modal__frame input::-webkit-input-placeholder,.components-modal__frame textarea::-webkit-input-placeholder,.components-popover input::-webkit-input-placeholder,.components-popover textarea::-webkit-input-placeholder,.edit-post-header input::-webkit-input-placeholder,.edit-post-header textarea::-webkit-input-placeholder,.edit-post-sidebar input::-webkit-input-placeholder,.edit-post-sidebar textarea::-webkit-input-placeholder,.edit-post-text-editor input::-webkit-input-placeholder,.edit-post-text-editor textarea::-webkit-input-placeholder,.edit-post-visual-editor input::-webkit-input-placeholder,.edit-post-visual-editor textarea::-webkit-input-placeholder,.editor-post-publish-panel input::-webkit-input-placeholder,.editor-post-publish-panel textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-modal__frame input::-moz-placeholder,.components-modal__frame textarea::-moz-placeholder,.components-popover input::-moz-placeholder,.components-popover textarea::-moz-placeholder,.edit-post-header input::-moz-placeholder,.edit-post-header textarea::-moz-placeholder,.edit-post-sidebar input::-moz-placeholder,.edit-post-sidebar textarea::-moz-placeholder,.edit-post-text-editor input::-moz-placeholder,.edit-post-text-editor textarea::-moz-placeholder,.edit-post-visual-editor input::-moz-placeholder,.edit-post-visual-editor textarea::-moz-placeholder,.editor-post-publish-panel input::-moz-placeholder,.editor-post-publish-panel textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-modal__frame input:-ms-input-placeholder,.components-modal__frame textarea:-ms-input-placeholder,.components-popover input:-ms-input-placeholder,.components-popover textarea:-ms-input-placeholder,.edit-post-header input:-ms-input-placeholder,.edit-post-header textarea:-ms-input-placeholder,.edit-post-sidebar input:-ms-input-placeholder,.edit-post-sidebar textarea:-ms-input-placeholder,.edit-post-text-editor input:-ms-input-placeholder,.edit-post-text-editor textarea:-ms-input-placeholder,.edit-post-visual-editor input:-ms-input-placeholder,.edit-post-visual-editor textarea:-ms-input-placeholder,.editor-post-publish-panel input:-ms-input-placeholder,.editor-post-publish-panel textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-modal__frame input::-webkit-input-placeholder,.is-dark-theme .components-modal__frame textarea::-webkit-input-placeholder,.is-dark-theme .components-popover input::-webkit-input-placeholder,.is-dark-theme .components-popover textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-header input::-webkit-input-placeholder,.is-dark-theme .edit-post-header textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-sidebar input::-webkit-input-placeholder,.is-dark-theme .edit-post-sidebar textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-text-editor input::-webkit-input-placeholder,.is-dark-theme .edit-post-text-editor textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-visual-editor input::-webkit-input-placeholder,.is-dark-theme .edit-post-visual-editor textarea::-webkit-input-placeholder,.is-dark-theme .editor-post-publish-panel input::-webkit-input-placeholder,.is-dark-theme .editor-post-publish-panel textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-modal__frame input::-moz-placeholder,.is-dark-theme .components-modal__frame textarea::-moz-placeholder,.is-dark-theme .components-popover input::-moz-placeholder,.is-dark-theme .components-popover textarea::-moz-placeholder,.is-dark-theme .edit-post-header input::-moz-placeholder,.is-dark-theme .edit-post-header textarea::-moz-placeholder,.is-dark-theme .edit-post-sidebar input::-moz-placeholder,.is-dark-theme .edit-post-sidebar textarea::-moz-placeholder,.is-dark-theme .edit-post-text-editor input::-moz-placeholder,.is-dark-theme .edit-post-text-editor textarea::-moz-placeholder,.is-dark-theme .edit-post-visual-editor input::-moz-placeholder,.is-dark-theme .edit-post-visual-editor textarea::-moz-placeholder,.is-dark-theme .editor-post-publish-panel input::-moz-placeholder,.is-dark-theme .editor-post-publish-panel textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-modal__frame input:-ms-input-placeholder,.is-dark-theme .components-modal__frame textarea:-ms-input-placeholder,.is-dark-theme .components-popover input:-ms-input-placeholder,.is-dark-theme .components-popover textarea:-ms-input-placeholder,.is-dark-theme .edit-post-header input:-ms-input-placeholder,.is-dark-theme .edit-post-header textarea:-ms-input-placeholder,.is-dark-theme .edit-post-sidebar input:-ms-input-placeholder,.is-dark-theme .edit-post-sidebar textarea:-ms-input-placeholder,.is-dark-theme .edit-post-text-editor input:-ms-input-placeholder,.is-dark-theme .edit-post-text-editor textarea:-ms-input-placeholder,.is-dark-theme .edit-post-visual-editor input:-ms-input-placeholder,.is-dark-theme .edit-post-visual-editor textarea:-ms-input-placeholder,.is-dark-theme .editor-post-publish-panel input:-ms-input-placeholder,.is-dark-theme .editor-post-publish-panel textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@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{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.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}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #e2e4e7;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{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 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{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.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}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-right:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-right:1px solid #e2e4e7}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-left:1px solid #e2e4e7}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e2e4e7;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:block}}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-right:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-right:24px}}.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__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{padding-left:16px}}.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{padding:0 6px;margin-left:4px}@media (min-width:600px){.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{padding:0 12px;margin-left:12px}}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-right:8px;margin-left:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-left:8px}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;right:0;left:0;background:#fff;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-right:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #e2e4e7;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #e2e4e7}.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;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;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{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;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}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-right:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #e2e4e7;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%}.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__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #e2e4e7;height:auto!important;padding:24px;display:flex;justify-content:center}.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,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.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 .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout__footer{display:none;z-index:30}@media (min-width:782px){.edit-post-layout__footer{display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccd0d4}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:12px;border-radius:4px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #e2e4e7;margin-right:-24px;margin-left:-24px;padding:.6rem 24px;background-color:#f3f4f5}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-left:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px;border-top:1px solid #e2e4e7}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;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 #6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top: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;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@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{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:right;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative}.components-button.edit-post-post-schedule__toggle{text-align:left}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #ccc;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border:1px solid #1e1e1e}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-right:auto;margin-left:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;right:0;left:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@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{line-height:36px;margin:0 0 0 auto;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.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.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-right:auto;margin-left:auto;margin-bottom:32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 48px .6rem 0}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-right:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@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){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-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-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,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-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{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@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{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ 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 23f5448def..32df951a0d 100644 --- a/wp-includes/css/dist/edit-post/style.css +++ b/wp-includes/css/dist/edit-post/style.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,35 +57,258 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -@media (min-width: 782px) { - body.js.is-fullscreen-mode { - margin-top: -46px; - height: calc(100% + 46px); } } - @media (min-width: 782px) and (min-width: 782px) { - body.js.is-fullscreen-mode { - margin-top: -32px; - height: calc(100% + 32px); } } +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +.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; } } + +.interface-complementary-area { + background: #fff; + color: #1e1e1e; + overflow: visible; } + @media (min-width: 600px) { + .interface-complementary-area { + z-index: auto; + height: 100%; + overflow: auto; + -webkit-overflow-scrolling: touch; } } + @media (min-width: 782px) { + .interface-complementary-area { + width: 280px; } } + .interface-complementary-area > .components-panel { + border-left: none; + border-right: none; + overflow: auto; + -webkit-overflow-scrolling: touch; + height: auto; + max-height: calc(100vh - 142px); + margin-top: -1px; + margin-bottom: -1px; + position: relative; } + @media (min-width: 600px) { + .interface-complementary-area > .components-panel { + overflow: visible; + height: auto; + max-height: none; } } + .interface-complementary-area > .components-panel .components-panel__header { + position: fixed; + z-index: 1; + top: 0; + left: 0; + right: 0; + height: 48px; } + @media (min-width: 600px) { + .interface-complementary-area > .components-panel .components-panel__header { + position: inherit; + top: auto; + left: auto; + right: auto; } } + .interface-complementary-area p { + margin-top: 0; } + .interface-complementary-area h2, + .interface-complementary-area h3 { + font-size: 13px; + color: #1e1e1e; + margin-bottom: 1.5em; } + .interface-complementary-area hr { + border-top: none; + border-bottom: 1px solid #e2e4e7; + margin: 1.5em 0; } + .interface-complementary-area div.components-toolbar-group, + .interface-complementary-area div.components-toolbar { + 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 { + top: auto; + right: 10px; + bottom: 10px; + left: auto; } @media (min-width: 782px) { + body.js.is-fullscreen-mode { + margin-top: -32px; + height: calc(100% + 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; } - body.js.is-fullscreen-mode .edit-post-header { - transform: translateY(-100%); - animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } } - @media (min-width: 782px) and (prefers-reduced-motion: reduce) { - body.js.is-fullscreen-mode .edit-post-header { - animation-duration: 1ms; } } + margin-left: 0; } } -@keyframes edit-post-fullscreen-mode__slide-in-animation { - 100% { - transform: translateY(0%); } } +html.interface-interface-skeleton__html-container { + position: fixed; + width: 100%; } + @media (min-width: 782px) { + html.interface-interface-skeleton__html-container { + position: initial; + width: initial; } } + +.interface-interface-skeleton { + display: flex; + flex-direction: column; + height: auto; + max-height: 100%; + position: fixed; + top: 46px; + left: 0; + right: 0; + bottom: 0; } + @media (min-width: 783px) { + .interface-interface-skeleton { + top: 32px; } + .is-fullscreen-mode .interface-interface-skeleton { + top: 0; } } + +.interface-interface-skeleton { + /* Set left position when auto-fold is not on the body element. */ + left: 0; } + @media (min-width: 783px) { + .interface-interface-skeleton { + left: 160px; } } + +.auto-fold .interface-interface-skeleton { + /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ } + @media (min-width: 783px) { + .auto-fold .interface-interface-skeleton { + left: 36px; } } + @media (min-width: 961px) { + .auto-fold .interface-interface-skeleton { + left: 160px; } } + +/* Sidebar manually collapsed. */ +.folded .interface-interface-skeleton { + left: 0; } + @media (min-width: 783px) { + .folded .interface-interface-skeleton { + left: 36px; } } + +/* Mobile menu opened. */ +@media (max-width: 783px) { + .auto-fold .wp-responsive-open .interface-interface-skeleton { + left: 190px; } } + +/* In small screens with responsive menu expanded there is small white space. */ +@media (max-width: 600px) { + .auto-fold .wp-responsive-open .interface-interface-skeleton { + margin-left: -18px; } } + +body.is-fullscreen-mode .interface-interface-skeleton { + left: 0 !important; } + +.interface-interface-skeleton__body { + flex-grow: 1; + display: flex; + overflow: auto; + overscroll-behavior-y: none; } + +.interface-interface-skeleton__content { + flex-grow: 1; + display: flex; + flex-direction: column; + overflow: auto; } + +.interface-interface-skeleton__left-sidebar, +.interface-interface-skeleton__sidebar { + display: block; + width: auto; + flex-shrink: 0; + position: absolute; + z-index: 100000; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: #fff; + color: #1e1e1e; } + @media (min-width: 782px) { + .interface-interface-skeleton__left-sidebar, + .interface-interface-skeleton__sidebar { + position: relative !important; + z-index: 90; } } + +@media (min-width: 782px) { + .interface-interface-skeleton__sidebar { + overflow: auto; + border-left: 1px solid #e2e4e7; } } + +@media (min-width: 782px) { + .interface-interface-skeleton__left-sidebar { + border-right: 1px solid #e2e4e7; } } + +.interface-interface-skeleton__header { + flex-shrink: 0; + height: auto; + border-bottom: 1px solid #e2e4e7; + z-index: 30; + color: #1e1e1e; + position: -webkit-sticky; + position: sticky; + top: 0; } + @media (min-width: 600px) { + .interface-interface-skeleton__header { + position: initial; + top: 0; } } + +.interface-interface-skeleton__footer { + height: auto; + flex-shrink: 0; + border-top: 1px solid #e2e4e7; + color: #1e1e1e; + display: none; } + @media (min-width: 782px) { + .interface-interface-skeleton__footer { + display: block; } } + +.interface-interface-skeleton__actions { + z-index: 100000; + position: fixed !important; + top: -9999em; + bottom: auto; + left: auto; + right: 0; + width: 280px; + color: #1e1e1e; } + .interface-interface-skeleton__actions:focus { + top: auto; + bottom: 0; } + +.interface-pinned-items { + display: flex; } + .interface-pinned-items .components-button { + margin-left: 4px; } + .interface-pinned-items .components-button svg { + max-width: 24px; + max-height: 24px; } .edit-post-header { - height: 56px; + height: 60px; background: #fff; display: flex; flex-wrap: wrap; @@ -88,46 +326,64 @@ .edit-post-header__toolbar { display: flex; flex-grow: 1; - padding-left: 16px; } + padding-left: 8px; } + @media (min-width: 600px) { + .edit-post-header__toolbar { + padding-left: 24px; } } + .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__settings { display: inline-flex; align-items: center; flex-wrap: wrap; - padding-right: 8px; } - -.edit-post-header .components-button.is-pressed { - color: #fff; - background: #555d66; } - -.edit-post-header .components-button.is-pressed:hover, .edit-post-header .components-button.is-pressed:focus { - box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff !important; - color: #fff !important; - background: #555d66 !important; } - -.edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft, .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - margin: 2px; - font-size: 13px; } - -.edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft { - padding: 0 5px; } + padding-right: 4px; } @media (min-width: 600px) { - .edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft { - padding: 0 12px; } } + .edit-post-header__settings { + padding-right: 16px; } } -.edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - padding-left: 5px; - padding-right: 5px; } +/** + * Buttons in the Toolbar + */ +.edit-post-header__settings .components-button.editor-post-save-draft, +.edit-post-header__settings .editor-post-saved-state, +.edit-post-header__settings .components-button.editor-post-switch-to-draft, +.edit-post-header__settings .components-button.editor-post-preview, +.edit-post-header__settings .components-button.block-editor-post-preview__dropdown, +.edit-post-header__settings .components-button.editor-post-publish-button, +.edit-post-header__settings .components-button.editor-post-publish-panel__toggle { + padding: 0 6px; + margin-right: 4px; } @media (min-width: 600px) { - .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - padding-left: 12px; - padding-right: 12px; } } + .edit-post-header__settings .components-button.editor-post-save-draft, + .edit-post-header__settings .editor-post-saved-state, + .edit-post-header__settings .components-button.editor-post-switch-to-draft, + .edit-post-header__settings .components-button.editor-post-preview, + .edit-post-header__settings .components-button.block-editor-post-preview__dropdown, + .edit-post-header__settings .components-button.editor-post-publish-button, + .edit-post-header__settings .components-button.editor-post-publish-panel__toggle { + padding: 0 12px; + margin-right: 12px; } } -@media (min-width: 782px) { - .edit-post-header .components-button.editor-post-preview { - margin: 0 3px 0 12px; } - .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle { - margin: 0 12px 0 3px; } } +.edit-post-header-preview__grouping-external { + display: flex; + position: relative; + padding-bottom: 0; } + +.edit-post-header-preview__button-external { + padding-left: 8px; + margin-right: auto; + width: 100%; + display: flex; + justify-content: flex-start; } + .edit-post-header-preview__button-external svg { + margin-right: 8px; } + +.edit-post-post-preview-dropdown .components-popover__content > div { + padding-bottom: 0; } .edit-post-fullscreen-mode-close.has-icon { display: none; } @@ -141,43 +397,58 @@ color: #fff; border-radius: 0; height: auto; - width: 56px; } + width: 60px; } .edit-post-fullscreen-mode-close.has-icon:hover { - background: #32373d !important; - color: #fff !important; - box-shadow: none !important; } + background: #32373d; } .edit-post-fullscreen-mode-close.has-icon:active { - color: #fff; } } - .edit-post-fullscreen-mode-close.has-icon svg { - margin-left: auto; - margin-right: auto; } + color: #fff; } + .edit-post-fullscreen-mode-close.has-icon:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; } } .edit-post-header-toolbar { display: inline-flex; - align-items: center; } + align-items: center; + border: none; } .edit-post-header-toolbar > .components-button { display: none; } @media (min-width: 600px) { .edit-post-header-toolbar > .components-button { display: inline-flex; } } - .edit-post-header-toolbar .block-editor-block-navigation, - .edit-post-header-toolbar .table-of-contents { + .edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle { + display: inline-flex; } + .edit-post-header-toolbar .block-editor-block-navigation { display: none; } @media (min-width: 600px) { - .edit-post-header-toolbar .block-editor-block-navigation, - .edit-post-header-toolbar .table-of-contents { + .edit-post-header-toolbar .block-editor-block-navigation { display: flex; } } + .edit-post-header-toolbar > .components-button.has-icon, + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon { + height: 36px; + min-width: 36px; + padding: 6px; } + .edit-post-header-toolbar > .components-button.has-icon.is-pressed, + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon.is-pressed { + background: #1e1e1e; } + .edit-post-header-toolbar > .components-button.has-icon:focus:not(:disabled), + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba, inset 0 0 0 1px #fff; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 1px #fff; + outline: 1px solid transparent; } + .edit-post-header-toolbar > .components-button.has-icon::before, + .edit-post-header-toolbar > .components-dropdown > .components-button.has-icon::before { + display: none; } .edit-post-header-toolbar__block-toolbar { position: absolute; - top: 57px; + top: 61px; left: 0; right: 0; background: #fff; - min-height: 37px; border-bottom: 1px solid #e2e4e7; } .edit-post-header-toolbar__block-toolbar:empty { display: none; } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group, .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { border-top: none; border-bottom: none; } @@ -194,14 +465,22 @@ left: auto; right: auto; background: none; - border-bottom: none; - min-height: auto; } + border-bottom: none; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { right: auto; } .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar { - margin: -9px 0; } + border-left: 1px solid #e2e4e7; } + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group, .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { - padding: 10px 4px 9px; } } + height: 60px; + padding: 6px 0; } } + +.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon { + margin-right: 8px; + min-width: 32px; + width: 32px; + height: 32px; + padding: 0; } .edit-post-more-menu { margin-left: -4px; } @@ -210,11 +489,9 @@ padding: 0 2px; } @media (min-width: 600px) { .edit-post-more-menu { - margin-left: 4px; } + margin-left: 0; } .edit-post-more-menu .components-button { padding: 0 4px; } } - .edit-post-more-menu .components-button svg { - transform: rotate(90deg); } .edit-post-more-menu__content .components-popover__content { min-width: 260px; } @@ -228,36 +505,6 @@ .components-popover.edit-post-more-menu__content { z-index: 99998; } -.edit-post-pinned-plugins { - display: none; } - @media (min-width: 600px) { - .edit-post-pinned-plugins { - display: flex; } } - .edit-post-pinned-plugins .components-button { - margin-left: 4px; } - .edit-post-pinned-plugins .components-button.is-pressed { - margin-left: 5px; } - .edit-post-pinned-plugins .components-button svg { - max-width: 24px; - max-height: 24px; } - .edit-post-pinned-plugins .components-button:not(.is-pressed) svg, - .edit-post-pinned-plugins .components-button:not(.is-pressed) svg * { - stroke: #555d66; - fill: #555d66; - stroke-width: 0; } - .edit-post-pinned-plugins .components-button.is-pressed svg, - .edit-post-pinned-plugins .components-button.is-pressed svg *, - .edit-post-pinned-plugins .components-button.is-pressed:hover svg, - .edit-post-pinned-plugins .components-button.is-pressed:hover svg * { - stroke: #fff !important; - fill: #fff !important; - stroke-width: 0; } - .edit-post-pinned-plugins .components-button:hover svg, - .edit-post-pinned-plugins .components-button:hover svg * { - stroke: #191e23 !important; - fill: #191e23 !important; - stroke-width: 0; } - .edit-post-keyboard-shortcut-help-modal__section { margin: 0 0 2rem 0; } @@ -317,20 +564,20 @@ .edit-post-layout .components-editor-notices__snackbar { position: fixed; right: 0; - bottom: 20px; + bottom: 40px; padding-left: 16px; padding-right: 16px; } .edit-post-layout .components-editor-notices__snackbar { /* Set left position when auto-fold is not on the body element. */ left: 0; } - @media (min-width: 782px) { + @media (min-width: 783px) { .edit-post-layout .components-editor-notices__snackbar { left: 160px; } } .auto-fold .edit-post-layout .components-editor-notices__snackbar { /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */ } - @media (min-width: 782px) { + @media (min-width: 783px) { .auto-fold .edit-post-layout .components-editor-notices__snackbar { left: 36px; } } @media (min-width: 961px) { @@ -340,12 +587,12 @@ /* Sidebar manually collapsed. */ .folded .edit-post-layout .components-editor-notices__snackbar { left: 0; } - @media (min-width: 782px) { + @media (min-width: 783px) { .folded .edit-post-layout .components-editor-notices__snackbar { left: 36px; } } /* Mobile menu opened. */ -@media (max-width: 782px) { +@media (max-width: 783px) { .auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar { left: 190px; } } @@ -387,59 +634,48 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar { 100% { transform: translateX(0%); } } -.block-editor-editor-skeleton__sidebar > div { +.interface-interface-skeleton__sidebar > div { height: 100%; } .edit-post-layout .editor-post-publish-panel__header-publish-button { justify-content: center; } -.edit-post-layout__toogle-publish-panel, -.edit-post-layout__toogle-sidebar-panel { +.edit-post-layout__toggle-publish-panel, +.edit-post-layout__toogle-sidebar-panel, +.edit-post-layout__toggle-entities-saved-states-panel { + z-index: 100000; + position: fixed !important; + top: -9999em; + bottom: auto; + left: auto; + right: 0; + width: 280px; background-color: #fff; - padding: 10px 10px 10px 0; } - -.edit-post-layout__toogle-publish-panel-button, -.edit-post-layout__toogle-sidebar-panel-button { - width: auto; - height: auto; - display: block; - font-size: 14px; - font-weight: 600; - margin: 0 0 0 auto; - padding: 15px 23px 14px; - line-height: normal; - text-decoration: none; - outline: none; - background: #f1f1f1; - color: #11a0d2; } - -body.admin-color-sunrise .edit-post-layout__toogle-publish-panel-button, body.admin-color-sunrise .edit-post-layout__toogle-sidebar-panel-button { - color: #c8b03c; } - -body.admin-color-ocean .edit-post-layout__toogle-publish-panel-button, body.admin-color-ocean .edit-post-layout__toogle-sidebar-panel-button { - color: #a89d8a; } - -body.admin-color-midnight .edit-post-layout__toogle-publish-panel-button, body.admin-color-midnight .edit-post-layout__toogle-sidebar-panel-button { - color: #77a6b9; } - -body.admin-color-ectoplasm .edit-post-layout__toogle-publish-panel-button, body.admin-color-ectoplasm .edit-post-layout__toogle-sidebar-panel-button { - color: #c77430; } - -body.admin-color-coffee .edit-post-layout__toogle-publish-panel-button, body.admin-color-coffee .edit-post-layout__toogle-sidebar-panel-button { - color: #9fa47b; } - -body.admin-color-blue .edit-post-layout__toogle-publish-panel-button, body.admin-color-blue .edit-post-layout__toogle-sidebar-panel-button { - color: #d9ab59; } - -body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admin-color-light .edit-post-layout__toogle-sidebar-panel-button { - color: #c75726; } - .edit-post-layout__toogle-publish-panel-button:focus, - .edit-post-layout__toogle-sidebar-panel-button:focus { - position: fixed; + border: 1px dotted #e2e4e7; + height: auto !important; + padding: 24px; + display: flex; + justify-content: center; } + .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, + .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, + .interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel, + .interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel, .interface-interface-skeleton__actions:focus + .edit-post-layout__toogle-sidebar-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toogle-sidebar-panel, + .interface-interface-skeleton__actions:focus + .edit-post-layout__toogle-sidebar-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toogle-sidebar-panel, .interface-interface-skeleton__actions:focus + .edit-post-layout__toggle-entities-saved-states-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toggle-entities-saved-states-panel, + .interface-interface-skeleton__actions:focus + .edit-post-layout__toggle-entities-saved-states-panel, + .interface-interface-skeleton__actions:focus-within + .edit-post-layout__toggle-entities-saved-states-panel { top: auto; - right: 10px; - bottom: 10px; - left: auto; } + bottom: 0; } .edit-post-layout__footer { display: none; @@ -449,13 +685,36 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi display: flex; background: #fff; height: 24px; - padding: 0 8px; align-items: center; - font-size: 13px; } } + font-size: 13px; + padding: 0 18px; } } + +.edit-post-layout .interface-interface-skeleton__content { + background-color: #ccd0d4; } + +.edit-post-layout__inserter-panel { + height: 100%; + display: flex; + flex-direction: column; } + +.edit-post-layout__inserter-panel-header { + padding-top: 8px; + padding-right: 8px; + display: flex; + justify-content: flex-end; } + @media (min-width: 782px) { + .edit-post-layout__inserter-panel-header { + display: none; } } + +.edit-post-layout__inserter-panel-content { + height: calc(100% - 36px - 8px); } + @media (min-width: 782px) { + .edit-post-layout__inserter-panel-content { + height: 100%; } } @media (min-width: 600px) { .edit-post-manage-blocks-modal { - height: calc(100% - 56px - 56px); } } + height: calc(100% - 60px - 60px); } } .edit-post-manage-blocks-modal .components-modal__content { padding-bottom: 0; @@ -622,149 +881,32 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .edit-post-meta-boxes-area__clear { clear: both; } -.edit-post-sidebar { - background: #fff; - color: #555d66; - overflow: visible; } - @media (min-width: 600px) { - .edit-post-sidebar { - z-index: auto; - height: 100%; - overflow: auto; - -webkit-overflow-scrolling: touch; } } - @media (min-width: 782px) { - .edit-post-sidebar { - width: 280px; } } - .edit-post-sidebar > .components-panel { - border-left: none; - border-right: none; - overflow: auto; - -webkit-overflow-scrolling: touch; - height: auto; - max-height: calc(100vh - 96px); - margin-top: -1px; - margin-bottom: -1px; - position: relative; } - @media (min-width: 600px) { - .edit-post-sidebar > .components-panel { - overflow: visible; - height: auto; - max-height: none; } } - .edit-post-sidebar > .components-panel .components-panel__header { - position: fixed; - z-index: 1; - top: 0; - left: 0; - right: 0; - height: 50px; } - @media (min-width: 600px) { - .edit-post-sidebar > .components-panel .components-panel__header { - position: inherit; - top: auto; - left: auto; - right: auto; } } - .edit-post-sidebar p { - margin-top: 0; } - .edit-post-sidebar h2, - .edit-post-sidebar h3 { - font-size: 13px; - color: #555d66; - margin-bottom: 1.5em; } - .edit-post-sidebar hr { - border-top: none; - border-bottom: 1px solid #e2e4e7; - margin: 1.5em 0; } - .edit-post-sidebar div.components-toolbar { - box-shadow: none; - margin-bottom: 1.5em; } - .edit-post-sidebar div.components-toolbar:last-child { - margin-bottom: 0; } - .edit-post-sidebar p + div.components-toolbar { - margin-top: -1em; } - .edit-post-sidebar .block-editor-skip-to-selected-block:focus { - top: auto; - right: 10px; - bottom: 10px; - left: auto; } - -/* Text Editor specific */ -.components-panel__header.edit-post-sidebar__header { - background: #fff; - padding-right: 8px; } - .components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: 100%; } - @media (min-width: 782px) { - .components-panel__header.edit-post-sidebar__header { - display: none; } } - .components-panel__header.edit-post-sidebar__panel-tabs { justify-content: flex-start; padding-left: 0; - padding-right: 4px; + padding-right: 16px; border-top: 0; margin-top: 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; - margin-left: auto; } + margin: 0 0 0 auto; + padding: 0; + min-width: 24px; + height: 24px; } @media (min-width: 782px) { .components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon { display: flex; } } -.edit-post-sidebar__panel-tab { - background: transparent; - border: none; - border-radius: 0; - box-shadow: none; - cursor: pointer; - height: 50px; - padding: 3px 15px; - margin-left: 0; - font-weight: 400; - outline-offset: -1px; - transition: box-shadow 0.1s linear; } - @media (prefers-reduced-motion: reduce) { - .edit-post-sidebar__panel-tab { - transition-duration: 0s; } } - .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; - font-weight: 600; - position: relative; } - body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #837425; } - body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #5e7d5e; } - body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #497b8d; } - body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #523f6d; } - body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #59524c; } - body.admin-color-blue .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #417e9B; } - body.admin-color-light .edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; } - .edit-post-sidebar__panel-tab.is-active::before { - content: ""; - position: absolute; - top: 0; - bottom: 1px; - right: 0; - left: 0; - border-bottom: 3px solid transparent; } - .edit-post-sidebar__panel-tab:focus:not(:disabled) { - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; - box-shadow: none; } - .components-panel__body.is-opened.edit-post-last-revision__panel { - padding: 0; } + padding: 0; + height: 48px; } -.editor-post-last-revision__title { - padding: 13px 16px; } +.editor-post-last-revision__title.components-button { + padding: 16px; } .editor-post-author__select { margin: -5px 0; @@ -777,6 +919,7 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi font-weight: 600; } .edit-post-post-link__preview-label { + font-weight: 400; margin: 0; } .edit-post-post-link__link { @@ -808,11 +951,9 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .edit-post-post-visibility { width: 100%; } -.edit-post-post-visibility__dialog .components-popover__content { - padding: 10px; } - @media (min-width: 782px) { - .edit-post-post-visibility__dialog .components-popover__content { - width: 257px; } } +@media (min-width: 782px) { + .edit-post-post-visibility__dialog .components-popover__content { + width: 257px; } } .edit-post-post-visibility__dialog-legend { font-weight: 600; } @@ -835,17 +976,9 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi margin: 4px 0 0; line-height: 1.4; } -.components-panel__header.edit-post-sidebar__panel-tabs { - justify-content: flex-start; - padding-left: 0; - padding-right: 4px; - border-top: 0; } - .components-panel__header.edit-post-sidebar__panel-tabs ul { - display: flex; } - .components-panel__header.edit-post-sidebar__panel-tabs li { - margin: 0; } - .components-button.edit-post-sidebar__panel-tab { + border-radius: 0; + height: 48px; background: transparent; border: none; box-shadow: none; @@ -853,13 +986,7 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi display: inline-block; padding: 3px 15px; margin-left: 0; - font-weight: 400; - color: #191e23; - outline-offset: -1px; - transition: box-shadow 0.1s linear; } - @media (prefers-reduced-motion: reduce) { - .components-button.edit-post-sidebar__panel-tab { - transition-duration: 0s; } } + font-weight: 500; } .components-button.edit-post-sidebar__panel-tab::after { content: attr(data-label); display: block; @@ -869,23 +996,10 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi speak: none; visibility: hidden; } .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; - font-weight: 600; - position: relative; } - body.admin-color-sunrise .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #837425; } - body.admin-color-ocean .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #5e7d5e; } - body.admin-color-midnight .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #497b8d; } - body.admin-color-ectoplasm .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #523f6d; } - body.admin-color-coffee .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #59524c; } - body.admin-color-blue .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #417e9B; } - body.admin-color-light .components-button.edit-post-sidebar__panel-tab.is-active { - box-shadow: inset 0 -3px #007cba; } + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 var(--wp-admin-theme-color); + position: relative; + z-index: 1; } .components-button.edit-post-sidebar__panel-tab.is-active::before { content: ""; position: absolute; @@ -893,98 +1007,85 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi bottom: 1px; right: 0; left: 0; - border-bottom: 3px solid transparent; } + border-bottom: 4px solid transparent; } .components-button.edit-post-sidebar__panel-tab:focus { - background-color: transparent; - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; } - -/* Text Editor specific */ -.components-panel__header.edit-post-sidebar-header__small { - background: #fff; - padding-right: 4px; } - .components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: 100%; } - @media (min-width: 782px) { - .components-panel__header.edit-post-sidebar-header__small { - display: none; } } - -.components-panel__header.edit-post-sidebar-header { - padding-right: 4px; - background: #f3f4f5; } - .components-panel__header.edit-post-sidebar-header .components-button.has-icon { - display: none; - margin-left: auto; } - .components-panel__header.edit-post-sidebar-header .components-button.has-icon ~ .components-button { - margin-left: 0; } - @media (min-width: 782px) { - .components-panel__header.edit-post-sidebar-header .components-button.has-icon { - display: flex; } } + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } + .components-button.edit-post-sidebar__panel-tab.is-active:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color); } .edit-post-text-editor { position: relative; width: 100%; - padding-top: 44px; } - .edit-post-text-editor .editor-post-title__block textarea { - border: 1px solid #e2e4e7; - margin-bottom: 4px; - padding: 14px; } - .edit-post-text-editor .editor-post-title__block textarea:focus { - border: 1px solid #e2e4e7; } - .edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover, - .edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input { - box-shadow: none; - border-left-width: 1px; } - .edit-post-text-editor .editor-post-title__block textarea:hover, - .edit-post-text-editor .editor-post-title__block.is-selected textarea { - box-shadow: 0 0 0 1px #e2e4e7; } - .edit-post-text-editor .editor-post-permalink { - margin-top: -6px; - box-shadow: none; - border: none; - outline: 1px solid #b5bcc2; } - @media (min-width: 600px) { - .edit-post-text-editor .editor-post-title, - .edit-post-text-editor .editor-post-title__block { - padding: 0; } } - -.edit-post-text-editor__toolbar { - position: absolute; - top: 8px; - left: 0; - right: 0; - height: 36px; - line-height: 36px; - padding: 0 8px 0 16px; - display: flex; } - .edit-post-text-editor__toolbar h2 { - margin: 0 auto 0 0; - font-size: 13px; - color: #555d66; } - .edit-post-text-editor__toolbar .components-button svg { - order: 1; } + background-color: #fff; + flex-grow: 1; } + .edit-post-text-editor .wp-block.editor-post-title { + max-width: none; + line-height: 1.4; } + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input { + font-family: Menlo, Consolas, monaco, monospace; + font-size: 2.5em; + font-weight: normal; } + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { + border: 1px solid #ccc; + margin-bottom: -1px; + padding: 16px; } + @media (min-width: 600px) { + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input { + padding: 24px; } } + .edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus { + border: 1px solid #1e1e1e; } + @media (min-width: 600px) { + .edit-post-text-editor .wp-block.editor-post-title { + padding: 0; } } .edit-post-text-editor__body { - max-width: calc(100% - 32px); - margin-left: 16px; - margin-right: 16px; - padding-top: 40px; } - @media (min-width: 600px) { + width: 100%; + padding: 0 12px 12px 12px; + max-width: 1080px; + margin-left: auto; + margin-right: auto; } + @media (min-width: 960px) { .edit-post-text-editor__body { - max-width: 580px; - margin-left: auto; - margin-right: auto; } } + padding: 16px 24px 96px 24px; + padding: 0 24px 24px 24px; } } + +.edit-post-text-editor__toolbar { + position: -webkit-sticky; + position: sticky; + z-index: 1; + top: 0; + left: 0; + right: 0; + display: flex; + background: rgba(255, 255, 255, 0.8); + padding: 4px 12px; } + @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 { + line-height: 36px; + margin: 0 auto 0 0; + font-size: 13px; + color: #1e1e1e; } + .edit-post-text-editor__toolbar .components-button svg { + order: 1; } .edit-post-visual-editor { position: relative; padding-top: 50px; + background-color: #fff; flex: 1 1 auto; } .edit-post-visual-editor .components-button { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } + 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.is-tertiary { + padding: 6px; } @supports ((position: -webkit-sticky) or (position: sticky)) { .edit-post-visual-editor { flex-basis: 100%; } } @@ -1002,30 +1103,10 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 0; } -.edit-post-visual-editor .block-editor-block-list__block { - margin-left: auto; - margin-right: auto; } - -@media (min-width: 600px) { - .editor-post-title { - padding-left: 58px; - padding-right: 58px; } } - -.edit-post-visual-editor .editor-post-title__block { +.edit-post-visual-editor__post-title-wrapper .editor-post-title { margin-left: auto; margin-right: auto; margin-bottom: 32px; } - .edit-post-visual-editor .editor-post-title__block > div { - margin-left: 0; - margin-right: 0; } - @media (min-width: 600px) { - .edit-post-visual-editor .editor-post-title__block > div { - margin-left: -16px; - margin-right: -16px; } } - -.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="left"]:first-child, -.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="right"]:first-child { - margin-top: 34px; } .edit-post-options-modal__section { margin: 0 0 2rem 0; } @@ -1055,49 +1136,32 @@ body.admin-color-light .edit-post-layout__toogle-publish-panel-button, body.admi .edit-post-options-modal__custom-fields-confirmation-message, .edit-post-options-modal__custom-fields-confirmation-button { max-width: 300px; } } -.edit-post-welcome-guide__page { - display: flex; - flex-direction: column; - justify-content: center; - position: relative; } - @media (min-width: 600px) { - .edit-post-welcome-guide__page { - min-height: 300px; - padding-left: 344px; } } - -.edit-post-welcome-guide__heading { - font-family: "Noto Serif", serif; - font-size: 21px; - line-height: 1.4; - margin: 8px 0; } - -.edit-post-welcome-guide__image { - background: #66c6e4; - border-radius: 4px; - height: 200px; - margin: 8px 0; } - @media (min-width: 600px) { - .edit-post-welcome-guide__image { - position: absolute; - left: 0; - top: 50%; - height: 300px; - width: 320px; - margin-top: -150px; } } - -.edit-post-welcome-guide__text { - font-size: 16px; - line-height: 1.4; - margin: 8px 0; } - -.edit-post-welcome-guide__inserter-icon { - margin: 0 4px; - position: relative; - top: 4px; } - -@media (min-width: 600px) { - .edit-post-welcome-guide { - width: 600px; } } +.edit-post-welcome-guide { + width: 312px; } + .edit-post-welcome-guide__image { + background: #00a0d2; + height: 240px; } + .edit-post-welcome-guide__image__prm-r { + display: none; } + @media (prefers-reduced-motion: reduce) { + .edit-post-welcome-guide__image__prm-r { + display: block; } + .edit-post-welcome-guide__image__prm-np { + display: none; } } + .edit-post-welcome-guide__heading { + font-family: "Noto Serif", serif; + font-size: 24px; + line-height: 1.4; + margin: 0 0 16px 0; + padding: 0 32px; } + .edit-post-welcome-guide__text { + font-size: 13px; + line-height: 1.4; + margin: 0 0 24px 0; + padding: 0 32px; } + .edit-post-welcome-guide__inserter-icon { + margin: 0 4px; + vertical-align: text-top; } /** * Animations @@ -1163,896 +1227,6 @@ body.block-editor-page { .components-modal__frame *::before, .components-modal__frame *::after { box-sizing: inherit; } - .edit-post-header .input-control, - .edit-post-header input[type="text"], - .edit-post-header input[type="search"], - .edit-post-header input[type="radio"], - .edit-post-header input[type="tel"], - .edit-post-header input[type="time"], - .edit-post-header input[type="url"], - .edit-post-header input[type="week"], - .edit-post-header input[type="password"], - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="color"], - .edit-post-header input[type="date"], - .edit-post-header input[type="datetime"], - .edit-post-header input[type="datetime-local"], - .edit-post-header input[type="email"], - .edit-post-header input[type="month"], - .edit-post-header input[type="number"], - .edit-post-header select, - .edit-post-header textarea, - .edit-post-visual-editor .input-control, - .edit-post-visual-editor input[type="text"], - .edit-post-visual-editor input[type="search"], - .edit-post-visual-editor input[type="radio"], - .edit-post-visual-editor input[type="tel"], - .edit-post-visual-editor input[type="time"], - .edit-post-visual-editor input[type="url"], - .edit-post-visual-editor input[type="week"], - .edit-post-visual-editor input[type="password"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="color"], - .edit-post-visual-editor input[type="date"], - .edit-post-visual-editor input[type="datetime"], - .edit-post-visual-editor input[type="datetime-local"], - .edit-post-visual-editor input[type="email"], - .edit-post-visual-editor input[type="month"], - .edit-post-visual-editor input[type="number"], - .edit-post-visual-editor select, - .edit-post-visual-editor textarea, - .edit-post-text-editor .input-control, - .edit-post-text-editor input[type="text"], - .edit-post-text-editor input[type="search"], - .edit-post-text-editor input[type="radio"], - .edit-post-text-editor input[type="tel"], - .edit-post-text-editor input[type="time"], - .edit-post-text-editor input[type="url"], - .edit-post-text-editor input[type="week"], - .edit-post-text-editor input[type="password"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="color"], - .edit-post-text-editor input[type="date"], - .edit-post-text-editor input[type="datetime"], - .edit-post-text-editor input[type="datetime-local"], - .edit-post-text-editor input[type="email"], - .edit-post-text-editor input[type="month"], - .edit-post-text-editor input[type="number"], - .edit-post-text-editor select, - .edit-post-text-editor textarea, - .edit-post-sidebar .input-control, - .edit-post-sidebar input[type="text"], - .edit-post-sidebar input[type="search"], - .edit-post-sidebar input[type="radio"], - .edit-post-sidebar input[type="tel"], - .edit-post-sidebar input[type="time"], - .edit-post-sidebar input[type="url"], - .edit-post-sidebar input[type="week"], - .edit-post-sidebar input[type="password"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="color"], - .edit-post-sidebar input[type="date"], - .edit-post-sidebar input[type="datetime"], - .edit-post-sidebar input[type="datetime-local"], - .edit-post-sidebar input[type="email"], - .edit-post-sidebar input[type="month"], - .edit-post-sidebar input[type="number"], - .edit-post-sidebar select, - .edit-post-sidebar textarea, - .editor-post-publish-panel .input-control, - .editor-post-publish-panel input[type="text"], - .editor-post-publish-panel input[type="search"], - .editor-post-publish-panel input[type="radio"], - .editor-post-publish-panel input[type="tel"], - .editor-post-publish-panel input[type="time"], - .editor-post-publish-panel input[type="url"], - .editor-post-publish-panel input[type="week"], - .editor-post-publish-panel input[type="password"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="color"], - .editor-post-publish-panel input[type="date"], - .editor-post-publish-panel input[type="datetime"], - .editor-post-publish-panel input[type="datetime-local"], - .editor-post-publish-panel input[type="email"], - .editor-post-publish-panel input[type="month"], - .editor-post-publish-panel input[type="number"], - .editor-post-publish-panel select, - .editor-post-publish-panel textarea, - .components-popover .input-control, - .components-popover input[type="text"], - .components-popover input[type="search"], - .components-popover input[type="radio"], - .components-popover input[type="tel"], - .components-popover input[type="time"], - .components-popover input[type="url"], - .components-popover input[type="week"], - .components-popover input[type="password"], - .components-popover input[type="checkbox"], - .components-popover input[type="color"], - .components-popover input[type="date"], - .components-popover input[type="datetime"], - .components-popover input[type="datetime-local"], - .components-popover input[type="email"], - .components-popover input[type="month"], - .components-popover input[type="number"], - .components-popover select, - .components-popover textarea, - .components-modal__frame .input-control, - .components-modal__frame input[type="text"], - .components-modal__frame input[type="search"], - .components-modal__frame input[type="radio"], - .components-modal__frame input[type="tel"], - .components-modal__frame input[type="time"], - .components-modal__frame input[type="url"], - .components-modal__frame input[type="week"], - .components-modal__frame input[type="password"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="color"], - .components-modal__frame input[type="date"], - .components-modal__frame input[type="datetime"], - .components-modal__frame input[type="datetime-local"], - .components-modal__frame input[type="email"], - .components-modal__frame input[type="month"], - .components-modal__frame input[type="number"], - .components-modal__frame select, - .components-modal__frame textarea { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - padding: 6px 8px; - box-shadow: 0 0 0 transparent; - transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #7e8993; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } - @media (prefers-reduced-motion: reduce) { - .edit-post-header .input-control, - .edit-post-header input[type="text"], - .edit-post-header input[type="search"], - .edit-post-header input[type="radio"], - .edit-post-header input[type="tel"], - .edit-post-header input[type="time"], - .edit-post-header input[type="url"], - .edit-post-header input[type="week"], - .edit-post-header input[type="password"], - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="color"], - .edit-post-header input[type="date"], - .edit-post-header input[type="datetime"], - .edit-post-header input[type="datetime-local"], - .edit-post-header input[type="email"], - .edit-post-header input[type="month"], - .edit-post-header input[type="number"], - .edit-post-header select, - .edit-post-header textarea, - .edit-post-visual-editor .input-control, - .edit-post-visual-editor input[type="text"], - .edit-post-visual-editor input[type="search"], - .edit-post-visual-editor input[type="radio"], - .edit-post-visual-editor input[type="tel"], - .edit-post-visual-editor input[type="time"], - .edit-post-visual-editor input[type="url"], - .edit-post-visual-editor input[type="week"], - .edit-post-visual-editor input[type="password"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="color"], - .edit-post-visual-editor input[type="date"], - .edit-post-visual-editor input[type="datetime"], - .edit-post-visual-editor input[type="datetime-local"], - .edit-post-visual-editor input[type="email"], - .edit-post-visual-editor input[type="month"], - .edit-post-visual-editor input[type="number"], - .edit-post-visual-editor select, - .edit-post-visual-editor textarea, - .edit-post-text-editor .input-control, - .edit-post-text-editor input[type="text"], - .edit-post-text-editor input[type="search"], - .edit-post-text-editor input[type="radio"], - .edit-post-text-editor input[type="tel"], - .edit-post-text-editor input[type="time"], - .edit-post-text-editor input[type="url"], - .edit-post-text-editor input[type="week"], - .edit-post-text-editor input[type="password"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="color"], - .edit-post-text-editor input[type="date"], - .edit-post-text-editor input[type="datetime"], - .edit-post-text-editor input[type="datetime-local"], - .edit-post-text-editor input[type="email"], - .edit-post-text-editor input[type="month"], - .edit-post-text-editor input[type="number"], - .edit-post-text-editor select, - .edit-post-text-editor textarea, - .edit-post-sidebar .input-control, - .edit-post-sidebar input[type="text"], - .edit-post-sidebar input[type="search"], - .edit-post-sidebar input[type="radio"], - .edit-post-sidebar input[type="tel"], - .edit-post-sidebar input[type="time"], - .edit-post-sidebar input[type="url"], - .edit-post-sidebar input[type="week"], - .edit-post-sidebar input[type="password"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="color"], - .edit-post-sidebar input[type="date"], - .edit-post-sidebar input[type="datetime"], - .edit-post-sidebar input[type="datetime-local"], - .edit-post-sidebar input[type="email"], - .edit-post-sidebar input[type="month"], - .edit-post-sidebar input[type="number"], - .edit-post-sidebar select, - .edit-post-sidebar textarea, - .editor-post-publish-panel .input-control, - .editor-post-publish-panel input[type="text"], - .editor-post-publish-panel input[type="search"], - .editor-post-publish-panel input[type="radio"], - .editor-post-publish-panel input[type="tel"], - .editor-post-publish-panel input[type="time"], - .editor-post-publish-panel input[type="url"], - .editor-post-publish-panel input[type="week"], - .editor-post-publish-panel input[type="password"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="color"], - .editor-post-publish-panel input[type="date"], - .editor-post-publish-panel input[type="datetime"], - .editor-post-publish-panel input[type="datetime-local"], - .editor-post-publish-panel input[type="email"], - .editor-post-publish-panel input[type="month"], - .editor-post-publish-panel input[type="number"], - .editor-post-publish-panel select, - .editor-post-publish-panel textarea, - .components-popover .input-control, - .components-popover input[type="text"], - .components-popover input[type="search"], - .components-popover input[type="radio"], - .components-popover input[type="tel"], - .components-popover input[type="time"], - .components-popover input[type="url"], - .components-popover input[type="week"], - .components-popover input[type="password"], - .components-popover input[type="checkbox"], - .components-popover input[type="color"], - .components-popover input[type="date"], - .components-popover input[type="datetime"], - .components-popover input[type="datetime-local"], - .components-popover input[type="email"], - .components-popover input[type="month"], - .components-popover input[type="number"], - .components-popover select, - .components-popover textarea, - .components-modal__frame .input-control, - .components-modal__frame input[type="text"], - .components-modal__frame input[type="search"], - .components-modal__frame input[type="radio"], - .components-modal__frame input[type="tel"], - .components-modal__frame input[type="time"], - .components-modal__frame input[type="url"], - .components-modal__frame input[type="week"], - .components-modal__frame input[type="password"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="color"], - .components-modal__frame input[type="date"], - .components-modal__frame input[type="datetime"], - .components-modal__frame input[type="datetime-local"], - .components-modal__frame input[type="email"], - .components-modal__frame input[type="month"], - .components-modal__frame input[type="number"], - .components-modal__frame select, - .components-modal__frame textarea { - transition-duration: 0s; } } - @media (min-width: 600px) { - .edit-post-header .input-control, - .edit-post-header input[type="text"], - .edit-post-header input[type="search"], - .edit-post-header input[type="radio"], - .edit-post-header input[type="tel"], - .edit-post-header input[type="time"], - .edit-post-header input[type="url"], - .edit-post-header input[type="week"], - .edit-post-header input[type="password"], - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="color"], - .edit-post-header input[type="date"], - .edit-post-header input[type="datetime"], - .edit-post-header input[type="datetime-local"], - .edit-post-header input[type="email"], - .edit-post-header input[type="month"], - .edit-post-header input[type="number"], - .edit-post-header select, - .edit-post-header textarea, - .edit-post-visual-editor .input-control, - .edit-post-visual-editor input[type="text"], - .edit-post-visual-editor input[type="search"], - .edit-post-visual-editor input[type="radio"], - .edit-post-visual-editor input[type="tel"], - .edit-post-visual-editor input[type="time"], - .edit-post-visual-editor input[type="url"], - .edit-post-visual-editor input[type="week"], - .edit-post-visual-editor input[type="password"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="color"], - .edit-post-visual-editor input[type="date"], - .edit-post-visual-editor input[type="datetime"], - .edit-post-visual-editor input[type="datetime-local"], - .edit-post-visual-editor input[type="email"], - .edit-post-visual-editor input[type="month"], - .edit-post-visual-editor input[type="number"], - .edit-post-visual-editor select, - .edit-post-visual-editor textarea, - .edit-post-text-editor .input-control, - .edit-post-text-editor input[type="text"], - .edit-post-text-editor input[type="search"], - .edit-post-text-editor input[type="radio"], - .edit-post-text-editor input[type="tel"], - .edit-post-text-editor input[type="time"], - .edit-post-text-editor input[type="url"], - .edit-post-text-editor input[type="week"], - .edit-post-text-editor input[type="password"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="color"], - .edit-post-text-editor input[type="date"], - .edit-post-text-editor input[type="datetime"], - .edit-post-text-editor input[type="datetime-local"], - .edit-post-text-editor input[type="email"], - .edit-post-text-editor input[type="month"], - .edit-post-text-editor input[type="number"], - .edit-post-text-editor select, - .edit-post-text-editor textarea, - .edit-post-sidebar .input-control, - .edit-post-sidebar input[type="text"], - .edit-post-sidebar input[type="search"], - .edit-post-sidebar input[type="radio"], - .edit-post-sidebar input[type="tel"], - .edit-post-sidebar input[type="time"], - .edit-post-sidebar input[type="url"], - .edit-post-sidebar input[type="week"], - .edit-post-sidebar input[type="password"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="color"], - .edit-post-sidebar input[type="date"], - .edit-post-sidebar input[type="datetime"], - .edit-post-sidebar input[type="datetime-local"], - .edit-post-sidebar input[type="email"], - .edit-post-sidebar input[type="month"], - .edit-post-sidebar input[type="number"], - .edit-post-sidebar select, - .edit-post-sidebar textarea, - .editor-post-publish-panel .input-control, - .editor-post-publish-panel input[type="text"], - .editor-post-publish-panel input[type="search"], - .editor-post-publish-panel input[type="radio"], - .editor-post-publish-panel input[type="tel"], - .editor-post-publish-panel input[type="time"], - .editor-post-publish-panel input[type="url"], - .editor-post-publish-panel input[type="week"], - .editor-post-publish-panel input[type="password"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="color"], - .editor-post-publish-panel input[type="date"], - .editor-post-publish-panel input[type="datetime"], - .editor-post-publish-panel input[type="datetime-local"], - .editor-post-publish-panel input[type="email"], - .editor-post-publish-panel input[type="month"], - .editor-post-publish-panel input[type="number"], - .editor-post-publish-panel select, - .editor-post-publish-panel textarea, - .components-popover .input-control, - .components-popover input[type="text"], - .components-popover input[type="search"], - .components-popover input[type="radio"], - .components-popover input[type="tel"], - .components-popover input[type="time"], - .components-popover input[type="url"], - .components-popover input[type="week"], - .components-popover input[type="password"], - .components-popover input[type="checkbox"], - .components-popover input[type="color"], - .components-popover input[type="date"], - .components-popover input[type="datetime"], - .components-popover input[type="datetime-local"], - .components-popover input[type="email"], - .components-popover input[type="month"], - .components-popover input[type="number"], - .components-popover select, - .components-popover textarea, - .components-modal__frame .input-control, - .components-modal__frame input[type="text"], - .components-modal__frame input[type="search"], - .components-modal__frame input[type="radio"], - .components-modal__frame input[type="tel"], - .components-modal__frame input[type="time"], - .components-modal__frame input[type="url"], - .components-modal__frame input[type="week"], - .components-modal__frame input[type="password"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="color"], - .components-modal__frame input[type="date"], - .components-modal__frame input[type="datetime"], - .components-modal__frame input[type="datetime-local"], - .components-modal__frame input[type="email"], - .components-modal__frame input[type="month"], - .components-modal__frame input[type="number"], - .components-modal__frame select, - .components-modal__frame textarea { - font-size: 13px; - /* Override core line-height. To be reviewed. */ - line-height: normal; } } - .edit-post-header .input-control:focus, - .edit-post-header input[type="text"]:focus, - .edit-post-header input[type="search"]:focus, - .edit-post-header input[type="radio"]:focus, - .edit-post-header input[type="tel"]:focus, - .edit-post-header input[type="time"]:focus, - .edit-post-header input[type="url"]:focus, - .edit-post-header input[type="week"]:focus, - .edit-post-header input[type="password"]:focus, - .edit-post-header input[type="checkbox"]:focus, - .edit-post-header input[type="color"]:focus, - .edit-post-header input[type="date"]:focus, - .edit-post-header input[type="datetime"]:focus, - .edit-post-header input[type="datetime-local"]:focus, - .edit-post-header input[type="email"]:focus, - .edit-post-header input[type="month"]:focus, - .edit-post-header input[type="number"]:focus, - .edit-post-header select:focus, - .edit-post-header textarea:focus, - .edit-post-visual-editor .input-control:focus, - .edit-post-visual-editor input[type="text"]:focus, - .edit-post-visual-editor input[type="search"]:focus, - .edit-post-visual-editor input[type="radio"]:focus, - .edit-post-visual-editor input[type="tel"]:focus, - .edit-post-visual-editor input[type="time"]:focus, - .edit-post-visual-editor input[type="url"]:focus, - .edit-post-visual-editor input[type="week"]:focus, - .edit-post-visual-editor input[type="password"]:focus, - .edit-post-visual-editor input[type="checkbox"]:focus, - .edit-post-visual-editor input[type="color"]:focus, - .edit-post-visual-editor input[type="date"]:focus, - .edit-post-visual-editor input[type="datetime"]:focus, - .edit-post-visual-editor input[type="datetime-local"]:focus, - .edit-post-visual-editor input[type="email"]:focus, - .edit-post-visual-editor input[type="month"]:focus, - .edit-post-visual-editor input[type="number"]:focus, - .edit-post-visual-editor select:focus, - .edit-post-visual-editor textarea:focus, - .edit-post-text-editor .input-control:focus, - .edit-post-text-editor input[type="text"]:focus, - .edit-post-text-editor input[type="search"]:focus, - .edit-post-text-editor input[type="radio"]:focus, - .edit-post-text-editor input[type="tel"]:focus, - .edit-post-text-editor input[type="time"]:focus, - .edit-post-text-editor input[type="url"]:focus, - .edit-post-text-editor input[type="week"]:focus, - .edit-post-text-editor input[type="password"]:focus, - .edit-post-text-editor input[type="checkbox"]:focus, - .edit-post-text-editor input[type="color"]:focus, - .edit-post-text-editor input[type="date"]:focus, - .edit-post-text-editor input[type="datetime"]:focus, - .edit-post-text-editor input[type="datetime-local"]:focus, - .edit-post-text-editor input[type="email"]:focus, - .edit-post-text-editor input[type="month"]:focus, - .edit-post-text-editor input[type="number"]:focus, - .edit-post-text-editor select:focus, - .edit-post-text-editor textarea:focus, - .edit-post-sidebar .input-control:focus, - .edit-post-sidebar input[type="text"]:focus, - .edit-post-sidebar input[type="search"]:focus, - .edit-post-sidebar input[type="radio"]:focus, - .edit-post-sidebar input[type="tel"]:focus, - .edit-post-sidebar input[type="time"]:focus, - .edit-post-sidebar input[type="url"]:focus, - .edit-post-sidebar input[type="week"]:focus, - .edit-post-sidebar input[type="password"]:focus, - .edit-post-sidebar input[type="checkbox"]:focus, - .edit-post-sidebar input[type="color"]:focus, - .edit-post-sidebar input[type="date"]:focus, - .edit-post-sidebar input[type="datetime"]:focus, - .edit-post-sidebar input[type="datetime-local"]:focus, - .edit-post-sidebar input[type="email"]:focus, - .edit-post-sidebar input[type="month"]:focus, - .edit-post-sidebar input[type="number"]:focus, - .edit-post-sidebar select:focus, - .edit-post-sidebar textarea:focus, - .editor-post-publish-panel .input-control:focus, - .editor-post-publish-panel input[type="text"]:focus, - .editor-post-publish-panel input[type="search"]:focus, - .editor-post-publish-panel input[type="radio"]:focus, - .editor-post-publish-panel input[type="tel"]:focus, - .editor-post-publish-panel input[type="time"]:focus, - .editor-post-publish-panel input[type="url"]:focus, - .editor-post-publish-panel input[type="week"]:focus, - .editor-post-publish-panel input[type="password"]:focus, - .editor-post-publish-panel input[type="checkbox"]:focus, - .editor-post-publish-panel input[type="color"]:focus, - .editor-post-publish-panel input[type="date"]:focus, - .editor-post-publish-panel input[type="datetime"]:focus, - .editor-post-publish-panel input[type="datetime-local"]:focus, - .editor-post-publish-panel input[type="email"]:focus, - .editor-post-publish-panel input[type="month"]:focus, - .editor-post-publish-panel input[type="number"]:focus, - .editor-post-publish-panel select:focus, - .editor-post-publish-panel textarea:focus, - .components-popover .input-control:focus, - .components-popover input[type="text"]:focus, - .components-popover input[type="search"]:focus, - .components-popover input[type="radio"]:focus, - .components-popover input[type="tel"]:focus, - .components-popover input[type="time"]:focus, - .components-popover input[type="url"]:focus, - .components-popover input[type="week"]:focus, - .components-popover input[type="password"]:focus, - .components-popover input[type="checkbox"]:focus, - .components-popover input[type="color"]:focus, - .components-popover input[type="date"]:focus, - .components-popover input[type="datetime"]:focus, - .components-popover input[type="datetime-local"]:focus, - .components-popover input[type="email"]:focus, - .components-popover input[type="month"]:focus, - .components-popover input[type="number"]:focus, - .components-popover select:focus, - .components-popover textarea:focus, - .components-modal__frame .input-control:focus, - .components-modal__frame input[type="text"]:focus, - .components-modal__frame input[type="search"]:focus, - .components-modal__frame input[type="radio"]:focus, - .components-modal__frame input[type="tel"]:focus, - .components-modal__frame input[type="time"]:focus, - .components-modal__frame input[type="url"]:focus, - .components-modal__frame input[type="week"]:focus, - .components-modal__frame input[type="password"]:focus, - .components-modal__frame input[type="checkbox"]:focus, - .components-modal__frame input[type="color"]:focus, - .components-modal__frame input[type="date"]:focus, - .components-modal__frame input[type="datetime"]:focus, - .components-modal__frame input[type="datetime-local"]:focus, - .components-modal__frame input[type="email"]:focus, - .components-modal__frame input[type="month"]:focus, - .components-modal__frame input[type="number"]:focus, - .components-modal__frame select:focus, - .components-modal__frame textarea:focus { - color: #191e23; - border-color: #007cba; - box-shadow: 0 0 0 1px #007cba; - outline: 2px solid transparent; } - .edit-post-header input[type="number"], - .edit-post-visual-editor input[type="number"], - .edit-post-text-editor input[type="number"], - .edit-post-sidebar input[type="number"], - .editor-post-publish-panel input[type="number"], - .components-popover input[type="number"], - .components-modal__frame input[type="number"] { - padding-left: 4px; - padding-right: 4px; } - .edit-post-header select, - .edit-post-visual-editor select, - .edit-post-text-editor select, - .edit-post-sidebar select, - .editor-post-publish-panel select, - .components-popover select, - .components-modal__frame select { - padding: 3px 24px 3px 8px; - font-size: 13px; - color: #555d66; } - .edit-post-header select:focus, - .edit-post-visual-editor select:focus, - .edit-post-text-editor select:focus, - .edit-post-sidebar select:focus, - .editor-post-publish-panel select:focus, - .components-popover select:focus, - .components-modal__frame select:focus { - border-color: #008dbe; - outline: 2px solid transparent; - outline-offset: 0; } - .edit-post-header input[type="checkbox"], - .edit-post-header input[type="radio"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-visual-editor input[type="radio"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-text-editor input[type="radio"], - .edit-post-sidebar input[type="checkbox"], - .edit-post-sidebar input[type="radio"], - .editor-post-publish-panel input[type="checkbox"], - .editor-post-publish-panel input[type="radio"], - .components-popover input[type="checkbox"], - .components-popover input[type="radio"], - .components-modal__frame input[type="checkbox"], - .components-modal__frame input[type="radio"] { - border: 2px solid #6c7781; - margin-right: 12px; - transition: none; } - .edit-post-header input[type="checkbox"]:focus, - .edit-post-header input[type="radio"]:focus, - .edit-post-visual-editor input[type="checkbox"]:focus, - .edit-post-visual-editor input[type="radio"]:focus, - .edit-post-text-editor input[type="checkbox"]:focus, - .edit-post-text-editor input[type="radio"]:focus, - .edit-post-sidebar input[type="checkbox"]:focus, - .edit-post-sidebar input[type="radio"]:focus, - .editor-post-publish-panel input[type="checkbox"]:focus, - .editor-post-publish-panel input[type="radio"]:focus, - .components-popover input[type="checkbox"]:focus, - .components-popover input[type="radio"]:focus, - .components-modal__frame input[type="checkbox"]:focus, - .components-modal__frame input[type="radio"]:focus { - border-color: #6c7781; - box-shadow: 0 0 0 1px #6c7781; } - .edit-post-header input[type="checkbox"]:checked, - .edit-post-header input[type="radio"]:checked, - .edit-post-visual-editor input[type="checkbox"]:checked, - .edit-post-visual-editor input[type="radio"]:checked, - .edit-post-text-editor input[type="checkbox"]:checked, - .edit-post-text-editor input[type="radio"]:checked, - .edit-post-sidebar input[type="checkbox"]:checked, - .edit-post-sidebar input[type="radio"]:checked, - .editor-post-publish-panel input[type="checkbox"]:checked, - .editor-post-publish-panel input[type="radio"]:checked, - .components-popover input[type="checkbox"]:checked, - .components-popover input[type="radio"]:checked, - .components-modal__frame input[type="checkbox"]:checked, - .components-modal__frame input[type="radio"]:checked { - background: #11a0d2; - border-color: #11a0d2; } - body.admin-color-sunrise .edit-post-header input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-header input[type="radio"]:checked, body.admin-color-sunrise .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-sunrise .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-text-editor input[type="radio"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="radio"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-sunrise .components-popover input[type="checkbox"]:checked, body.admin-color-sunrise .components-popover input[type="radio"]:checked, body.admin-color-sunrise .components-modal__frame input[type="checkbox"]:checked, body.admin-color-sunrise .components-modal__frame input[type="radio"]:checked { - background: #c8b03c; - border-color: #c8b03c; } - body.admin-color-ocean .edit-post-header input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-header input[type="radio"]:checked, body.admin-color-ocean .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-ocean .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-text-editor input[type="radio"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ocean .components-popover input[type="checkbox"]:checked, body.admin-color-ocean .components-popover input[type="radio"]:checked, body.admin-color-ocean .components-modal__frame input[type="checkbox"]:checked, body.admin-color-ocean .components-modal__frame input[type="radio"]:checked { - background: #a3b9a2; - border-color: #a3b9a2; } - body.admin-color-midnight .edit-post-header input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-header input[type="radio"]:checked, body.admin-color-midnight .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-midnight .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-text-editor input[type="radio"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="radio"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-midnight .components-popover input[type="checkbox"]:checked, body.admin-color-midnight .components-popover input[type="radio"]:checked, body.admin-color-midnight .components-modal__frame input[type="checkbox"]:checked, body.admin-color-midnight .components-modal__frame input[type="radio"]:checked { - background: #77a6b9; - border-color: #77a6b9; } - body.admin-color-ectoplasm .edit-post-header input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-header input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-text-editor input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ectoplasm .components-popover input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-popover input[type="radio"]:checked, body.admin-color-ectoplasm .components-modal__frame input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-modal__frame input[type="radio"]:checked { - background: #a7b656; - border-color: #a7b656; } - body.admin-color-coffee .edit-post-header input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-header input[type="radio"]:checked, body.admin-color-coffee .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-coffee .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-text-editor input[type="radio"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="radio"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-coffee .components-popover input[type="checkbox"]:checked, body.admin-color-coffee .components-popover input[type="radio"]:checked, body.admin-color-coffee .components-modal__frame input[type="checkbox"]:checked, body.admin-color-coffee .components-modal__frame input[type="radio"]:checked { - background: #c2a68c; - border-color: #c2a68c; } - body.admin-color-blue .edit-post-header input[type="checkbox"]:checked, body.admin-color-blue .edit-post-header input[type="radio"]:checked, body.admin-color-blue .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-blue .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-blue .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-blue .edit-post-text-editor input[type="radio"]:checked, body.admin-color-blue .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-blue .edit-post-sidebar input[type="radio"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-blue .components-popover input[type="checkbox"]:checked, body.admin-color-blue .components-popover input[type="radio"]:checked, body.admin-color-blue .components-modal__frame input[type="checkbox"]:checked, body.admin-color-blue .components-modal__frame input[type="radio"]:checked { - background: #82b4cb; - border-color: #82b4cb; } - body.admin-color-light .edit-post-header input[type="checkbox"]:checked, body.admin-color-light .edit-post-header input[type="radio"]:checked, body.admin-color-light .edit-post-visual-editor input[type="checkbox"]:checked, body.admin-color-light .edit-post-visual-editor input[type="radio"]:checked, body.admin-color-light .edit-post-text-editor input[type="checkbox"]:checked, body.admin-color-light .edit-post-text-editor input[type="radio"]:checked, body.admin-color-light .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-light .edit-post-sidebar input[type="radio"]:checked, body.admin-color-light .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-light .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-light .components-popover input[type="checkbox"]:checked, body.admin-color-light .components-popover input[type="radio"]:checked, body.admin-color-light .components-modal__frame input[type="checkbox"]:checked, body.admin-color-light .components-modal__frame input[type="radio"]:checked { - background: #11a0d2; - border-color: #11a0d2; } - .edit-post-header input[type="checkbox"]:checked:focus, - .edit-post-header input[type="radio"]:checked:focus, - .edit-post-visual-editor input[type="checkbox"]:checked:focus, - .edit-post-visual-editor input[type="radio"]:checked:focus, - .edit-post-text-editor input[type="checkbox"]:checked:focus, - .edit-post-text-editor input[type="radio"]:checked:focus, - .edit-post-sidebar input[type="checkbox"]:checked:focus, - .edit-post-sidebar input[type="radio"]:checked:focus, - .editor-post-publish-panel input[type="checkbox"]:checked:focus, - .editor-post-publish-panel input[type="radio"]:checked:focus, - .components-popover input[type="checkbox"]:checked:focus, - .components-popover input[type="radio"]:checked:focus, - .components-modal__frame input[type="checkbox"]:checked:focus, - .components-modal__frame input[type="radio"]:checked:focus { - box-shadow: 0 0 0 2px #555d66; } - .edit-post-header input[type="checkbox"], - .edit-post-visual-editor input[type="checkbox"], - .edit-post-text-editor input[type="checkbox"], - .edit-post-sidebar input[type="checkbox"], - .editor-post-publish-panel input[type="checkbox"], - .components-popover input[type="checkbox"], - .components-modal__frame input[type="checkbox"] { - border-radius: 2px; } - .edit-post-header input[type="checkbox"]:checked::before, .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"]:checked::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"]:checked::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"]:checked::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"]:checked::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"]:checked::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"]:checked::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - margin: -3px -5px; - color: #fff; } - @media (min-width: 782px) { - .edit-post-header input[type="checkbox"]:checked::before, .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"]:checked::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"]:checked::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"]:checked::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"]:checked::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"]:checked::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"]:checked::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - margin: -4px 0 0 -5px; } } - .edit-post-header input[type="checkbox"][aria-checked="mixed"], - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], - .components-popover input[type="checkbox"][aria-checked="mixed"], - .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #11a0d2; - border-color: #11a0d2; } - body.admin-color-sunrise .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #c8b03c; - border-color: #c8b03c; } - body.admin-color-ocean .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #a3b9a2; - border-color: #a3b9a2; } - body.admin-color-midnight .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #77a6b9; - border-color: #77a6b9; } - body.admin-color-ectoplasm .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #a7b656; - border-color: #a7b656; } - body.admin-color-coffee .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #c2a68c; - border-color: #c2a68c; } - body.admin-color-blue .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #82b4cb; - border-color: #82b4cb; } - body.admin-color-light .edit-post-header input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-modal__frame input[type="checkbox"][aria-checked="mixed"] { - background: #11a0d2; - border-color: #11a0d2; } - .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - content: "\f460"; - float: left; - display: inline-block; - vertical-align: middle; - width: 16px; - /* stylelint-disable */ - font: normal 30px/1 dashicons; - /* stylelint-enable */ - speak: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; } - @media (min-width: 782px) { - .edit-post-header input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]::before, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, - .components-popover input[type="checkbox"][aria-checked="mixed"]::before, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]::before { - float: none; - font-size: 21px; } } - .edit-post-header input[type="checkbox"][aria-checked="mixed"]:focus, - .edit-post-visual-editor input[type="checkbox"][aria-checked="mixed"]:focus, - .edit-post-text-editor input[type="checkbox"][aria-checked="mixed"]:focus, - .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]:focus, - .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]:focus, - .components-popover input[type="checkbox"][aria-checked="mixed"]:focus, - .components-modal__frame input[type="checkbox"][aria-checked="mixed"]:focus { - box-shadow: 0 0 0 2px #555d66; } - .edit-post-header input[type="radio"], - .edit-post-visual-editor input[type="radio"], - .edit-post-text-editor input[type="radio"], - .edit-post-sidebar input[type="radio"], - .editor-post-publish-panel input[type="radio"], - .components-popover input[type="radio"], - .components-modal__frame input[type="radio"] { - border-radius: 50%; } - .edit-post-header input[type="radio"]:checked::before, - .edit-post-visual-editor input[type="radio"]:checked::before, - .edit-post-text-editor input[type="radio"]:checked::before, - .edit-post-sidebar input[type="radio"]:checked::before, - .editor-post-publish-panel input[type="radio"]:checked::before, - .components-popover input[type="radio"]:checked::before, - .components-modal__frame input[type="radio"]:checked::before { - width: 6px; - height: 6px; - margin: 6px 0 0 6px; - background-color: #fff; } - @media (min-width: 782px) { - .edit-post-header input[type="radio"]:checked::before, - .edit-post-visual-editor input[type="radio"]:checked::before, - .edit-post-text-editor input[type="radio"]:checked::before, - .edit-post-sidebar input[type="radio"]:checked::before, - .editor-post-publish-panel input[type="radio"]:checked::before, - .components-popover input[type="radio"]:checked::before, - .components-modal__frame input[type="radio"]:checked::before { - margin: 3px 0 0 3px; } } - .edit-post-header input::-webkit-input-placeholder, - .edit-post-header textarea::-webkit-input-placeholder, - .edit-post-visual-editor input::-webkit-input-placeholder, - .edit-post-visual-editor textarea::-webkit-input-placeholder, - .edit-post-text-editor input::-webkit-input-placeholder, - .edit-post-text-editor textarea::-webkit-input-placeholder, - .edit-post-sidebar input::-webkit-input-placeholder, - .edit-post-sidebar textarea::-webkit-input-placeholder, - .editor-post-publish-panel input::-webkit-input-placeholder, - .editor-post-publish-panel textarea::-webkit-input-placeholder, - .components-popover input::-webkit-input-placeholder, - .components-popover textarea::-webkit-input-placeholder, - .components-modal__frame input::-webkit-input-placeholder, - .components-modal__frame textarea::-webkit-input-placeholder { - color: rgba(14, 28, 46, 0.62); } - .edit-post-header input::-moz-placeholder, - .edit-post-header textarea::-moz-placeholder, - .edit-post-visual-editor input::-moz-placeholder, - .edit-post-visual-editor textarea::-moz-placeholder, - .edit-post-text-editor input::-moz-placeholder, - .edit-post-text-editor textarea::-moz-placeholder, - .edit-post-sidebar input::-moz-placeholder, - .edit-post-sidebar textarea::-moz-placeholder, - .editor-post-publish-panel input::-moz-placeholder, - .editor-post-publish-panel textarea::-moz-placeholder, - .components-popover input::-moz-placeholder, - .components-popover textarea::-moz-placeholder, - .components-modal__frame input::-moz-placeholder, - .components-modal__frame textarea::-moz-placeholder { - opacity: 1; - color: rgba(14, 28, 46, 0.62); } - .edit-post-header input:-ms-input-placeholder, - .edit-post-header textarea:-ms-input-placeholder, - .edit-post-visual-editor input:-ms-input-placeholder, - .edit-post-visual-editor textarea:-ms-input-placeholder, - .edit-post-text-editor input:-ms-input-placeholder, - .edit-post-text-editor textarea:-ms-input-placeholder, - .edit-post-sidebar input:-ms-input-placeholder, - .edit-post-sidebar textarea:-ms-input-placeholder, - .editor-post-publish-panel input:-ms-input-placeholder, - .editor-post-publish-panel textarea:-ms-input-placeholder, - .components-popover input:-ms-input-placeholder, - .components-popover textarea:-ms-input-placeholder, - .components-modal__frame input:-ms-input-placeholder, - .components-modal__frame textarea:-ms-input-placeholder { - color: rgba(14, 28, 46, 0.62); } - .is-dark-theme .edit-post-header input::-webkit-input-placeholder, .is-dark-theme - .edit-post-header textarea::-webkit-input-placeholder, .is-dark-theme - .edit-post-visual-editor input::-webkit-input-placeholder, .is-dark-theme - .edit-post-visual-editor textarea::-webkit-input-placeholder, .is-dark-theme - .edit-post-text-editor input::-webkit-input-placeholder, .is-dark-theme - .edit-post-text-editor textarea::-webkit-input-placeholder, .is-dark-theme - .edit-post-sidebar input::-webkit-input-placeholder, .is-dark-theme - .edit-post-sidebar textarea::-webkit-input-placeholder, .is-dark-theme - .editor-post-publish-panel input::-webkit-input-placeholder, .is-dark-theme - .editor-post-publish-panel textarea::-webkit-input-placeholder, .is-dark-theme - .components-popover input::-webkit-input-placeholder, .is-dark-theme - .components-popover textarea::-webkit-input-placeholder, .is-dark-theme - .components-modal__frame input::-webkit-input-placeholder, .is-dark-theme - .components-modal__frame textarea::-webkit-input-placeholder { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .edit-post-header input::-moz-placeholder, .is-dark-theme - .edit-post-header textarea::-moz-placeholder, .is-dark-theme - .edit-post-visual-editor input::-moz-placeholder, .is-dark-theme - .edit-post-visual-editor textarea::-moz-placeholder, .is-dark-theme - .edit-post-text-editor input::-moz-placeholder, .is-dark-theme - .edit-post-text-editor textarea::-moz-placeholder, .is-dark-theme - .edit-post-sidebar input::-moz-placeholder, .is-dark-theme - .edit-post-sidebar textarea::-moz-placeholder, .is-dark-theme - .editor-post-publish-panel input::-moz-placeholder, .is-dark-theme - .editor-post-publish-panel textarea::-moz-placeholder, .is-dark-theme - .components-popover input::-moz-placeholder, .is-dark-theme - .components-popover textarea::-moz-placeholder, .is-dark-theme - .components-modal__frame input::-moz-placeholder, .is-dark-theme - .components-modal__frame textarea::-moz-placeholder { - opacity: 1; - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .edit-post-header input:-ms-input-placeholder, .is-dark-theme - .edit-post-header textarea:-ms-input-placeholder, .is-dark-theme - .edit-post-visual-editor input:-ms-input-placeholder, .is-dark-theme - .edit-post-visual-editor textarea:-ms-input-placeholder, .is-dark-theme - .edit-post-text-editor input:-ms-input-placeholder, .is-dark-theme - .edit-post-text-editor textarea:-ms-input-placeholder, .is-dark-theme - .edit-post-sidebar input:-ms-input-placeholder, .is-dark-theme - .edit-post-sidebar textarea:-ms-input-placeholder, .is-dark-theme - .editor-post-publish-panel input:-ms-input-placeholder, .is-dark-theme - .editor-post-publish-panel textarea:-ms-input-placeholder, .is-dark-theme - .components-popover input:-ms-input-placeholder, .is-dark-theme - .components-popover textarea:-ms-input-placeholder, .is-dark-theme - .components-modal__frame input:-ms-input-placeholder, .is-dark-theme - .components-modal__frame textarea:-ms-input-placeholder { - color: rgba(255, 255, 255, 0.65); } @media (min-width: 600px) { .block-editor__container { @@ -2085,3 +1259,38 @@ body.block-editor-page { max-width: 1100px; } .wp-block[data-align="full"] { max-width: none; } + +body.admin-color-light { + --wp-admin-theme-color: #0085ba; + --wp-admin-theme-color-darker-10: #0073a1; + --wp-admin-theme-color-darker-20: #006187; } + +body.admin-color-blue { + --wp-admin-theme-color: #096484; + --wp-admin-theme-color-darker-10: #07526c; + --wp-admin-theme-color-darker-20: #064054; } + +body.admin-color-coffee { + --wp-admin-theme-color: #46403c; + --wp-admin-theme-color-darker-10: #383330; + --wp-admin-theme-color-darker-20: #2b2724; } + +body.admin-color-ectoplasm { + --wp-admin-theme-color: #523f6d; + --wp-admin-theme-color-darker-10: #46365d; + --wp-admin-theme-color-darker-20: #3a2c4d; } + +body.admin-color-midnight { + --wp-admin-theme-color: #e14d43; + --wp-admin-theme-color-darker-10: #dd382d; + --wp-admin-theme-color-darker-20: #d02c21; } + +body.admin-color-ocean { + --wp-admin-theme-color: #627c83; + --wp-admin-theme-color-darker-10: #576e74; + --wp-admin-theme-color-darker-20: #4c6066; } + +body.admin-color-sunrise { + --wp-admin-theme-color: #dd823b; + --wp-admin-theme-color-darker-10: #d97426; + --wp-admin-theme-color-darker-20: #c36922; } diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css index e60f984553..202ad52324 100644 --- a/wp-includes/css/dist/edit-post/style.min.css +++ b/wp-includes/css/dist/edit-post/style.min.css @@ -1 +1 @@ -@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-46px;height:calc(100% + 46px)}}@media (min-width:782px) and (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}}@media (min-width:782px){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}body.js.is-fullscreen-mode .edit-post-header{transform:translateY(-100%);animation:edit-post-fullscreen-mode__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){body.js.is-fullscreen-mode .edit-post-header{animation-duration:1ms}}@keyframes edit-post-fullscreen-mode__slide-in-animation{to{transform:translateY(0)}}.edit-post-header{height:56px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-left:16px}.edit-post-header__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:8px}.edit-post-header .components-button.is-pressed{color:#fff;background:#555d66}.edit-post-header .components-button.is-pressed:focus,.edit-post-header .components-button.is-pressed:hover{box-shadow:0 0 0 1px #555d66,inset 0 0 0 1px #fff!important;color:#fff!important;background:#555d66!important}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle,.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{margin:2px;font-size:13px}.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 12px}}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding-left:5px;padding-right:5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding-left:12px;padding-right:12px}}@media (min-width:782px){.edit-post-header .components-button.editor-post-preview{margin:0 3px 0 12px}.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{margin:0 12px 0 3px}}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:56px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d!important;color:#fff!important;box-shadow:none!important}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}}.edit-post-fullscreen-mode-close.has-icon svg{margin-left:auto;margin-right:auto}.edit-post-header-toolbar{display:inline-flex;align-items:center}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:flex}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:57px;left:0;right:0;background:#fff;min-height:37px;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none;min-height:auto}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{margin:-9px 0}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{padding:10px 4px 9px}}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:4px}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu .components-button svg{transform:rotate(90deg)}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-pinned-plugins{display:none}@media (min-width:600px){.edit-post-pinned-plugins{display:flex}}.edit-post-pinned-plugins .components-button{margin-left:4px}.edit-post-pinned-plugins .components-button.is-pressed{margin-left:5px}.edit-post-pinned-plugins .components-button svg{max-width:24px;max-height:24px}.edit-post-pinned-plugins .components-button:not(.is-pressed) svg,.edit-post-pinned-plugins .components-button:not(.is-pressed) svg *{stroke:#555d66;fill:#555d66;stroke-width:0}.edit-post-pinned-plugins .components-button.is-pressed:hover svg,.edit-post-pinned-plugins .components-button.is-pressed:hover svg *,.edit-post-pinned-plugins .components-button.is-pressed svg,.edit-post-pinned-plugins .components-button.is-pressed svg *{stroke:#fff!important;fill:#fff!important;stroke-width:0}.edit-post-pinned-plugins .components-button:hover svg,.edit-post-pinned-plugins .components-button:hover svg *{stroke:#191e23!important;fill:#191e23!important;stroke-width:0}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #e2e4e7;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #e2e4e7}.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;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;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{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;right:0;bottom:20px;padding-left:16px;padding-right:16px;left:0}@media (min-width:782px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:782px){.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:782px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-left:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #e2e4e7;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.block-editor-editor-skeleton__sidebar>div{height:100%}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toogle-publish-panel,.edit-post-layout__toogle-sidebar-panel{background-color:#fff;padding:10px 10px 10px 0}.edit-post-layout__toogle-publish-panel-button,.edit-post-layout__toogle-sidebar-panel-button{width:auto;height:auto;display:block;font-size:14px;font-weight:600;margin:0 0 0 auto;padding:15px 23px 14px;line-height:normal;text-decoration:none;outline:none;background:#f1f1f1;color:#11a0d2}body.admin-color-sunrise .edit-post-layout__toogle-publish-panel-button,body.admin-color-sunrise .edit-post-layout__toogle-sidebar-panel-button{color:#c8b03c}body.admin-color-ocean .edit-post-layout__toogle-publish-panel-button,body.admin-color-ocean .edit-post-layout__toogle-sidebar-panel-button{color:#a89d8a}body.admin-color-midnight .edit-post-layout__toogle-publish-panel-button,body.admin-color-midnight .edit-post-layout__toogle-sidebar-panel-button{color:#77a6b9}body.admin-color-ectoplasm .edit-post-layout__toogle-publish-panel-button,body.admin-color-ectoplasm .edit-post-layout__toogle-sidebar-panel-button{color:#c77430}body.admin-color-coffee .edit-post-layout__toogle-publish-panel-button,body.admin-color-coffee .edit-post-layout__toogle-sidebar-panel-button{color:#9fa47b}body.admin-color-blue .edit-post-layout__toogle-publish-panel-button,body.admin-color-blue .edit-post-layout__toogle-sidebar-panel-button{color:#d9ab59}body.admin-color-light .edit-post-layout__toogle-publish-panel-button,body.admin-color-light .edit-post-layout__toogle-sidebar-panel-button{color:#c75726}.edit-post-layout__toogle-publish-panel-button:focus,.edit-post-layout__toogle-sidebar-panel-button:focus{position:fixed;top:auto;right:10px;bottom:10px;left:auto}.edit-post-layout__footer{display:none;z-index:30}@media (min-width:782px){.edit-post-layout__footer{display:flex;background:#fff;height:24px;padding:0 8px;align-items:center;font-size:13px}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 112px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:12px;border-radius:4px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #e2e4e7;margin-left:-24px;margin-right:-24px;padding:.6rem 24px;background-color:#f3f4f5}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-right:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-top:1px solid #e2e4e7}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;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 #6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#6c7781}.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-sidebar{background:#fff;color:#555d66;overflow:visible}@media (min-width:600px){.edit-post-sidebar{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.edit-post-sidebar{width:280px}}.edit-post-sidebar>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 96px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.edit-post-sidebar>.components-panel{overflow:visible;height:auto;max-height:none}}.edit-post-sidebar>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:50px}@media (min-width:600px){.edit-post-sidebar>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.edit-post-sidebar p{margin-top:0}.edit-post-sidebar h2,.edit-post-sidebar h3{font-size:13px;color:#555d66;margin-bottom:1.5em}.edit-post-sidebar hr{border-top:none;border-bottom:1px solid #e2e4e7;margin:1.5em 0}.edit-post-sidebar div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.edit-post-sidebar div.components-toolbar:last-child{margin-bottom:0}.edit-post-sidebar p+div.components-toolbar{margin-top:-1em}.edit-post-sidebar .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}.components-panel__header.edit-post-sidebar__header{background:#fff;padding-right:8px}.components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar__header{display:none}}.components-panel__header.edit-post-sidebar__panel-tabs{margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;margin-left:auto}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;height:50px;padding:3px 15px;margin-left:0;font-weight:400;outline-offset:-1px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.edit-post-sidebar__panel-tab{transition-duration:0s}}.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:3px solid transparent}.edit-post-sidebar__panel-tab:focus:not(:disabled){color:#191e23;outline-offset:-1px;outline:1px dotted #555d66;box-shadow:none}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0}.editor-post-last-revision__title{padding:13px 16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{margin:0}.edit-post-post-link__link{text-align:left;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative}.components-button.edit-post-post-schedule__toggle{text-align:right}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}.edit-post-post-visibility__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:4px;border-top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:400;color:#191e23;outline-offset:-1px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab{transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:3px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{background-color:transparent;color:#191e23;outline-offset:-1px;outline:1px dotted #555d66}.components-panel__header.edit-post-sidebar-header__small{background:#fff;padding-right:4px}.components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header__small{display:none}}.components-panel__header.edit-post-sidebar-header{padding-right:4px;background:#f3f4f5}.components-panel__header.edit-post-sidebar-header .components-button.has-icon{display:none;margin-left:auto}.components-panel__header.edit-post-sidebar-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header .components-button.has-icon{display:flex}}.edit-post-text-editor{position:relative;width:100%;padding-top:44px}.edit-post-text-editor .editor-post-title__block textarea{border:1px solid #e2e4e7;margin-bottom:4px;padding:14px}.edit-post-text-editor .editor-post-title__block textarea:focus{border:1px solid #e2e4e7}.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input,.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover{box-shadow:none;border-left-width:1px}.edit-post-text-editor .editor-post-title__block.is-selected textarea,.edit-post-text-editor .editor-post-title__block textarea:hover{box-shadow:0 0 0 1px #e2e4e7}.edit-post-text-editor .editor-post-permalink{margin-top:-6px;box-shadow:none;border:none;outline:1px solid #b5bcc2}@media (min-width:600px){.edit-post-text-editor .editor-post-title,.edit-post-text-editor .editor-post-title__block{padding:0}}.edit-post-text-editor__toolbar{position:absolute;top:8px;left:0;right:0;height:36px;line-height:36px;padding:0 8px 0 16px;display:flex}.edit-post-text-editor__toolbar h2{margin:0 auto 0 0;font-size:13px;color:#555d66}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-text-editor__body{max-width:calc(100% - 32px);margin-left:16px;margin-right:16px;padding-top:40px}@media (min-width:600px){.edit-post-text-editor__body{max-width:580px;margin-left:auto;margin-right:auto}}.edit-post-visual-editor{position:relative;padding-top:50px;flex:1 1 auto}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor .block-editor-block-list__block{margin-left:auto;margin-right:auto}@media (min-width:600px){.editor-post-title{padding-left:58px;padding-right:58px}}.edit-post-visual-editor .editor-post-title__block{margin-left:auto;margin-right:auto;margin-bottom:32px}.edit-post-visual-editor .editor-post-title__block>div{margin-left:0;margin-right:0}@media (min-width:600px){.edit-post-visual-editor .editor-post-title__block>div{margin-left:-16px;margin-right:-16px}}.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=left]:first-child,.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=right]:first-child{margin-top:34px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 0 .6rem 48px}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-left:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.edit-post-welcome-guide__page{min-height:300px;padding-left:344px}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:21px;line-height:1.4;margin:8px 0}.edit-post-welcome-guide__image{background:#66c6e4;border-radius:4px;height:200px;margin:8px 0}@media (min-width:600px){.edit-post-welcome-guide__image{position:absolute;left:0;top:50%;height:300px;width:320px;margin-top:-150px}}.edit-post-welcome-guide__text{font-size:16px;line-height:1.4;margin:8px 0}.edit-post-welcome-guide__inserter-icon{margin:0 4px;position:relative;top:4px}@media (min-width:600px){.edit-post-welcome-guide{width:600px}}@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){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-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-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,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}.components-modal__frame .input-control,.components-modal__frame input[type=checkbox],.components-modal__frame input[type=color],.components-modal__frame input[type=date],.components-modal__frame input[type=datetime-local],.components-modal__frame input[type=datetime],.components-modal__frame input[type=email],.components-modal__frame input[type=month],.components-modal__frame input[type=number],.components-modal__frame input[type=password],.components-modal__frame input[type=radio],.components-modal__frame input[type=search],.components-modal__frame input[type=tel],.components-modal__frame input[type=text],.components-modal__frame input[type=time],.components-modal__frame input[type=url],.components-modal__frame input[type=week],.components-modal__frame select,.components-modal__frame textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-header .input-control,.edit-post-header input[type=checkbox],.edit-post-header input[type=color],.edit-post-header input[type=date],.edit-post-header input[type=datetime-local],.edit-post-header input[type=datetime],.edit-post-header input[type=email],.edit-post-header input[type=month],.edit-post-header input[type=number],.edit-post-header input[type=password],.edit-post-header input[type=radio],.edit-post-header input[type=search],.edit-post-header input[type=tel],.edit-post-header input[type=text],.edit-post-header input[type=time],.edit-post-header input[type=url],.edit-post-header input[type=week],.edit-post-header select,.edit-post-header textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.edit-post-text-editor .input-control,.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=color],.edit-post-text-editor input[type=date],.edit-post-text-editor input[type=datetime-local],.edit-post-text-editor input[type=datetime],.edit-post-text-editor input[type=email],.edit-post-text-editor input[type=month],.edit-post-text-editor input[type=number],.edit-post-text-editor input[type=password],.edit-post-text-editor input[type=radio],.edit-post-text-editor input[type=search],.edit-post-text-editor input[type=tel],.edit-post-text-editor input[type=text],.edit-post-text-editor input[type=time],.edit-post-text-editor input[type=url],.edit-post-text-editor input[type=week],.edit-post-text-editor select,.edit-post-text-editor textarea,.edit-post-visual-editor .input-control,.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=color],.edit-post-visual-editor input[type=date],.edit-post-visual-editor input[type=datetime-local],.edit-post-visual-editor input[type=datetime],.edit-post-visual-editor input[type=email],.edit-post-visual-editor input[type=month],.edit-post-visual-editor input[type=number],.edit-post-visual-editor input[type=password],.edit-post-visual-editor input[type=radio],.edit-post-visual-editor input[type=search],.edit-post-visual-editor input[type=tel],.edit-post-visual-editor input[type=text],.edit-post-visual-editor input[type=time],.edit-post-visual-editor input[type=url],.edit-post-visual-editor input[type=week],.edit-post-visual-editor select,.edit-post-visual-editor textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #7e8993;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.components-modal__frame .input-control,.components-modal__frame input[type=checkbox],.components-modal__frame input[type=color],.components-modal__frame input[type=date],.components-modal__frame input[type=datetime-local],.components-modal__frame input[type=datetime],.components-modal__frame input[type=email],.components-modal__frame input[type=month],.components-modal__frame input[type=number],.components-modal__frame input[type=password],.components-modal__frame input[type=radio],.components-modal__frame input[type=search],.components-modal__frame input[type=tel],.components-modal__frame input[type=text],.components-modal__frame input[type=time],.components-modal__frame input[type=url],.components-modal__frame input[type=week],.components-modal__frame select,.components-modal__frame textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-header .input-control,.edit-post-header input[type=checkbox],.edit-post-header input[type=color],.edit-post-header input[type=date],.edit-post-header input[type=datetime-local],.edit-post-header input[type=datetime],.edit-post-header input[type=email],.edit-post-header input[type=month],.edit-post-header input[type=number],.edit-post-header input[type=password],.edit-post-header input[type=radio],.edit-post-header input[type=search],.edit-post-header input[type=tel],.edit-post-header input[type=text],.edit-post-header input[type=time],.edit-post-header input[type=url],.edit-post-header input[type=week],.edit-post-header select,.edit-post-header textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.edit-post-text-editor .input-control,.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=color],.edit-post-text-editor input[type=date],.edit-post-text-editor input[type=datetime-local],.edit-post-text-editor input[type=datetime],.edit-post-text-editor input[type=email],.edit-post-text-editor input[type=month],.edit-post-text-editor input[type=number],.edit-post-text-editor input[type=password],.edit-post-text-editor input[type=radio],.edit-post-text-editor input[type=search],.edit-post-text-editor input[type=tel],.edit-post-text-editor input[type=text],.edit-post-text-editor input[type=time],.edit-post-text-editor input[type=url],.edit-post-text-editor input[type=week],.edit-post-text-editor select,.edit-post-text-editor textarea,.edit-post-visual-editor .input-control,.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=color],.edit-post-visual-editor input[type=date],.edit-post-visual-editor input[type=datetime-local],.edit-post-visual-editor input[type=datetime],.edit-post-visual-editor input[type=email],.edit-post-visual-editor input[type=month],.edit-post-visual-editor input[type=number],.edit-post-visual-editor input[type=password],.edit-post-visual-editor input[type=radio],.edit-post-visual-editor input[type=search],.edit-post-visual-editor input[type=tel],.edit-post-visual-editor input[type=text],.edit-post-visual-editor input[type=time],.edit-post-visual-editor input[type=url],.edit-post-visual-editor input[type=week],.edit-post-visual-editor select,.edit-post-visual-editor textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{transition-duration:0s}}@media (min-width:600px){.components-modal__frame .input-control,.components-modal__frame input[type=checkbox],.components-modal__frame input[type=color],.components-modal__frame input[type=date],.components-modal__frame input[type=datetime-local],.components-modal__frame input[type=datetime],.components-modal__frame input[type=email],.components-modal__frame input[type=month],.components-modal__frame input[type=number],.components-modal__frame input[type=password],.components-modal__frame input[type=radio],.components-modal__frame input[type=search],.components-modal__frame input[type=tel],.components-modal__frame input[type=text],.components-modal__frame input[type=time],.components-modal__frame input[type=url],.components-modal__frame input[type=week],.components-modal__frame select,.components-modal__frame textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-header .input-control,.edit-post-header input[type=checkbox],.edit-post-header input[type=color],.edit-post-header input[type=date],.edit-post-header input[type=datetime-local],.edit-post-header input[type=datetime],.edit-post-header input[type=email],.edit-post-header input[type=month],.edit-post-header input[type=number],.edit-post-header input[type=password],.edit-post-header input[type=radio],.edit-post-header input[type=search],.edit-post-header input[type=tel],.edit-post-header input[type=text],.edit-post-header input[type=time],.edit-post-header input[type=url],.edit-post-header input[type=week],.edit-post-header select,.edit-post-header textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.edit-post-text-editor .input-control,.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=color],.edit-post-text-editor input[type=date],.edit-post-text-editor input[type=datetime-local],.edit-post-text-editor input[type=datetime],.edit-post-text-editor input[type=email],.edit-post-text-editor input[type=month],.edit-post-text-editor input[type=number],.edit-post-text-editor input[type=password],.edit-post-text-editor input[type=radio],.edit-post-text-editor input[type=search],.edit-post-text-editor input[type=tel],.edit-post-text-editor input[type=text],.edit-post-text-editor input[type=time],.edit-post-text-editor input[type=url],.edit-post-text-editor input[type=week],.edit-post-text-editor select,.edit-post-text-editor textarea,.edit-post-visual-editor .input-control,.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=color],.edit-post-visual-editor input[type=date],.edit-post-visual-editor input[type=datetime-local],.edit-post-visual-editor input[type=datetime],.edit-post-visual-editor input[type=email],.edit-post-visual-editor input[type=month],.edit-post-visual-editor input[type=number],.edit-post-visual-editor input[type=password],.edit-post-visual-editor input[type=radio],.edit-post-visual-editor input[type=search],.edit-post-visual-editor input[type=tel],.edit-post-visual-editor input[type=text],.edit-post-visual-editor input[type=time],.edit-post-visual-editor input[type=url],.edit-post-visual-editor input[type=week],.edit-post-visual-editor select,.edit-post-visual-editor textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-size:13px;line-height:normal}}.components-modal__frame .input-control:focus,.components-modal__frame input[type=checkbox]:focus,.components-modal__frame input[type=color]:focus,.components-modal__frame input[type=date]:focus,.components-modal__frame input[type=datetime-local]:focus,.components-modal__frame input[type=datetime]:focus,.components-modal__frame input[type=email]:focus,.components-modal__frame input[type=month]:focus,.components-modal__frame input[type=number]:focus,.components-modal__frame input[type=password]:focus,.components-modal__frame input[type=radio]:focus,.components-modal__frame input[type=search]:focus,.components-modal__frame input[type=tel]:focus,.components-modal__frame input[type=text]:focus,.components-modal__frame input[type=time]:focus,.components-modal__frame input[type=url]:focus,.components-modal__frame input[type=week]:focus,.components-modal__frame select:focus,.components-modal__frame textarea:focus,.components-popover .input-control:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=color]:focus,.components-popover input[type=date]:focus,.components-popover input[type=datetime-local]:focus,.components-popover input[type=datetime]:focus,.components-popover input[type=email]:focus,.components-popover input[type=month]:focus,.components-popover input[type=number]:focus,.components-popover input[type=password]:focus,.components-popover input[type=radio]:focus,.components-popover input[type=search]:focus,.components-popover input[type=tel]:focus,.components-popover input[type=text]:focus,.components-popover input[type=time]:focus,.components-popover input[type=url]:focus,.components-popover input[type=week]:focus,.components-popover select:focus,.components-popover textarea:focus,.edit-post-header .input-control:focus,.edit-post-header input[type=checkbox]:focus,.edit-post-header input[type=color]:focus,.edit-post-header input[type=date]:focus,.edit-post-header input[type=datetime-local]:focus,.edit-post-header input[type=datetime]:focus,.edit-post-header input[type=email]:focus,.edit-post-header input[type=month]:focus,.edit-post-header input[type=number]:focus,.edit-post-header input[type=password]:focus,.edit-post-header input[type=radio]:focus,.edit-post-header input[type=search]:focus,.edit-post-header input[type=tel]:focus,.edit-post-header input[type=text]:focus,.edit-post-header input[type=time]:focus,.edit-post-header input[type=url]:focus,.edit-post-header input[type=week]:focus,.edit-post-header select:focus,.edit-post-header textarea:focus,.edit-post-sidebar .input-control:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=color]:focus,.edit-post-sidebar input[type=date]:focus,.edit-post-sidebar input[type=datetime-local]:focus,.edit-post-sidebar input[type=datetime]:focus,.edit-post-sidebar input[type=email]:focus,.edit-post-sidebar input[type=month]:focus,.edit-post-sidebar input[type=number]:focus,.edit-post-sidebar input[type=password]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-sidebar input[type=search]:focus,.edit-post-sidebar input[type=tel]:focus,.edit-post-sidebar input[type=text]:focus,.edit-post-sidebar input[type=time]:focus,.edit-post-sidebar input[type=url]:focus,.edit-post-sidebar input[type=week]:focus,.edit-post-sidebar select:focus,.edit-post-sidebar textarea:focus,.edit-post-text-editor .input-control:focus,.edit-post-text-editor input[type=checkbox]:focus,.edit-post-text-editor input[type=color]:focus,.edit-post-text-editor input[type=date]:focus,.edit-post-text-editor input[type=datetime-local]:focus,.edit-post-text-editor input[type=datetime]:focus,.edit-post-text-editor input[type=email]:focus,.edit-post-text-editor input[type=month]:focus,.edit-post-text-editor input[type=number]:focus,.edit-post-text-editor input[type=password]:focus,.edit-post-text-editor input[type=radio]:focus,.edit-post-text-editor input[type=search]:focus,.edit-post-text-editor input[type=tel]:focus,.edit-post-text-editor input[type=text]:focus,.edit-post-text-editor input[type=time]:focus,.edit-post-text-editor input[type=url]:focus,.edit-post-text-editor input[type=week]:focus,.edit-post-text-editor select:focus,.edit-post-text-editor textarea:focus,.edit-post-visual-editor .input-control:focus,.edit-post-visual-editor input[type=checkbox]:focus,.edit-post-visual-editor input[type=color]:focus,.edit-post-visual-editor input[type=date]:focus,.edit-post-visual-editor input[type=datetime-local]:focus,.edit-post-visual-editor input[type=datetime]:focus,.edit-post-visual-editor input[type=email]:focus,.edit-post-visual-editor input[type=month]:focus,.edit-post-visual-editor input[type=number]:focus,.edit-post-visual-editor input[type=password]:focus,.edit-post-visual-editor input[type=radio]:focus,.edit-post-visual-editor input[type=search]:focus,.edit-post-visual-editor input[type=tel]:focus,.edit-post-visual-editor input[type=text]:focus,.edit-post-visual-editor input[type=time]:focus,.edit-post-visual-editor input[type=url]:focus,.edit-post-visual-editor input[type=week]:focus,.edit-post-visual-editor select:focus,.edit-post-visual-editor textarea:focus,.editor-post-publish-panel .input-control:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=color]:focus,.editor-post-publish-panel input[type=date]:focus,.editor-post-publish-panel input[type=datetime-local]:focus,.editor-post-publish-panel input[type=datetime]:focus,.editor-post-publish-panel input[type=email]:focus,.editor-post-publish-panel input[type=month]:focus,.editor-post-publish-panel input[type=number]:focus,.editor-post-publish-panel input[type=password]:focus,.editor-post-publish-panel input[type=radio]:focus,.editor-post-publish-panel input[type=search]:focus,.editor-post-publish-panel input[type=tel]:focus,.editor-post-publish-panel input[type=text]:focus,.editor-post-publish-panel input[type=time]:focus,.editor-post-publish-panel input[type=url]:focus,.editor-post-publish-panel input[type=week]:focus,.editor-post-publish-panel select:focus,.editor-post-publish-panel textarea:focus{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.components-modal__frame input[type=number],.components-popover input[type=number],.edit-post-header input[type=number],.edit-post-sidebar input[type=number],.edit-post-text-editor input[type=number],.edit-post-visual-editor input[type=number],.editor-post-publish-panel input[type=number]{padding-left:4px;padding-right:4px}.components-modal__frame select,.components-popover select,.edit-post-header select,.edit-post-sidebar select,.edit-post-text-editor select,.edit-post-visual-editor select,.editor-post-publish-panel select{padding:3px 24px 3px 8px;font-size:13px;color:#555d66}.components-modal__frame select:focus,.components-popover select:focus,.edit-post-header select:focus,.edit-post-sidebar select:focus,.edit-post-text-editor select:focus,.edit-post-visual-editor select:focus,.editor-post-publish-panel select:focus{border-color:#008dbe;outline:2px solid transparent;outline-offset:0}.components-modal__frame input[type=checkbox],.components-modal__frame input[type=radio],.components-popover input[type=checkbox],.components-popover input[type=radio],.edit-post-header input[type=checkbox],.edit-post-header input[type=radio],.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=radio],.edit-post-text-editor input[type=checkbox],.edit-post-text-editor input[type=radio],.edit-post-visual-editor input[type=checkbox],.edit-post-visual-editor input[type=radio],.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=radio]{border:2px solid #6c7781;margin-right:12px;transition:none}.components-modal__frame input[type=checkbox]:focus,.components-modal__frame input[type=radio]:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=radio]:focus,.edit-post-header input[type=checkbox]:focus,.edit-post-header input[type=radio]:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-text-editor input[type=checkbox]:focus,.edit-post-text-editor input[type=radio]:focus,.edit-post-visual-editor input[type=checkbox]:focus,.edit-post-visual-editor input[type=radio]:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=radio]:focus{border-color:#6c7781;box-shadow:0 0 0 1px #6c7781}.components-modal__frame input[type=checkbox]:checked,.components-modal__frame input[type=radio]:checked,.components-popover input[type=checkbox]:checked,.components-popover input[type=radio]:checked,.edit-post-header input[type=checkbox]:checked,.edit-post-header input[type=radio]:checked,.edit-post-sidebar input[type=checkbox]:checked,.edit-post-sidebar input[type=radio]:checked,.edit-post-text-editor input[type=checkbox]:checked,.edit-post-text-editor input[type=radio]:checked,.edit-post-visual-editor input[type=checkbox]:checked,.edit-post-visual-editor input[type=radio]:checked,.editor-post-publish-panel input[type=checkbox]:checked,.editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .components-modal__frame input[type=checkbox]:checked,body.admin-color-sunrise .components-modal__frame input[type=radio]:checked,body.admin-color-sunrise .components-popover input[type=checkbox]:checked,body.admin-color-sunrise .components-popover input[type=radio]:checked,body.admin-color-sunrise .edit-post-header input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-header input[type=radio]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=radio]:checked,body.admin-color-sunrise .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-text-editor input[type=radio]:checked,body.admin-color-sunrise .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-visual-editor input[type=radio]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=radio]:checked{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .components-modal__frame input[type=checkbox]:checked,body.admin-color-ocean .components-modal__frame input[type=radio]:checked,body.admin-color-ocean .components-popover input[type=checkbox]:checked,body.admin-color-ocean .components-popover input[type=radio]:checked,body.admin-color-ocean .edit-post-header input[type=checkbox]:checked,body.admin-color-ocean .edit-post-header input[type=radio]:checked,body.admin-color-ocean .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ocean .edit-post-sidebar input[type=radio]:checked,body.admin-color-ocean .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-ocean .edit-post-text-editor input[type=radio]:checked,body.admin-color-ocean .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-ocean .edit-post-visual-editor input[type=radio]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=radio]:checked{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-modal__frame input[type=checkbox]:checked,body.admin-color-midnight .components-modal__frame input[type=radio]:checked,body.admin-color-midnight .components-popover input[type=checkbox]:checked,body.admin-color-midnight .components-popover input[type=radio]:checked,body.admin-color-midnight .edit-post-header input[type=checkbox]:checked,body.admin-color-midnight .edit-post-header input[type=radio]:checked,body.admin-color-midnight .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-midnight .edit-post-sidebar input[type=radio]:checked,body.admin-color-midnight .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-midnight .edit-post-text-editor input[type=radio]:checked,body.admin-color-midnight .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-midnight .edit-post-visual-editor input[type=radio]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=radio]:checked{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .components-modal__frame input[type=checkbox]:checked,body.admin-color-ectoplasm .components-modal__frame input[type=radio]:checked,body.admin-color-ectoplasm .components-popover input[type=checkbox]:checked,body.admin-color-ectoplasm .components-popover input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-header input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-header input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-text-editor input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-visual-editor input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=radio]:checked{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-modal__frame input[type=checkbox]:checked,body.admin-color-coffee .components-modal__frame input[type=radio]:checked,body.admin-color-coffee .components-popover input[type=checkbox]:checked,body.admin-color-coffee .components-popover input[type=radio]:checked,body.admin-color-coffee .edit-post-header input[type=checkbox]:checked,body.admin-color-coffee .edit-post-header input[type=radio]:checked,body.admin-color-coffee .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-coffee .edit-post-sidebar input[type=radio]:checked,body.admin-color-coffee .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-coffee .edit-post-text-editor input[type=radio]:checked,body.admin-color-coffee .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-coffee .edit-post-visual-editor input[type=radio]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=radio]:checked{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-modal__frame input[type=checkbox]:checked,body.admin-color-blue .components-modal__frame input[type=radio]:checked,body.admin-color-blue .components-popover input[type=checkbox]:checked,body.admin-color-blue .components-popover input[type=radio]:checked,body.admin-color-blue .edit-post-header input[type=checkbox]:checked,body.admin-color-blue .edit-post-header input[type=radio]:checked,body.admin-color-blue .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-blue .edit-post-sidebar input[type=radio]:checked,body.admin-color-blue .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-blue .edit-post-text-editor input[type=radio]:checked,body.admin-color-blue .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-blue .edit-post-visual-editor input[type=radio]:checked,body.admin-color-blue .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-blue .editor-post-publish-panel input[type=radio]:checked{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .components-modal__frame input[type=checkbox]:checked,body.admin-color-light .components-modal__frame input[type=radio]:checked,body.admin-color-light .components-popover input[type=checkbox]:checked,body.admin-color-light .components-popover input[type=radio]:checked,body.admin-color-light .edit-post-header input[type=checkbox]:checked,body.admin-color-light .edit-post-header input[type=radio]:checked,body.admin-color-light .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-light .edit-post-sidebar input[type=radio]:checked,body.admin-color-light .edit-post-text-editor input[type=checkbox]:checked,body.admin-color-light .edit-post-text-editor input[type=radio]:checked,body.admin-color-light .edit-post-visual-editor input[type=checkbox]:checked,body.admin-color-light .edit-post-visual-editor input[type=radio]:checked,body.admin-color-light .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-light .editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}.components-modal__frame input[type=checkbox]:checked:focus,.components-modal__frame input[type=radio]:checked:focus,.components-popover input[type=checkbox]:checked:focus,.components-popover input[type=radio]:checked:focus,.edit-post-header input[type=checkbox]:checked:focus,.edit-post-header input[type=radio]:checked:focus,.edit-post-sidebar input[type=checkbox]:checked:focus,.edit-post-sidebar input[type=radio]:checked:focus,.edit-post-text-editor input[type=checkbox]:checked:focus,.edit-post-text-editor input[type=radio]:checked:focus,.edit-post-visual-editor input[type=checkbox]:checked:focus,.edit-post-visual-editor input[type=radio]:checked:focus,.editor-post-publish-panel input[type=checkbox]:checked:focus,.editor-post-publish-panel input[type=radio]:checked:focus{box-shadow:0 0 0 2px #555d66}.components-modal__frame input[type=checkbox],.components-popover input[type=checkbox],.edit-post-header input[type=checkbox],.edit-post-sidebar input[type=checkbox],.edit-post-text-editor input[type=checkbox],.edit-post-visual-editor input[type=checkbox],.editor-post-publish-panel input[type=checkbox]{border-radius:2px}.components-modal__frame input[type=checkbox]:checked:before,.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox]:checked:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox]:checked:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox]:checked:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-modal__frame input[type=checkbox]:checked:before,.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox]:checked:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox]:checked:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox]:checked:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-modal__frame input[type=checkbox][aria-checked=mixed],.components-popover input[type=checkbox][aria-checked=mixed],.edit-post-header input[type=checkbox][aria-checked=mixed],.edit-post-sidebar input[type=checkbox][aria-checked=mixed],.edit-post-text-editor input[type=checkbox][aria-checked=mixed],.edit-post-visual-editor input[type=checkbox][aria-checked=mixed],.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-blue .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-blue .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .components-modal__frame input[type=checkbox][aria-checked=mixed],body.admin-color-light .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-header input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-text-editor input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-visual-editor input[type=checkbox][aria-checked=mixed],body.admin-color-light .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-modal__frame input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-header input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:before,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-modal__frame input[type=checkbox][aria-checked=mixed]:focus,.components-popover input[type=checkbox][aria-checked=mixed]:focus,.edit-post-header input[type=checkbox][aria-checked=mixed]:focus,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:focus,.edit-post-text-editor input[type=checkbox][aria-checked=mixed]:focus,.edit-post-visual-editor input[type=checkbox][aria-checked=mixed]:focus,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:focus{box-shadow:0 0 0 2px #555d66}.components-modal__frame input[type=radio],.components-popover input[type=radio],.edit-post-header input[type=radio],.edit-post-sidebar input[type=radio],.edit-post-text-editor input[type=radio],.edit-post-visual-editor input[type=radio],.editor-post-publish-panel input[type=radio]{border-radius:50%}.components-modal__frame input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-header input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.edit-post-text-editor input[type=radio]:checked:before,.edit-post-visual-editor input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{width:6px;height:6px;margin:6px 0 0 6px;background-color:#fff}@media (min-width:782px){.components-modal__frame input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-header input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.edit-post-text-editor input[type=radio]:checked:before,.edit-post-visual-editor input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{margin:3px 0 0 3px}}.components-modal__frame input::-webkit-input-placeholder,.components-modal__frame textarea::-webkit-input-placeholder,.components-popover input::-webkit-input-placeholder,.components-popover textarea::-webkit-input-placeholder,.edit-post-header input::-webkit-input-placeholder,.edit-post-header textarea::-webkit-input-placeholder,.edit-post-sidebar input::-webkit-input-placeholder,.edit-post-sidebar textarea::-webkit-input-placeholder,.edit-post-text-editor input::-webkit-input-placeholder,.edit-post-text-editor textarea::-webkit-input-placeholder,.edit-post-visual-editor input::-webkit-input-placeholder,.edit-post-visual-editor textarea::-webkit-input-placeholder,.editor-post-publish-panel input::-webkit-input-placeholder,.editor-post-publish-panel textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.components-modal__frame input::-moz-placeholder,.components-modal__frame textarea::-moz-placeholder,.components-popover input::-moz-placeholder,.components-popover textarea::-moz-placeholder,.edit-post-header input::-moz-placeholder,.edit-post-header textarea::-moz-placeholder,.edit-post-sidebar input::-moz-placeholder,.edit-post-sidebar textarea::-moz-placeholder,.edit-post-text-editor input::-moz-placeholder,.edit-post-text-editor textarea::-moz-placeholder,.edit-post-visual-editor input::-moz-placeholder,.edit-post-visual-editor textarea::-moz-placeholder,.editor-post-publish-panel input::-moz-placeholder,.editor-post-publish-panel textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.components-modal__frame input:-ms-input-placeholder,.components-modal__frame textarea:-ms-input-placeholder,.components-popover input:-ms-input-placeholder,.components-popover textarea:-ms-input-placeholder,.edit-post-header input:-ms-input-placeholder,.edit-post-header textarea:-ms-input-placeholder,.edit-post-sidebar input:-ms-input-placeholder,.edit-post-sidebar textarea:-ms-input-placeholder,.edit-post-text-editor input:-ms-input-placeholder,.edit-post-text-editor textarea:-ms-input-placeholder,.edit-post-visual-editor input:-ms-input-placeholder,.edit-post-visual-editor textarea:-ms-input-placeholder,.editor-post-publish-panel input:-ms-input-placeholder,.editor-post-publish-panel textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .components-modal__frame input::-webkit-input-placeholder,.is-dark-theme .components-modal__frame textarea::-webkit-input-placeholder,.is-dark-theme .components-popover input::-webkit-input-placeholder,.is-dark-theme .components-popover textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-header input::-webkit-input-placeholder,.is-dark-theme .edit-post-header textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-sidebar input::-webkit-input-placeholder,.is-dark-theme .edit-post-sidebar textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-text-editor input::-webkit-input-placeholder,.is-dark-theme .edit-post-text-editor textarea::-webkit-input-placeholder,.is-dark-theme .edit-post-visual-editor input::-webkit-input-placeholder,.is-dark-theme .edit-post-visual-editor textarea::-webkit-input-placeholder,.is-dark-theme .editor-post-publish-panel input::-webkit-input-placeholder,.is-dark-theme .editor-post-publish-panel textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-modal__frame input::-moz-placeholder,.is-dark-theme .components-modal__frame textarea::-moz-placeholder,.is-dark-theme .components-popover input::-moz-placeholder,.is-dark-theme .components-popover textarea::-moz-placeholder,.is-dark-theme .edit-post-header input::-moz-placeholder,.is-dark-theme .edit-post-header textarea::-moz-placeholder,.is-dark-theme .edit-post-sidebar input::-moz-placeholder,.is-dark-theme .edit-post-sidebar textarea::-moz-placeholder,.is-dark-theme .edit-post-text-editor input::-moz-placeholder,.is-dark-theme .edit-post-text-editor textarea::-moz-placeholder,.is-dark-theme .edit-post-visual-editor input::-moz-placeholder,.is-dark-theme .edit-post-visual-editor textarea::-moz-placeholder,.is-dark-theme .editor-post-publish-panel input::-moz-placeholder,.is-dark-theme .editor-post-publish-panel textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .components-modal__frame input:-ms-input-placeholder,.is-dark-theme .components-modal__frame textarea:-ms-input-placeholder,.is-dark-theme .components-popover input:-ms-input-placeholder,.is-dark-theme .components-popover textarea:-ms-input-placeholder,.is-dark-theme .edit-post-header input:-ms-input-placeholder,.is-dark-theme .edit-post-header textarea:-ms-input-placeholder,.is-dark-theme .edit-post-sidebar input:-ms-input-placeholder,.is-dark-theme .edit-post-sidebar textarea:-ms-input-placeholder,.is-dark-theme .edit-post-text-editor input:-ms-input-placeholder,.is-dark-theme .edit-post-text-editor textarea:-ms-input-placeholder,.is-dark-theme .edit-post-visual-editor input:-ms-input-placeholder,.is-dark-theme .edit-post-visual-editor textarea:-ms-input-placeholder,.is-dark-theme .editor-post-publish-panel input:-ms-input-placeholder,.is-dark-theme .editor-post-publish-panel textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@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{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.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}}.interface-complementary-area{background:#fff;color:#1e1e1e;overflow:visible}@media (min-width:600px){.interface-complementary-area{z-index:auto;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 142px);margin-top:-1px;margin-bottom:-1px;position:relative}@media (min-width:600px){.interface-complementary-area>.components-panel{overflow:visible;height:auto;max-height:none}}.interface-complementary-area>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:48px}@media (min-width:600px){.interface-complementary-area>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2,.interface-complementary-area h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #e2e4e7;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{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 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{display:flex;flex-direction:column;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.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}}@media (max-width:783px){.auto-fold .wp-responsive-open .interface-interface-skeleton{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .interface-interface-skeleton{margin-left:-18px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto}.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{display:block;width:auto;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__left-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90}}@media (min-width:782px){.interface-interface-skeleton__sidebar{overflow:auto;border-left:1px solid #e2e4e7}}@media (min-width:782px){.interface-interface-skeleton__left-sidebar{border-right:1px solid #e2e4e7}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;color:#1e1e1e;position:-webkit-sticky;position:sticky;top:0}@media (min-width:600px){.interface-interface-skeleton__header{position:static;top:0}}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e2e4e7;color:#1e1e1e;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:block}}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-post-header{height:60px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1;padding-left:8px}@media (min-width:600px){.edit-post-header__toolbar{padding-left:24px}}.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__settings{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{padding-right:16px}}.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{padding:0 6px;margin-right:4px}@media (min-width:600px){.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,.edit-post-header__settings .components-button.editor-post-preview,.edit-post-header__settings .components-button.editor-post-publish-button,.edit-post-header__settings .components-button.editor-post-publish-panel__toggle,.edit-post-header__settings .components-button.editor-post-save-draft,.edit-post-header__settings .components-button.editor-post-switch-to-draft,.edit-post-header__settings .editor-post-saved-state{padding:0 12px;margin-right:12px}}.edit-post-header-preview__grouping-external{display:flex;position:relative;padding-bottom:0}.edit-post-header-preview__button-external{padding-left:8px;margin-right:auto;width:100%;display:flex;justify-content:flex-start}.edit-post-header-preview__button-external svg{margin-right:8px}.edit-post-post-preview-dropdown .components-popover__content>div{padding-bottom:0}.edit-post-fullscreen-mode-close.has-icon{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.has-icon{display:flex;align-items:center;align-self:stretch;border:none;background:#23282e;color:#fff;border-radius:0;height:auto;width:60px}.edit-post-fullscreen-mode-close.has-icon:hover{background:#32373d}.edit-post-fullscreen-mode-close.has-icon:active{color:#fff}.edit-post-fullscreen-mode-close.has-icon:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 2.5px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 2.5px #fff}}.edit-post-header-toolbar{display:inline-flex;align-items:center;border:none}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .block-editor-block-navigation{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation{display:flex}}.edit-post-header-toolbar>.components-button.has-icon,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar>.components-button.has-icon.is-pressed,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 1.5px #007cba,inset 0 0 0 1px #fff;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar>.components-button.has-icon:before,.edit-post-header-toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-post-header-toolbar__block-toolbar{position:absolute;top:61px;left:0;right:0;background:#fff;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar:empty{display:none}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1280px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{border-left:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar,.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar-group{height:60px;padding:6px 0}}.edit-post-header-toolbar .edit-post-header-toolbar__inserter-toggle.has-icon{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:0}.edit-post-more-menu .components-button{padding:0 4px}}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-post-more-menu__content{z-index:99998}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__main-shortcuts .edit-post-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{display:flex;align-items:baseline;padding:.6rem 0;border-top:1px solid #e2e4e7;margin-bottom:0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #e2e4e7}.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;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{display:block;background:none;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{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;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}}@media (max-width:783px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-layout .components-editor-notices__snackbar{margin-left:-18px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #e2e4e7;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.interface-interface-skeleton__sidebar>div{height:100%}.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__toogle-sidebar-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #e2e4e7;height:auto!important;padding:24px;display:flex;justify-content:center}.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,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toogle-sidebar-panel,.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 .edit-post-layout__toogle-sidebar-panel{top:auto;bottom:0}.edit-post-layout__footer{display:none;z-index:30}@media (min-width:782px){.edit-post-layout__footer{display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}}.edit-post-layout .interface-interface-skeleton__content{background-color:#ccd0d4}.edit-post-layout__inserter-panel{height:100%;display:flex;flex-direction:column}.edit-post-layout__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-post-layout__inserter-panel-header{display:none}}.edit-post-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-layout__inserter-panel-content{height:100%}}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 120px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:12px;border-radius:4px}.edit-post-manage-blocks-modal__disabled-blocks-count{border-top:1px solid #e2e4e7;margin-left:-24px;margin-right:-24px;padding:.6rem 24px;background-color:#f3f4f5}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff;z-index:1}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .block-editor-block-icon{margin-right:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-top:1px solid #e2e4e7}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;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 #6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#6c7781}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top: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;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@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{padding:0;height:48px}.editor-post-last-revision__title.components-button{padding:16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{font-weight:400;margin:0}.edit-post-post-link__link{text-align:left;word-wrap:break-word;display:block}.edit-post-post-link__preview-link-container{direction:ltr}.edit-post-post-schedule{width:100%;position:relative}.components-button.edit-post-post-schedule__toggle{text-align:right}.editor-post-slug__input{margin:-5px 0;padding:2px}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-button.edit-post-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-post-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-post-text-editor{position:relative;width:100%;background-color:#fff;flex-grow:1}.edit-post-text-editor .wp-block.editor-post-title{max-width:none;line-height:1.4}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input.editor-post-title__input.editor-post-title__input{font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{border:1px solid #ccc;margin-bottom:-1px;padding:16px}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input{padding:24px}}.edit-post-text-editor .wp-block.editor-post-title .editor-post-title__input:focus{border:1px solid #1e1e1e}@media (min-width:600px){.edit-post-text-editor .wp-block.editor-post-title{padding:0}}.edit-post-text-editor__body{width:100%;padding:0 12px 12px;max-width:1080px;margin-left:auto;margin-right:auto}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;right:0;display:flex;background:hsla(0,0%,100%,.8);padding:4px 12px}@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{line-height:36px;margin:0 auto 0 0;font-size:13px;color:#1e1e1e}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{position:relative;padding-top:50px;background-color:#fff;flex:1 1 auto}.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.is-tertiary{padding:6px}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-visual-editor{flex-basis:100%}}.edit-post-visual-editor>.block-editor__typewriter,.edit-post-visual-editor>.block-editor__typewriter>div,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow,.edit-post-visual-editor>.block-editor__typewriter>div>.block-editor-writing-flow>.block-editor-writing-flow__click-redirect{height:100%}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{min-height:40vh;width:100%}.has-metaboxes .edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:0}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto;margin-bottom:32px}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin:0 0 .6rem 48px}@media (min-width:782px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{margin-left:38px}}@media (min-width:600px){.edit-post-options-modal__custom-fields-confirmation-button,.edit-post-options-modal__custom-fields-confirmation-message{max-width:300px}}.edit-post-welcome-guide{width:312px}.edit-post-welcome-guide__image{background:#00a0d2;height:240px}.edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion:reduce){.edit-post-welcome-guide__image__prm-r{display:block}.edit-post-welcome-guide__image__prm-np{display:none}}.edit-post-welcome-guide__heading{font-family:"Noto Serif",serif;font-size:24px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-post-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}@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){display:none}body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.components-popover,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.edit-post-visual-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-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,.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-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{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@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{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.wp-block{max-width:580px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.css b/wp-includes/css/dist/editor/editor-styles-rtl.css index d24b8f9454..0dc3ec9f05 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.css +++ b/wp-includes/css/dist/editor/editor-styles-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + /** * Editor Normalization Styles * @@ -55,7 +75,12 @@ body { font-family: "Noto Serif", serif; font-size: 16px; line-height: 1.8; - color: #191e23; } + color: #1e1e1e; + padding: 10px; } + +.block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] { + margin-right: -10px; + margin-left: -10px; } /* Headings */ h1 { @@ -125,7 +150,6 @@ p { ul, ol { margin-bottom: 28px; - padding: inherit; padding-right: 1.3em; margin-right: 1.3em; } ul ul, @@ -146,3 +170,21 @@ ol { ul ul, ol ul { list-style-type: circle; } + +.wp-align-wrapper { + max-width: 580px; } + .wp-align-wrapper > .wp-block, .wp-align-wrapper.wp-align-full { + max-width: none; } + .wp-align-wrapper.wp-align-wide { + max-width: 1100px; } + +a { + transition: none; } + +code, +kbd { + padding: 0; + margin: 0; + background: inherit; + font-size: inherit; + font-family: monospace; } diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.min.css b/wp-includes/css/dist/editor/editor-styles-rtl.min.css index 5d2d764077..62f3e40942 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.min.css +++ b/wp-includes/css/dist/editor/editor-styles-rtl.min.css @@ -1 +1 @@ -body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#191e23}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding:inherit;padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-10px;margin-left:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-right:1.3em;margin-right:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles.css b/wp-includes/css/dist/editor/editor-styles.css index dd90efe06e..47bb9260c7 100644 --- a/wp-includes/css/dist/editor/editor-styles.css +++ b/wp-includes/css/dist/editor/editor-styles.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + /** * Editor Normalization Styles * @@ -55,7 +75,12 @@ body { font-family: "Noto Serif", serif; font-size: 16px; line-height: 1.8; - color: #191e23; } + color: #1e1e1e; + padding: 10px; } + +.block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] { + margin-left: -10px; + margin-right: -10px; } /* Headings */ h1 { @@ -125,7 +150,6 @@ p { ul, ol { margin-bottom: 28px; - padding: inherit; padding-left: 1.3em; margin-left: 1.3em; } ul ul, @@ -146,3 +170,21 @@ ol { ul ul, ol ul { list-style-type: circle; } + +.wp-align-wrapper { + max-width: 580px; } + .wp-align-wrapper > .wp-block, .wp-align-wrapper.wp-align-full { + max-width: none; } + .wp-align-wrapper.wp-align-wide { + max-width: 1100px; } + +a { + transition: none; } + +code, +kbd { + padding: 0; + margin: 0; + background: inherit; + font-size: inherit; + font-family: monospace; } diff --git a/wp-includes/css/dist/editor/editor-styles.min.css b/wp-includes/css/dist/editor/editor-styles.min.css index 2a7e1cb141..faf75253d9 100644 --- a/wp-includes/css/dist/editor/editor-styles.min.css +++ b/wp-includes/css/dist/editor/editor-styles.min.css @@ -1 +1 @@ -body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#191e23}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding:inherit;padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#1e1e1e;padding:10px}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}h1{font-size:2.44em}h2{font-size:1.95em}h3{font-size:1.56em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.8em}h1,h2,h3{line-height:1.4}h4{line-height:1.5}h1{margin-top:.67em;margin-bottom:.67em}h2{margin-top:.83em;margin-bottom:.83em}h3{margin-top:1em;margin-bottom:1em}h4{margin-top:1.33em;margin-bottom:1.33em}h5{margin-top:1.67em;margin-bottom:1.67em}h6{margin-top:2.33em;margin-bottom:2.33em}h1,h2,h3,h4,h5,h6{color:inherit}p{font-size:inherit;line-height:inherit;margin-top:28px}ol,p,ul{margin-bottom:28px}ol,ul{padding-left:1.3em;margin-left:1.3em}ol li,ol ol,ol ul,ul li,ul ol,ul ul{margin-bottom:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.wp-align-wrapper{max-width:580px}.wp-align-wrapper.wp-align-full,.wp-align-wrapper>.wp-block{max-width:none}.wp-align-wrapper.wp-align-wide{max-width:1100px}a{transition:none}code,kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css index 0b435d1862..b846622e43 100644 --- a/wp-includes/css/dist/editor/style-rtl.css +++ b/wp-includes/css/dist/editor/style-rtl.css @@ -9,12 +9,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -25,7 +40,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -43,8 +58,10 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -.editor-autocompleters__block .block-editor-block-icon { - margin-left: 8px; } +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } .editor-autocompleters__user .editor-autocompleters__no-avatar::before { /* stylelint-disable */ @@ -117,13 +134,13 @@ margin: 0 -1px 0 0; padding: 2px 1px 2px 5px; color: #23282d; - text-align: right; } + text-align: right; + border-radius: 2px; } .document-outline__button:disabled { cursor: default; } .document-outline__button:focus { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } .document-outline__level { @@ -142,12 +159,9 @@ .components-editor-notices__dismissible { position: -webkit-sticky; position: sticky; - top: 56px; + top: 0; left: 0; color: #191e23; } - @media (min-width: 600px) { - .components-editor-notices__dismissible { - top: 0; } } .components-editor-notices__pinned { position: relative; @@ -161,19 +175,69 @@ box-sizing: border-box; margin: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.2); - padding: 6px 12px; + padding: 0 12px; min-height: 60px; } .components-editor-notices__dismissible .components-notice .components-notice__dismiss, .components-editor-notices__pinned .components-notice .components-notice__dismiss { - margin: 6px 5px 6px -5px; } + margin-top: 12px; } .components-editor-notices__snackbar { width: 100%; } + @media (min-width: 782px) { + .components-editor-notices__snackbar { + width: fit-content; + width: -moz-fit-content; } } -.editor-entities-saved-states__save-button { - display: block; - margin-right: auto; - margin-left: 0; } +.entities-saved-states__panel { + box-sizing: border-box; + background: #fff; + position: fixed; + z-index: 100001; + top: 46px; + bottom: 0; + left: 0; + right: 0; + overflow: auto; + box-sizing: border-box; } + .entities-saved-states__panel *, + .entities-saved-states__panel *::before, + .entities-saved-states__panel *::after { + box-sizing: inherit; } + .entities-saved-states__panel .entities-saved-states__find-entity { + display: none; } + .entities-saved-states__panel .entities-saved-states__find-entity-small { + display: block; } + @media (min-width: 782px) { + .entities-saved-states__panel { + z-index: 99998; + top: 32px; + right: auto; + width: 280px; + border-right: 1px solid #e2e4e7; } + body.is-fullscreen-mode .entities-saved-states__panel { + top: 0; } + .entities-saved-states__panel .entities-saved-states__find-entity { + display: block; } + .entities-saved-states__panel .entities-saved-states__find-entity-small { + display: none; } } + .entities-saved-states__panel .entities-saved-states__panel-header { + background: #fff; + padding-right: 8px; + padding-left: 8px; + height: 61px; + border-bottom: 1px solid #e2e4e7; + display: flex; + align-items: center; + align-content: space-between; } + .entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button { + margin: auto; } + .entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon { + position: absolute; + left: 8px; } + .entities-saved-states__panel .entities-saved-states__text-prompt { + border-bottom: 1px solid #e2e4e7; + padding: 16px; + padding-bottom: 4px; } .editor-error-boundary { margin: auto; @@ -268,18 +332,14 @@ .editor-post-last-revision__title .dashicon { margin-left: 5px; } -.components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title { - height: auto; } - .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:hover, .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:active { - background: #f3f4f5 !important; - border: none !important; - box-shadow: none !important; } - .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:focus { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } +.components-button.editor-post-last-revision__title { + height: 100%; } + .components-button.editor-post-last-revision__title:hover, .components-button.editor-post-last-revision__title:active { + background: #f3f4f5; } + .components-button.editor-post-last-revision__title:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 0; } .editor-post-locked-modal { height: auto; @@ -302,125 +362,6 @@ margin: 5px; margin-left: 15px; } -.editor-post-permalink { - display: inline-flex; - align-items: center; - flex-wrap: wrap; - background: #fff; - padding: 8px 8px 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - height: 40px; - white-space: nowrap; - border: 1px solid #b5bcc2; - background-clip: padding-box; - border-right: 0; - box-shadow: 3px 0 0 0 #555d66; - outline: 1px solid transparent; - margin-right: -15px; - margin-left: -15px; } - .is-dark-theme .editor-post-permalink { - box-shadow: 3px 0 0 0 #d7dade; } - @media (min-width: 480px) { - .editor-post-permalink { - padding: 4px; } } - @media (min-width: 600px) { - .editor-post-permalink { - margin-right: -1px; - margin-left: -1px; } } - .editor-post-permalink.editor-post-permalink > * { - margin-bottom: 8px; } - @media (min-width: 480px) { - .editor-post-permalink.editor-post-permalink > * { - margin-bottom: 0; } } - .editor-post-permalink button { - flex-shrink: 0; } - -.editor-post-permalink__copy { - border-radius: 4px; - padding: 6px; } - -.editor-post-permalink__copy.is-copied { - opacity: 0.3; } - -.editor-post-permalink__label { - margin: 0 5px 0 10px; - font-weight: 600; } - -.editor-post-permalink__link { - color: #7e8993; - text-decoration: underline; - margin-left: 10px; - flex-grow: 1; - overflow: hidden; - position: relative; - white-space: nowrap; - text-align: right; } - -.editor-post-permalink-editor { - width: 100%; - min-width: 20%; - display: inline-flex; - align-items: center; } - .editor-post-permalink-editor .editor-post-permalink__editor-container { - flex: 0 1 100%; - display: flex; - overflow: hidden; - padding: 1px 0; } - .editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix { - flex: 1 1 auto; } - @media (min-width: 600px) { - .editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix { - flex: 1 0 auto; } } - .editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit { - flex: 1 1 100%; } - .editor-post-permalink-editor .editor-post-permalink-editor__save { - margin-right: auto; } - -.editor-post-permalink-editor__prefix { - color: #6c7781; - min-width: 20%; - overflow: hidden; - position: relative; - white-space: nowrap; - text-overflow: ellipsis; } - -.editor-post-permalink input[type="text"].editor-post-permalink-editor__edit { - min-width: 10%; - width: 100%; - margin: 0 3px; - padding: 2px 4px; } - -.editor-post-permalink-editor__suffix { - color: #6c7781; - margin-left: 6px; - flex: 0 0 0%; } - -.editor-post-permalink-editor__prefix { - text-align: right; } -.editor-post-permalink__link { - text-align: left; } - -.editor-post-permalink__editor-container, -.editor-post-permalink__link { - direction: ltr; } - -.editor-post-permalink__link::after { - content: ""; - display: block; - position: absolute; - -webkit-touch-callout: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - pointer-events: none; - background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 90%); - top: 0; - bottom: 0; - right: 0; - left: auto; - width: 20%; - height: auto; } .editor-post-publish-button__button.has-changes-dot::before { background: currentcolor; border-radius: 4px; @@ -433,7 +374,7 @@ background: #fff; } .editor-post-publish-panel__content { - min-height: calc(100% - 140px); } + min-height: calc(100% - 144px); } .editor-post-publish-panel__content .components-spinner { display: block; margin: 100px auto 0; } @@ -442,7 +383,7 @@ background: #fff; padding-right: 8px; padding-left: 8px; - height: 56px; + height: 61px; border-bottom: 1px solid #e2e4e7; display: flex; align-items: center; @@ -486,8 +427,6 @@ margin-left: -16px; } .editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend { display: none; } - .editor-post-publish-panel__prepublish .components-datetime { - padding: 0; } .post-publish-panel__postpublish .components-panel__body { border-bottom: 1px solid #e2e4e7; @@ -533,25 +472,22 @@ align-items: center; width: 28px; padding: 12px 4px; - color: #555d66; + color: #757575; overflow: hidden; white-space: nowrap; } .editor-post-saved-state svg { display: inline-block; flex: 0 0 auto; - margin-left: 4px; - fill: currentColor; } + fill: currentColor; + margin-left: 8px; } @media (min-width: 600px) { .editor-post-saved-state { width: auto; padding: 8px 12px; text-indent: inherit; } - .editor-post-saved-state .dashicon { + .editor-post-saved-state svg { margin-left: 4px; } } -.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft { - margin: 0; } - .editor-post-taxonomies__hierarchical-terms-list { max-height: 14em; overflow: auto; @@ -580,80 +516,31 @@ margin-bottom: 8px; width: 100%; } -.editor-post-text-editor { - border: 1px solid #e2e4e7 !important; +.edit-post-text-editor__body textarea.editor-post-text-editor { + border: 1px solid #ccc; display: block; - margin: 0 0 2em; + margin: 0; width: 100%; box-shadow: none; resize: none; overflow: hidden; - font-family: Menlo, Consolas, monaco, monospace !important; - line-height: 150%; - border-radius: 0 !important; + font-family: Menlo, Consolas, monaco, monospace; + line-height: 2.4; + border-radius: 0; + min-height: 200px; + padding: 16px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px !important; } @media (min-width: 600px) { - .editor-post-text-editor { - font-size: 14px !important; } } - .editor-post-text-editor:hover, .editor-post-text-editor:focus { - border: 1px solid #b5bcc2 !important; - box-shadow: none !important; - outline-offset: -2px !important; } - -.editor-post-text-editor__toolbar { - display: flex; - flex-direction: row; - flex-wrap: wrap; } - .editor-post-text-editor__toolbar button { - height: 30px; - background: none; - padding: 0 8px; - margin: 3px 4px; - text-align: center; - cursor: pointer; - font-family: Menlo, Consolas, monaco, monospace; - color: #555d66; - border: 1px solid transparent; } - .editor-post-text-editor__toolbar button:first-child { - margin-right: 0; } - .editor-post-text-editor__toolbar button:hover, .editor-post-text-editor__toolbar button:focus { - outline: none; - border: 1px solid #555d66; } - -.editor-post-text-editor__bold { - font-weight: 600; } - -.editor-post-text-editor__italic { - font-style: italic; } - -.editor-post-text-editor__link { - text-decoration: underline; - color: #0085ba; } - -body.admin-color-sunrise .editor-post-text-editor__link{ - color: #d1864a; } - -body.admin-color-ocean .editor-post-text-editor__link{ - color: #a3b9a2; } - -body.admin-color-midnight .editor-post-text-editor__link{ - color: #e14d43; } - -body.admin-color-ectoplasm .editor-post-text-editor__link{ - color: #a7b656; } - -body.admin-color-coffee .editor-post-text-editor__link{ - color: #c2a68c; } - -body.admin-color-blue .editor-post-text-editor__link{ - color: #82b4cb; } - -body.admin-color-light .editor-post-text-editor__link{ - color: #0085ba; } - -.editor-post-text-editor__del { - text-decoration: line-through; } + .edit-post-text-editor__body textarea.editor-post-text-editor { + padding: 24px; } } + @media (min-width: 600px) { + .edit-post-text-editor__body textarea.editor-post-text-editor { + font-size: 15px !important; } } + .edit-post-text-editor__body textarea.editor-post-text-editor:focus { + border: 1px solid #1e1e1e; + box-shadow: none; + position: relative; } .edit-post-post-visibility__dialog, .editor-post-visibility__dialog-fieldset { @@ -665,9 +552,83 @@ body.admin-color-light .editor-post-text-editor__link{ margin-bottom: 1em; margin-top: 0.5em; padding: 0; } - .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio, - .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 2px solid #757575; + margin-left: 12px; + transition: none; + border-radius: 50%; margin-top: 2px; } + @media (prefers-reduced-motion: reduce) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked::before, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked::before { + width: 6px; + height: 6px; + margin: 6px 6px 0 0; + background-color: #fff; } + @media (min-width: 782px) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked::before, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked::before { + margin: 3px 3px 0 0; } } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:focus { + border-color: #757575; + box-shadow: 0 0 0 1px #757575; } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked:focus { + box-shadow: 0 0 0 1.5px #757575; } .edit-post-post-visibility__dialog .editor-post-visibility__dialog-label, .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label { font-weight: 600; } @@ -678,94 +639,103 @@ body.admin-color-light .editor-post-text-editor__link{ .edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info, .editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info { margin-bottom: 0; } - .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input, - .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; margin-right: 28px; } + @media (prefers-reduced-motion: reduce) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } -.editor-post-title__block { - position: relative; - padding: 5px 0; - font-size: 16px; } - @media (min-width: 600px) { - .editor-post-title__block { - padding: 5px 2px; } } - .editor-post-title__block .editor-post-title__input { +.editor-post-title { + position: relative; } + .editor-post-title .editor-post-title__input { display: block; width: 100%; margin: 0; box-shadow: none; background: transparent; - font-family: "Noto Serif", serif; - line-height: 1.4; - color: #191e23; transition: border 0.1s ease-out, box-shadow 0.1s linear; - padding: 19px 14px; + padding: 19px 0; word-break: keep-all; + font-family: inherit; + line-height: inherit; + color: inherit; border: 1px solid transparent; border-right-width: 0; border-left-width: 0; border-radius: 0; outline: 1px solid transparent; font-size: 2.44em; - font-weight: 600; } + font-weight: bold; } @media (prefers-reduced-motion: reduce) { - .editor-post-title__block .editor-post-title__input { + .editor-post-title .editor-post-title__input { transition-duration: 0s; } } @media (min-width: 600px) { - .editor-post-title__block .editor-post-title__input { - border-width: 1px; - border-right-width: 0; } } - .editor-post-title__block .editor-post-title__input::-webkit-input-placeholder { + .editor-post-title .editor-post-title__input { + border-width: 1px; } } + .editor-post-title .editor-post-title__input::-webkit-input-placeholder { color: rgba(22, 36, 53, 0.55); } - .editor-post-title__block .editor-post-title__input::-moz-placeholder { + .editor-post-title .editor-post-title__input::-moz-placeholder { color: rgba(22, 36, 53, 0.55); } - .editor-post-title__block .editor-post-title__input:-ms-input-placeholder { + .editor-post-title .editor-post-title__input:-ms-input-placeholder { color: rgba(22, 36, 53, 0.55); } - .editor-post-title__block .editor-post-title__input:focus { + .editor-post-title .editor-post-title__input:focus { border: 1px solid transparent; - border-right-width: 0; outline: 1px solid transparent; box-shadow: none; } - .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(66, 88, 99, 0.4); - box-shadow: inset -3px 0 0 0 #555d66; } - .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(255, 255, 255, 0.45); - box-shadow: inset -3px 0 0 0 #d7dade; } - @media (min-width: 600px) { - .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - box-shadow: 3px 0 0 0 #555d66; } - .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - box-shadow: 3px 0 0 0 #d7dade; } } - .editor-post-title__block.is-focus-mode .editor-post-title__input { + .editor-post-title.is-focus-mode .editor-post-title__input { opacity: 0.5; transition: opacity 0.1s linear; } @media (prefers-reduced-motion: reduce) { - .editor-post-title__block.is-focus-mode .editor-post-title__input { + .editor-post-title.is-focus-mode .editor-post-title__input { transition-duration: 0s; } } - .editor-post-title__block.is-focus-mode .editor-post-title__input:focus { + .editor-post-title.is-focus-mode .editor-post-title__input:focus { opacity: 1; } -.editor-post-title .editor-post-permalink { - font-size: 13px; - color: #191e23; - height: auto; - position: relative; - right: 3px; - top: -2px; - width: calc(100% - 3px); } - @media (min-width: 480px) { - .editor-post-title .editor-post-permalink { - position: absolute; - top: -34px; - left: 0; - flex-wrap: nowrap; - width: auto; } } - @media (min-width: 600px) { - .editor-post-title .editor-post-permalink { - right: 2px; - left: 2px; } } - .editor-post-trash.components-button { color: #b52727; border-color: #b52727; @@ -780,21 +750,27 @@ body.admin-color-light .editor-post-text-editor__link{ .components-popover.table-of-contents__popover { z-index: 99998; } -.table-of-contents__popover .components-popover__content { +.table-of-contents__popover .components-popover__content > div { padding: 16px; } - @media (min-width: 600px) { - .table-of-contents__popover .components-popover__content { - max-height: calc(100vh - 120px); - overflow-y: auto; } } + +@media (min-width: 600px) { + .table-of-contents__popover .components-popover__content { + max-height: calc(100vh - 120px); + overflow-y: auto; } } .table-of-contents__popover hr { margin: 10px -16px 0; } -.table-of-contents__wrapper:focus { - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; - outline-offset: 8px; } +.table-of-contents__wrapper:focus::before { + content: ""; + display: block; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } .table-of-contents__counts { display: flex; diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css index 0a17b67acb..de327271f4 100644 --- a/wp-includes/css/dist/editor/style-rtl.min.css +++ b/wp-includes/css/dist/editor/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";.editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#23282d;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:56px;left:0;color:#191e23}@media (min-width:600px){.components-editor-notices__dismissible{top:0}}.components-editor-notices__pinned{position:relative;right:0;top:0;left:0;color:#191e23}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:6px 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin:6px 5px 6px -5px}.components-editor-notices__snackbar{width:100%}.editor-entities-saved-states__save-button{display:block;margin-right:auto;margin-left:0}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title{height:auto}.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{background:#f3f4f5!important;border:none!important;box-shadow:none!important}.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-permalink{display:inline-flex;align-items:center;flex-wrap:wrap;background:#fff;padding:8px 8px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid #b5bcc2;background-clip:padding-box;border-right:0;box-shadow:3px 0 0 0 #555d66;outline:1px solid transparent;margin-right:-15px;margin-left:-15px}.is-dark-theme .editor-post-permalink{box-shadow:3px 0 0 0 #d7dade}@media (min-width:480px){.editor-post-permalink{padding:4px}}@media (min-width:600px){.editor-post-permalink{margin-right:-1px;margin-left:-1px}}.editor-post-permalink.editor-post-permalink>*{margin-bottom:8px}@media (min-width:480px){.editor-post-permalink.editor-post-permalink>*{margin-bottom:0}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 5px 0 10px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-left:10px;flex-grow:1;overflow:hidden;position:relative;white-space:nowrap;text-align:right}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-right:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-left:6px;flex:0 0 0%}.editor-post-permalink-editor__prefix{text-align:right}.editor-post-permalink__link{text-align:left}.editor-post-permalink__editor-container,.editor-post-permalink__link{direction:ltr}.editor-post-permalink__link:after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff 90%);top:0;bottom:0;right:0;left:auto;width:20%;height:auto}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:8px;padding-left:8px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button.has-icon{position:absolute;left:8px}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:left;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-datetime{padding:0}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#555d66;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;margin-left:4px;fill:currentColor}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-left:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;padding-right:2px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7!important;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace!important;line-height:150%;border-radius:0!important;font-size:16px!important}@media (min-width:600px){.editor-post-text-editor{font-size:14px!important}}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #b5bcc2!important;box-shadow:none!important;outline-offset:-2px!important}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:none;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-right:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:none;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input{margin-right:28px}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 14px;word-break:keep-all;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:600}@media (prefers-reduced-motion:reduce){.editor-post-title__block .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px 0 1px 1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:focus{border:1px solid transparent;border-right-width:0;outline:1px solid transparent;box-shadow:none}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(66,88,99,.4);box-shadow:inset -3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:hsla(0,0%,100%,.45);box-shadow:inset -3px 0 0 0 #d7dade}@media (min-width:600px){.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:3px 0 0 0 #d7dade}}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title__block.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;height:auto;position:relative;right:3px;top:-2px;width:calc(100% - 3px)}@media (min-width:480px){.editor-post-title .editor-post-permalink{position:absolute;top:-34px;left:0;flex-wrap:nowrap;width:auto}}@media (min-width:600px){.editor-post-title .editor-post-permalink{right:2px;left:2px}}.editor-post-trash.components-button{color:#b52727;border-color:#b52727;justify-content:center}.editor-post-trash.components-button:not(:disabled):not([aria-disabled=true]):hover,.editor-post-trash.components-button:not([aria-disabled=true]):focus{color:#a02222;border-color:#a02222}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66;outline-offset:8px}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781;padding-left:8px;margin-bottom:0}.table-of-contents__count:last-child{padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#23282d;text-align:right;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;left:0;color:#191e23}.components-editor-notices__pinned{position:relative;right:0;top:0;left:0;color:#191e23}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;right:auto;width:280px;border-right:1px solid #e2e4e7}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-right:8px;padding-left:8px;height:61px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;left:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #e2e4e7;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f3f4f5}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:8px;padding-left:8px;height:61px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button.has-icon{position:absolute;left:8px}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:left;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-left:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;padding-right:2px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #ccc;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;border-radius:0;min-height:200px;padding:16px;font-size:16px!important}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border:1px solid #1e1e1e;box-shadow:none;position:relative}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;border:2px solid #757575;margin-left:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:6px 6px 0 0;background-color:#fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{margin:3px 3px 0 0}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{border-color:#757575;box-shadow:0 0 0 1px #757575}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:focus{box-shadow:0 0 0 1.5px #757575}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin-right:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;line-height:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{color:#b52727;border-color:#b52727;justify-content:center}.editor-post-trash.components-button:not(:disabled):not([aria-disabled=true]):hover,.editor-post-trash.components-button:not([aria-disabled=true]):focus{color:#a02222;border-color:#a02222}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781;padding-left:8px;margin-bottom:0}.table-of-contents__count:last-child{padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style.css b/wp-includes/css/dist/editor/style.css index b231a618ff..2e6c7286d1 100644 --- a/wp-includes/css/dist/editor/style.css +++ b/wp-includes/css/dist/editor/style.css @@ -9,12 +9,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -25,7 +40,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -43,8 +58,10 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -.editor-autocompleters__block .block-editor-block-icon { - margin-right: 8px; } +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } .editor-autocompleters__user .editor-autocompleters__no-avatar::before { /* stylelint-disable */ @@ -117,13 +134,13 @@ margin: 0 0 0 -1px; padding: 2px 5px 2px 1px; color: #23282d; - text-align: left; } + text-align: left; + border-radius: 2px; } .document-outline__button:disabled { cursor: default; } .document-outline__button:focus { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); outline: 2px solid transparent; } .document-outline__level { @@ -142,12 +159,9 @@ .components-editor-notices__dismissible { position: -webkit-sticky; position: sticky; - top: 56px; + top: 0; right: 0; color: #191e23; } - @media (min-width: 600px) { - .components-editor-notices__dismissible { - top: 0; } } .components-editor-notices__pinned { position: relative; @@ -161,19 +175,69 @@ box-sizing: border-box; margin: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.2); - padding: 6px 12px; + padding: 0 12px; min-height: 60px; } .components-editor-notices__dismissible .components-notice .components-notice__dismiss, .components-editor-notices__pinned .components-notice .components-notice__dismiss { - margin: 6px -5px 6px 5px; } + margin-top: 12px; } .components-editor-notices__snackbar { width: 100%; } + @media (min-width: 782px) { + .components-editor-notices__snackbar { + width: fit-content; + width: -moz-fit-content; } } -.editor-entities-saved-states__save-button { - display: block; - margin-left: auto; - margin-right: 0; } +.entities-saved-states__panel { + box-sizing: border-box; + background: #fff; + position: fixed; + z-index: 100001; + top: 46px; + bottom: 0; + right: 0; + left: 0; + overflow: auto; + box-sizing: border-box; } + .entities-saved-states__panel *, + .entities-saved-states__panel *::before, + .entities-saved-states__panel *::after { + box-sizing: inherit; } + .entities-saved-states__panel .entities-saved-states__find-entity { + display: none; } + .entities-saved-states__panel .entities-saved-states__find-entity-small { + display: block; } + @media (min-width: 782px) { + .entities-saved-states__panel { + z-index: 99998; + top: 32px; + left: auto; + width: 280px; + border-left: 1px solid #e2e4e7; } + body.is-fullscreen-mode .entities-saved-states__panel { + top: 0; } + .entities-saved-states__panel .entities-saved-states__find-entity { + display: block; } + .entities-saved-states__panel .entities-saved-states__find-entity-small { + display: none; } } + .entities-saved-states__panel .entities-saved-states__panel-header { + background: #fff; + padding-left: 8px; + padding-right: 8px; + height: 61px; + border-bottom: 1px solid #e2e4e7; + display: flex; + align-items: center; + align-content: space-between; } + .entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button { + margin: auto; } + .entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon { + position: absolute; + right: 8px; } + .entities-saved-states__panel .entities-saved-states__text-prompt { + border-bottom: 1px solid #e2e4e7; + padding: 16px; + padding-bottom: 4px; } .editor-error-boundary { margin: auto; @@ -268,18 +332,14 @@ .editor-post-last-revision__title .dashicon { margin-right: 5px; } -.components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title { - height: auto; } - .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:hover, .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:active { - background: #f3f4f5 !important; - border: none !important; - box-shadow: none !important; } - .components-button:not(:disabled):not([aria-disabled="true"]).editor-post-last-revision__title:focus { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } +.components-button.editor-post-last-revision__title { + height: 100%; } + .components-button.editor-post-last-revision__title:hover, .components-button.editor-post-last-revision__title:active { + background: #f3f4f5; } + .components-button.editor-post-last-revision__title:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 0; } .editor-post-locked-modal { height: auto; @@ -302,129 +362,6 @@ margin: 5px; margin-right: 15px; } -.editor-post-permalink { - display: inline-flex; - align-items: center; - flex-wrap: wrap; - background: #fff; - padding: 8px 8px 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - height: 40px; - white-space: nowrap; - border: 1px solid #b5bcc2; - background-clip: padding-box; - border-left: 0; - box-shadow: -3px 0 0 0 #555d66; - outline: 1px solid transparent; - margin-left: -15px; - margin-right: -15px; } - .is-dark-theme .editor-post-permalink { - box-shadow: -3px 0 0 0 #d7dade; } - @media (min-width: 480px) { - .editor-post-permalink { - padding: 4px; } } - @media (min-width: 600px) { - .editor-post-permalink { - margin-left: -1px; - margin-right: -1px; } } - .editor-post-permalink.editor-post-permalink > * { - margin-bottom: 8px; } - @media (min-width: 480px) { - .editor-post-permalink.editor-post-permalink > * { - margin-bottom: 0; } } - .editor-post-permalink button { - flex-shrink: 0; } - -.editor-post-permalink__copy { - border-radius: 4px; - padding: 6px; } - -.editor-post-permalink__copy.is-copied { - opacity: 0.3; } - -.editor-post-permalink__label { - margin: 0 10px 0 5px; - font-weight: 600; } - -.editor-post-permalink__link { - color: #7e8993; - text-decoration: underline; - margin-right: 10px; - flex-grow: 1; - overflow: hidden; - position: relative; - white-space: nowrap; - text-align: left; } - -.editor-post-permalink-editor { - width: 100%; - min-width: 20%; - display: inline-flex; - align-items: center; } - .editor-post-permalink-editor .editor-post-permalink__editor-container { - flex: 0 1 100%; - display: flex; - overflow: hidden; - padding: 1px 0; } - .editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix { - flex: 1 1 auto; } - @media (min-width: 600px) { - .editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix { - flex: 1 0 auto; } } - .editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit { - flex: 1 1 100%; } - .editor-post-permalink-editor .editor-post-permalink-editor__save { - margin-left: auto; } - -.editor-post-permalink-editor__prefix { - color: #6c7781; - min-width: 20%; - overflow: hidden; - position: relative; - white-space: nowrap; - text-overflow: ellipsis; } - -.editor-post-permalink input[type="text"].editor-post-permalink-editor__edit { - min-width: 10%; - width: 100%; - margin: 0 3px; - padding: 2px 4px; } - -.editor-post-permalink-editor__suffix { - color: #6c7781; - margin-right: 6px; - flex: 0 0 0%; } - -.editor-post-permalink-editor__prefix { - text-align: left; } - -/* rtl:begin:ignore */ -.editor-post-permalink__link { - text-align: left; } - -.editor-post-permalink__editor-container, -.editor-post-permalink__link { - direction: ltr; } - -.editor-post-permalink__link::after { - content: ""; - display: block; - position: absolute; - -webkit-touch-callout: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - pointer-events: none; - background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 90%); - top: 0; - bottom: 0; - right: 0; - left: auto; - width: 20%; - height: auto; } - -/* rtl:end:ignore */ .editor-post-publish-button__button.has-changes-dot::before { background: currentcolor; border-radius: 4px; @@ -437,7 +374,7 @@ background: #fff; } .editor-post-publish-panel__content { - min-height: calc(100% - 140px); } + min-height: calc(100% - 144px); } .editor-post-publish-panel__content .components-spinner { display: block; margin: 100px auto 0; } @@ -446,7 +383,7 @@ background: #fff; padding-left: 8px; padding-right: 8px; - height: 56px; + height: 61px; border-bottom: 1px solid #e2e4e7; display: flex; align-items: center; @@ -490,8 +427,6 @@ margin-right: -16px; } .editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend { display: none; } - .editor-post-publish-panel__prepublish .components-datetime { - padding: 0; } .post-publish-panel__postpublish .components-panel__body { border-bottom: 1px solid #e2e4e7; @@ -537,25 +472,22 @@ align-items: center; width: 28px; padding: 12px 4px; - color: #555d66; + color: #757575; overflow: hidden; white-space: nowrap; } .editor-post-saved-state svg { display: inline-block; flex: 0 0 auto; - margin-right: 4px; - fill: currentColor; } + fill: currentColor; + margin-right: 8px; } @media (min-width: 600px) { .editor-post-saved-state { width: auto; padding: 8px 12px; text-indent: inherit; } - .editor-post-saved-state .dashicon { + .editor-post-saved-state svg { margin-right: 4px; } } -.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft { - margin: 0; } - .editor-post-taxonomies__hierarchical-terms-list { max-height: 14em; overflow: auto; @@ -584,80 +516,31 @@ margin-bottom: 8px; width: 100%; } -.editor-post-text-editor { - border: 1px solid #e2e4e7 !important; +.edit-post-text-editor__body textarea.editor-post-text-editor { + border: 1px solid #ccc; display: block; - margin: 0 0 2em; + margin: 0; width: 100%; box-shadow: none; resize: none; overflow: hidden; - font-family: Menlo, Consolas, monaco, monospace !important; - line-height: 150%; - border-radius: 0 !important; + font-family: Menlo, Consolas, monaco, monospace; + line-height: 2.4; + border-radius: 0; + min-height: 200px; + padding: 16px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px !important; } @media (min-width: 600px) { - .editor-post-text-editor { - font-size: 14px !important; } } - .editor-post-text-editor:hover, .editor-post-text-editor:focus { - border: 1px solid #b5bcc2 !important; - box-shadow: none !important; - outline-offset: -2px !important; } - -.editor-post-text-editor__toolbar { - display: flex; - flex-direction: row; - flex-wrap: wrap; } - .editor-post-text-editor__toolbar button { - height: 30px; - background: none; - padding: 0 8px; - margin: 3px 4px; - text-align: center; - cursor: pointer; - font-family: Menlo, Consolas, monaco, monospace; - color: #555d66; - border: 1px solid transparent; } - .editor-post-text-editor__toolbar button:first-child { - margin-left: 0; } - .editor-post-text-editor__toolbar button:hover, .editor-post-text-editor__toolbar button:focus { - outline: none; - border: 1px solid #555d66; } - -.editor-post-text-editor__bold { - font-weight: 600; } - -.editor-post-text-editor__italic { - font-style: italic; } - -.editor-post-text-editor__link { - text-decoration: underline; - color: #0085ba; } - -body.admin-color-sunrise .editor-post-text-editor__link{ - color: #d1864a; } - -body.admin-color-ocean .editor-post-text-editor__link{ - color: #a3b9a2; } - -body.admin-color-midnight .editor-post-text-editor__link{ - color: #e14d43; } - -body.admin-color-ectoplasm .editor-post-text-editor__link{ - color: #a7b656; } - -body.admin-color-coffee .editor-post-text-editor__link{ - color: #c2a68c; } - -body.admin-color-blue .editor-post-text-editor__link{ - color: #82b4cb; } - -body.admin-color-light .editor-post-text-editor__link{ - color: #0085ba; } - -.editor-post-text-editor__del { - text-decoration: line-through; } + .edit-post-text-editor__body textarea.editor-post-text-editor { + padding: 24px; } } + @media (min-width: 600px) { + .edit-post-text-editor__body textarea.editor-post-text-editor { + font-size: 15px !important; } } + .edit-post-text-editor__body textarea.editor-post-text-editor:focus { + border: 1px solid #1e1e1e; + box-shadow: none; + position: relative; } .edit-post-post-visibility__dialog, .editor-post-visibility__dialog-fieldset { @@ -669,9 +552,83 @@ body.admin-color-light .editor-post-text-editor__link{ margin-bottom: 1em; margin-top: 0.5em; padding: 0; } - .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio, - .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 2px solid #757575; + margin-right: 12px; + transition: none; + border-radius: 50%; margin-top: 2px; } + @media (prefers-reduced-motion: reduce) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked::before, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked::before { + width: 6px; + height: 6px; + margin: 6px 0 0 6px; + background-color: #fff; } + @media (min-width: 782px) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked::before, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked::before { + margin: 3px 0 0 3px; } } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:focus { + border-color: #757575; + box-shadow: 0 0 0 1px #757575; } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type="radio"]:checked:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type="radio"]:checked:focus { + box-shadow: 0 0 0 1.5px #757575; } .edit-post-post-visibility__dialog .editor-post-visibility__dialog-label, .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label { font-weight: 600; } @@ -682,94 +639,103 @@ body.admin-color-light .editor-post-text-editor__link{ .edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info, .editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info { margin-bottom: 0; } - .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input, - .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; margin-left: 28px; } + @media (prefers-reduced-motion: reduce) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"], + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]:focus, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(14, 28, 46, 0.62); } + .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder, + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder { + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder, .is-dark-theme + .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type="text"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } -.editor-post-title__block { - position: relative; - padding: 5px 0; - font-size: 16px; } - @media (min-width: 600px) { - .editor-post-title__block { - padding: 5px 2px; } } - .editor-post-title__block .editor-post-title__input { +.editor-post-title { + position: relative; } + .editor-post-title .editor-post-title__input { display: block; width: 100%; margin: 0; box-shadow: none; background: transparent; - font-family: "Noto Serif", serif; - line-height: 1.4; - color: #191e23; transition: border 0.1s ease-out, box-shadow 0.1s linear; - padding: 19px 14px; + padding: 19px 0; word-break: keep-all; + font-family: inherit; + line-height: inherit; + color: inherit; border: 1px solid transparent; border-left-width: 0; border-right-width: 0; border-radius: 0; outline: 1px solid transparent; font-size: 2.44em; - font-weight: 600; } + font-weight: bold; } @media (prefers-reduced-motion: reduce) { - .editor-post-title__block .editor-post-title__input { + .editor-post-title .editor-post-title__input { transition-duration: 0s; } } @media (min-width: 600px) { - .editor-post-title__block .editor-post-title__input { - border-width: 1px; - border-left-width: 0; } } - .editor-post-title__block .editor-post-title__input::-webkit-input-placeholder { + .editor-post-title .editor-post-title__input { + border-width: 1px; } } + .editor-post-title .editor-post-title__input::-webkit-input-placeholder { color: rgba(22, 36, 53, 0.55); } - .editor-post-title__block .editor-post-title__input::-moz-placeholder { + .editor-post-title .editor-post-title__input::-moz-placeholder { color: rgba(22, 36, 53, 0.55); } - .editor-post-title__block .editor-post-title__input:-ms-input-placeholder { + .editor-post-title .editor-post-title__input:-ms-input-placeholder { color: rgba(22, 36, 53, 0.55); } - .editor-post-title__block .editor-post-title__input:focus { + .editor-post-title .editor-post-title__input:focus { border: 1px solid transparent; - border-left-width: 0; outline: 1px solid transparent; box-shadow: none; } - .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(66, 88, 99, 0.4); - box-shadow: inset 3px 0 0 0 #555d66; } - .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(255, 255, 255, 0.45); - box-shadow: inset 3px 0 0 0 #d7dade; } - @media (min-width: 600px) { - .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - box-shadow: -3px 0 0 0 #555d66; } - .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - box-shadow: -3px 0 0 0 #d7dade; } } - .editor-post-title__block.is-focus-mode .editor-post-title__input { + .editor-post-title.is-focus-mode .editor-post-title__input { opacity: 0.5; transition: opacity 0.1s linear; } @media (prefers-reduced-motion: reduce) { - .editor-post-title__block.is-focus-mode .editor-post-title__input { + .editor-post-title.is-focus-mode .editor-post-title__input { transition-duration: 0s; } } - .editor-post-title__block.is-focus-mode .editor-post-title__input:focus { + .editor-post-title.is-focus-mode .editor-post-title__input:focus { opacity: 1; } -.editor-post-title .editor-post-permalink { - font-size: 13px; - color: #191e23; - height: auto; - position: relative; - left: 3px; - top: -2px; - width: calc(100% - 3px); } - @media (min-width: 480px) { - .editor-post-title .editor-post-permalink { - position: absolute; - top: -34px; - right: 0; - flex-wrap: nowrap; - width: auto; } } - @media (min-width: 600px) { - .editor-post-title .editor-post-permalink { - left: 2px; - right: 2px; } } - .editor-post-trash.components-button { color: #b52727; border-color: #b52727; @@ -784,21 +750,27 @@ body.admin-color-light .editor-post-text-editor__link{ .components-popover.table-of-contents__popover { z-index: 99998; } -.table-of-contents__popover .components-popover__content { +.table-of-contents__popover .components-popover__content > div { padding: 16px; } - @media (min-width: 600px) { - .table-of-contents__popover .components-popover__content { - max-height: calc(100vh - 120px); - overflow-y: auto; } } + +@media (min-width: 600px) { + .table-of-contents__popover .components-popover__content { + max-height: calc(100vh - 120px); + overflow-y: auto; } } .table-of-contents__popover hr { margin: 10px -16px 0; } -.table-of-contents__wrapper:focus { - color: #191e23; - outline-offset: -1px; - outline: 1px dotted #555d66; - outline-offset: 8px; } +.table-of-contents__wrapper:focus::before { + content: ""; + display: block; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } .table-of-contents__counts { display: flex; diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css index 67967fbf48..3ae838c77d 100644 --- a/wp-includes/css/dist/editor/style.min.css +++ b/wp-includes/css/dist/editor/style.min.css @@ -1 +1 @@ -@charset "UTF-8";.editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#23282d;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:56px;right:0;color:#191e23}@media (min-width:600px){.components-editor-notices__dismissible{top:0}}.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#191e23}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:6px 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin:6px -5px 6px 5px}.components-editor-notices__snackbar{width:100%}.editor-entities-saved-states__save-button{display:block;margin-left:auto;margin-right:0}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title{height:auto}.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{background:#f3f4f5!important;border:none!important;box-shadow:none!important}.components-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-permalink{display:inline-flex;align-items:center;flex-wrap:wrap;background:#fff;padding:8px 8px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid #b5bcc2;background-clip:padding-box;border-left:0;box-shadow:-3px 0 0 0 #555d66;outline:1px solid transparent;margin-left:-15px;margin-right:-15px}.is-dark-theme .editor-post-permalink{box-shadow:-3px 0 0 0 #d7dade}@media (min-width:480px){.editor-post-permalink{padding:4px}}@media (min-width:600px){.editor-post-permalink{margin-left:-1px;margin-right:-1px}}.editor-post-permalink.editor-post-permalink>*{margin-bottom:8px}@media (min-width:480px){.editor-post-permalink.editor-post-permalink>*{margin-bottom:0}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 10px 0 5px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-right:10px;flex-grow:1;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-left:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-right:6px;flex:0 0 0%}.editor-post-permalink-editor__prefix,.editor-post-permalink__link{text-align:left}.editor-post-permalink__editor-container,.editor-post-permalink__link{direction:ltr}.editor-post-permalink__link:after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff 90%);top:0;bottom:0;right:0;left:auto;width:20%;height:auto}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:8px;padding-right:8px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button.has-icon{position:absolute;right:8px}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:right;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-datetime{padding:0}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#555d66;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;margin-right:4px;fill:currentColor}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-right:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;padding-left:2px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7!important;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace!important;line-height:150%;border-radius:0!important;font-size:16px!important}@media (min-width:600px){.editor-post-text-editor{font-size:14px!important}}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #b5bcc2!important;box-shadow:none!important;outline-offset:-2px!important}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:none;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-left:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:none;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input{margin-left:28px}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 14px;word-break:keep-all;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:600}@media (prefers-reduced-motion:reduce){.editor-post-title__block .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px 1px 1px 0}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:focus{border:1px solid transparent;border-left-width:0;outline:1px solid transparent;box-shadow:none}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(66,88,99,.4);box-shadow:inset 3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:hsla(0,0%,100%,.45);box-shadow:inset 3px 0 0 0 #d7dade}@media (min-width:600px){.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:-3px 0 0 0 #d7dade}}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title__block.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;height:auto;position:relative;left:3px;top:-2px;width:calc(100% - 3px)}@media (min-width:480px){.editor-post-title .editor-post-permalink{position:absolute;top:-34px;right:0;flex-wrap:nowrap;width:auto}}@media (min-width:600px){.editor-post-title .editor-post-permalink{left:2px;right:2px}}.editor-post-trash.components-button{color:#b52727;border-color:#b52727;justify-content:center}.editor-post-trash.components-button:not(:disabled):not([aria-disabled=true]):hover,.editor-post-trash.components-button:not([aria-disabled=true]):focus{color:#a02222;border-color:#a02222}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66;outline-offset:8px}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781;padding-right:8px;margin-bottom:0}.table-of-contents__count:last-child{padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{font:normal 20px/1 dashicons;content:"\f110";margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#23282d;text-align:left;border-radius:2px}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible{position:-webkit-sticky;position:sticky;top:0;right:0;color:#191e23}.components-editor-notices__pinned{position:relative;left:0;top:0;right:0;color:#191e23}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{box-sizing:border-box;margin:0;border-bottom:1px solid rgba(0,0,0,.2);padding:0 12px;min-height:60px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.components-editor-notices__snackbar{width:100%}@media (min-width:782px){.components-editor-notices__snackbar{width:fit-content;width:-moz-fit-content}}.entities-saved-states__panel{background:#fff;position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto;box-sizing:border-box}.entities-saved-states__panel *,.entities-saved-states__panel :after,.entities-saved-states__panel :before{box-sizing:inherit}.entities-saved-states__panel .entities-saved-states__find-entity{display:none}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__panel{z-index:99998;top:32px;left:auto;width:280px;border-left:1px solid #e2e4e7}body.is-fullscreen-mode .entities-saved-states__panel{top:0}.entities-saved-states__panel .entities-saved-states__find-entity{display:block}.entities-saved-states__panel .entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel .entities-saved-states__panel-header{background:#fff;padding-left:8px;padding-right:8px;height:61px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.entities-saved-states__panel .entities-saved-states__panel-header .editor-entities-saved-states__save-button{margin:auto}.entities-saved-states__panel .entities-saved-states__panel-header .components-button.has-icon{position:absolute;right:8px}.entities-saved-states__panel .entities-saved-states__text-prompt{border-bottom:1px solid #e2e4e7;padding:16px 16px 4px}.editor-error-boundary{max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image__container{margin-bottom:1em;position:relative}.editor-post-featured-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-post-featured-image .components-button+.components-button{display:block;margin-top:1em}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;min-height:90px;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f3f4f5}.components-button.editor-post-last-revision__title:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color);border-radius:0}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content .components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:8px;padding-right:8px;height:61px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header .components-button.has-icon{position:absolute;right:8px}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:right;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;width:28px;padding:12px 4px;color:#757575;overflow:hidden;white-space:nowrap}.editor-post-saved-state svg{display:inline-block;flex:0 0 auto;fill:currentColor;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state svg{margin-right:4px}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto;padding-left:2px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #ccc;display:block;margin:0;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;border-radius:0;min-height:200px;padding:16px;font-size:16px!important}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{padding:24px;font-size:15px!important}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border:1px solid #1e1e1e;box-shadow:none;position:relative}.edit-post-post-visibility__dialog,.editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;border:2px solid #757575;margin-right:12px;transition:none;border-radius:50%;margin-top:2px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{width:6px;height:6px;margin:6px 0 0 6px;background-color:#fff}@media (min-width:782px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:before,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:before{margin:3px 0 0 3px}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:focus{border-color:#757575;box-shadow:0 0 0 1px #757575}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked{background:#007cba;background:var(--wp-admin-theme-color);border-color:#007cba;border-color:var(--wp-admin-theme-color)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked:focus{box-shadow:0 0 0 1.5px #757575}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin-left:28px}@media (prefers-reduced-motion:reduce){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{transition-duration:0s}}@media (min-width:600px){.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text],.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]{font-size:13px;line-height:normal}}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:focus,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder,.is-dark-theme .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.editor-post-title{position:relative}.editor-post-title .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 0;word-break:keep-all;font-family:inherit;line-height:inherit;color:inherit;border-color:transparent;border-style:solid;border-width:1px 0;border-radius:0;outline:1px solid transparent;font-size:2.44em;font-weight:700}@media (prefers-reduced-motion:reduce){.editor-post-title .editor-post-title__input{transition-duration:0s}}@media (min-width:600px){.editor-post-title .editor-post-title__input{border-width:1px}}.editor-post-title .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title .editor-post-title__input:focus{border:1px solid transparent;outline:1px solid transparent;box-shadow:none}.editor-post-title.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.editor-post-title.is-focus-mode .editor-post-title__input{transition-duration:0s}}.editor-post-title.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-trash.components-button{color:#b52727;border-color:#b52727;justify-content:center}.editor-post-trash.components-button:not(:disabled):not([aria-disabled=true]):hover,.editor-post-trash.components-button:not([aria-disabled=true]):focus{color:#a02222;border-color:#a02222}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content>div{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:0}.table-of-contents__count{flex-basis:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781;padding-right:8px;margin-bottom:0}.table-of-contents__count:last-child{padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/format-library/style-rtl.css b/wp-includes/css/dist/format-library/style-rtl.css index 4e0e3595cf..47e577a7c4 100644 --- a/wp-includes/css/dist/format-library/style-rtl.css +++ b/wp-includes/css/dist/format-library/style-rtl.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .block-editor-format-toolbar__image-container-content { display: flex; } .block-editor-format-toolbar__image-container-content .components-button { @@ -88,17 +108,20 @@ left: auto; margin: 0 5px; } -.components-inline-color-popover .components-popover__content { +.components-inline-color-popover .components-popover__content > div { padding: 20px 18px; } - .components-inline-color-popover .components-popover__content .components-color-palette { - margin-top: 0.6rem; } - .components-inline-color-popover .components-popover__content .components-base-control__title { - display: block; - margin-bottom: 16px; - font-weight: 600; - color: #191e23; } - .components-inline-color-popover .components-popover__content .component-color-indicator { - vertical-align: text-bottom; } + +.components-inline-color-popover .components-popover__content .components-color-palette { + margin-top: 0.6rem; } + +.components-inline-color-popover .components-popover__content .components-base-control__title { + display: block; + margin-bottom: 16px; + font-weight: 600; + color: #191e23; } + +.components-inline-color-popover .components-popover__content .component-color-indicator { + vertical-align: text-bottom; } .format-library-text-color-button { position: relative; } @@ -107,5 +130,5 @@ height: 4px; width: 20px; position: absolute; - bottom: 6px; + bottom: 10px; right: 8px; } diff --git a/wp-includes/css/dist/format-library/style-rtl.min.css b/wp-includes/css/dist/format-library/style-rtl.min.css index 012771ade8..e34757421a 100644 --- a/wp-includes/css/dist/format-library/style-rtl.min.css +++ b/wp-includes/css/dist/format-library/style-rtl.min.css @@ -1 +1 @@ -.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-left:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin:0 5px}.components-inline-color-popover .components-popover__content{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:6px;right:8px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-left:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin:0 5px}.components-inline-color-popover .components-popover__content>div{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:10px;right:8px} \ No newline at end of file diff --git a/wp-includes/css/dist/format-library/style.css b/wp-includes/css/dist/format-library/style.css index 6b64b92644..1a15d193a3 100644 --- a/wp-includes/css/dist/format-library/style.css +++ b/wp-includes/css/dist/format-library/style.css @@ -8,12 +8,27 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. */ /** * Grid System. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. + */ /** * Breakpoint mixins */ @@ -24,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -42,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .block-editor-format-toolbar__image-container-content { display: flex; } .block-editor-format-toolbar__image-container-content .components-button { @@ -88,17 +108,20 @@ right: auto; margin: 0 5px; } -.components-inline-color-popover .components-popover__content { +.components-inline-color-popover .components-popover__content > div { padding: 20px 18px; } - .components-inline-color-popover .components-popover__content .components-color-palette { - margin-top: 0.6rem; } - .components-inline-color-popover .components-popover__content .components-base-control__title { - display: block; - margin-bottom: 16px; - font-weight: 600; - color: #191e23; } - .components-inline-color-popover .components-popover__content .component-color-indicator { - vertical-align: text-bottom; } + +.components-inline-color-popover .components-popover__content .components-color-palette { + margin-top: 0.6rem; } + +.components-inline-color-popover .components-popover__content .components-base-control__title { + display: block; + margin-bottom: 16px; + font-weight: 600; + color: #191e23; } + +.components-inline-color-popover .components-popover__content .component-color-indicator { + vertical-align: text-bottom; } .format-library-text-color-button { position: relative; } @@ -107,5 +130,5 @@ height: 4px; width: 20px; position: absolute; - bottom: 6px; + bottom: 10px; left: 8px; } diff --git a/wp-includes/css/dist/format-library/style.min.css b/wp-includes/css/dist/format-library/style.min.css index d5f0c2ab9f..36fa8a8401 100644 --- a/wp-includes/css/dist/format-library/style.min.css +++ b/wp-includes/css/dist/format-library/style.min.css @@ -1 +1 @@ -.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-right:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin:0 5px}.components-inline-color-popover .components-popover__content{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:6px;left:8px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-button{align-self:flex-end;height:30px;margin-bottom:8px;margin-right:8px;padding:0 6px}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label{display:block}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}.components-inline-color__indicator{position:absolute;background:#000;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin:0 5px}.components-inline-color-popover .components-popover__content>div{padding:20px 18px}.components-inline-color-popover .components-popover__content .components-color-palette{margin-top:.6rem}.components-inline-color-popover .components-popover__content .components-base-control__title{display:block;margin-bottom:16px;font-weight:600;color:#191e23}.components-inline-color-popover .components-popover__content .component-color-indicator{vertical-align:text-bottom}.format-library-text-color-button{position:relative}.format-library-text-color-button__indicator{height:4px;width:20px;position:absolute;bottom:10px;left:8px} \ No newline at end of file diff --git a/wp-includes/css/dist/list-reusable-blocks/style-rtl.css b/wp-includes/css/dist/list-reusable-blocks/style-rtl.css index 98085c7036..e67552b13a 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style-rtl.css +++ b/wp-includes/css/dist/list-reusable-blocks/style-rtl.css @@ -8,7 +8,26 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -20,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -38,7 +57,12 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -.list-reusable-blocks-import-dropdown__content .components-popover__content { +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +.list-reusable-blocks-import-dropdown__content .components-popover__content > div { padding: 10px; } .list-reusable-blocks-import-form__label { @@ -59,3 +83,38 @@ top: -3px; } .list-reusable-blocks__container .components-button { height: 26px; } + +body.admin-color-light { + --wp-admin-theme-color: #0085ba; + --wp-admin-theme-color-darker-10: #0073a1; + --wp-admin-theme-color-darker-20: #006187; } + +body.admin-color-blue { + --wp-admin-theme-color: #096484; + --wp-admin-theme-color-darker-10: #07526c; + --wp-admin-theme-color-darker-20: #064054; } + +body.admin-color-coffee { + --wp-admin-theme-color: #46403c; + --wp-admin-theme-color-darker-10: #383330; + --wp-admin-theme-color-darker-20: #2b2724; } + +body.admin-color-ectoplasm { + --wp-admin-theme-color: #523f6d; + --wp-admin-theme-color-darker-10: #46365d; + --wp-admin-theme-color-darker-20: #3a2c4d; } + +body.admin-color-midnight { + --wp-admin-theme-color: #e14d43; + --wp-admin-theme-color-darker-10: #dd382d; + --wp-admin-theme-color-darker-20: #d02c21; } + +body.admin-color-ocean { + --wp-admin-theme-color: #627c83; + --wp-admin-theme-color-darker-10: #576e74; + --wp-admin-theme-color-darker-20: #4c6066; } + +body.admin-color-sunrise { + --wp-admin-theme-color: #dd823b; + --wp-admin-theme-color-darker-10: #d97426; + --wp-admin-theme-color-darker-20: #c36922; } diff --git a/wp-includes/css/dist/list-reusable-blocks/style-rtl.min.css b/wp-includes/css/dist/list-reusable-blocks/style-rtl.min.css index de1b1229b2..220fc22f34 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style-rtl.min.css +++ b/wp-includes/css/dist/list-reusable-blocks/style-rtl.min.css @@ -1 +1 @@ -.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:left}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;align-items:center;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.list-reusable-blocks-import-dropdown__content .components-popover__content>div{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:left}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;align-items:center;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/list-reusable-blocks/style.css b/wp-includes/css/dist/list-reusable-blocks/style.css index 288ae6773e..6296c8db68 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style.css +++ b/wp-includes/css/dist/list-reusable-blocks/style.css @@ -8,7 +8,26 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -20,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -38,7 +57,12 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ -.list-reusable-blocks-import-dropdown__content .components-popover__content { +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + +.list-reusable-blocks-import-dropdown__content .components-popover__content > div { padding: 10px; } .list-reusable-blocks-import-form__label { @@ -59,3 +83,38 @@ top: -3px; } .list-reusable-blocks__container .components-button { height: 26px; } + +body.admin-color-light { + --wp-admin-theme-color: #0085ba; + --wp-admin-theme-color-darker-10: #0073a1; + --wp-admin-theme-color-darker-20: #006187; } + +body.admin-color-blue { + --wp-admin-theme-color: #096484; + --wp-admin-theme-color-darker-10: #07526c; + --wp-admin-theme-color-darker-20: #064054; } + +body.admin-color-coffee { + --wp-admin-theme-color: #46403c; + --wp-admin-theme-color-darker-10: #383330; + --wp-admin-theme-color-darker-20: #2b2724; } + +body.admin-color-ectoplasm { + --wp-admin-theme-color: #523f6d; + --wp-admin-theme-color-darker-10: #46365d; + --wp-admin-theme-color-darker-20: #3a2c4d; } + +body.admin-color-midnight { + --wp-admin-theme-color: #e14d43; + --wp-admin-theme-color-darker-10: #dd382d; + --wp-admin-theme-color-darker-20: #d02c21; } + +body.admin-color-ocean { + --wp-admin-theme-color: #627c83; + --wp-admin-theme-color-darker-10: #576e74; + --wp-admin-theme-color-darker-20: #4c6066; } + +body.admin-color-sunrise { + --wp-admin-theme-color: #dd823b; + --wp-admin-theme-color-darker-10: #d97426; + --wp-admin-theme-color-darker-20: #c36922; } diff --git a/wp-includes/css/dist/list-reusable-blocks/style.min.css b/wp-includes/css/dist/list-reusable-blocks/style.min.css index 0d913f58e5..d4108677fb 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style.min.css +++ b/wp-includes/css/dist/list-reusable-blocks/style.min.css @@ -1 +1 @@ -.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:right}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;align-items:center;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.list-reusable-blocks-import-dropdown__content .components-popover__content>div{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:right}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;align-items:center;position:relative;top:-3px}.list-reusable-blocks__container .components-button{height:26px}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922} \ No newline at end of file diff --git a/wp-includes/css/dist/nux/style-rtl.css b/wp-includes/css/dist/nux/style-rtl.css index 5c40f21acd..e5f511d2c7 100644 --- a/wp-includes/css/dist/nux/style-rtl.css +++ b/wp-includes/css/dist/nux/style-rtl.css @@ -8,7 +8,26 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -20,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -38,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .nux-dot-tip::before, .nux-dot-tip::after { border-radius: 100%; content: " "; @@ -66,8 +90,9 @@ transform: scale(1); } } .nux-dot-tip .components-popover__content { - padding: 5px 20px 5px 41px; width: 350px; } + .nux-dot-tip .components-popover__content > div { + padding: 20px 18px; } @media (min-width: 600px) { .nux-dot-tip .components-popover__content { width: 450px; } } diff --git a/wp-includes/css/dist/nux/style-rtl.min.css b/wp-includes/css/dist/nux/style-rtl.min.css index 1814f2778a..ddbac22e31 100644 --- a/wp-includes/css/dist/nux/style-rtl.min.css +++ b/wp-includes/css/dist/nux/style-rtl.min.css @@ -1 +1 @@ -.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:rgba(0,115,156,.9);height:24px;right:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:5px 20px 5px 41px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;left:0;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-right:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-right:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{-ms-grid-row-align:end;align-self:end;right:5px;margin:20px 0 0;max-width:none!important;position:fixed;left:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:0}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:-12px} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:rgba(0,115,156,.9);height:24px;right:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{width:350px}.nux-dot-tip .components-popover__content>div{padding:20px 18px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;left:0;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-right:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-right:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{-ms-grid-row-align:end;align-self:end;right:5px;margin:20px 0 0;max-width:none!important;position:fixed;left:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:0}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{margin-right:-12px} \ No newline at end of file diff --git a/wp-includes/css/dist/nux/style.css b/wp-includes/css/dist/nux/style.css index 96b7cc35b9..58c6761a24 100644 --- a/wp-includes/css/dist/nux/style.css +++ b/wp-includes/css/dist/nux/style.css @@ -8,7 +8,26 @@ * Colors */ /** - * Often re-used variables + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -20,7 +39,7 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument @@ -38,6 +57,11 @@ /** * Reset the WP Admin page styles for Gutenberg-like pages. */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .nux-dot-tip::before, .nux-dot-tip::after { border-radius: 100%; content: " "; @@ -66,8 +90,9 @@ transform: scale(1); } } .nux-dot-tip .components-popover__content { - padding: 5px 41px 5px 20px; width: 350px; } + .nux-dot-tip .components-popover__content > div { + padding: 20px 18px; } @media (min-width: 600px) { .nux-dot-tip .components-popover__content { width: 450px; } } diff --git a/wp-includes/css/dist/nux/style.min.css b/wp-includes/css/dist/nux/style.min.css index 6d80289a2d..a7ec58f6c6 100644 --- a/wp-includes/css/dist/nux/style.min.css +++ b/wp-includes/css/dist/nux/style.min.css @@ -1,4 +1,4 @@ -.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:rgba(0,115,156,.9);height:24px;left:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:5px 41px 5px 20px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;right:0;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-left:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-left:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{-ms-grid-row-align:end;align-self:end;left:5px;margin:20px 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{ +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}.nux-dot-tip:after,.nux-dot-tip:before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip:before{animation:nux-pulse 1.6s cubic-bezier(.17,.67,.92,.62) infinite;background:rgba(0,115,156,.9);height:24px;left:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip:after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{to{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{width:350px}.nux-dot-tip .components-popover__content>div{padding:20px 18px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;right:0;top:0}.nux-dot-tip[data-y-axis=top]{margin-top:-4px}.nux-dot-tip[data-y-axis=bottom]{margin-top:4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left]{margin-left:-4px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right]{margin-left:4px}.nux-dot-tip[data-y-axis=top] .components-popover__content{margin-bottom:20px}.nux-dot-tip[data-y-axis=bottom] .components-popover__content{margin-top:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=left] .components-popover__content{margin-right:20px}.nux-dot-tip[data-y-axis=middle][data-y-axis=right] .components-popover__content{margin-left:20px}.nux-dot-tip[data-y-axis=center],.nux-dot-tip[data-y-axis=left],.nux-dot-tip[data-y-axis=right]{z-index:1000001}@media (max-width:600px){.nux-dot-tip[data-y-axis=center] .components-popover__content,.nux-dot-tip[data-y-axis=left] .components-popover__content,.nux-dot-tip[data-y-axis=right] .components-popover__content{-ms-grid-row-align:end;align-self:end;left:5px;margin:20px 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{ /*!rtl:ignore*/margin-left:0}.nux-dot-tip.components-popover:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{ /*!rtl:ignore*/margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not([data-y-axis=middle])[data-y-axis=right] .components-popover__content{ /*!rtl:ignore*/margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not([data-y-axis=middle])[data-y-axis=left] .components-popover__content{ diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js index 3d0ae4a67e..8298e7f60c 100644 --- a/wp-includes/js/dist/a11y.js +++ b/wp-includes/js/dist/a11y.js @@ -82,71 +82,115 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 445); +/******/ return __webpack_require__(__webpack_require__.s = 455); /******/ }) /************************************************************************/ /******/ ({ -/***/ 260: +/***/ 1: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["i18n"]; }()); + +/***/ }), + +/***/ 252: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["domReady"]; }()); /***/ }), -/***/ 445: +/***/ 455: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external {"this":["wp","domReady"]} -var external_this_wp_domReady_ = __webpack_require__(260); +var external_this_wp_domReady_ = __webpack_require__(252); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); -// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/add-intro-text.js +/** + * WordPress dependencies + */ + +/** + * Build the explanatory text to be placed before the aria live regions. + * + * This text is initially hidden from assistive technologies by using a `hidden` + * HTML attribute which is then removed once a message fills the aria-live regions. + * + * @return {HTMLParagraphElement} The explanatory text HTML element. + */ + +function addIntroText() { + var introText = document.createElement('p'); + introText.id = 'a11y-speak-intro-text'; + introText.className = 'a11y-speak-intro-text'; + introText.textContent = Object(external_this_wp_i18n_["__"])('Notifications'); + introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;'); + introText.setAttribute('hidden', 'hidden'); + var _document = document, + body = _document.body; + + if (body) { + body.appendChild(introText); + } + + return introText; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/add-container.js /** * Build the live regions markup. * - * @param {string} ariaLive Optional. Value for the 'aria-live' attribute, default 'polite'. + * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'. * * @return {HTMLDivElement} The ARIA live region HTML element. */ -var addContainer = function addContainer(ariaLive) { - ariaLive = ariaLive || 'polite'; +function addContainer() { + var ariaLive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'polite'; var container = document.createElement('div'); - container.id = 'a11y-speak-' + ariaLive; + container.id = "a11y-speak-".concat(ariaLive); container.className = 'a11y-speak-region'; container.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;'); container.setAttribute('aria-live', ariaLive); container.setAttribute('aria-relevant', 'additions text'); container.setAttribute('aria-atomic', 'true'); - var body = document.querySelector('body'); + var _document = document, + body = _document.body; if (body) { body.appendChild(container); } return container; -}; - -/* harmony default export */ var build_module_addContainer = (addContainer); +} // CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/clear.js /** - * Clear the a11y-speak-region elements. + * Clears the a11y-speak-region elements and hides the explanatory text. */ -var clear = function clear() { - var regions = document.querySelectorAll('.a11y-speak-region'); +function clear() { + var regions = document.getElementsByClassName('a11y-speak-region'); + var introText = document.getElementById('a11y-speak-intro-text'); for (var i = 0; i < regions.length; i++) { regions[i].textContent = ''; + } // Make sure the explanatory text is hidden from assistive technologies. + + + if (introText) { + introText.setAttribute('hidden', 'hidden'); } -}; +} -/* harmony default export */ var build_module_clear = (clear); - -// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/filterMessage.js +// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/filter-message.js var previousMessage = ''; /** * Filter the message to be announced to the screenreader. @@ -156,7 +200,7 @@ var previousMessage = ''; * @return {string} The filtered message. */ -var filterMessage = function filterMessage(message) { +function filterMessage(message) { /* * Strip HTML tags (if any) from the message string. Ideally, messages should * be simple strings, carefully crafted for specific use with A11ySpeak. @@ -165,6 +209,10 @@ var filterMessage = function filterMessage(message) { * spaces natively. */ message = message.replace(/<[^<>]+>/g, ' '); + /* + * Safari + VoiceOver don't announce repeated, identical strings. We use + * a `no-break space` to force them to think identical strings are different. + */ if (previousMessage === message) { message += "\xA0"; @@ -172,13 +220,11 @@ var filterMessage = function filterMessage(message) { previousMessage = message; return message; -}; - -/* harmony default export */ var build_module_filterMessage = (filterMessage); +} // CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setup", function() { return build_module_setup; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "speak", function() { return build_module_speak; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setup", function() { return setup; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "speak", function() { return speak; }); /** * WordPress dependencies */ @@ -190,34 +236,39 @@ var filterMessage = function filterMessage(message) { + /** * Create the live regions. */ -var build_module_setup = function setup() { - var containerPolite = document.getElementById('a11y-speak-polite'); +function setup() { + var introText = document.getElementById('a11y-speak-intro-text'); var containerAssertive = document.getElementById('a11y-speak-assertive'); + var containerPolite = document.getElementById('a11y-speak-polite'); - if (containerPolite === null) { - build_module_addContainer('polite'); + if (introText === null) { + addIntroText(); } if (containerAssertive === null) { - build_module_addContainer('assertive'); + addContainer('assertive'); } -}; + + if (containerPolite === null) { + addContainer('polite'); + } +} /** * Run setup on domReady. */ -external_this_wp_domReady_default()(build_module_setup); +external_this_wp_domReady_default()(setup); /** * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions. - * This module is inspired by the `speak` function in wp-a11y.js + * This module is inspired by the `speak` function in `wp-a11y.js`. * - * @param {string} message The message to be announced by Assistive Technologies. - * @param {string} ariaLive Optional. The politeness level for aria-live. Possible values: - * polite or assertive. Default polite. + * @param {string} message The message to be announced by assistive technologies. + * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'. * * @example * ```js @@ -231,19 +282,32 @@ external_this_wp_domReady_default()(build_module_setup); * ``` */ -var build_module_speak = function speak(message, ariaLive) { - // Clear previous messages to allow repeated strings being read out. - build_module_clear(); - message = build_module_filterMessage(message); - var containerPolite = document.getElementById('a11y-speak-polite'); +function speak(message, ariaLive) { + /* + * Clear previous messages to allow repeated strings being read out and hide + * the explanatory text from assistive technologies. + */ + clear(); + message = filterMessage(message); + var introText = document.getElementById('a11y-speak-intro-text'); var containerAssertive = document.getElementById('a11y-speak-assertive'); + var containerPolite = document.getElementById('a11y-speak-polite'); - if (containerAssertive && 'assertive' === ariaLive) { + if (containerAssertive && ariaLive === 'assertive') { containerAssertive.textContent = message; } else if (containerPolite) { containerPolite.textContent = message; } -}; + /* + * Make the explanatory text available to assistive technologies by removing + * the 'hidden' HTML attribute. + */ + + + if (introText) { + introText.removeAttribute('hidden'); + } +} /***/ }) diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js index c8659e2b4c..466aa0bcad 100644 --- a/wp-includes/js/dist/a11y.min.js +++ b/wp-includes/js/dist/a11y.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=445)}({260:function(e,t){!function(){e.exports=this.wp.domReady}()},445:function(e,t,n){"use strict";n.r(t);var r=n(260),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document.querySelector("body");return n&&n.appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&i("polite"),null===t&&i("assertive")};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=455)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},252:function(t,e){!function(){t.exports=this.wp.domReady}()},455:function(t,e,n){"use strict";n.r(e);var r=n(252),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d})),i()(p)}}); \ No newline at end of file diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js index b4e856ddb9..6a18697355 100644 --- a/wp-includes/js/dist/annotations.js +++ b/wp-includes/js/dist/annotations.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 435); +/******/ return __webpack_require__(__webpack_require__.s = 444); /******/ }) /************************************************************************/ /******/ ({ @@ -94,119 +94,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /***/ }), -/***/ 116: -/***/ (function(module, exports) { - -// Unique ID creation requires a high quality random # generator. In the -// browser this is a little complicated due to unknown quality of Math.random() -// and inconsistent support for the `crypto` API. We do the best we can via -// feature-detection - -// getRandomValues needs to be invoked in a context where "this" is a Crypto -// implementation. Also, find the complete implementation of crypto on IE11. -var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) || - (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto)); - -if (getRandomValues) { - // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto - var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef - - module.exports = function whatwgRNG() { - getRandomValues(rnds8); - return rnds8; - }; -} else { - // Math.random()-based (RNG) - // - // If all else fails, use Math.random(). It's fast, but is of unspecified - // quality. - var rnds = new Array(16); - - module.exports = function mathRNG() { - for (var i = 0, r; i < 16; i++) { - if ((i & 0x03) === 0) r = Math.random() * 0x100000000; - rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; - } - - return rnds; - }; -} - - -/***/ }), - -/***/ 117: -/***/ (function(module, exports) { - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; -for (var i = 0; i < 256; ++i) { - byteToHex[i] = (i + 0x100).toString(16).substr(1); -} - -function bytesToUuid(buf, offset) { - var i = offset || 0; - var bth = byteToHex; - // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - return ([bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]]]).join(''); -} - -module.exports = bytesToUuid; - - -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(25); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(35); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); - - - - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} - -/***/ }), - -/***/ 19: +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -229,6 +122,41 @@ function _objectWithoutProperties(source, excluded) { /***/ }), +/***/ 16: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(26); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(35); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(28); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + /***/ 2: /***/ (function(module, exports) { @@ -236,14 +164,14 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 24: +/***/ 25: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["richText"]; }()); /***/ }), -/***/ 25: +/***/ 26: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -260,25 +188,25 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 27: +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); + if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } /***/ }), -/***/ 32: +/***/ 31: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["hooks"]; }()); @@ -303,7 +231,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 40: +/***/ 41: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -585,7 +513,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 43: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -607,7 +535,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 435: +/***/ 444: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -615,7 +543,7 @@ __webpack_require__.r(__webpack_exports__); var selectors_namespaceObject = {}; __webpack_require__.r(selectors_namespaceObject); __webpack_require__.d(selectors_namespaceObject, "__experimentalGetAnnotationsForBlock", function() { return __experimentalGetAnnotationsForBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetAllAnnotationsForBlock", function() { return selectors_experimentalGetAllAnnotationsForBlock; }); +__webpack_require__.d(selectors_namespaceObject, "__experimentalGetAllAnnotationsForBlock", function() { return __experimentalGetAllAnnotationsForBlock; }); __webpack_require__.d(selectors_namespaceObject, "__experimentalGetAnnotationsForRichText", function() { return __experimentalGetAnnotationsForRichText; }); __webpack_require__.d(selectors_namespaceObject, "__experimentalGetAnnotations", function() { return __experimentalGetAnnotations; }); var actions_namespaceObject = {}; @@ -629,7 +557,7 @@ __webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsB var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -746,10 +674,10 @@ function reducer_annotations() { /* harmony default export */ var reducer = (reducer_annotations); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(40); +var rememo = __webpack_require__(41); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js @@ -791,9 +719,9 @@ var __experimentalGetAnnotationsForBlock = Object(rememo["a" /* default */])(fun }, function (state, blockClientId) { return [Object(external_this_lodash_["get"])(state, blockClientId, EMPTY_ARRAY)]; }); -var selectors_experimentalGetAllAnnotationsForBlock = function __experimentalGetAllAnnotationsForBlock(state, blockClientId) { +function __experimentalGetAllAnnotationsForBlock(state, blockClientId) { return Object(external_this_lodash_["get"])(state, blockClientId, EMPTY_ARRAY); -}; +} /** * Returns the annotations that apply to the given RichText instance. * @@ -832,15 +760,81 @@ function __experimentalGetAnnotations(state) { }); } -// EXTERNAL MODULE: ./node_modules/uuid/v4.js -var v4 = __webpack_require__(83); -var v4_default = /*#__PURE__*/__webpack_require__.n(v4); +// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/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()). +// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, +// find the complete implementation of crypto (msCrypto) on IE11. +var getRandomValues = typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != 'undefined' && typeof msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto); +var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef +function rng() { + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + + return getRandomValues(rnds8); +} +// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/bytesToUuid.js +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +var byteToHex = []; + +for (var bytesToUuid_i = 0; bytesToUuid_i < 256; ++bytesToUuid_i) { + byteToHex[bytesToUuid_i] = (bytesToUuid_i + 0x100).toString(16).substr(1); +} + +function bytesToUuid(buf, offset) { + var i = offset || 0; + var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 + + return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join(''); +} + +/* harmony default export */ var esm_browser_bytesToUuid = (bytesToUuid); +// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/v4.js + + + +function v4(options, buf, offset) { + var i = buf && offset || 0; + + if (typeof options == 'string') { + buf = options === 'binary' ? new Array(16) : null; + options = null; + } + + options = options || {}; + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + for (var ii = 0; ii < 16; ++ii) { + buf[i + ii] = rnds[ii]; + } + } + + return buf || esm_browser_bytesToUuid(rnds); +} + +/* harmony default export */ var esm_browser_v4 = (v4); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js /** * External dependencies */ +/** + * @typedef WPAnnotationRange + * + * @property {number} start The offset where the annotation should start. + * @property {number} end The offset where the annotation should end. + */ + /** * Adds an annotation to a block. * @@ -851,15 +845,13 @@ var v4_default = /*#__PURE__*/__webpack_require__.n(v4); * * The `range` property is only relevant if the selector is 'range'. * - * @param {Object} annotation The annotation to add. - * @param {string} annotation.blockClientId The blockClientId to add the annotation to. - * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to. - * @param {Object} annotation.range The range at which to apply this annotation. - * @param {number} annotation.range.start The offset where the annotation should start. - * @param {number} annotation.range.end The offset where the annotation should end. - * @param {string} annotation.[selector="range"] The way to apply this annotation. - * @param {string} annotation.[source="default"] The source that added the annotation. - * @param {string} annotation.[id] The ID the annotation should have. Generates a UUID by default. + * @param {Object} annotation The annotation to add. + * @param {string} annotation.blockClientId The blockClientId to add the annotation to. + * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to. + * @param {WPAnnotationRange} annotation.range The range at which to apply this annotation. + * @param {string} [annotation.selector="range"] The way to apply this annotation. + * @param {string} [annotation.source="default"] The source that added the annotation. + * @param {string} [annotation.id] The ID the annotation should have. Generates a UUID by default. * * @return {Object} Action object. */ @@ -875,7 +867,7 @@ function __experimentalAddAnnotation(_ref) { _ref$source = _ref.source, source = _ref$source === void 0 ? 'default' : _ref$source, _ref$id = _ref.id, - id = _ref$id === void 0 ? v4_default()() : _ref$id; + id = _ref$id === void 0 ? esm_browser_v4() : _ref$id; var action = { type: 'ANNOTATION_ADD', id: id, @@ -963,7 +955,7 @@ var store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, { /* harmony default export */ var build_module_store = (store); // EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(24); +var external_this_wp_richText_ = __webpack_require__(25); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); @@ -1159,7 +1151,7 @@ var format_name = annotation_annotation.name, Object(external_this_wp_richText_["registerFormatType"])(format_name, settings); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(32); +var external_this_wp_hooks_ = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/block/index.js /** @@ -1222,42 +1214,6 @@ function _defineProperty(obj, key, value) { return obj; } -/***/ }), - -/***/ 83: -/***/ (function(module, exports, __webpack_require__) { - -var rng = __webpack_require__(116); -var bytesToUuid = __webpack_require__(117); - -function v4(options, buf, offset) { - var i = buf && offset || 0; - - if (typeof(options) == 'string') { - buf = options === 'binary' ? new Array(16) : null; - options = null; - } - options = options || {}; - - var rnds = options.random || (options.rng || rng)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - for (var ii = 0; ii < 16; ++ii) { - buf[i + ii] = rnds[ii]; - } - } - - return buf || bytesToUuid(rnds); -} - -module.exports = v4; - - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index 9b512ad1b7..80cda4a167 100644 --- a/wp-includes/js/dist/annotations.min.js +++ b/wp-includes/js/dist/annotations.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=435)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},116:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},117:function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,o=n;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},18:function(t,e,n){"use strict";var r=n(25);var o=n(35),a=n(27);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,"a",(function(){return i}))},19:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(43);function o(t,e){if(null==t)return{};var n,o,a=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}},2:function(t,e){!function(){t.exports=this.lodash}()},24:function(t,e){!function(){t.exports=this.wp.richText}()},25:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},435:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return m})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return _})),n.d(o,"__experimentalRemoveAnnotation",(function(){return w})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return N})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return T}));var a=n(4),i=n(18),u=n(5),c=n(2);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var n=e.blockClientId,r={id:e.id,blockClientId:n,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===r.selector&&!p(r.range))return t;var o=Object(c.get)(t,n,[]);return s({},t,Object(u.a)({},n,[].concat(Object(i.a)(o),[r])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(t,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,s({},t,{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.source!==e.source}))}))}return t},b=n(19),O=n(40);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=[],g=Object(O.a)((function(t,e){return Object(c.get)(t,e,[]).filter((function(t){return"block"===t.selector}))}),(function(t,e){return[Object(c.get)(t,e,y)]})),m=function(t,e){return Object(c.get)(t,e,y)},j=Object(O.a)((function(t,e,n){return Object(c.get)(t,e,[]).filter((function(t){return"range"===t.selector&&n===t.richTextIdentifier})).map((function(t){return function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var n=e.start,r=e.end;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+e.source,a="annotation-text-"+e.id;t=Object(P.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),t}(r,e)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(e){var n=function(t){var e={};return t.forEach((function(t,n){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,e,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;t.forEach((function(t){var n=e[t.id];if(n){var a=t.start,i=t.end;a===n.start&&i===n.end||o(t.id,n.start,n.end)}else r(t.id)}))}(t.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},R=I.name,S=Object(b.a)(I,["name"]);Object(P.registerFormatType)(R,S);var k=n(32);Object(k.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,e){var n=e.clientId,r=e.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(n).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},83:function(t,e,n){var r=n(116),o=n(117);t.exports=function(t,e,n){var a=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var u=0;u<16;++u)e[a+u]=i[u];return e||o(i)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=444)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(42);function o(t,e){if(null==t)return{};var n,o,a=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}},16:function(t,e,n){"use strict";var r=n(26);var o=n(35),a=n(28);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,"a",(function(){return i}))},2:function(t,e){!function(){t.exports=this.lodash}()},25:function(t,e){!function(){t.exports=this.wp.richText}()},26:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},444:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return m})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return h})),n.d(r,"__experimentalGetAnnotations",(function(){return j}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return E})),n.d(o,"__experimentalRemoveAnnotation",(function(){return I})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return R})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return S}));var a=n(4),i=n(16),u=n(5),c=n(2);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var n=e.blockClientId,r={id:e.id,blockClientId:n,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===r.selector&&!p(r.range))return t;var o=Object(c.get)(t,n,[]);return s({},t,Object(u.a)({},n,[].concat(Object(i.a)(o),[r])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(t,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,s({},t,{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.source!==e.source}))}))}return t},b=n(14),O=n(41);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=[],g=Object(O.a)((function(t,e){return Object(c.get)(t,e,[]).filter((function(t){return"block"===t.selector}))}),(function(t,e){return[Object(c.get)(t,e,y)]}));function m(t,e){return Object(c.get)(t,e,y)}var h=Object(O.a)((function(t,e,n){return Object(c.get)(t,e,[]).filter((function(t){return"range"===t.selector&&n===t.richTextIdentifier})).map((function(t){return function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var n=e.start,r=e.end;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+e.source,a="annotation-text-"+e.id;t=Object(k.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),t}(r,e)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(e){var n=function(t){var e={};return t.forEach((function(t,n){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,e,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;t.forEach((function(t){var n=e[t.id];if(n){var a=t.start,i=t.end;a===n.start&&i===n.end||o(t.id,n.start,n.end)}else r(t.id)}))}(t.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},M=C.name,V=Object(b.a)(C,["name"]);Object(k.registerFormatType)(M,V);var F=n(31);Object(F.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,e){var n=e.clientId,r=e.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(n).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/api-fetch.js b/wp-includes/js/dist/api-fetch.js index 1d553008ab..dd9063c19b 100644 --- a/wp-includes/js/dist/api-fetch.js +++ b/wp-includes/js/dist/api-fetch.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 434); +/******/ return __webpack_require__(__webpack_require__.s = 447); /******/ }) /************************************************************************/ /******/ ({ @@ -94,12 +94,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /***/ }), -/***/ 19: +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -136,7 +136,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 43: +/***/ 42: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -158,7 +158,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 434: +/***/ 447: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -168,7 +168,7 @@ __webpack_require__.r(__webpack_exports__); var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); @@ -346,7 +346,7 @@ var external_this_regeneratorRuntime_ = __webpack_require__(23); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(49); +var asyncToGenerator = __webpack_require__(46); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(30); @@ -364,6 +364,11 @@ function fetch_all_middleware_objectSpread(target) { for (var i = 1; i < argumen /** * WordPress dependencies */ + +/** + * Internal dependencies + */ + // Apply query arguments to both URL and Path, whichever is present. var fetch_all_middleware_modifyQuery = function modifyQuery(_ref, queryArgs) { @@ -409,12 +414,8 @@ var requestContainsUnboundedQuery = function requestContainsUnboundedQuery(optio // then recursively assemble a full response array from all available pages. -var fetchAllMiddleware = -/*#__PURE__*/ -function () { - var _ref2 = Object(asyncToGenerator["a" /* default */])( - /*#__PURE__*/ - external_this_regeneratorRuntime_default.a.mark(function _callee(options, next) { +var fetchAllMiddleware = /*#__PURE__*/function () { + var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(options, next) { var response, results, nextPage, mergedResults, nextResponse, nextResults; return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { while (1) { @@ -437,7 +438,7 @@ function () { case 4: _context.next = 6; - return next(fetch_all_middleware_objectSpread({}, fetch_all_middleware_modifyQuery(options, { + return build_module(fetch_all_middleware_objectSpread({}, fetch_all_middleware_modifyQuery(options, { per_page: 100 }), { // Ensure headers are returned for page 1. @@ -480,7 +481,7 @@ function () { } _context.next = 19; - return next(fetch_all_middleware_objectSpread({}, options, { + return build_module(fetch_all_middleware_objectSpread({}, options, { // Ensure the URL for the next page is used instead of any provided path. path: undefined, url: nextPage, @@ -913,7 +914,7 @@ apiFetch.mediaUploadMiddleware = media_upload; /***/ }), -/***/ 49: +/***/ 46: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js index 9750d1ad78..3dd53ecb2f 100644 --- a/wp-includes/js/dist/api-fetch.min.js +++ b/wp-includes/js/dist/api-fetch.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=434)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},19:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(43);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},30:function(e,t){!function(){e.exports=this.wp.url}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},434:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(19),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},m=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},x=function(){var e=Object(y.a)(j.a.mark((function e(t,r){var n,c,i,a,u,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(m(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,r(g({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,g({},Object(o.a)(p,["path","url"]),{url:O&&Object(h.addQueryArgs)(O,f),path:l&&Object(h.addQueryArgs)(l,f)})),{parse:!1}));case 6:return n=e.sent,e.next=9,P(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=w(n)){e.next=15;break}return e.abrupt("return",c);case 15:a=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,r(g({},t,{path:void 0,url:i,parse:!1}));case 19:return u=e.sent,e.next=22,P(u);case 22:s=e.sent,a=a.concat(s),i=w(u),e.next=16;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},k=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(E(e,t)).catch((function(e){return A(e,t)}))};function A(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return k(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e,t);var r=0;return t(function(e){for(var t=1;t=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):A(n,e.parse)})).then((function(t){return T(t,e.parse)}))};function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t=200&&e.status<300)return e;throw e},I=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,a=void 0===i||i,u=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N({},L,{},p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,N({},U,{},u,{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(H).catch((function(e){return A(e,a)})).then((function(e){return T(e,a)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function R(e){var t=[].concat(G,[I]);return new Promise((function(r,n){(function e(r){return function(n){var o=t[r];return r===t.length-1?o(n):o(n,e(r+1))}})(0)(e).then(r).catch((function(t){if("rest_cookie_invalid_nonce"!==t.code)return n(t);window.fetch(R.nonceEndpoint).then(H).then((function(e){return e.text()})).then((function(t){R.nonceMiddleware.nonce=t,R(e).then(r).catch(n)})).catch(n)}))}))}R.use=function(e){G.unshift(e)},R.setFetchHandler=function(e){I=e},R.createNonceMiddleware=u,R.createPreloadingMiddleware=b,R.createRootURLMiddleware=l,R.fetchAllMiddleware=x,R.mediaUploadMiddleware=C;t.default=R},49:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var a=e[c](i),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)}))}}r.d(t,"a",(function(){return o}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=447)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(42);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},30:function(e,t){!function(){e.exports=this.wp.url}()},42:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},447:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(14),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},m=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},x=function(){var e=Object(y.a)(j.a.mark((function e(t,r){var n,c,i,a,u,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(m(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,F(g({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,g({},Object(o.a)(p,["path","url"]),{url:O&&Object(h.addQueryArgs)(O,f),path:l&&Object(h.addQueryArgs)(l,f)})),{parse:!1}));case 6:return n=e.sent,e.next=9,P(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=w(n)){e.next=15;break}return e.abrupt("return",c);case 15:a=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,F(g({},t,{path:void 0,url:i,parse:!1}));case 19:return u=e.sent,e.next=22,P(u);case 22:s=e.sent,a=a.concat(s),i=w(u),e.next=16;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},k=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(E(e,t)).catch((function(e){return A(e,t)}))};function A(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return k(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e,t);var r=0;return t(function(e){for(var t=1;t=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):A(n,e.parse)})).then((function(t){return T(t,e.parse)}))};function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t=200&&e.status<300)return e;throw e},I=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,a=void 0===i||i,u=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N({},L,{},p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,N({},U,{},u,{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(H).catch((function(e){return A(e,a)})).then((function(e){return T(e,a)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function R(e){var t=[].concat(G,[I]);return new Promise((function(r,n){(function e(r){return function(n){var o=t[r];return r===t.length-1?o(n):o(n,e(r+1))}})(0)(e).then(r).catch((function(t){if("rest_cookie_invalid_nonce"!==t.code)return n(t);window.fetch(R.nonceEndpoint).then(H).then((function(e){return e.text()})).then((function(t){R.nonceMiddleware.nonce=t,R(e).then(r).catch(n)})).catch(n)}))}))}R.use=function(e){G.unshift(e)},R.setFetchHandler=function(e){I=e},R.createNonceMiddleware=u,R.createPreloadingMiddleware=b,R.createRootURLMiddleware=l,R.fetchAllMiddleware=x,R.mediaUploadMiddleware=C;var F=t.default=R},46:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var a=e[c](i),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)}))}}r.d(t,"a",(function(){return o}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/autop.js b/wp-includes/js/dist/autop.js index 9fb0afc8f4..9ed600127c 100644 --- a/wp-includes/js/dist/autop.js +++ b/wp-includes/js/dist/autop.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 279); +/******/ return __webpack_require__(__webpack_require__.s = 277); /******/ }) /************************************************************************/ /******/ ({ -/***/ 20: +/***/ 15: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -123,7 +123,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); +var unsupportedIterableToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -140,7 +140,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 25: +/***/ 26: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -157,38 +157,20 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 27: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} - -/***/ }), - -/***/ 279: +/***/ 277: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "autop", function() { return autop; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removep", function() { return removep; }); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20); +/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); /** * The regular expression for an HTML element. * - * @type {string} + * @type {RegExp} */ var htmlSplitRegex = function () { /* eslint-disable no-multi-spaces */ @@ -224,7 +206,7 @@ var htmlSplitRegex = function () { * Separate HTML elements and comments from the text. * * @param {string} input The text which has to be formatted. - * @return {Array} The formatted text. + * @return {string[]} The formatted text. */ @@ -234,9 +216,16 @@ function htmlSplit(input) { var match; while (match = workingInput.match(htmlSplitRegex)) { - parts.push(workingInput.slice(0, match.index)); + // The `match` result, when invoked on a RegExp with the `g` flag (`/foo/g`) will not include `index`. + // If the `g` flag is omitted, `index` is included. + // `htmlSplitRegex` does not have the `g` flag so we can assert it will have an index number. + // Assert `match.index` is a number. + var index = + /** @type {number} */ + match.index; + parts.push(workingInput.slice(0, index)); parts.push(match[0]); - workingInput = workingInput.slice(match.index + match[0].length); + workingInput = workingInput.slice(index + match[0].length); } if (workingInput.length) { @@ -248,9 +237,9 @@ function htmlSplit(input) { /** * Replace characters or phrases within HTML elements only. * - * @param {string} haystack The text which has to be formatted. - * @param {Object} replacePairs In the form {from: 'to', ...}. - * @return {string} The formatted text. + * @param {string} haystack The text which has to be formatted. + * @param {Record} replacePairs In the form {from: 'to', …}. + * @return {string} The formatted text. */ @@ -467,6 +456,8 @@ function removep(html) { var blocklist = 'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure'; var blocklist1 = blocklist + '|div|p'; var blocklist2 = blocklist + '|pre'; + /** @type {string[]} */ + var preserve = []; var preserveLinebreaks = false; var preserveBr = false; @@ -514,7 +505,7 @@ function removep(html) { html = html.replace(/\n[\s\u00a0]+\n/g, '\n\n'); // Replace
    tags with line breaks. - html = html.replace(/(\s*)
    \s*/gi, function (match, space) { + html = html.replace(/(\s*)
    \s*/gi, function (_, space) { if (space && space.indexOf('\n') !== -1) { return '\n\n'; } @@ -569,7 +560,10 @@ function removep(html) { if (preserve.length) { html = html.replace(//g, function () { - return preserve.shift(); + return ( + /** @type {string} */ + preserve.shift() + ); }); } @@ -577,6 +571,24 @@ function removep(html) { } +/***/ }), + +/***/ 28: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); +} + /***/ }), /***/ 38: diff --git a/wp-includes/js/dist/autop.min.js b/wp-includes/js/dist/autop.min.js index 0e19ffb810..44d4fe2eba 100644 --- a/wp-includes/js/dist/autop.min.js +++ b/wp-includes/js/dist/autop.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=279)}({20:function(e,r,n){"use strict";var t=n(38);var p=n(27),c=n(39);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}n.d(r,"a",(function(){return a}))},25:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);)n.push(t.slice(0,r.index)),n.push(r[0]),t=t.slice(r.index+r[0].length);return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([u,o.substr(l)+""]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="

    "+r.replace(/^\n*|\n*$/g,"")+"

    \n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

    \s*<\/p>/g,"")).replace(/

    ([^<]+)<\/(div|address|form)>/g,"

    $1

    ")).replace(new RegExp("

    \\s*(]*>)\\s*

    ","g"),"$1")).replace(/

    (/g,"$1")).replace(/

    ]*)>/gi,"

    ")).replace(/<\/blockquote><\/p>/g,"

    ")).replace(new RegExp("

    \\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

    ","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"")}))).replace(/
    |/g,"
    ")).replace(/(
    )?\s*\n/g,(function(e,r){return r?e:"
    \n"}))).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
    ","g"),"$1")).replace(/
    (\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

    "),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),""}))),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/
    (\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

    ]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

    /gi,"\n\n")).replace(/\s*

    /gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
    \s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*

    \s*/g,"
    \n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"

    \n")).replace(/\s*(

    ]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=277)}({15:function(e,r,n){"use strict";var t=n(38);var p=n(28),c=n(39);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}n.d(r,"a",(function(){return a}))},26:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([u,o.substr(l)+""]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="

    "+r.replace(/^\n*|\n*$/g,"")+"

    \n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

    \s*<\/p>/g,"")).replace(/

    ([^<]+)<\/(div|address|form)>/g,"

    $1

    ")).replace(new RegExp("

    \\s*(]*>)\\s*

    ","g"),"$1")).replace(/

    (/g,"$1")).replace(/

    ]*)>/gi,"

    ")).replace(/<\/blockquote><\/p>/g,"

    ")).replace(new RegExp("

    \\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

    ","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"")}))).replace(/
    |/g,"
    ")).replace(/(
    )?\s*\n/g,(function(e,r){return r?e:"
    \n"}))).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
    ","g"),"$1")).replace(/
    (\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

    "),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),""}))),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/
    (\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

    ]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

    /gi,"\n\n")).replace(/\s*

    /gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
    \s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*

    \s*/g,"
    \n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"

    \n")).replace(/\s*(

    ]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},28:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(26);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js index ff1596ad5d..f986b69dbb 100644 --- a/wp-includes/js/dist/blob.js +++ b/wp-includes/js/dist/blob.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 280); +/******/ return __webpack_require__(__webpack_require__.s = 278); /******/ }) /************************************************************************/ /******/ ({ -/***/ 280: +/***/ 278: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -103,7 +103,7 @@ var _window$URL = window.URL, createObjectURL = _window$URL.createObjectURL, revokeObjectURL = _window$URL.revokeObjectURL; /** - * @type {{[key: string]: File|undefined}} + * @type {Record} */ var cache = {}; diff --git a/wp-includes/js/dist/blob.min.js b/wp-includes/js/dist/blob.min.js index b34f4c37f2..9ef208d152 100644 --- a/wp-includes/js/dist/blob.min.js +++ b/wp-includes/js/dist/blob.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=280)}({280:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=278)}({278:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-directory.js b/wp-includes/js/dist/block-directory.js index 0dcce3756c..e14662d104 100644 --- a/wp-includes/js/dist/block-directory.js +++ b/wp-includes/js/dist/block-directory.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 429); +/******/ return __webpack_require__(__webpack_require__.s = 439); /******/ }) /************************************************************************/ /******/ ({ @@ -101,56 +101,95 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] = /***/ }), -/***/ 10: +/***/ 12: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blocks"]; }()); /***/ }), -/***/ 18: +/***/ 130: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(25); -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. + +/* eslint-disable jsdoc/valid-types */ + +/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ + +/* eslint-enable jsdoc/valid-types */ + +/** + * Return an SVG icon. + * + * @param {IconProps} props icon is the SVG component to render + * size is a number specifiying the icon size in pixels + * Other props will be passed to wrapped SVG component + * + * @return {JSX.Element} Icon component + */ + +function Icon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ + width: size, + height: size + }, props)); } -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(35); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); +/* harmony default export */ __webpack_exports__["a"] = (Icon); +/***/ }), +/***/ 14: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; } /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: +/***/ 15: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -186,7 +225,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); +var unsupportedIterableToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -203,6 +242,48 @@ function _slicedToArray(arr, i) { /***/ }), +/***/ 16: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(26); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(35); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(28); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + /***/ 23: /***/ (function(module, exports) { @@ -210,7 +291,14 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 25: +/***/ 253: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["editPost"]; }()); + +/***/ }), + +/***/ 26: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -227,22 +315,74 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 27: +/***/ 279: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (starFilled); + + +/***/ }), + +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); + if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } +/***/ }), + +/***/ 280: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (starEmpty); + + /***/ }), /***/ 3: @@ -263,6 +403,13 @@ function _iterableToArray(iter) { /***/ }), +/***/ 36: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["dataControls"]; }()); + +/***/ }), + /***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -293,13 +440,28 @@ function _nonIterableRest() { /***/ }), /***/ 42: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["apiFetch"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} /***/ }), -/***/ 429: +/***/ 439: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -310,25 +472,35 @@ __webpack_require__.d(selectors_namespaceObject, "isRequestingDownloadableBlocks __webpack_require__.d(selectors_namespaceObject, "getDownloadableBlocks", function() { return selectors_getDownloadableBlocks; }); __webpack_require__.d(selectors_namespaceObject, "hasInstallBlocksPermission", function() { return selectors_hasInstallBlocksPermission; }); __webpack_require__.d(selectors_namespaceObject, "getInstalledBlockTypes", function() { return getInstalledBlockTypes; }); +__webpack_require__.d(selectors_namespaceObject, "getNewBlockTypes", function() { return getNewBlockTypes; }); +__webpack_require__.d(selectors_namespaceObject, "getUnusedBlockTypes", function() { return getUnusedBlockTypes; }); +__webpack_require__.d(selectors_namespaceObject, "isInstalling", function() { return isInstalling; }); +__webpack_require__.d(selectors_namespaceObject, "getErrorNotices", function() { return getErrorNotices; }); +__webpack_require__.d(selectors_namespaceObject, "getErrorNoticeForBlock", function() { return getErrorNoticeForBlock; }); var actions_namespaceObject = {}; __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, "fetchDownloadableBlocks", function() { return fetchDownloadableBlocks; }); __webpack_require__.d(actions_namespaceObject, "receiveDownloadableBlocks", function() { return receiveDownloadableBlocks; }); __webpack_require__.d(actions_namespaceObject, "setInstallBlocksPermission", function() { return setInstallBlocksPermission; }); -__webpack_require__.d(actions_namespaceObject, "downloadBlock", function() { return actions_downloadBlock; }); -__webpack_require__.d(actions_namespaceObject, "installBlock", function() { return actions_installBlock; }); -__webpack_require__.d(actions_namespaceObject, "uninstallBlock", function() { return uninstallBlock; }); +__webpack_require__.d(actions_namespaceObject, "installBlockType", function() { return actions_installBlockType; }); +__webpack_require__.d(actions_namespaceObject, "uninstallBlockType", function() { return actions_uninstallBlockType; }); __webpack_require__.d(actions_namespaceObject, "addInstalledBlockType", function() { return addInstalledBlockType; }); __webpack_require__.d(actions_namespaceObject, "removeInstalledBlockType", function() { return removeInstalledBlockType; }); +__webpack_require__.d(actions_namespaceObject, "setIsInstalling", function() { return setIsInstalling; }); +__webpack_require__.d(actions_namespaceObject, "setErrorNotice", function() { return setErrorNotice; }); +__webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() { return clearErrorNotice; }); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(4); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +// EXTERNAL MODULE: external {"this":["wp","dataControls"]} +var external_this_wp_dataControls_ = __webpack_require__(36); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(5); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(16); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/reducer.js @@ -352,24 +524,20 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va */ var reducer_downloadableBlocks = function downloadableBlocks() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - results: {}, - filterValue: undefined, - isRequestingDownloadableBlocks: true - }; + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var action = arguments.length > 1 ? arguments[1] : undefined; switch (action.type) { case 'FETCH_DOWNLOADABLE_BLOCKS': - return _objectSpread({}, state, { - isRequestingDownloadableBlocks: true - }); + return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.filterValue, { + isRequesting: true + })); case 'RECEIVE_DOWNLOADABLE_BLOCKS': - return _objectSpread({}, state, { - results: Object.assign({}, state.results, Object(defineProperty["a" /* default */])({}, action.filterValue, action.downloadableBlocks)), - isRequestingDownloadableBlocks: false - }); + return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.filterValue, { + results: action.downloadableBlocks, + isRequesting: false + })); } return state; @@ -385,7 +553,8 @@ var reducer_downloadableBlocks = function downloadableBlocks() { var reducer_blockManagement = function blockManagement() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - installedBlockTypes: [] + installedBlockTypes: [], + isInstalling: {} }; var action = arguments.length > 1 ? arguments[1] : undefined; @@ -401,12 +570,17 @@ var reducer_blockManagement = function blockManagement() { return blockType.name !== action.item.name; }) }); + + case 'SET_INSTALLING_BLOCK': + return _objectSpread({}, state, { + isInstalling: _objectSpread({}, state.isInstalling, Object(defineProperty["a" /* default */])({}, action.blockId, action.isInstalling)) + }); } return state; }; /** - * Reducer returns whether the user can install blocks. + * Reducer returning an array of downloadable blocks. * * @param {Object} state Current state. * @param {Object} action Dispatched action. @@ -424,22 +598,92 @@ function reducer_hasPermission() { return state; } +/** + * Reducer returning an object of error notices. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +var reducer_errorNotices = function errorNotices() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'SET_ERROR_NOTICE': + return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.blockId, action.notice)); + } + + return state; +}; /* harmony default export */ var reducer = (Object(external_this_wp_data_["combineReducers"])({ downloadableBlocks: reducer_downloadableBlocks, blockManagement: reducer_blockManagement, - hasPermission: reducer_hasPermission + hasPermission: reducer_hasPermission, + errorNotices: reducer_errorNotices })); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/utils/has-block-type.js +/** + * Check if a block list contains a specific block type. Recursively searches + * through `innerBlocks` if they exist. + * + * @param {Object} blockType A block object to search for. + * @param {Object[]} blocks The list of blocks to look through. + * + * @return {boolean} Whether the blockType is found. + */ +function hasBlockType(blockType) { + var blocks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + + if (!blocks.length) { + return false; + } + + if (blocks.some(function (_ref) { + var name = _ref.name; + return name === blockType.name; + })) { + return true; + } + + for (var i = 0; i < blocks.length; i++) { + if (hasBlockType(blockType, blocks[i].innerBlocks)) { + return true; + } + } + + return false; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/selectors.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + /** * Returns true if application is requesting for downloadable blocks. * - * @param {Object} state Global application state. + * @param {Object} state Global application state. + * @param {string} filterValue Search string. + * * * @return {Array} Downloadable blocks */ -function isRequestingDownloadableBlocks(state) { - return state.downloadableBlocks.isRequestingDownloadableBlocks; + +function isRequestingDownloadableBlocks(state, filterValue) { + if (!state.downloadableBlocks[filterValue] || !state.downloadableBlocks[filterValue].isRequesting) { + return false; + } + + return state.downloadableBlocks[filterValue].isRequesting; } /** * Returns the available uninstalled blocks @@ -451,11 +695,11 @@ function isRequestingDownloadableBlocks(state) { */ function selectors_getDownloadableBlocks(state, filterValue) { - if (!state.downloadableBlocks.results[filterValue]) { + if (!state.downloadableBlocks[filterValue] || !state.downloadableBlocks[filterValue].results) { return []; } - return state.downloadableBlocks.results[filterValue]; + return state.downloadableBlocks[filterValue].results; } /** * Returns true if user has permission to install blocks. @@ -479,221 +723,177 @@ function selectors_hasInstallBlocksPermission(state) { function getInstalledBlockTypes(state) { return state.blockManagement.installedBlockTypes; } +/** + * Returns block types that have been installed on the server and used in the + * current post. + * + * @param {Object} state Global application state. + * + * @return {Array} Block type items. + */ + +var getNewBlockTypes = Object(external_this_wp_data_["createRegistrySelector"])(function (select) { + return function (state) { + var usedBlockTree = select('core/block-editor').getBlocks(); + var installedBlockTypes = getInstalledBlockTypes(state); + var newBlockTypes = []; + installedBlockTypes.forEach(function (blockType) { + if (hasBlockType(blockType, usedBlockTree)) { + newBlockTypes.push(blockType); + } + }); + return newBlockTypes; + }; +}); +/** + * Returns the block types that have been installed on the server but are not + * used in the current post. + * + * @param {Object} state Global application state. + * + * @return {Array} Block type items. + */ + +var getUnusedBlockTypes = Object(external_this_wp_data_["createRegistrySelector"])(function (select) { + return function (state) { + var usedBlockTree = select('core/block-editor').getBlocks(); + var installedBlockTypes = getInstalledBlockTypes(state); + var newBlockTypes = []; + installedBlockTypes.forEach(function (blockType) { + if (!hasBlockType(blockType, usedBlockTree)) { + newBlockTypes.push(blockType); + } + }); + return newBlockTypes; + }; +}); +/** + * Returns true if application is calling install endpoint. + * + * @param {Object} state Global application state. + * @param {string} blockId Id of the block. + * + * @return {boolean} Whether its currently installing + */ + +function isInstalling(state, blockId) { + return state.blockManagement.isInstalling[blockId] || false; +} +/** + * Returns the error notices + * + * @param {Object} state Global application state. + * + * @return {Object} Object with error notices. + */ + +function getErrorNotices(state) { + return state.errorNotices; +} +/** + * Returns the error notice for a given block. + * + * @param {Object} state Global application state. + * @param {string} blockId The ID of the block plugin. eg: my-block + * + * @return {string|boolean} The error text, or false if no error. + */ + +function getErrorNoticeForBlock(state, blockId) { + return state.errorNotices[blockId] || false; +} // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} var external_this_regeneratorRuntime_ = __webpack_require__(23); var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":"lodash"} -var external_this_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(42); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/controls.js - - - - -function controls_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function controls_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { controls_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { controls_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -var _marked = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(loadAssets); - /** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Calls a selector using the current state. + * Loads a JavaScript file. * - * @param {string} storeName Store name. - * @param {string} selectorName Selector name. - * @param {Array} args Selector arguments. + * @param {string} asset The url for this file. * - * @return {Object} Control descriptor. + * @return {Promise} Promise which will resolve when the asset is loaded. */ - -function controls_select(storeName, selectorName) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; +var loadScript = function loadScript(asset) { + if (!asset || !/\.js$/.test(asset)) { + return Promise.reject(new Error('No script found.')); } - return { - type: 'SELECT', - storeName: storeName, - selectorName: selectorName, - args: args - }; -} -/** - * Calls a dispatcher using the current state. - * - * @param {string} storeName Store name. - * @param {string} dispatcherName Dispatcher name. - * @param {Array} args Selector arguments. - * - * @return {Object} Control descriptor. - */ + return new Promise(function (resolve, reject) { + var existing = document.querySelector("script[src=\"".concat(asset, "\"]")); -function controls_dispatch(storeName, dispatcherName) { - for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } + if (existing) { + existing.parentNode.removeChild(existing); + } - return { - type: 'DISPATCH', - storeName: storeName, - dispatcherName: dispatcherName, - args: args - }; -} -/** - * Trigger an API Fetch request. - * - * @param {Object} request API Fetch Request Object. - * - * @return {Object} Control descriptor. - */ + var script = document.createElement('script'); + script.src = asset; -function apiFetch(request) { - return { - type: 'API_FETCH', - request: request - }; -} -/** - * Loads JavaScript - * - * @param {Array} asset The url for the JavaScript. - * @param {Function} onLoad Callback function on success. - * @param {Function} onError Callback function on failure. - */ + script.onload = function () { + return resolve(true); + }; -var loadScript = function loadScript(asset, onLoad, onError) { - if (!asset) { - return; - } + script.onerror = function () { + return reject(new Error('Error loading script.')); + }; - var existing = document.querySelector("script[src=\"".concat(asset.src, "\"]")); - - if (existing) { - existing.parentNode.removeChild(existing); - } - - var script = document.createElement('script'); - script.src = typeof asset === 'string' ? asset : asset.src; - script.onload = onLoad; - script.onerror = onError; - document.body.appendChild(script); + document.body.appendChild(script); + }); }; /** - * Loads CSS file. + * Loads a CSS file. * - * @param {*} asset the url for the CSS file. + * @param {string} asset The url for this file. + * + * @return {Promise} Promise which will resolve when the asset is added. */ - var loadStyle = function loadStyle(asset) { - if (!asset) { - return; + if (!asset || !/\.css$/.test(asset)) { + return Promise.reject(new Error('No style found.')); } - var link = document.createElement('link'); - link.rel = 'stylesheet'; - link.href = typeof asset === 'string' ? asset : asset.src; - document.body.appendChild(link); + return new Promise(function (resolve, reject) { + var link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = asset; + + link.onload = function () { + return resolve(true); + }; + + link.onerror = function () { + return reject(new Error('Error loading style.')); + }; + + document.body.appendChild(link); + }); }; /** * Load the asset files for a block * - * @param {Array} assets A collection of URL for the assets. + * @param {Array} assets A collection of URLs for the assets. * * @return {Object} Control descriptor. */ - function loadAssets(assets) { - return external_this_regeneratorRuntime_default.a.wrap(function loadAssets$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - return _context.abrupt("return", { - type: 'LOAD_ASSETS', - assets: assets - }); - - case 1: - case "end": - return _context.stop(); - } - } - }, _marked); + return { + type: 'LOAD_ASSETS', + assets: assets + }; } var controls = { - SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref) { - var _registry$select; - - var storeName = _ref.storeName, - selectorName = _ref.selectorName, - args = _ref.args; - return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); - }; - }), - DISPATCH: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref2) { - var _registry$dispatch; - - var storeName = _ref2.storeName, - dispatcherName = _ref2.dispatcherName, - args = _ref2.args; - return (_registry$dispatch = registry.dispatch(storeName))[dispatcherName].apply(_registry$dispatch, Object(toConsumableArray["a" /* default */])(args)); - }; - }), - API_FETCH: function API_FETCH(_ref3) { - var request = _ref3.request; - return external_this_wp_apiFetch_default()(controls_objectSpread({}, request)); - }, - LOAD_ASSETS: function LOAD_ASSETS(_ref4) { - var assets = _ref4.assets; - return new Promise(function (resolve, reject) { - if (Array.isArray(assets)) { - var scriptsCount = 0; - Object(external_this_lodash_["forEach"])(assets, function (asset) { - if (asset.match(/\.js$/) !== null) { - scriptsCount++; - loadScript(asset, function () { - scriptsCount--; - - if (scriptsCount === 0) { - return resolve(scriptsCount); - } - }, reject); - } else { - loadStyle(asset); - } - }); - } else { - loadScript(assets.editor_script, function () { - return resolve(0); - }, reject); - loadStyle(assets.style); - } + LOAD_ASSETS: function LOAD_ASSETS(_ref) { + var assets = _ref.assets; + var scripts = assets.map(function (asset) { + return asset.match(/\.js$/) !== null ? loadScript(asset) : loadStyle(asset); }); + return Promise.all(scripts); } }; /* harmony default export */ var store_controls = (controls); @@ -701,41 +901,45 @@ var controls = { // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/actions.js -var actions_marked = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_downloadBlock), - _marked2 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_installBlock), - _marked3 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(uninstallBlock); + +var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_installBlockType), + _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_uninstallBlockType); + +function actions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { actions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { actions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** * WordPress dependencies */ + /** * Internal dependencies */ /** - * Returns an action object used in signalling that the downloadable blocks have been requested and is loading. + * Returns an action object used in signalling that the downloadable blocks + * have been requested and is loading. + * + * @param {string} filterValue Search string. * * @return {Object} Action object. */ -function fetchDownloadableBlocks() { +function fetchDownloadableBlocks(filterValue) { return { - type: 'FETCH_DOWNLOADABLE_BLOCKS' + type: 'FETCH_DOWNLOADABLE_BLOCKS', + filterValue: filterValue }; } /** - * Returns an action object used in signalling that the downloadable blocks have been updated. + * Returns an action object used in signalling that the downloadable blocks + * have been updated. * - * @param {Array} downloadableBlocks Downloadable blocks. - * @param {string} filterValue Search string. + * @param {Array} downloadableBlocks Downloadable blocks. + * @param {string} filterValue Search string. * * @return {Object} Action object. */ @@ -748,9 +952,10 @@ function receiveDownloadableBlocks(downloadableBlocks, filterValue) { }; } /** - * Returns an action object used in signalling that the user does not have permission to install blocks. + * Returns an action object used in signalling that the user does not have + * permission to install blocks. * - @param {boolean} hasPermission User has permission to install blocks. + * @param {boolean} hasPermission User has permission to install blocks. * * @return {Object} Action object. */ @@ -762,188 +967,154 @@ function setInstallBlocksPermission(hasPermission) { }; } /** - * Action triggered to download block assets. + * Action triggered to install a block plugin. * - * @param {Object} item The selected block item - * @param {Function} onSuccess The callback function when the action has succeeded. - * @param {Function} onError The callback function when the action has failed. + * @param {Object} block The block item returned by search. + * + * @return {boolean} Whether the block was successfully installed & loaded. */ -function actions_downloadBlock(item, onSuccess, onError) { - var registeredBlocks; - return external_this_regeneratorRuntime_default.a.wrap(function downloadBlock$(_context) { +function actions_installBlockType(block) { + var id, assets, success, _response$_links, _response$_links$self, response, endpoint, registeredBlocks; + + return external_this_regeneratorRuntime_default.a.wrap(function installBlockType$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: - _context.prev = 0; + id = block.id, assets = block.assets; + success = false; + _context.next = 4; + return clearErrorNotice(id); - if (item.assets.length) { - _context.next = 3; + case 4: + _context.prev = 4; + + if (!(!Array.isArray(assets) || !assets.length)) { + _context.next = 7; break; } - throw new Error('Block has no assets'); + throw new Error(Object(external_this_wp_i18n_["__"])('Block has no assets.')); - case 3: - _context.next = 5; - return loadAssets(item.assets); + case 7: + _context.next = 9; + return setIsInstalling(block.id, true); - case 5: - registeredBlocks = Object(external_this_wp_blocks_["getBlockTypes"])(); - - if (!registeredBlocks.length) { - _context.next = 10; - break; - } - - onSuccess(item); + case 9: _context.next = 11; - break; - - case 10: - throw new Error('Unable to get block types'); - - case 11: - _context.next = 17; - break; - - case 13: - _context.prev = 13; - _context.t0 = _context["catch"](0); - _context.next = 17; - return onError(_context.t0); - - case 17: - case "end": - return _context.stop(); - } - } - }, actions_marked, null, [[0, 13]]); -} -/** - * Action triggered to install a block plugin. - * - * @param {string} item The block item returned by search. - * @param {Function} onSuccess The callback function when the action has succeeded. - * @param {Function} onError The callback function when the action has failed. - * - */ - -function actions_installBlock(_ref, onSuccess, onError) { - var id, name, response; - return external_this_regeneratorRuntime_default.a.wrap(function installBlock$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - id = _ref.id, name = _ref.name; - _context2.prev = 1; - _context2.next = 4; - return apiFetch({ - path: '__experimental/block-directory/install', + return Object(external_this_wp_dataControls_["apiFetch"])({ + path: '__experimental/plugins', data: { - slug: id + slug: block.id, + status: 'active' }, method: 'POST' }); - case 4: - response = _context2.sent; + case 11: + response = _context.sent; + endpoint = response === null || response === void 0 ? void 0 : (_response$_links = response._links) === null || _response$_links === void 0 ? void 0 : (_response$_links$self = _response$_links.self[0]) === null || _response$_links$self === void 0 ? void 0 : _response$_links$self.href; + _context.next = 15; + return addInstalledBlockType(actions_objectSpread({}, block, { + endpoint: endpoint + })); - if (!(response.success === false)) { - _context2.next = 7; + case 15: + _context.next = 17; + return loadAssets(assets); + + case 17: + _context.next = 19; + return Object(external_this_wp_dataControls_["select"])('core/blocks', 'getBlockTypes'); + + case 19: + registeredBlocks = _context.sent; + + if (registeredBlocks.length) { + _context.next = 22; break; } - throw new Error(response.errorMessage); + throw new Error(Object(external_this_wp_i18n_["__"])('Unable to get block types.')); - case 7: - _context2.next = 9; - return addInstalledBlockType({ - id: id, - name: name - }); - - case 9: - onSuccess(); - _context2.next = 15; + case 22: + success = true; + _context.next = 29; break; - case 12: - _context2.prev = 12; - _context2.t0 = _context2["catch"](1); - onError(_context2.t0); + case 25: + _context.prev = 25; + _context.t0 = _context["catch"](4); + _context.next = 29; + return setErrorNotice(id, _context.t0.message || Object(external_this_wp_i18n_["__"])('An error occurred.')); - case 15: + case 29: + _context.next = 31; + return setIsInstalling(block.id, false); + + case 31: + return _context.abrupt("return", success); + + case 32: case "end": - return _context2.stop(); + return _context.stop(); } } - }, _marked2, null, [[1, 12]]); + }, _marked, null, [[4, 25]]); } /** * Action triggered to uninstall a block plugin. * - * @param {string} item The block item returned by search. - * @param {Function} onSuccess The callback function when the action has succeeded. - * @param {Function} onError The callback function when the action has failed. - * + * @param {Object} block The blockType object. */ -function uninstallBlock(_ref2, onSuccess, onError) { - var id, name, response; - return external_this_regeneratorRuntime_default.a.wrap(function uninstallBlock$(_context3) { +function actions_uninstallBlockType(block) { + return external_this_regeneratorRuntime_default.a.wrap(function uninstallBlockType$(_context2) { while (1) { - switch (_context3.prev = _context3.next) { + switch (_context2.prev = _context2.next) { case 0: - id = _ref2.id, name = _ref2.name; - _context3.prev = 1; - _context3.next = 4; - return apiFetch({ - path: '__experimental/block-directory/uninstall', + _context2.prev = 0; + _context2.next = 3; + return Object(external_this_wp_dataControls_["apiFetch"])({ + url: block.endpoint, data: { - slug: id + status: 'inactive' }, + method: 'PUT' + }); + + case 3: + _context2.next = 5; + return Object(external_this_wp_dataControls_["apiFetch"])({ + url: block.endpoint, method: 'DELETE' }); - case 4: - response = _context3.sent; - - if (!(response.success === false)) { - _context3.next = 7; - break; - } - - throw new Error(response.errorMessage); + case 5: + _context2.next = 7; + return removeInstalledBlockType(block); case 7: - _context3.next = 9; - return removeInstalledBlockType({ - id: id, - name: name - }); - - case 9: - onSuccess(); - _context3.next = 15; + _context2.next = 13; break; - case 12: - _context3.prev = 12; - _context3.t0 = _context3["catch"](1); - onError(_context3.t0); + case 9: + _context2.prev = 9; + _context2.t0 = _context2["catch"](0); + _context2.next = 13; + return Object(external_this_wp_dataControls_["dispatch"])('core/notices', 'createErrorNotice', _context2.t0.message || Object(external_this_wp_i18n_["__"])('An error occurred.')); - case 15: + case 13: case "end": - return _context3.stop(); + return _context2.stop(); } } - }, _marked3, null, [[1, 12]]); + }, _marked2, null, [[0, 9]]); } /** * Returns an action object used to add a newly installed block type. * - * @param {string} item The block item with the block id and name. + * @param {Object} item The block item with the block id and name. * * @return {Object} Action object. */ @@ -968,6 +1139,56 @@ function removeInstalledBlockType(item) { item: item }; } +/** + * Returns an action object used to indicate install in progress + * + * @param {string} blockId + * @param {boolean} isInstalling + * + * @return {Object} Action object. + */ + +function setIsInstalling(blockId, isInstalling) { + return { + type: 'SET_INSTALLING_BLOCK', + blockId: blockId, + isInstalling: isInstalling + }; +} +/** + * Sets an error notice string to be displayed to the user + * + * @param {string} blockId The ID of the block plugin. eg: my-block + * @param {string} notice The message shown in the notice. + * + * @return {Object} Action object. + */ + +function setErrorNotice(blockId, notice) { + return { + type: 'SET_ERROR_NOTICE', + blockId: blockId, + notice: notice + }; +} +/** + * Sets the error notice to empty for specific block + * + * @param {string} blockId The ID of the block plugin. eg: my-block + * + * @return {Object} Action object. + */ + +function clearErrorNotice(blockId) { + return { + type: 'SET_ERROR_NOTICE', + blockId: blockId, + notice: false + }; +} + +// EXTERNAL MODULE: external {"this":"lodash"} +var external_this_lodash_ = __webpack_require__(2); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/resolvers.js @@ -976,16 +1197,18 @@ function removeInstalledBlockType(item) { * External dependencies */ +/** + * WordPress dependencies + */ + + /** * Internal dependencies */ - /* harmony default export */ var resolvers = ({ - getDownloadableBlocks: - /*#__PURE__*/ - external_this_regeneratorRuntime_default.a.mark(function getDownloadableBlocks(filterValue) { + getDownloadableBlocks: /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function getDownloadableBlocks(filterValue) { var results, blocks; return external_this_regeneratorRuntime_default.a.wrap(function getDownloadableBlocks$(_context) { while (1) { @@ -1005,7 +1228,7 @@ function removeInstalledBlockType(item) { case 5: _context.next = 7; - return apiFetch({ + return Object(external_this_wp_dataControls_["apiFetch"])({ path: "__experimental/block-directory/search?term=".concat(filterValue) }); @@ -1027,7 +1250,7 @@ function removeInstalledBlockType(item) { _context.prev = 13; _context.t0 = _context["catch"](2); - if (!(_context.t0.code === 'rest_user_cannot_view')) { + if (!(_context.t0.code === 'rest_block_directory_cannot_view')) { _context.next = 18; break; } @@ -1042,53 +1265,68 @@ function removeInstalledBlockType(item) { } }, getDownloadableBlocks, null, [[2, 13]]); }), - hasInstallBlocksPermission: - /*#__PURE__*/ - external_this_regeneratorRuntime_default.a.mark(function hasInstallBlocksPermission() { + hasInstallBlocksPermission: /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function hasInstallBlocksPermission() { + var response, allowHeader, isAllowed; return external_this_regeneratorRuntime_default.a.wrap(function hasInstallBlocksPermission$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: _context2.prev = 0; _context2.next = 3; - return apiFetch({ - path: "__experimental/block-directory/search?term=" + return Object(external_this_wp_dataControls_["apiFetch"])({ + method: 'OPTIONS', + path: "__experimental/block-directory/search", + parse: false }); case 3: - _context2.next = 5; - return setInstallBlocksPermission(true); + response = _context2.sent; - case 5: - _context2.next = 12; - break; - - case 7: - _context2.prev = 7; - _context2.t0 = _context2["catch"](0); - - if (!(_context2.t0.code === 'rest_user_cannot_view')) { - _context2.next = 12; - break; + if (Object(external_this_lodash_["hasIn"])(response, ['headers', 'get'])) { + // If the request is fetched using the fetch api, the header can be + // retrieved using the 'get' method. + allowHeader = response.headers.get('allow'); + } else { + // If the request was preloaded server-side and is returned by the + // preloading middleware, the header will be a simple property. + allowHeader = Object(external_this_lodash_["get"])(response, ['headers', 'Allow'], ''); } - _context2.next = 12; + isAllowed = Object(external_this_lodash_["includes"])(allowHeader, 'GET'); + _context2.next = 8; + return setInstallBlocksPermission(isAllowed); + + case 8: + _context2.next = 14; + break; + + case 10: + _context2.prev = 10; + _context2.t0 = _context2["catch"](0); + _context2.next = 14; return setInstallBlocksPermission(false); - case 12: + case 14: case "end": return _context2.stop(); } } - }, hasInstallBlocksPermission, null, [[0, 7]]); + }, hasInstallBlocksPermission, null, [[0, 10]]); }) }); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/index.js + + +function store_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function store_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { store_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { store_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /** * WordPress dependencies */ + /** * Internal dependencies */ @@ -1115,7 +1353,7 @@ var storeConfig = { reducer: reducer, selectors: selectors_namespaceObject, actions: actions_namespaceObject, - controls: store_controls, + controls: store_objectSpread({}, external_this_wp_dataControls_["controls"], {}, store_controls), resolvers: resolvers }; var store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, storeConfig); @@ -1125,23 +1363,110 @@ var store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, storeCon var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","plugins"]} -var external_this_wp_plugins_ = __webpack_require__(55); +var external_this_wp_plugins_ = __webpack_require__(63); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(12); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/auto-block-uninstaller/index.js +/** + * WordPress dependencies + */ + + + +function AutoBlockUninstaller() { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-directory'), + uninstallBlockType = _useDispatch.uninstallBlockType; + + var shouldRemoveBlockTypes = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/editor'), + isAutosavingPost = _select.isAutosavingPost, + isSavingPost = _select.isSavingPost; + + return isSavingPost() && !isAutosavingPost(); + }); + var unusedBlockTypes = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-directory').getUnusedBlockTypes(); + }); + Object(external_this_wp_element_["useEffect"])(function () { + if (shouldRemoveBlockTypes && unusedBlockTypes.length) { + unusedBlockTypes.forEach(function (blockType) { + uninstallBlockType(blockType); + Object(external_this_wp_blocks_["unregisterBlockType"])(blockType.name); + }); + } + }, [shouldRemoveBlockTypes]); + return null; +} // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(20); +var slicedToArray = __webpack_require__(15); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); +var external_this_wp_blockEditor_ = __webpack_require__(7); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); +var external_this_wp_compose_ = __webpack_require__(9); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(3); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-author-info/index.js + + +/** + * WordPress dependencies + */ + + + +function DownloadableBlockAuthorInfo(_ref) { + var author = _ref.author, + authorBlockCount = _ref.authorBlockCount, + authorBlockRating = _ref.authorBlockRating; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("span", { + className: "block-directory-downloadable-block-author-info__content-author" + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: author name. */ + Object(external_this_wp_i18n_["__"])('Authored by %s'), author)), Object(external_this_wp_element_["createElement"])("span", { + className: "block-directory-downloadable-block-author-info__content" + }, authorBlockRating > 0 ? Object(external_this_wp_i18n_["sprintf"])( + /* translators: 1: number of blocks. 2: average rating. */ + Object(external_this_wp_i18n_["_n"])('This author has %1$d block, with an average rating of %2$d.', 'This author has %1$d blocks, with an average rating of %2$d.', authorBlockCount), authorBlockCount, authorBlockRating) : Object(external_this_wp_i18n_["sprintf"])( + /* translators: 1: number of blocks. */ + Object(external_this_wp_i18n_["_n"])('This author has %1$d block.', 'This author has %1$d blocks.', authorBlockCount), authorBlockCount))); +} + +/* harmony default export */ var downloadable_block_author_info = (DownloadableBlockAuthorInfo); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js +var build_module_icon = __webpack_require__(130); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js +var star_filled = __webpack_require__(279); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(6); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-half.js + + +/** + * WordPress dependencies + */ + +var starHalf = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.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.39v7.143z" +})); +/* harmony default export */ var star_half = (starHalf); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js +var star_empty = __webpack_require__(280); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js @@ -1163,23 +1488,25 @@ function Stars(_ref) { var halfStarCount = Math.ceil(rating - fullStarCount); var emptyStarCount = 5 - (fullStarCount + halfStarCount); return Object(external_this_wp_element_["createElement"])("div", { - "aria-label": Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s out of 5 stars'), stars) + "aria-label": Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: number of stars. */ + Object(external_this_wp_i18n_["__"])('%s out of 5 stars'), stars) }, Object(external_this_lodash_["times"])(fullStarCount, function (i) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + return Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { key: "full_stars_".concat(i), - icon: "star-filled", + icon: star_filled["a" /* default */], size: 16 }); }), Object(external_this_lodash_["times"])(halfStarCount, function (i) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + return Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { key: "half_stars_".concat(i), - icon: "star-half", + icon: star_half, size: 16 }); }), Object(external_this_lodash_["times"])(emptyStarCount, function (i) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + return Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { key: "empty_stars_".concat(i), - icon: "star-empty", + icon: star_empty["a" /* default */], size: 16 }); })); @@ -1208,12 +1535,38 @@ var block_ratings_BlockRatings = function BlockRatings(_ref) { rating: rating }), Object(external_this_wp_element_["createElement"])("span", { className: "block-directory-block-ratings__rating-count", - "aria-label": // translators: %d: number of ratings (number). - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d total rating', '%d total ratings', ratingCount), ratingCount) + "aria-label": Object(external_this_wp_i18n_["sprintf"])( // translators: %d: number of ratings (number). + Object(external_this_wp_i18n_["_n"])('%d total rating', '%d total ratings', ratingCount), ratingCount) }, "(", ratingCount, ")")); }; /* harmony default export */ var block_ratings = (block_ratings_BlockRatings); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-icon/index.js + + +/** + * WordPress dependencies + */ + + + +function DownloadableBlockIcon(_ref) { + var icon = _ref.icon, + title = _ref.title; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-directory-downloadable-block-icon" + }, icon.match(/\.(jpeg|jpg|gif|png)(?:\?.*)?$/) !== null ? Object(external_this_wp_element_["createElement"])("img", { + src: icon, + alt: Object(external_this_wp_i18n_["sprintf"])( // translators: %s: Name of the plugin e.g: "Akismet". + Object(external_this_wp_i18n_["__"])('%s block icon'), title) + }) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon, + showColors: true + })); +} + +/* harmony default export */ var downloadable_block_icon = (DownloadableBlockIcon); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-header/index.js @@ -1234,60 +1587,50 @@ function DownloadableBlockHeader(_ref) { title = _ref.title, rating = _ref.rating, ratingCount = _ref.ratingCount, + isLoading = _ref.isLoading, _onClick = _ref.onClick; return Object(external_this_wp_element_["createElement"])("div", { className: "block-directory-downloadable-block-header__row" - }, icon.match(/\.(jpeg|jpg|gif|png)(?:\?.*)?$/) !== null ? // translators: %s: Name of the plugin e.g: "Akismet". - Object(external_this_wp_element_["createElement"])("img", { - src: icon, - alt: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s block icon'), title) - }) : Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + }, Object(external_this_wp_element_["createElement"])(downloadable_block_icon, { icon: icon, - showColors: true - })), Object(external_this_wp_element_["createElement"])("div", { + title: title + }), Object(external_this_wp_element_["createElement"])("div", { className: "block-directory-downloadable-block-header__column" - }, Object(external_this_wp_element_["createElement"])("span", { - role: "heading", + }, Object(external_this_wp_element_["createElement"])("h2", { className: "block-directory-downloadable-block-header__title" }, title), Object(external_this_wp_element_["createElement"])(block_ratings, { rating: rating, ratingCount: ratingCount })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isDefault: true, + isSecondary: true, + isBusy: isLoading, + disabled: isLoading, onClick: function onClick(event) { event.preventDefault(); - _onClick(); + if (!isLoading) { + _onClick(); + } } - }, Object(external_this_wp_i18n_["__"])('Add block'))); + }, isLoading ? Object(external_this_wp_i18n_["__"])('Adding…') : Object(external_this_wp_i18n_["__"])('Add block'))); } /* harmony default export */ var downloadable_block_header = (DownloadableBlockHeader); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-author-info/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chart-line.js /** * WordPress dependencies */ - - -function DownloadableBlockAuthorInfo(_ref) { - var author = _ref.author, - authorBlockCount = _ref.authorBlockCount, - authorBlockRating = _ref.authorBlockRating; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("span", { - className: "block-directory-downloadable-block-author-info__content-author" - }, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Authored by %s'), author)), Object(external_this_wp_element_["createElement"])("span", { - className: "block-directory-downloadable-block-author-info__content" - }, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('This author has %d block, with an average rating of %d.', 'This author has %d blocks, with an average rating of %d.', authorBlockCount), authorBlockCount, authorBlockRating))); -} - -/* harmony default export */ var downloadable_block_author_info = (DownloadableBlockAuthorInfo); - -// EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(9); +var chartLine = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z" +})); +/* harmony default export */ var chart_line = (chartLine); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/update.js @@ -1314,7 +1657,6 @@ var update = Object(external_this_wp_element_["createElement"])(external_this_wp - function DownloadableBlockInfo(_ref) { var description = _ref.description, activeInstalls = _ref.activeInstalls, @@ -1322,24 +1664,66 @@ function DownloadableBlockInfo(_ref) { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { className: "block-directory-downloadable-block-info__content" }, description), Object(external_this_wp_element_["createElement"])("div", { - className: "block-directory-downloadable-block-info__row" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-directory-downloadable-block-info__column" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { - icon: "chart-line" - }), Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d active installation', '%d active installations', activeInstalls), activeInstalls)), Object(external_this_wp_element_["createElement"])("div", { - className: "block-directory-downloadable-block-info__column" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + className: "block-directory-downloadable-block-info__meta" + }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + className: "block-directory-downloadable-block-info__icon", + icon: chart_line + }), Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: number of active installations. */ + Object(external_this_wp_i18n_["_n"])('%d active installation', '%d active installations', activeInstalls), activeInstalls)), Object(external_this_wp_element_["createElement"])("div", { + className: "block-directory-downloadable-block-info__meta" + }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + className: "block-directory-downloadable-block-info__icon", icon: library_update }), // translators: %s: Humanized date of last update e.g: "2 months ago". - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Updated %s'), humanizedUpdated)))); + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Updated %s'), humanizedUpdated))); } /* harmony default export */ var downloadable_block_info = (DownloadableBlockInfo); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-notice/index.js + + +/** + * WordPress dependencies + */ + + + +var downloadable_block_notice_DownloadableBlockNotice = function DownloadableBlockNotice(_ref) { + var block = _ref.block, + _onClick = _ref.onClick; + var errorNotice = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-directory').getErrorNoticeForBlock(block.id); + }, [block]); + + if (!errorNotice) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { + status: "error", + isDismissible: false, + className: "block-directory-downloadable-block-notice" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-directory-downloadable-block-notice__content" + }, errorNotice), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSmall: true, + isPrimary: true, + onClick: function onClick() { + _onClick(block); + } + }, Object(external_this_wp_i18n_["__"])('Retry'))); +}; +/* harmony default export */ var downloadable_block_notice = (downloadable_block_notice_DownloadableBlockNotice); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js +/** + * WordPress dependencies + */ + /** * Internal dependencies */ @@ -1347,9 +1731,13 @@ function DownloadableBlockInfo(_ref) { + function DownloadableBlockListItem(_ref) { var item = _ref.item, onClick = _ref.onClick; + var isLoading = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-directory').isInstalling(item.id); + }, [item]); var icon = item.icon, title = item.title, description = item.description, @@ -1371,10 +1759,14 @@ function DownloadableBlockListItem(_ref) { onClick: onClick, title: title, rating: rating, - ratingCount: ratingCount + ratingCount: ratingCount, + isLoading: isLoading })), Object(external_this_wp_element_["createElement"])("section", { className: "block-directory-downloadable-block-list-item__body" - }, Object(external_this_wp_element_["createElement"])(downloadable_block_info, { + }, Object(external_this_wp_element_["createElement"])(downloadable_block_notice, { + onClick: onClick, + block: item + }), Object(external_this_wp_element_["createElement"])(downloadable_block_info, { activeInstalls: activeInstalls, description: description, humanizedUpdated: humanizedUpdated @@ -1387,8 +1779,6 @@ function DownloadableBlockListItem(_ref) { })))); } -/* harmony default export */ var downloadable_block_list_item = (DownloadableBlockListItem); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-list/index.js @@ -1401,23 +1791,25 @@ function DownloadableBlockListItem(_ref) { */ - - - /** * Internal dependencies */ -var DOWNLOAD_ERROR_NOTICE_ID = 'block-download-error'; -var INSTALL_ERROR_NOTICE_ID = 'block-install-error'; function DownloadableBlocksList(_ref) { var items = _ref.items, _ref$onHover = _ref.onHover, onHover = _ref$onHover === void 0 ? external_this_lodash_["noop"] : _ref$onHover, - children = _ref.children, - downloadAndInstallBlock = _ref.downloadAndInstallBlock; + onSelect = _ref.onSelect; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-directory'), + installBlockType = _useDispatch.installBlockType; + + if (!items.length) { + return null; + } + return ( /* * Disable reason: The `list` ARIA role is redundant but @@ -1428,93 +1820,26 @@ function DownloadableBlocksList(_ref) { Object(external_this_wp_element_["createElement"])("ul", { role: "list", className: "block-directory-downloadable-blocks-list" - }, items && items.map(function (item) { - return Object(external_this_wp_element_["createElement"])(downloadable_block_list_item, { + }, items.map(function (item) { + return Object(external_this_wp_element_["createElement"])(DownloadableBlockListItem, { key: item.id, - className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(item.id), - icons: item.icons, onClick: function onClick() { - downloadAndInstallBlock(item); + installBlockType(item).then(function (success) { + if (success) { + onSelect(item); + } + }); onHover(null); }, - onFocus: function onFocus() { - return onHover(item); - }, - onMouseEnter: function onMouseEnter() { - return onHover(item); - }, - onMouseLeave: function onMouseLeave() { - return onHover(null); - }, - onBlur: function onBlur() { - return onHover(null); - }, item: item }); - }), children) + })) /* eslint-enable jsx-a11y/no-redundant-roles */ ); } -/* harmony default export */ var downloadable_blocks_list = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withDispatch"])(function (dispatch, props) { - var _dispatch = dispatch('core/block-directory'), - installBlock = _dispatch.installBlock, - downloadBlock = _dispatch.downloadBlock; - - var _dispatch2 = dispatch('core/notices'), - createErrorNotice = _dispatch2.createErrorNotice, - removeNotice = _dispatch2.removeNotice; - - var _dispatch3 = dispatch('core/block-editor'), - removeBlocks = _dispatch3.removeBlocks; - - var onSelect = props.onSelect; - return { - downloadAndInstallBlock: function downloadAndInstallBlock(item) { - var onDownloadError = function onDownloadError() { - createErrorNotice(Object(external_this_wp_i18n_["__"])('Block previews can’t load.'), { - id: DOWNLOAD_ERROR_NOTICE_ID, - actions: [{ - label: Object(external_this_wp_i18n_["__"])('Retry'), - onClick: function onClick() { - removeNotice(DOWNLOAD_ERROR_NOTICE_ID); - downloadBlock(item, onSuccess, onDownloadError); - } - }] - }); - }; - - var onSuccess = function onSuccess() { - var createdBlock = onSelect(item); - - var onInstallBlockError = function onInstallBlockError() { - createErrorNotice(Object(external_this_wp_i18n_["__"])("Block previews can't install."), { - id: INSTALL_ERROR_NOTICE_ID, - actions: [{ - label: Object(external_this_wp_i18n_["__"])('Retry'), - onClick: function onClick() { - removeNotice(INSTALL_ERROR_NOTICE_ID); - installBlock(item, external_this_lodash_["noop"], onInstallBlockError); - } - }, { - label: Object(external_this_wp_i18n_["__"])('Remove'), - onClick: function onClick() { - removeNotice(INSTALL_ERROR_NOTICE_ID); - removeBlocks(createdBlock.clientId); - Object(external_this_wp_blocks_["unregisterBlockType"])(item.name); - } - }] - }); - }; - - installBlock(item, external_this_lodash_["noop"], onInstallBlockError); - }; - - downloadBlock(item, onSuccess, onDownloadError); - } - }; -}))(DownloadableBlocksList)); +/* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/index.js @@ -1561,7 +1886,9 @@ function DownloadableBlocksPanel(_ref) { }, Object(external_this_wp_i18n_["__"])('No blocks found in your library.')); } - var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('No blocks found in your library. We did find %d block available for download.', 'No blocks found in your library. We did find %d blocks available for download.', downloadableItems.length), downloadableItems.length); + var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: number of available blocks. */ + Object(external_this_wp_i18n_["_n"])('No blocks found in your library. We did find %d block available for download.', 'No blocks found in your library. We did find %d blocks available for download.', downloadableItems.length), downloadableItems.length); debouncedSpeak(resultsFoundMessage); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { className: "block-directory-downloadable-blocks-panel__description" @@ -1582,7 +1909,7 @@ function DownloadableBlocksPanel(_ref) { var hasPermission = hasInstallBlocksPermission(); var downloadableItems = hasPermission ? getDownloadableBlocks(filterValue) : []; - var isLoading = isRequestingDownloadableBlocks(); + var isLoading = isRequestingDownloadableBlocks(filterValue); return { downloadableItems: downloadableItems, hasPermission: hasPermission, @@ -1642,6 +1969,88 @@ function InserterMenuDownloadableBlocksPanel() { /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel); +// EXTERNAL MODULE: external {"this":["wp","editPost"]} +var external_this_wp_editPost_ = __webpack_require__(253); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function CompactList(_ref) { + var items = _ref.items; + + if (!items.length) { + return null; + } + + return Object(external_this_wp_element_["createElement"])("ul", { + className: "block-directory-compact-list" + }, items.map(function (_ref2) { + var icon = _ref2.icon, + id = _ref2.id, + title = _ref2.title, + author = _ref2.author; + return Object(external_this_wp_element_["createElement"])("li", { + key: id, + className: "block-directory-compact-list__item" + }, Object(external_this_wp_element_["createElement"])(downloadable_block_icon, { + icon: icon, + title: title + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-directory-compact-list__item-details" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-directory-compact-list__item-title" + }, title), Object(external_this_wp_element_["createElement"])("div", { + className: "block-directory-compact-list__item-author" + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: Name of the block author. */ + Object(external_this_wp_i18n_["__"])('By %s'), author)))); + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +function InstalledBlocksPrePublishPanel() { + var newBlockTypes = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-directory').getNewBlockTypes(); + }); + + if (!newBlockTypes.length) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_editPost_["PluginPrePublishPanel"], { + icon: "block-default", + title: Object(external_this_wp_i18n_["sprintf"])( // translators: %d: number of blocks (number). + Object(external_this_wp_i18n_["_n"])('Added: %d block', 'Added: %d blocks', newBlockTypes.length), newBlockTypes.length), + initialOpen: true + }, Object(external_this_wp_element_["createElement"])("p", { + className: "installed-blocks-pre-publish-panel__copy" + }, Object(external_this_wp_i18n_["_n"])('The following block has been added to your site.', 'The following blocks have been added to your site.', newBlockTypes.length)), Object(external_this_wp_element_["createElement"])(CompactList, { + items: newBlockTypes + })); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/index.js @@ -1654,9 +2063,11 @@ function InserterMenuDownloadableBlocksPanel() { */ + + Object(external_this_wp_plugins_["registerPlugin"])('block-directory', { render: function render() { - return Object(external_this_wp_element_["createElement"])(inserter_menu_downloadable_blocks_panel, null); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(AutoBlockUninstaller, null), Object(external_this_wp_element_["createElement"])(inserter_menu_downloadable_blocks_panel, null), Object(external_this_wp_element_["createElement"])(InstalledBlocksPrePublishPanel, null)); } }); @@ -1692,32 +2103,32 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 55: +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["primitives"]; }()); + +/***/ }), + +/***/ 63: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["plugins"]; }()); /***/ }), -/***/ 6: +/***/ 7: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blockEditor"]; }()); /***/ }), -/***/ 8: +/***/ 9: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["compose"]; }()); -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["primitives"]; }()); - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-directory.min.js b/wp-includes/js/dist/block-directory.min.js index ac6b458e42..48c2e654e0 100644 --- a/wp-includes/js/dist/block-directory.min.js +++ b/wp-includes/js/dist/block-directory.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=429)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},18:function(e,t,n){"use strict";var r=n(25);var o=n(35),c=n(27);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";var r=n(38);var o=n(27),c=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}n.d(t,"a",(function(){return a}))},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{results:{},filterValue:void 0,isRequestingDownloadableBlocks:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return s({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return s({},e,{results:Object.assign({},e.results,Object(l.a)({},t.filterValue,t.downloadableBlocks)),isRequestingDownloadableBlocks:!1})}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return s({},e,{installedBlockTypes:[].concat(Object(a.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return s({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))})}return e},hasPermission:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_INSTALL_BLOCKS_PERMISSION"===t.type?t.hasPermission:e}});function b(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function d(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function f(e){return e.hasPermission}function p(e){return e.blockManagement.installedBlockTypes}var m=n(23),O=n.n(m),k=n(10),y=n(2),j=n(42),h=n.n(j);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _=O.a.mark(B);function w(e){return{type:"API_FETCH",request:e}}var g=function(e,t,n){if(e){var r=document.querySelector('script[src="'.concat(e.src,'"]'));r&&r.parentNode.removeChild(r);var o=document.createElement("script");o.src="string"==typeof e?e:e.src,o.onload=t,o.onerror=n,document.body.appendChild(o)}},E=function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.href="string"==typeof e?e:e.src,document.body.appendChild(t)}};function B(e){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{type:"LOAD_ASSETS",assets:e});case 1:case"end":return t.stop()}}),_)}var S={SELECT:Object(c.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,c=t.args;return(n=e.select(r))[o].apply(n,Object(a.a)(c))}})),DISPATCH:Object(c.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.dispatcherName,c=t.args;return(n=e.dispatch(r))[o].apply(n,Object(a.a)(c))}})),API_FETCH:function(e){var t=e.request;return h()(function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},15:function(e,t,n){"use strict";var r=n(38);var c=n(28),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,c=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(c)throw o}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},16:function(e,t,n){"use strict";var r=n(26);var c=n(35),o=n(28);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(c.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},2:function(e,t){!function(){e.exports=this.lodash}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},253:function(e,t){!function(){e.exports=this.wp.editPost}()},26:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},439:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return f})),n.d(r,"getDownloadableBlocks",(function(){return O})),n.d(r,"hasInstallBlocksPermission",(function(){return p})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"getNewBlockTypes",(function(){return j})),n.d(r,"getUnusedBlockTypes",(function(){return y})),n.d(r,"isInstalling",(function(){return h})),n.d(r,"getErrorNotices",(function(){return k})),n.d(r,"getErrorNoticeForBlock",(function(){return v}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return T})),n.d(c,"receiveDownloadableBlocks",(function(){return I})),n.d(c,"setInstallBlocksPermission",(function(){return L})),n.d(c,"installBlockType",(function(){return D})),n.d(c,"uninstallBlockType",(function(){return C})),n.d(c,"addInstalledBlockType",(function(){return A})),n.d(c,"removeInstalledBlockType",(function(){return R})),n.d(c,"setIsInstalling",(function(){return M})),n.d(c,"setErrorNotice",(function(){return z})),n.d(c,"clearErrorNotice",(function(){return V}));var o=n(5),a=n(4),l=n(36),i=n(16);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return u({},e,Object(o.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return u({},e,Object(o.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return u({},e,{installedBlockTypes:[].concat(Object(i.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return u({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return u({},e,{isInstalling:u({},e.isInstalling,Object(o.a)({},t.blockId,t.isInstalling))})}return e},hasPermission:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_INSTALL_BLOCKS_PERMISSION"===t.type?t.hasPermission:e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return u({},e,Object(o.a)({},t.blockId,t.notice))}return e}});function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n0?Object(_.sprintf)(Object(_._n)("This author has %1$d block, with an average rating of %2$d.","This author has %1$d blocks, with an average rating of %2$d.",n),n,r):Object(_.sprintf)(Object(_._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},ee=n(130),te=n(279),ne=n(6),re=Object(U.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(U.createElement)(ne.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.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.39v7.143z"})),ce=n(280);var oe=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),o=5-(r+c);return Object(U.createElement)("div",{"aria-label":Object(_.sprintf)(Object(_.__)("%s out of 5 stars"),n)},Object(F.times)(r,(function(e){return Object(U.createElement)(ee.a,{key:"full_stars_".concat(e),icon:te.a,size:16})})),Object(F.times)(c,(function(e){return Object(U.createElement)(ee.a,{key:"half_stars_".concat(e),icon:re,size:16})})),Object(F.times)(o,(function(e){return Object(U.createElement)(ee.a,{key:"empty_stars_".concat(e),icon:ce.a,size:16})})))},ae=function(e){var t=e.rating,n=e.ratingCount;return Object(U.createElement)("div",{className:"block-directory-block-ratings"},Object(U.createElement)(oe,{rating:t}),Object(U.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(_.sprintf)(Object(_._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var le=function(e){var t=e.icon,n=e.title;return Object(U.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png)(?:\?.*)?$/)?Object(U.createElement)("img",{src:t,alt:Object(_.sprintf)(Object(_.__)("%s block icon"),n)}):Object(U.createElement)(J.BlockIcon,{icon:t,showColors:!0}))};var ie=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=e.onClick;return Object(U.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(U.createElement)(le,{icon:t,title:n}),Object(U.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(U.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},n),Object(U.createElement)(ae,{rating:r,ratingCount:c})),Object(U.createElement)(X.Button,{isSecondary:!0,isBusy:o,disabled:o,onClick:function(e){e.preventDefault(),o||a()}},o?Object(_.__)("Adding…"):Object(_.__)("Add block")))},se=Object(U.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(U.createElement)(ne.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),ue=Object(U.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(U.createElement)(ne.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));var be=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(U.createElement)(U.Fragment,null,Object(U.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(U.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(U.createElement)(ee.a,{className:"block-directory-downloadable-block-info__icon",icon:se}),Object(_.sprintf)(Object(_._n)("%d active installation","%d active installations",n),n)),Object(U.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(U.createElement)(ee.a,{className:"block-directory-downloadable-block-info__icon",icon:ue}),Object(_.sprintf)(Object(_.__)("Updated %s"),r)))},de=function(e){var t=e.block,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").getErrorNoticeForBlock(t.id)}),[t]);return r?Object(U.createElement)(X.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(U.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r),Object(U.createElement)(X.Button,{isSmall:!0,isPrimary:!0,onClick:function(){n(t)}},Object(_.__)("Retry"))):null};function fe(e){var t=e.item,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").isInstalling(t.id)}),[t]),c=t.icon,o=t.title,l=t.description,i=t.rating,s=t.activeInstalls,u=t.ratingCount,b=t.author,d=t.humanizedUpdated,f=t.authorBlockCount,O=t.authorBlockRating;return Object(U.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(U.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(U.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(U.createElement)(ie,{icon:c,onClick:n,title:o,rating:i,ratingCount:u,isLoading:r})),Object(U.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(U.createElement)(de,{onClick:n,block:t}),Object(U.createElement)(be,{activeInstalls:s,description:l,humanizedUpdated:d})),Object(U.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(U.createElement)(Z,{author:b,authorBlockCount:f,authorBlockRating:O}))))}var Oe=function(e){var t=e.items,n=e.onHover,r=void 0===n?F.noop:n,c=e.onSelect,o=Object(a.useDispatch)("core/block-directory").installBlockType;return t.length?Object(U.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(U.createElement)(fe,{key:e.id,onClick:function(){o(e).then((function(t){t&&c(e)})),r(null)},item:e})}))):null};var pe=Object(Q.compose)([X.withSpokenMessages,Object(a.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),c=r.getDownloadableBlocks,o=r.hasInstallBlocksPermission,a=r.isRequestingDownloadableBlocks,l=o();return{downloadableItems:l?c(n):[],hasPermission:l,isLoading:a(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasPermission,o=e.isLoading,a=e.isWaiting,l=e.debouncedSpeak;return c?o||a?Object(U.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(U.createElement)(X.Spinner,null)):t.length?(l(Object(_.sprintf)(Object(_._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(U.createElement)(U.Fragment,null,Object(U.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(_.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(U.createElement)(Oe,{items:t,onSelect:n,onHover:r}))):Object(U.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library.")):(l(Object(_.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(U.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."),Object(U.createElement)("br",null),Object(_.__)("Please contact your site administrator to install new blocks.")))}));var me=function(){var e=Object(U.useState)(""),t=Object(Y.a)(e,2),n=t[0],r=t[1],c=Object(F.debounce)(r,400);return Object(U.createElement)(J.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(U.createElement)(pe,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},je=n(253);function ye(e){var t=e.items;return t.length?Object(U.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(U.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(U.createElement)(le,{icon:t,title:r}),Object(U.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(U.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(U.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(_.sprintf)(Object(_.__)("By %s"),c))))}))):null}function he(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}));return e.length?Object(U.createElement)(je.PluginPrePublishPanel,{icon:"block-default",title:Object(_.sprintf)(Object(_._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(U.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(_._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(U.createElement)(ye,{items:e})):null}Object(G.registerPlugin)("block-directory",{render:function(){return Object(U.createElement)(U.Fragment,null,Object(U.createElement)(q,null),Object(U.createElement)(me,null),Object(U.createElement)(he,null))}})},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.primitives}()},63:function(e,t){!function(){e.exports=this.wp.plugins}()},7:function(e,t){!function(){e.exports=this.wp.blockEditor}()},9:function(e,t){!function(){e.exports=this.wp.compose}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index 3dc565be54..c5eda9bbc4 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockEditor"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 421); +/******/ return __webpack_require__(__webpack_require__.s = 433); /******/ }) /************************************************************************/ /******/ ({ @@ -102,29437 +102,6 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockEditor"] = /***/ }), /***/ 10: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blocks"]; }()); - -/***/ }), - -/***/ 11: -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ - -(function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - - function classNames () { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if ( true && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} -}()); - - -/***/ }), - -/***/ 113: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var punycode = __webpack_require__(160); -var util = __webpack_require__(162); - -exports.parse = urlParse; -exports.resolve = urlResolve; -exports.resolveObject = urlResolveObject; -exports.format = urlFormat; - -exports.Url = Url; - -function Url() { - this.protocol = null; - this.slashes = null; - this.auth = null; - this.host = null; - this.port = null; - this.hostname = null; - this.hash = null; - this.search = null; - this.query = null; - this.pathname = null; - this.path = null; - this.href = null; -} - -// Reference: RFC 3986, RFC 1808, RFC 2396 - -// define these here so at least they only have to be -// compiled once on the first module load. -var protocolPattern = /^([a-z0-9.+-]+:)/i, - portPattern = /:[0-9]*$/, - - // Special case for a simple path URL - simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, - - // RFC 2396: characters reserved for delimiting URLs. - // We actually just auto-escape these. - delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], - - // RFC 2396: characters not allowed for various reasons. - unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), - - // Allowed by RFCs, but cause of XSS attacks. Always escape these. - autoEscape = ['\''].concat(unwise), - // Characters that are never ever allowed in a hostname. - // Note that any invalid chars are also handled, but these - // are the ones that are *expected* to be seen, so we fast-path - // them. - nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), - hostEndingChars = ['/', '?', '#'], - hostnameMaxLen = 255, - hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, - hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, - // protocols that can allow "unsafe" and "unwise" chars. - unsafeProtocol = { - 'javascript': true, - 'javascript:': true - }, - // protocols that never have a hostname. - hostlessProtocol = { - 'javascript': true, - 'javascript:': true - }, - // protocols that always contain a // bit. - slashedProtocol = { - 'http': true, - 'https': true, - 'ftp': true, - 'gopher': true, - 'file': true, - 'http:': true, - 'https:': true, - 'ftp:': true, - 'gopher:': true, - 'file:': true - }, - querystring = __webpack_require__(163); - -function urlParse(url, parseQueryString, slashesDenoteHost) { - if (url && util.isObject(url) && url instanceof Url) return url; - - var u = new Url; - u.parse(url, parseQueryString, slashesDenoteHost); - return u; -} - -Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { - if (!util.isString(url)) { - throw new TypeError("Parameter 'url' must be a string, not " + typeof url); - } - - // Copy chrome, IE, opera backslash-handling behavior. - // Back slashes before the query string get converted to forward slashes - // See: https://code.google.com/p/chromium/issues/detail?id=25916 - var queryIndex = url.indexOf('?'), - splitter = - (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', - uSplit = url.split(splitter), - slashRegex = /\\/g; - uSplit[0] = uSplit[0].replace(slashRegex, '/'); - url = uSplit.join(splitter); - - var rest = url; - - // trim before proceeding. - // This is to support parse stuff like " http://foo.com \n" - rest = rest.trim(); - - if (!slashesDenoteHost && url.split('#').length === 1) { - // Try fast path regexp - var simplePath = simplePathPattern.exec(rest); - if (simplePath) { - this.path = rest; - this.href = rest; - this.pathname = simplePath[1]; - if (simplePath[2]) { - this.search = simplePath[2]; - if (parseQueryString) { - this.query = querystring.parse(this.search.substr(1)); - } else { - this.query = this.search.substr(1); - } - } else if (parseQueryString) { - this.search = ''; - this.query = {}; - } - return this; - } - } - - var proto = protocolPattern.exec(rest); - if (proto) { - proto = proto[0]; - var lowerProto = proto.toLowerCase(); - this.protocol = lowerProto; - rest = rest.substr(proto.length); - } - - // figure out if it's got a host - // user@server is *always* interpreted as a hostname, and url - // resolution will treat //foo/bar as host=foo,path=bar because that's - // how the browser resolves relative URLs. - if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { - var slashes = rest.substr(0, 2) === '//'; - if (slashes && !(proto && hostlessProtocol[proto])) { - rest = rest.substr(2); - this.slashes = true; - } - } - - if (!hostlessProtocol[proto] && - (slashes || (proto && !slashedProtocol[proto]))) { - - // there's a hostname. - // the first instance of /, ?, ;, or # ends the host. - // - // If there is an @ in the hostname, then non-host chars *are* allowed - // to the left of the last @ sign, unless some host-ending character - // comes *before* the @-sign. - // URLs are obnoxious. - // - // ex: - // http://a@b@c/ => user:a@b host:c - // http://a@b?@c => user:a host:c path:/?@c - - // v0.12 TODO(isaacs): This is not quite how Chrome does things. - // Review our test case against browsers more comprehensively. - - // find the first instance of any hostEndingChars - var hostEnd = -1; - for (var i = 0; i < hostEndingChars.length; i++) { - var hec = rest.indexOf(hostEndingChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) - hostEnd = hec; - } - - // at this point, either we have an explicit point where the - // auth portion cannot go past, or the last @ char is the decider. - var auth, atSign; - if (hostEnd === -1) { - // atSign can be anywhere. - atSign = rest.lastIndexOf('@'); - } else { - // atSign must be in auth portion. - // http://a@b/c@d => host:b auth:a path:/c@d - atSign = rest.lastIndexOf('@', hostEnd); - } - - // Now we have a portion which is definitely the auth. - // Pull that off. - if (atSign !== -1) { - auth = rest.slice(0, atSign); - rest = rest.slice(atSign + 1); - this.auth = decodeURIComponent(auth); - } - - // the host is the remaining to the left of the first non-host char - hostEnd = -1; - for (var i = 0; i < nonHostChars.length; i++) { - var hec = rest.indexOf(nonHostChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) - hostEnd = hec; - } - // if we still have not hit it, then the entire thing is a host. - if (hostEnd === -1) - hostEnd = rest.length; - - this.host = rest.slice(0, hostEnd); - rest = rest.slice(hostEnd); - - // pull out port. - this.parseHost(); - - // we've indicated that there is a hostname, - // so even if it's empty, it has to be present. - this.hostname = this.hostname || ''; - - // if hostname begins with [ and ends with ] - // assume that it's an IPv6 address. - var ipv6Hostname = this.hostname[0] === '[' && - this.hostname[this.hostname.length - 1] === ']'; - - // validate a little. - if (!ipv6Hostname) { - var hostparts = this.hostname.split(/\./); - for (var i = 0, l = hostparts.length; i < l; i++) { - var part = hostparts[i]; - if (!part) continue; - if (!part.match(hostnamePartPattern)) { - var newpart = ''; - for (var j = 0, k = part.length; j < k; j++) { - if (part.charCodeAt(j) > 127) { - // we replace non-ASCII char with a temporary placeholder - // we need this to make sure size of hostname is not - // broken by replacing non-ASCII by nothing - newpart += 'x'; - } else { - newpart += part[j]; - } - } - // we test again with ASCII char only - if (!newpart.match(hostnamePartPattern)) { - var validParts = hostparts.slice(0, i); - var notHost = hostparts.slice(i + 1); - var bit = part.match(hostnamePartStart); - if (bit) { - validParts.push(bit[1]); - notHost.unshift(bit[2]); - } - if (notHost.length) { - rest = '/' + notHost.join('.') + rest; - } - this.hostname = validParts.join('.'); - break; - } - } - } - } - - if (this.hostname.length > hostnameMaxLen) { - this.hostname = ''; - } else { - // hostnames are always lower case. - this.hostname = this.hostname.toLowerCase(); - } - - if (!ipv6Hostname) { - // IDNA Support: Returns a punycoded representation of "domain". - // It only converts parts of the domain name that - // have non-ASCII characters, i.e. it doesn't matter if - // you call it with a domain that already is ASCII-only. - this.hostname = punycode.toASCII(this.hostname); - } - - var p = this.port ? ':' + this.port : ''; - var h = this.hostname || ''; - this.host = h + p; - this.href += this.host; - - // strip [ and ] from the hostname - // the host field still retains them, though - if (ipv6Hostname) { - this.hostname = this.hostname.substr(1, this.hostname.length - 2); - if (rest[0] !== '/') { - rest = '/' + rest; - } - } - } - - // now rest is set to the post-host stuff. - // chop off any delim chars. - if (!unsafeProtocol[lowerProto]) { - - // First, make 100% sure that any "autoEscape" chars get - // escaped, even if encodeURIComponent doesn't think they - // need to be. - for (var i = 0, l = autoEscape.length; i < l; i++) { - var ae = autoEscape[i]; - if (rest.indexOf(ae) === -1) - continue; - var esc = encodeURIComponent(ae); - if (esc === ae) { - esc = escape(ae); - } - rest = rest.split(ae).join(esc); - } - } - - - // chop off from the tail first. - var hash = rest.indexOf('#'); - if (hash !== -1) { - // got a fragment string. - this.hash = rest.substr(hash); - rest = rest.slice(0, hash); - } - var qm = rest.indexOf('?'); - if (qm !== -1) { - this.search = rest.substr(qm); - this.query = rest.substr(qm + 1); - if (parseQueryString) { - this.query = querystring.parse(this.query); - } - rest = rest.slice(0, qm); - } else if (parseQueryString) { - // no query string, but parseQueryString still requested - this.search = ''; - this.query = {}; - } - if (rest) this.pathname = rest; - if (slashedProtocol[lowerProto] && - this.hostname && !this.pathname) { - this.pathname = '/'; - } - - //to support http.request - if (this.pathname || this.search) { - var p = this.pathname || ''; - var s = this.search || ''; - this.path = p + s; - } - - // finally, reconstruct the href based on what has been validated. - this.href = this.format(); - return this; -}; - -// format a parsed object into a url string -function urlFormat(obj) { - // ensure it's an object, and not a string url. - // If it's an obj, this is a no-op. - // this way, you can call url_format() on strings - // to clean up potentially wonky urls. - if (util.isString(obj)) obj = urlParse(obj); - if (!(obj instanceof Url)) return Url.prototype.format.call(obj); - return obj.format(); -} - -Url.prototype.format = function() { - var auth = this.auth || ''; - if (auth) { - auth = encodeURIComponent(auth); - auth = auth.replace(/%3A/i, ':'); - auth += '@'; - } - - var protocol = this.protocol || '', - pathname = this.pathname || '', - hash = this.hash || '', - host = false, - query = ''; - - if (this.host) { - host = auth + this.host; - } else if (this.hostname) { - host = auth + (this.hostname.indexOf(':') === -1 ? - this.hostname : - '[' + this.hostname + ']'); - if (this.port) { - host += ':' + this.port; - } - } - - if (this.query && - util.isObject(this.query) && - Object.keys(this.query).length) { - query = querystring.stringify(this.query); - } - - var search = this.search || (query && ('?' + query)) || ''; - - if (protocol && protocol.substr(-1) !== ':') protocol += ':'; - - // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. - // unless they had them to begin with. - if (this.slashes || - (!protocol || slashedProtocol[protocol]) && host !== false) { - host = '//' + (host || ''); - if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; - } else if (!host) { - host = ''; - } - - if (hash && hash.charAt(0) !== '#') hash = '#' + hash; - if (search && search.charAt(0) !== '?') search = '?' + search; - - pathname = pathname.replace(/[?#]/g, function(match) { - return encodeURIComponent(match); - }); - search = search.replace('#', '%23'); - - return protocol + host + pathname + search + hash; -}; - -function urlResolve(source, relative) { - return urlParse(source, false, true).resolve(relative); -} - -Url.prototype.resolve = function(relative) { - return this.resolveObject(urlParse(relative, false, true)).format(); -}; - -function urlResolveObject(source, relative) { - if (!source) return relative; - return urlParse(source, false, true).resolveObject(relative); -} - -Url.prototype.resolveObject = function(relative) { - if (util.isString(relative)) { - var rel = new Url(); - rel.parse(relative, false, true); - relative = rel; - } - - var result = new Url(); - var tkeys = Object.keys(this); - for (var tk = 0; tk < tkeys.length; tk++) { - var tkey = tkeys[tk]; - result[tkey] = this[tkey]; - } - - // hash is always overridden, no matter what. - // even href="" will remove it. - result.hash = relative.hash; - - // if the relative url is empty, then there's nothing left to do here. - if (relative.href === '') { - result.href = result.format(); - return result; - } - - // hrefs like //foo/bar always cut to the protocol. - if (relative.slashes && !relative.protocol) { - // take everything except the protocol from relative - var rkeys = Object.keys(relative); - for (var rk = 0; rk < rkeys.length; rk++) { - var rkey = rkeys[rk]; - if (rkey !== 'protocol') - result[rkey] = relative[rkey]; - } - - //urlParse appends trailing / to urls like http://www.example.com - if (slashedProtocol[result.protocol] && - result.hostname && !result.pathname) { - result.path = result.pathname = '/'; - } - - result.href = result.format(); - return result; - } - - if (relative.protocol && relative.protocol !== result.protocol) { - // if it's a known url protocol, then changing - // the protocol does weird things - // first, if it's not file:, then we MUST have a host, - // and if there was a path - // to begin with, then we MUST have a path. - // if it is file:, then the host is dropped, - // because that's known to be hostless. - // anything else is assumed to be absolute. - if (!slashedProtocol[relative.protocol]) { - var keys = Object.keys(relative); - for (var v = 0; v < keys.length; v++) { - var k = keys[v]; - result[k] = relative[k]; - } - result.href = result.format(); - return result; - } - - result.protocol = relative.protocol; - if (!relative.host && !hostlessProtocol[relative.protocol]) { - var relPath = (relative.pathname || '').split('/'); - while (relPath.length && !(relative.host = relPath.shift())); - if (!relative.host) relative.host = ''; - if (!relative.hostname) relative.hostname = ''; - if (relPath[0] !== '') relPath.unshift(''); - if (relPath.length < 2) relPath.unshift(''); - result.pathname = relPath.join('/'); - } else { - result.pathname = relative.pathname; - } - result.search = relative.search; - result.query = relative.query; - result.host = relative.host || ''; - result.auth = relative.auth; - result.hostname = relative.hostname || relative.host; - result.port = relative.port; - // to support http.request - if (result.pathname || result.search) { - var p = result.pathname || ''; - var s = result.search || ''; - result.path = p + s; - } - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; - } - - var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), - isRelAbs = ( - relative.host || - relative.pathname && relative.pathname.charAt(0) === '/' - ), - mustEndAbs = (isRelAbs || isSourceAbs || - (result.host && relative.pathname)), - removeAllDots = mustEndAbs, - srcPath = result.pathname && result.pathname.split('/') || [], - relPath = relative.pathname && relative.pathname.split('/') || [], - psychotic = result.protocol && !slashedProtocol[result.protocol]; - - // if the url is a non-slashed url, then relative - // links like ../.. should be able - // to crawl up to the hostname, as well. This is strange. - // result.protocol has already been set by now. - // Later on, put the first path part into the host field. - if (psychotic) { - result.hostname = ''; - result.port = null; - if (result.host) { - if (srcPath[0] === '') srcPath[0] = result.host; - else srcPath.unshift(result.host); - } - result.host = ''; - if (relative.protocol) { - relative.hostname = null; - relative.port = null; - if (relative.host) { - if (relPath[0] === '') relPath[0] = relative.host; - else relPath.unshift(relative.host); - } - relative.host = null; - } - mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); - } - - if (isRelAbs) { - // it's absolute. - result.host = (relative.host || relative.host === '') ? - relative.host : result.host; - result.hostname = (relative.hostname || relative.hostname === '') ? - relative.hostname : result.hostname; - result.search = relative.search; - result.query = relative.query; - srcPath = relPath; - // fall through to the dot-handling below. - } else if (relPath.length) { - // it's relative - // throw away the existing file, and take the new path instead. - if (!srcPath) srcPath = []; - srcPath.pop(); - srcPath = srcPath.concat(relPath); - result.search = relative.search; - result.query = relative.query; - } else if (!util.isNullOrUndefined(relative.search)) { - // just pull out the search. - // like href='?foo'. - // Put this after the other two cases because it simplifies the booleans - if (psychotic) { - result.hostname = result.host = srcPath.shift(); - //occationaly the auth can get stuck only in host - //this especially happens in cases like - //url.resolveObject('mailto:local1@domain1', 'local2@domain2') - var authInHost = result.host && result.host.indexOf('@') > 0 ? - result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.host = result.hostname = authInHost.shift(); - } - } - result.search = relative.search; - result.query = relative.query; - //to support http.request - if (!util.isNull(result.pathname) || !util.isNull(result.search)) { - result.path = (result.pathname ? result.pathname : '') + - (result.search ? result.search : ''); - } - result.href = result.format(); - return result; - } - - if (!srcPath.length) { - // no path at all. easy. - // we've already handled the other stuff above. - result.pathname = null; - //to support http.request - if (result.search) { - result.path = '/' + result.search; - } else { - result.path = null; - } - result.href = result.format(); - return result; - } - - // if a url ENDs in . or .., then it must get a trailing slash. - // however, if it ends in anything else non-slashy, - // then it must NOT get a trailing slash. - var last = srcPath.slice(-1)[0]; - var hasTrailingSlash = ( - (result.host || relative.host || srcPath.length > 1) && - (last === '.' || last === '..') || last === ''); - - // strip single dots, resolve double dots to parent dir - // if the path tries to go above the root, `up` ends up > 0 - var up = 0; - for (var i = srcPath.length; i >= 0; i--) { - last = srcPath[i]; - if (last === '.') { - srcPath.splice(i, 1); - } else if (last === '..') { - srcPath.splice(i, 1); - up++; - } else if (up) { - srcPath.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (!mustEndAbs && !removeAllDots) { - for (; up--; up) { - srcPath.unshift('..'); - } - } - - if (mustEndAbs && srcPath[0] !== '' && - (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { - srcPath.unshift(''); - } - - if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { - srcPath.push(''); - } - - var isAbsolute = srcPath[0] === '' || - (srcPath[0] && srcPath[0].charAt(0) === '/'); - - // put the host back - if (psychotic) { - result.hostname = result.host = isAbsolute ? '' : - srcPath.length ? srcPath.shift() : ''; - //occationaly the auth can get stuck only in host - //this especially happens in cases like - //url.resolveObject('mailto:local1@domain1', 'local2@domain2') - var authInHost = result.host && result.host.indexOf('@') > 0 ? - result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.host = result.hostname = authInHost.shift(); - } - } - - mustEndAbs = mustEndAbs || (result.host && srcPath.length); - - if (mustEndAbs && !isAbsolute) { - srcPath.unshift(''); - } - - if (!srcPath.length) { - result.pathname = null; - result.path = null; - } else { - result.pathname = srcPath.join('/'); - } - - //to support request.http - if (!util.isNull(result.pathname) || !util.isNull(result.search)) { - result.path = (result.pathname ? result.pathname : '') + - (result.search ? result.search : ''); - } - result.auth = relative.auth || result.auth; - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; -}; - -Url.prototype.parseHost = function() { - var host = this.host; - var port = portPattern.exec(host); - if (port) { - port = port[0]; - if (port !== ':') { - this.port = port.substr(1); - } - host = host.substr(0, host.length - port.length); - } - if (host) this.hostname = host; -}; - - -/***/ }), - -/***/ 118: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = __webpack_require__(119); - -function emptyFunction() {} -function emptyFunctionWithReset() {} -emptyFunctionWithReset.resetWarningCache = emptyFunction; - -module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use PropTypes.checkPropTypes() to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - elementType: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim, - - checkPropTypes: emptyFunctionWithReset, - resetWarningCache: emptyFunction - }; - - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), - -/***/ 119: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), - -/***/ 12: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -/***/ }), - -/***/ 120: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z" -})); -/* harmony default export */ __webpack_exports__["a"] = (close); - - -/***/ }), - -/***/ 127: -/***/ (function(module, exports) { - -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} - -module.exports = _inheritsLoose; - -/***/ }), - -/***/ 128: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["wordcount"]; }()); - -/***/ }), - -/***/ 13: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/***/ }), - -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 144: -/***/ (function(module, exports) { - -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } - } -} - - -/***/ }), - -/***/ 15: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); - - -function _possibleConstructorReturn(self, call) { - if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { - return call; - } - - return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); -} - -/***/ }), - -/***/ 150: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var util = __webpack_require__(151); - -function scrollIntoView(elem, container, config) { - config = config || {}; - // document 归一化到 window - if (container.nodeType === 9) { - container = util.getWindow(container); - } - - var allowHorizontalScroll = config.allowHorizontalScroll; - var onlyScrollIfNeeded = config.onlyScrollIfNeeded; - var alignWithTop = config.alignWithTop; - var alignWithLeft = config.alignWithLeft; - var offsetTop = config.offsetTop || 0; - var offsetLeft = config.offsetLeft || 0; - var offsetBottom = config.offsetBottom || 0; - var offsetRight = config.offsetRight || 0; - - allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; - - var isWin = util.isWindow(container); - var elemOffset = util.offset(elem); - var eh = util.outerHeight(elem); - var ew = util.outerWidth(elem); - var containerOffset = undefined; - var ch = undefined; - var cw = undefined; - var containerScroll = undefined; - var diffTop = undefined; - var diffBottom = undefined; - var win = undefined; - var winScroll = undefined; - var ww = undefined; - var wh = undefined; - - if (isWin) { - win = container; - wh = util.height(win); - ww = util.width(win); - winScroll = { - left: util.scrollLeft(win), - top: util.scrollTop(win) - }; - // elem 相对 container 可视视窗的距离 - diffTop = { - left: elemOffset.left - winScroll.left - offsetLeft, - top: elemOffset.top - winScroll.top - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, - top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom - }; - containerScroll = winScroll; - } else { - containerOffset = util.offset(container); - ch = container.clientHeight; - cw = container.clientWidth; - containerScroll = { - left: container.scrollLeft, - top: container.scrollTop - }; - // elem 相对 container 可视视窗的距离 - // 注意边框, offset 是边框到根节点 - diffTop = { - left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, - top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, - top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom - }; - } - - if (diffTop.top < 0 || diffBottom.top > 0) { - // 强制向上 - if (alignWithTop === true) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else if (alignWithTop === false) { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } else { - // 自动调整 - if (diffTop.top < 0) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; - if (alignWithTop) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } - - if (allowHorizontalScroll) { - if (diffTop.left < 0 || diffBottom.left > 0) { - // 强制向上 - if (alignWithLeft === true) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else if (alignWithLeft === false) { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } else { - // 自动调整 - if (diffTop.left < 0) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; - if (alignWithLeft) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } - } -} - -module.exports = scrollIntoView; - -/***/ }), - -/***/ 151: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - -var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; - -function getClientPosition(elem) { - var box = undefined; - var x = undefined; - var y = undefined; - var doc = elem.ownerDocument; - var body = doc.body; - var docElem = doc && doc.documentElement; - // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 - box = elem.getBoundingClientRect(); - - // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop - // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 - // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin - - x = box.left; - y = box.top; - - // In IE, most of the time, 2 extra pixels are added to the top and left - // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and - // IE6 standards mode, this border can be overridden by setting the - // document element's border to zero -- thus, we cannot rely on the - // offset always being 2 pixels. - - // In quirks mode, the offset can be determined by querying the body's - // clientLeft/clientTop, but in standards mode, it is found by querying - // the document element's clientLeft/clientTop. Since we already called - // getClientBoundingRect we have already forced a reflow, so it is not - // too expensive just to query them all. - - // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 - // 窗口边框标准是设 documentElement ,quirks 时设置 body - // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 - // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 - // 标准 ie 下 docElem.clientTop 就是 border-top - // ie7 html 即窗口边框改变不了。永远为 2 - // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 - - x -= docElem.clientLeft || body.clientLeft || 0; - y -= docElem.clientTop || body.clientTop || 0; - - return { - left: x, - top: y - }; -} - -function getScroll(w, top) { - var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; - var method = 'scroll' + (top ? 'Top' : 'Left'); - if (typeof ret !== 'number') { - var d = w.document; - // ie6,7,8 standard mode - ret = d.documentElement[method]; - if (typeof ret !== 'number') { - // quirks mode - ret = d.body[method]; - } - } - return ret; -} - -function getScrollLeft(w) { - return getScroll(w); -} - -function getScrollTop(w) { - return getScroll(w, true); -} - -function getOffset(el) { - var pos = getClientPosition(el); - var doc = el.ownerDocument; - var w = doc.defaultView || doc.parentWindow; - pos.left += getScrollLeft(w); - pos.top += getScrollTop(w); - return pos; -} -function _getComputedStyle(elem, name, computedStyle_) { - var val = ''; - var d = elem.ownerDocument; - var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); - - // https://github.com/kissyteam/kissy/issues/61 - if (computedStyle) { - val = computedStyle.getPropertyValue(name) || computedStyle[name]; - } - - return val; -} - -var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); -var RE_POS = /^(top|right|bottom|left)$/; -var CURRENT_STYLE = 'currentStyle'; -var RUNTIME_STYLE = 'runtimeStyle'; -var LEFT = 'left'; -var PX = 'px'; - -function _getComputedStyleIE(elem, name) { - // currentStyle maybe null - // http://msdn.microsoft.com/en-us/library/ms535231.aspx - var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; - - // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 - // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 - // 在 ie 下不对,需要直接用 offset 方式 - // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // exclude left right for relativity - if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { - // Remember the original values - var style = elem.style; - var left = style[LEFT]; - var rsLeft = elem[RUNTIME_STYLE][LEFT]; - - // prevent flashing of content - elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; - - // Put in the new values to get a computed value out - style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; - ret = style.pixelLeft + PX; - - // Revert the changed values - style[LEFT] = left; - - elem[RUNTIME_STYLE][LEFT] = rsLeft; - } - return ret === '' ? 'auto' : ret; -} - -var getComputedStyleX = undefined; -if (typeof window !== 'undefined') { - getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; -} - -function each(arr, fn) { - for (var i = 0; i < arr.length; i++) { - fn(arr[i]); - } -} - -function isBorderBoxFn(elem) { - return getComputedStyleX(elem, 'boxSizing') === 'border-box'; -} - -var BOX_MODELS = ['margin', 'border', 'padding']; -var CONTENT_INDEX = -1; -var PADDING_INDEX = 2; -var BORDER_INDEX = 1; -var MARGIN_INDEX = 0; - -function swap(elem, options, callback) { - var old = {}; - var style = elem.style; - var name = undefined; - - // Remember the old values, and insert the new ones - for (name in options) { - if (options.hasOwnProperty(name)) { - old[name] = style[name]; - style[name] = options[name]; - } - } - - callback.call(elem); - - // Revert the old values - for (name in options) { - if (options.hasOwnProperty(name)) { - style[name] = old[name]; - } - } -} - -function getPBMWidth(elem, props, which) { - var value = 0; - var prop = undefined; - var j = undefined; - var i = undefined; - for (j = 0; j < props.length; j++) { - prop = props[j]; - if (prop) { - for (i = 0; i < which.length; i++) { - var cssProp = undefined; - if (prop === 'border') { - cssProp = prop + which[i] + 'Width'; - } else { - cssProp = prop + which[i]; - } - value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; - } - } - } - return value; -} - -/** - * A crude way of determining if an object is a window - * @member util - */ -function isWindow(obj) { - // must use == for ie8 - /* eslint eqeqeq:0 */ - return obj != null && obj == obj.window; -} - -var domUtils = {}; - -each(['Width', 'Height'], function (name) { - domUtils['doc' + name] = function (refWin) { - var d = refWin.document; - return Math.max( - // firefox chrome documentElement.scrollHeight< body.scrollHeight - // ie standard mode : documentElement.scrollHeight> body.scrollHeight - d.documentElement['scroll' + name], - // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? - d.body['scroll' + name], domUtils['viewport' + name](d)); - }; - - domUtils['viewport' + name] = function (win) { - // pc browser includes scrollbar in window.innerWidth - var prop = 'client' + name; - var doc = win.document; - var body = doc.body; - var documentElement = doc.documentElement; - var documentElementProp = documentElement[prop]; - // 标准模式取 documentElement - // backcompat 取 body - return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; - }; -}); - -/* - 得到元素的大小信息 - @param elem - @param name - @param {String} [extra] 'padding' : (css width) + padding - 'border' : (css width) + padding + border - 'margin' : (css width) + padding + border + margin - */ -function getWH(elem, name, extra) { - if (isWindow(elem)) { - return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); - } else if (elem.nodeType === 9) { - return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); - } - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem, computedStyle); - var cssBoxValue = 0; - if (borderBoxValue == null || borderBoxValue <= 0) { - borderBoxValue = undefined; - // Fall back to computed then un computed css if necessary - cssBoxValue = getComputedStyleX(elem, name); - if (cssBoxValue == null || Number(cssBoxValue) < 0) { - cssBoxValue = elem.style[name] || 0; - } - // Normalize '', auto, and prepare for extra - cssBoxValue = parseFloat(cssBoxValue) || 0; - } - if (extra === undefined) { - extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; - } - var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; - var val = borderBoxValue || cssBoxValue; - if (extra === CONTENT_INDEX) { - if (borderBoxValueOrIsBorderBox) { - return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); - } - return cssBoxValue; - } - if (borderBoxValueOrIsBorderBox) { - var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); - return val + (extra === BORDER_INDEX ? 0 : padding); - } - return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); -} - -var cssShow = { - position: 'absolute', - visibility: 'hidden', - display: 'block' -}; - -// fix #119 : https://github.com/kissyteam/kissy/issues/119 -function getWHIgnoreDisplay(elem) { - var val = undefined; - var args = arguments; - // in case elem is window - // elem.offsetWidth === undefined - if (elem.offsetWidth !== 0) { - val = getWH.apply(undefined, args); - } else { - swap(elem, cssShow, function () { - val = getWH.apply(undefined, args); - }); - } - return val; -} - -function css(el, name, v) { - var value = v; - if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { - for (var i in name) { - if (name.hasOwnProperty(i)) { - css(el, i, name[i]); - } - } - return undefined; - } - if (typeof value !== 'undefined') { - if (typeof value === 'number') { - value += 'px'; - } - el.style[name] = value; - return undefined; - } - return getComputedStyleX(el, name); -} - -each(['width', 'height'], function (name) { - var first = name.charAt(0).toUpperCase() + name.slice(1); - domUtils['outer' + first] = function (el, includeMargin) { - return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); - }; - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - - domUtils[name] = function (elem, val) { - if (val !== undefined) { - if (elem) { - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem); - if (isBorderBox) { - val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); - } - return css(elem, name, val); - } - return undefined; - } - return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); - }; -}); - -// 设置 elem 相对 elem.ownerDocument 的坐标 -function setOffset(elem, offset) { - // set position first, in-case top/left are set even on static elem - if (css(elem, 'position') === 'static') { - elem.style.position = 'relative'; - } - - var old = getOffset(elem); - var ret = {}; - var current = undefined; - var key = undefined; - - for (key in offset) { - if (offset.hasOwnProperty(key)) { - current = parseFloat(css(elem, key)) || 0; - ret[key] = current + offset[key] - old[key]; - } - } - css(elem, ret); -} - -module.exports = _extends({ - getWindow: function getWindow(node) { - var doc = node.ownerDocument || node; - return doc.defaultView || doc.parentWindow; - }, - offset: function offset(el, value) { - if (typeof value !== 'undefined') { - setOffset(el, value); - } else { - return getOffset(el); - } - }, - - isWindow: isWindow, - each: each, - css: css, - clone: function clone(obj) { - var ret = {}; - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret[i] = obj[i]; - } - } - var overflow = obj.overflow; - if (overflow) { - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret.overflow[i] = obj.overflow[i]; - } - } - } - return ret; - }, - scrollLeft: function scrollLeft(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollLeft(w); - } - window.scrollTo(v, getScrollTop(w)); - } else { - if (v === undefined) { - return w.scrollLeft; - } - w.scrollLeft = v; - } - }, - scrollTop: function scrollTop(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollTop(w); - } - window.scrollTo(getScrollLeft(w), v); - } else { - if (v === undefined) { - return w.scrollTop; - } - w.scrollTop = v; - } - }, - - viewportWidth: 0, - viewportHeight: 0 -}, domUtils); - -/***/ }), - -/***/ 152: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) - t[p[i]] = s[p[i]]; - return t; -}; -exports.__esModule = true; -var React = __webpack_require__(21); -var PropTypes = __webpack_require__(26); -var autosize = __webpack_require__(153); -var _getLineHeight = __webpack_require__(154); -var getLineHeight = _getLineHeight; -var UPDATE = 'autosize:update'; -var DESTROY = 'autosize:destroy'; -var RESIZED = 'autosize:resized'; -/** - * A light replacement for built-in textarea component - * which automaticaly adjusts its height to match the content - */ -var TextareaAutosize = /** @class */ (function (_super) { - __extends(TextareaAutosize, _super); - function TextareaAutosize() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - lineHeight: null - }; - _this.dispatchEvent = function (EVENT_TYPE) { - var event = document.createEvent('Event'); - event.initEvent(EVENT_TYPE, true, false); - _this.textarea.dispatchEvent(event); - }; - _this.updateLineHeight = function () { - _this.setState({ - lineHeight: getLineHeight(_this.textarea) - }); - }; - _this.onChange = function (e) { - var onChange = _this.props.onChange; - _this.currentValue = e.currentTarget.value; - onChange && onChange(e); - }; - _this.saveDOMNodeRef = function (ref) { - var innerRef = _this.props.innerRef; - if (innerRef) { - innerRef(ref); - } - _this.textarea = ref; - }; - _this.getLocals = function () { - var _a = _this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef"]), lineHeight = _a.state.lineHeight, saveDOMNodeRef = _a.saveDOMNodeRef; - var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null; - return __assign({}, props, { saveDOMNodeRef: saveDOMNodeRef, style: maxHeight ? __assign({}, style, { maxHeight: maxHeight }) : style, onChange: _this.onChange }); - }; - return _this; - } - TextareaAutosize.prototype.componentDidMount = function () { - var _this = this; - var _a = this.props, onResize = _a.onResize, maxRows = _a.maxRows; - if (typeof maxRows === 'number') { - this.updateLineHeight(); - } - /* - the defer is needed to: - - force "autosize" to activate the scrollbar when this.props.maxRows is passed - - support StyledComponents (see #71) - */ - setTimeout(function () { return autosize(_this.textarea); }); - if (onResize) { - this.textarea.addEventListener(RESIZED, onResize); - } - }; - TextareaAutosize.prototype.componentWillUnmount = function () { - var onResize = this.props.onResize; - if (onResize) { - this.textarea.removeEventListener(RESIZED, onResize); - } - this.dispatchEvent(DESTROY); - }; - TextareaAutosize.prototype.render = function () { - var _a = this.getLocals(), children = _a.children, saveDOMNodeRef = _a.saveDOMNodeRef, locals = __rest(_a, ["children", "saveDOMNodeRef"]); - return (React.createElement("textarea", __assign({}, locals, { ref: saveDOMNodeRef }), children)); - }; - TextareaAutosize.prototype.componentDidUpdate = function (prevProps) { - if (this.props.value !== this.currentValue || this.props.rows !== prevProps.rows) { - this.dispatchEvent(UPDATE); - } - }; - TextareaAutosize.defaultProps = { - rows: 1 - }; - TextareaAutosize.propTypes = { - rows: PropTypes.number, - maxRows: PropTypes.number, - onResize: PropTypes.func, - innerRef: PropTypes.func - }; - return TextareaAutosize; -}(React.Component)); -exports["default"] = TextareaAutosize; - - -/***/ }), - -/***/ 153: -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - autosize 4.0.2 - license: MIT - http://www.jacklmoore.com/autosize -*/ -(function (global, factory) { - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { var mod; } -})(this, function (module, exports) { - 'use strict'; - - var map = typeof Map === "function" ? new Map() : function () { - var keys = []; - var values = []; - - return { - has: function has(key) { - return keys.indexOf(key) > -1; - }, - get: function get(key) { - return values[keys.indexOf(key)]; - }, - set: function set(key, value) { - if (keys.indexOf(key) === -1) { - keys.push(key); - values.push(value); - } - }, - delete: function _delete(key) { - var index = keys.indexOf(key); - if (index > -1) { - keys.splice(index, 1); - values.splice(index, 1); - } - } - }; - }(); - - var createEvent = function createEvent(name) { - return new Event(name, { bubbles: true }); - }; - try { - new Event('test'); - } catch (e) { - // IE does not support `new Event()` - createEvent = function createEvent(name) { - var evt = document.createEvent('Event'); - evt.initEvent(name, true, false); - return evt; - }; - } - - function assign(ta) { - if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return; - - var heightOffset = null; - var clientWidth = null; - var cachedHeight = null; - - function init() { - var style = window.getComputedStyle(ta, null); - - if (style.resize === 'vertical') { - ta.style.resize = 'none'; - } else if (style.resize === 'both') { - ta.style.resize = 'horizontal'; - } - - if (style.boxSizing === 'content-box') { - heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); - } else { - heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); - } - // Fix when a textarea is not on document body and heightOffset is Not a Number - if (isNaN(heightOffset)) { - heightOffset = 0; - } - - update(); - } - - function changeOverflow(value) { - { - // Chrome/Safari-specific fix: - // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space - // made available by removing the scrollbar. The following forces the necessary text reflow. - var width = ta.style.width; - ta.style.width = '0px'; - // Force reflow: - /* jshint ignore:start */ - ta.offsetWidth; - /* jshint ignore:end */ - ta.style.width = width; - } - - ta.style.overflowY = value; - } - - function getParentOverflows(el) { - var arr = []; - - while (el && el.parentNode && el.parentNode instanceof Element) { - if (el.parentNode.scrollTop) { - arr.push({ - node: el.parentNode, - scrollTop: el.parentNode.scrollTop - }); - } - el = el.parentNode; - } - - return arr; - } - - function resize() { - if (ta.scrollHeight === 0) { - // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. - return; - } - - var overflows = getParentOverflows(ta); - var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) - - ta.style.height = ''; - ta.style.height = ta.scrollHeight + heightOffset + 'px'; - - // used to check if an update is actually necessary on window.resize - clientWidth = ta.clientWidth; - - // prevents scroll-position jumping - overflows.forEach(function (el) { - el.node.scrollTop = el.scrollTop; - }); - - if (docTop) { - document.documentElement.scrollTop = docTop; - } - } - - function update() { - resize(); - - var styleHeight = Math.round(parseFloat(ta.style.height)); - var computed = window.getComputedStyle(ta, null); - - // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box - var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight; - - // The actual height not matching the style height (set via the resize method) indicates that - // the max-height has been exceeded, in which case the overflow should be allowed. - if (actualHeight < styleHeight) { - if (computed.overflowY === 'hidden') { - changeOverflow('scroll'); - resize(); - actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; - } - } else { - // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. - if (computed.overflowY !== 'hidden') { - changeOverflow('hidden'); - resize(); - actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; - } - } - - if (cachedHeight !== actualHeight) { - cachedHeight = actualHeight; - var evt = createEvent('autosize:resized'); - try { - ta.dispatchEvent(evt); - } catch (err) { - // Firefox will throw an error on dispatchEvent for a detached element - // https://bugzilla.mozilla.org/show_bug.cgi?id=889376 - } - } - } - - var pageResize = function pageResize() { - if (ta.clientWidth !== clientWidth) { - update(); - } - }; - - var destroy = function (style) { - window.removeEventListener('resize', pageResize, false); - ta.removeEventListener('input', update, false); - ta.removeEventListener('keyup', update, false); - ta.removeEventListener('autosize:destroy', destroy, false); - ta.removeEventListener('autosize:update', update, false); - - Object.keys(style).forEach(function (key) { - ta.style[key] = style[key]; - }); - - map.delete(ta); - }.bind(ta, { - height: ta.style.height, - resize: ta.style.resize, - overflowY: ta.style.overflowY, - overflowX: ta.style.overflowX, - wordWrap: ta.style.wordWrap - }); - - ta.addEventListener('autosize:destroy', destroy, false); - - // IE9 does not fire onpropertychange or oninput for deletions, - // so binding to onkeyup to catch most of those events. - // There is no way that I know of to detect something like 'cut' in IE9. - if ('onpropertychange' in ta && 'oninput' in ta) { - ta.addEventListener('keyup', update, false); - } - - window.addEventListener('resize', pageResize, false); - ta.addEventListener('input', update, false); - ta.addEventListener('autosize:update', update, false); - ta.style.overflowX = 'hidden'; - ta.style.wordWrap = 'break-word'; - - map.set(ta, { - destroy: destroy, - update: update - }); - - init(); - } - - function destroy(ta) { - var methods = map.get(ta); - if (methods) { - methods.destroy(); - } - } - - function update(ta) { - var methods = map.get(ta); - if (methods) { - methods.update(); - } - } - - var autosize = null; - - // Do nothing in Node.js environment and IE8 (or lower) - if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { - autosize = function autosize(el) { - return el; - }; - autosize.destroy = function (el) { - return el; - }; - autosize.update = function (el) { - return el; - }; - } else { - autosize = function autosize(el, options) { - if (el) { - Array.prototype.forEach.call(el.length ? el : [el], function (x) { - return assign(x, options); - }); - } - return el; - }; - autosize.destroy = function (el) { - if (el) { - Array.prototype.forEach.call(el.length ? el : [el], destroy); - } - return el; - }; - autosize.update = function (el) { - if (el) { - Array.prototype.forEach.call(el.length ? el : [el], update); - } - return el; - }; - } - - exports.default = autosize; - module.exports = exports['default']; -}); - -/***/ }), - -/***/ 154: -/***/ (function(module, exports, __webpack_require__) { - -// Load in dependencies -var computedStyle = __webpack_require__(155); - -/** - * Calculate the `line-height` of a given node - * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM. - * @returns {Number} `line-height` of the element in pixels - */ -function lineHeight(node) { - // Grab the line-height via style - var lnHeightStr = computedStyle(node, 'line-height'); - var lnHeight = parseFloat(lnHeightStr, 10); - - // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em') - if (lnHeightStr === lnHeight + '') { - // Save the old lineHeight style and update the em unit to the element - var _lnHeightStyle = node.style.lineHeight; - node.style.lineHeight = lnHeightStr + 'em'; - - // Calculate the em based height - lnHeightStr = computedStyle(node, 'line-height'); - lnHeight = parseFloat(lnHeightStr, 10); - - // Revert the lineHeight style - if (_lnHeightStyle) { - node.style.lineHeight = _lnHeightStyle; - } else { - delete node.style.lineHeight; - } - } - - // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt) - // DEV: `em` units are converted to `pt` in IE6 - // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length - if (lnHeightStr.indexOf('pt') !== -1) { - lnHeight *= 4; - lnHeight /= 3; - // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm) - } else if (lnHeightStr.indexOf('mm') !== -1) { - lnHeight *= 96; - lnHeight /= 25.4; - // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm) - } else if (lnHeightStr.indexOf('cm') !== -1) { - lnHeight *= 96; - lnHeight /= 2.54; - // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in) - } else if (lnHeightStr.indexOf('in') !== -1) { - lnHeight *= 96; - // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc) - } else if (lnHeightStr.indexOf('pc') !== -1) { - lnHeight *= 16; - } - - // Continue our computation - lnHeight = Math.round(lnHeight); - - // If the line-height is "normal", calculate by font-size - if (lnHeightStr === 'normal') { - // Create a temporary node - var nodeName = node.nodeName; - var _node = document.createElement(nodeName); - _node.innerHTML = ' '; - - // If we have a text area, reset it to only 1 row - // https://github.com/twolfson/line-height/issues/4 - if (nodeName.toUpperCase() === 'TEXTAREA') { - _node.setAttribute('rows', '1'); - } - - // Set the font-size of the element - var fontSizeStr = computedStyle(node, 'font-size'); - _node.style.fontSize = fontSizeStr; - - // Remove default padding/border which can affect offset height - // https://github.com/twolfson/line-height/issues/4 - // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight - _node.style.padding = '0px'; - _node.style.border = '0px'; - - // Append it to the body - var body = document.body; - body.appendChild(_node); - - // Assume the line height of the element is the height - var height = _node.offsetHeight; - lnHeight = height; - - // Remove our child from the DOM - body.removeChild(_node); - } - - // Return the calculated height - return lnHeight; -} - -// Export lineHeight -module.exports = lineHeight; - - -/***/ }), - -/***/ 155: -/***/ (function(module, exports) { - -// This code has been refactored for 140 bytes -// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js -var computedStyle = function (el, prop, getComputedStyle) { - getComputedStyle = window.getComputedStyle; - - // In one fell swoop - return ( - // If we have getComputedStyle - getComputedStyle ? - // Query it - // TODO: From CSS-Query notes, we might need (node, null) for FF - getComputedStyle(el) : - - // Otherwise, we are in IE and use currentStyle - el.currentStyle - )[ - // Switch to camelCase for CSSOM - // DEV: Grabbed from jQuery - // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194 - // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597 - prop.replace(/-(\w)/gi, function (word, letter) { - return letter.toUpperCase(); - }) - ]; -}; - -module.exports = computedStyle; - - -/***/ }), - -/***/ 156: -/***/ (function(module, exports) { - -function _extends() { - module.exports = _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -module.exports = _extends; - -/***/ }), - -/***/ 157: -/***/ (function(module, exports) { - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -module.exports = _objectWithoutPropertiesLoose; - -/***/ }), - -/***/ 158: -/***/ (function(module, exports) { - -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -module.exports = _assertThisInitialized; - -/***/ }), - -/***/ 159: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z" -})); -/* harmony default export */ __webpack_exports__["a"] = (link); - - -/***/ }), - -/***/ 16: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -/***/ }), - -/***/ 160: -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */ -;(function(root) { - - /** Detect free variables */ - var freeExports = true && exports && - !exports.nodeType && exports; - var freeModule = true && module && - !module.nodeType && module; - var freeGlobal = typeof global == 'object' && global; - if ( - freeGlobal.global === freeGlobal || - freeGlobal.window === freeGlobal || - freeGlobal.self === freeGlobal - ) { - root = freeGlobal; - } - - /** - * The `punycode` object. - * @name punycode - * @type Object - */ - var punycode, - - /** Highest positive signed 32-bit float value */ - maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 - - /** Bootstring parameters */ - base = 36, - tMin = 1, - tMax = 26, - skew = 38, - damp = 700, - initialBias = 72, - initialN = 128, // 0x80 - delimiter = '-', // '\x2D' - - /** Regular expressions */ - regexPunycode = /^xn--/, - regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars - regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators - - /** Error messages */ - errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' - }, - - /** Convenience shortcuts */ - baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - - /** Temporary variable */ - key; - - /*--------------------------------------------------------------------------*/ - - /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ - function error(type) { - throw RangeError(errors[type]); - } - - /** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ - function map(array, fn) { - var length = array.length; - var result = []; - while (length--) { - result[length] = fn(array[length]); - } - return result; - } - - /** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ - function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; - } - - /** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ - function ucs2decode(string) { - var output = [], - counter = 0, - length = string.length, - value, - extra; - while (counter < length) { - value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // high surrogate, and there is a next character - extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // low surrogate - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // unmatched surrogate; only append this code unit, in case the next - // code unit is the high surrogate of a surrogate pair - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; - } - - /** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ - function ucs2encode(array) { - return map(array, function(value) { - var output = ''; - if (value > 0xFFFF) { - value -= 0x10000; - output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); - value = 0xDC00 | value & 0x3FF; - } - output += stringFromCharCode(value); - return output; - }).join(''); - } - - /** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ - function basicToDigit(codePoint) { - if (codePoint - 48 < 10) { - return codePoint - 22; - } - if (codePoint - 65 < 26) { - return codePoint - 65; - } - if (codePoint - 97 < 26) { - return codePoint - 97; - } - return base; - } - - /** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ - function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); - } - - /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * http://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ - function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); - } - - /** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ - function decode(input) { - // Don't use UCS-2 - var output = [], - inputLength = input.length, - out, - i = 0, - n = initialN, - bias = initialBias, - basic, - j, - index, - oldi, - w, - k, - digit, - t, - /** Cached calculation results */ - baseMinusT; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - for (oldi = i, w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output - output.splice(i++, 0, n); - - } - - return ucs2encode(output); - } - - /** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ - function encode(input) { - var n, - delta, - handledCPCount, - basicLength, - bias, - j, - m, - q, - k, - t, - currentValue, - output = [], - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - /** Cached calculation results */ - handledCPCountPlusOne, - baseMinusT, - qMinusT; - - // Convert the input in UCS-2 to Unicode - input = ucs2decode(input); - - // Cache the length - inputLength = input.length; - - // Initialize the state - n = initialN; - delta = 0; - bias = initialBias; - - // Handle the basic code points - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - handledCPCount = basicLength = output.length; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string - if it is not empty - with a delimiter - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - for (m = maxInt, j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow - handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - - if (currentValue == n) { - // Represent delta as a generalized variable-length integer - for (q = delta, k = base; /* no condition */; k += base) { - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - qMinusT = q - t; - baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); - } - - /** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ - function toUnicode(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); - } - - /** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ - function toASCII(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); - } - - /*--------------------------------------------------------------------------*/ - - /** Define the public API */ - punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '1.3.2', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode - }; - - /** Expose `punycode` */ - // Some AMD build optimizers, like r.js, check for specific condition patterns - // like the following: - if ( - true - ) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { - return punycode; - }).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - -}(this)); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(161)(module), __webpack_require__(73))) - -/***/ }), - -/***/ 161: -/***/ (function(module, exports) { - -module.exports = function(module) { - if (!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), - -/***/ 162: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - isString: function(arg) { - return typeof(arg) === 'string'; - }, - isObject: function(arg) { - return typeof(arg) === 'object' && arg !== null; - }, - isNull: function(arg) { - return arg === null; - }, - isNullOrUndefined: function(arg) { - return arg == null; - } -}; - - -/***/ }), - -/***/ 163: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.decode = exports.parse = __webpack_require__(164); -exports.encode = exports.stringify = __webpack_require__(165); - - -/***/ }), - -/***/ 164: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -// If obj.hasOwnProperty has been overridden, then calling -// obj.hasOwnProperty(prop) will break. -// See: https://github.com/joyent/node/issues/1707 -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -module.exports = function(qs, sep, eq, options) { - sep = sep || '&'; - eq = eq || '='; - var obj = {}; - - if (typeof qs !== 'string' || qs.length === 0) { - return obj; - } - - var regexp = /\+/g; - qs = qs.split(sep); - - var maxKeys = 1000; - if (options && typeof options.maxKeys === 'number') { - maxKeys = options.maxKeys; - } - - var len = qs.length; - // maxKeys <= 0 means that we should not limit keys count - if (maxKeys > 0 && len > maxKeys) { - len = maxKeys; - } - - for (var i = 0; i < len; ++i) { - var x = qs[i].replace(regexp, '%20'), - idx = x.indexOf(eq), - kstr, vstr, k, v; - - if (idx >= 0) { - kstr = x.substr(0, idx); - vstr = x.substr(idx + 1); - } else { - kstr = x; - vstr = ''; - } - - k = decodeURIComponent(kstr); - v = decodeURIComponent(vstr); - - if (!hasOwnProperty(obj, k)) { - obj[k] = v; - } else if (isArray(obj[k])) { - obj[k].push(v); - } else { - obj[k] = [obj[k], v]; - } - } - - return obj; -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - - -/***/ }), - -/***/ 165: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var stringifyPrimitive = function(v) { - switch (typeof v) { - case 'string': - return v; - - case 'boolean': - return v ? 'true' : 'false'; - - case 'number': - return isFinite(v) ? v : ''; - - default: - return ''; - } -}; - -module.exports = function(obj, sep, eq, name) { - sep = sep || '&'; - eq = eq || '='; - if (obj === null) { - obj = undefined; - } - - if (typeof obj === 'object') { - return map(objectKeys(obj), function(k) { - var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; - if (isArray(obj[k])) { - return map(obj[k], function(v) { - return ks + encodeURIComponent(stringifyPrimitive(v)); - }).join(sep); - } else { - return ks + encodeURIComponent(stringifyPrimitive(obj[k])); - } - }).join(sep); - - } - - if (!name) return ''; - return encodeURIComponent(stringifyPrimitive(name)) + eq + - encodeURIComponent(stringifyPrimitive(obj)); -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f(xs[i], i)); - } - return res; -} - -var objectKeys = Object.keys || function (obj) { - var res = []; - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); - } - return res; -}; - - -/***/ }), - -/***/ 17: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - - return _setPrototypeOf(o, p); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; }); - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} - -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(25); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(35); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); - - - - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} - -/***/ }), - -/***/ 184: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["tokenList"]; }()); - -/***/ }), - -/***/ 19: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -/***/ }), - -/***/ 191: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); - - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - - -function Icon(_ref) { - var icon = _ref.icon, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 24 : _ref$size, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ - width: size, - height: size - }, props)); -} - -/* harmony default export */ __webpack_exports__["a"] = (Icon); - - -/***/ }), - -/***/ 192: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z" -})); -/* harmony default export */ __webpack_exports__["a"] = (keyboardReturn); - - -/***/ }), - -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(38); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(39); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); - - - - -function _slicedToArray(arr, i) { - return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])(); -} - -/***/ }), - -/***/ 21: -/***/ (function(module, exports) { - -(function() { module.exports = this["React"]; }()); - -/***/ }), - -/***/ 22: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); - -/***/ }), - -/***/ 23: -/***/ (function(module, exports) { - -(function() { module.exports = this["regeneratorRuntime"]; }()); - -/***/ }), - -/***/ 24: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["richText"]; }()); - -/***/ }), - -/***/ 25: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - - return arr2; -} - -/***/ }), - -/***/ 26: -/***/ (function(module, exports, __webpack_require__) { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (false) { var throwOnDirectAccess, ReactIs; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(118)(); -} - - -/***/ }), - -/***/ 261: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -/** - * Redux dispatch multiple actions - */ - -function multi(_ref) { - var dispatch = _ref.dispatch; - - return function (next) { - return function (action) { - return Array.isArray(action) ? action.filter(Boolean).map(dispatch) : next(action); - }; - }; -} - -/** - * Exports - */ - -exports.default = multi; - -/***/ }), - -/***/ 262: -/***/ (function(module, exports, __webpack_require__) { - -/*! - - diff v3.5.0 - -Software License Agreement (BSD License) - -Copyright (c) 2009-2015, Kevin Decker - -All rights reserved. - -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. - -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@license -*/ -(function webpackUniversalModuleDefinition(root, factory) { - if(true) - module.exports = factory(); - else {} -})(this, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.canonicalize = exports.convertChangesToXML = exports.convertChangesToDMP = exports.merge = exports.parsePatch = exports.applyPatches = exports.applyPatch = exports.createPatch = exports.createTwoFilesPatch = exports.structuredPatch = exports.diffArrays = exports.diffJson = exports.diffCss = exports.diffSentences = exports.diffTrimmedLines = exports.diffLines = exports.diffWordsWithSpace = exports.diffWords = exports.diffChars = exports.Diff = undefined; - - /*istanbul ignore end*/var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_character = __webpack_require__(2) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_word = __webpack_require__(3) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_sentence = __webpack_require__(6) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_css = __webpack_require__(7) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_json = __webpack_require__(8) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_array = __webpack_require__(9) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_apply = __webpack_require__(10) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_merge = __webpack_require__(13) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_dmp = __webpack_require__(16) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_xml = __webpack_require__(17) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /* See LICENSE file for terms of use */ - - /* - * Text diff implementation. - * - * This library supports the following APIS: - * JsDiff.diffChars: Character by character diff - * JsDiff.diffWords: Word (as defined by \b regex) diff which ignores whitespace - * JsDiff.diffLines: Line based diff - * - * JsDiff.diffCss: Diff targeted at CSS content - * - * These methods are based on the implementation proposed in - * "An O(ND) Difference Algorithm and its Variations" (Myers, 1986). - * http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927 - */ - exports. /*istanbul ignore end*/Diff = _base2['default']; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffChars = _character.diffChars; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWords = _word.diffWords; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = _word.diffWordsWithSpace; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffLines = _line.diffLines; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = _line.diffTrimmedLines; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffSentences = _sentence.diffSentences; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffCss = _css.diffCss; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffJson = _json.diffJson; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffArrays = _array.diffArrays; - /*istanbul ignore start*/exports. /*istanbul ignore end*/structuredPatch = _create.structuredPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = _create.createTwoFilesPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = _create.createPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatch = _apply.applyPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = _apply.applyPatches; - /*istanbul ignore start*/exports. /*istanbul ignore end*/parsePatch = _parse.parsePatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = _merge.merge; - /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToDMP = _dmp.convertChangesToDMP; - /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToXML = _xml.convertChangesToXML; - /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = _json.canonicalize; - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJEaWZmIiwiZGlmZkNoYXJzIiwiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImRpZmZTZW50ZW5jZXMiLCJkaWZmQ3NzIiwiZGlmZkpzb24iLCJkaWZmQXJyYXlzIiwic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwiYXBwbHlQYXRjaCIsImFwcGx5UGF0Y2hlcyIsInBhcnNlUGF0Y2giLCJtZXJnZSIsImNvbnZlcnRDaGFuZ2VzVG9ETVAiLCJjb252ZXJ0Q2hhbmdlc1RvWE1MIiwiY2Fub25pY2FsaXplIl0sIm1hcHBpbmdzIjoiOzs7Ozt1QkFnQkE7Ozs7dUJBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7O0FBQ0E7O0FBRUE7O0FBRUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7O0FBQ0E7Ozs7QUFqQ0E7O0FBRUE7Ozs7Ozs7Ozs7Ozs7O2dDQWtDRUEsSTt5REFFQUMsUzt5REFDQUMsUzt5REFDQUMsa0I7eURBQ0FDLFM7eURBQ0FDLGdCO3lEQUNBQyxhO3lEQUVBQyxPO3lEQUNBQyxRO3lEQUVBQyxVO3lEQUVBQyxlO3lEQUNBQyxtQjt5REFDQUMsVzt5REFDQUMsVTt5REFDQUMsWTt5REFDQUMsVTt5REFDQUMsSzt5REFDQUMsbUI7eURBQ0FDLG1CO3lEQUNBQyxZIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogU2VlIExJQ0VOU0UgZmlsZSBmb3IgdGVybXMgb2YgdXNlICovXG5cbi8qXG4gKiBUZXh0IGRpZmYgaW1wbGVtZW50YXRpb24uXG4gKlxuICogVGhpcyBsaWJyYXJ5IHN1cHBvcnRzIHRoZSBmb2xsb3dpbmcgQVBJUzpcbiAqIEpzRGlmZi5kaWZmQ2hhcnM6IENoYXJhY3RlciBieSBjaGFyYWN0ZXIgZGlmZlxuICogSnNEaWZmLmRpZmZXb3JkczogV29yZCAoYXMgZGVmaW5lZCBieSBcXGIgcmVnZXgpIGRpZmYgd2hpY2ggaWdub3JlcyB3aGl0ZXNwYWNlXG4gKiBKc0RpZmYuZGlmZkxpbmVzOiBMaW5lIGJhc2VkIGRpZmZcbiAqXG4gKiBKc0RpZmYuZGlmZkNzczogRGlmZiB0YXJnZXRlZCBhdCBDU1MgY29udGVudFxuICpcbiAqIFRoZXNlIG1ldGhvZHMgYXJlIGJhc2VkIG9uIHRoZSBpbXBsZW1lbnRhdGlvbiBwcm9wb3NlZCBpblxuICogXCJBbiBPKE5EKSBEaWZmZXJlbmNlIEFsZ29yaXRobSBhbmQgaXRzIFZhcmlhdGlvbnNcIiAoTXllcnMsIDE5ODYpLlxuICogaHR0cDovL2NpdGVzZWVyeC5pc3QucHN1LmVkdS92aWV3ZG9jL3N1bW1hcnk/ZG9pPTEwLjEuMS40LjY5MjdcbiAqL1xuaW1wb3J0IERpZmYgZnJvbSAnLi9kaWZmL2Jhc2UnO1xuaW1wb3J0IHtkaWZmQ2hhcnN9IGZyb20gJy4vZGlmZi9jaGFyYWN0ZXInO1xuaW1wb3J0IHtkaWZmV29yZHMsIGRpZmZXb3Jkc1dpdGhTcGFjZX0gZnJvbSAnLi9kaWZmL3dvcmQnO1xuaW1wb3J0IHtkaWZmTGluZXMsIGRpZmZUcmltbWVkTGluZXN9IGZyb20gJy4vZGlmZi9saW5lJztcbmltcG9ydCB7ZGlmZlNlbnRlbmNlc30gZnJvbSAnLi9kaWZmL3NlbnRlbmNlJztcblxuaW1wb3J0IHtkaWZmQ3NzfSBmcm9tICcuL2RpZmYvY3NzJztcbmltcG9ydCB7ZGlmZkpzb24sIGNhbm9uaWNhbGl6ZX0gZnJvbSAnLi9kaWZmL2pzb24nO1xuXG5pbXBvcnQge2RpZmZBcnJheXN9IGZyb20gJy4vZGlmZi9hcnJheSc7XG5cbmltcG9ydCB7YXBwbHlQYXRjaCwgYXBwbHlQYXRjaGVzfSBmcm9tICcuL3BhdGNoL2FwcGx5JztcbmltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXRjaC9wYXJzZSc7XG5pbXBvcnQge21lcmdlfSBmcm9tICcuL3BhdGNoL21lcmdlJztcbmltcG9ydCB7c3RydWN0dXJlZFBhdGNoLCBjcmVhdGVUd29GaWxlc1BhdGNoLCBjcmVhdGVQYXRjaH0gZnJvbSAnLi9wYXRjaC9jcmVhdGUnO1xuXG5pbXBvcnQge2NvbnZlcnRDaGFuZ2VzVG9ETVB9IGZyb20gJy4vY29udmVydC9kbXAnO1xuaW1wb3J0IHtjb252ZXJ0Q2hhbmdlc1RvWE1MfSBmcm9tICcuL2NvbnZlcnQveG1sJztcblxuZXhwb3J0IHtcbiAgRGlmZixcblxuICBkaWZmQ2hhcnMsXG4gIGRpZmZXb3JkcyxcbiAgZGlmZldvcmRzV2l0aFNwYWNlLFxuICBkaWZmTGluZXMsXG4gIGRpZmZUcmltbWVkTGluZXMsXG4gIGRpZmZTZW50ZW5jZXMsXG5cbiAgZGlmZkNzcyxcbiAgZGlmZkpzb24sXG5cbiAgZGlmZkFycmF5cyxcblxuICBzdHJ1Y3R1cmVkUGF0Y2gsXG4gIGNyZWF0ZVR3b0ZpbGVzUGF0Y2gsXG4gIGNyZWF0ZVBhdGNoLFxuICBhcHBseVBhdGNoLFxuICBhcHBseVBhdGNoZXMsXG4gIHBhcnNlUGF0Y2gsXG4gIG1lcmdlLFxuICBjb252ZXJ0Q2hhbmdlc1RvRE1QLFxuICBjb252ZXJ0Q2hhbmdlc1RvWE1MLFxuICBjYW5vbmljYWxpemVcbn07XG4iXX0= - - -/***/ }), -/* 1 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports['default'] = /*istanbul ignore end*/Diff; - function Diff() {} - - Diff.prototype = { - /*istanbul ignore start*/ /*istanbul ignore end*/diff: function diff(oldString, newString) { - /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - - var callback = options.callback; - if (typeof options === 'function') { - callback = options; - options = {}; - } - this.options = options; - - var self = this; - - function done(value) { - if (callback) { - setTimeout(function () { - callback(undefined, value); - }, 0); - return true; - } else { - return value; - } - } - - // Allow subclasses to massage the input prior to running - oldString = this.castInput(oldString); - newString = this.castInput(newString); - - oldString = this.removeEmpty(this.tokenize(oldString)); - newString = this.removeEmpty(this.tokenize(newString)); - - var newLen = newString.length, - oldLen = oldString.length; - var editLength = 1; - var maxEditLength = newLen + oldLen; - var bestPath = [{ newPos: -1, components: [] }]; - - // Seed editLength = 0, i.e. the content starts with the same values - var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0); - if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { - // Identity per the equality and tokenizer - return done([{ value: this.join(newString), count: newString.length }]); - } - - // Main worker method. checks all permutations of a given edit length for acceptance. - function execEditLength() { - for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { - var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - var addPath = bestPath[diagonalPath - 1], - removePath = bestPath[diagonalPath + 1], - _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; - if (addPath) { - // No one else is going to attempt to use this value, clear it - bestPath[diagonalPath - 1] = undefined; - } - - var canAdd = addPath && addPath.newPos + 1 < newLen, - canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen; - if (!canAdd && !canRemove) { - // If this path is a terminal then prune - bestPath[diagonalPath] = undefined; - continue; - } - - // Select the diagonal that we want to branch from. We select the prior - // path whose position in the new string is the farthest from the origin - // and does not pass the bounds of the diff graph - if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { - basePath = clonePath(removePath); - self.pushComponent(basePath.components, undefined, true); - } else { - basePath = addPath; // No need to clone, we've pulled it from the list - basePath.newPos++; - self.pushComponent(basePath.components, true, undefined); - } - - _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); - - // If we have hit the end of both strings, then we are done - if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) { - return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken)); - } else { - // Otherwise track this path as a potential candidate and continue. - bestPath[diagonalPath] = basePath; - } - } - - editLength++; - } - - // Performs the length of edit iteration. Is a bit fugly as this has to support the - // sync and async mode which is never fun. Loops over execEditLength until a value - // is produced. - if (callback) { - (function exec() { - setTimeout(function () { - // This should not happen, but we want to be safe. - /* istanbul ignore next */ - if (editLength > maxEditLength) { - return callback(); - } - - if (!execEditLength()) { - exec(); - } - }, 0); - })(); - } else { - while (editLength <= maxEditLength) { - var ret = execEditLength(); - if (ret) { - return ret; - } - } - } - }, - /*istanbul ignore start*/ /*istanbul ignore end*/pushComponent: function pushComponent(components, added, removed) { - var last = components[components.length - 1]; - if (last && last.added === added && last.removed === removed) { - // We need to clone here as the component clone operation is just - // as shallow array clone - components[components.length - 1] = { count: last.count + 1, added: added, removed: removed }; - } else { - components.push({ count: 1, added: added, removed: removed }); - } - }, - /*istanbul ignore start*/ /*istanbul ignore end*/extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { - var newLen = newString.length, - oldLen = oldString.length, - newPos = basePath.newPos, - oldPos = newPos - diagonalPath, - commonCount = 0; - while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { - newPos++; - oldPos++; - commonCount++; - } - - if (commonCount) { - basePath.components.push({ count: commonCount }); - } - - basePath.newPos = newPos; - return oldPos; - }, - /*istanbul ignore start*/ /*istanbul ignore end*/equals: function equals(left, right) { - if (this.options.comparator) { - return this.options.comparator(left, right); - } else { - return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); - } - }, - /*istanbul ignore start*/ /*istanbul ignore end*/removeEmpty: function removeEmpty(array) { - var ret = []; - for (var i = 0; i < array.length; i++) { - if (array[i]) { - ret.push(array[i]); - } - } - return ret; - }, - /*istanbul ignore start*/ /*istanbul ignore end*/castInput: function castInput(value) { - return value; - }, - /*istanbul ignore start*/ /*istanbul ignore end*/tokenize: function tokenize(value) { - return value.split(''); - }, - /*istanbul ignore start*/ /*istanbul ignore end*/join: function join(chars) { - return chars.join(''); - } - }; - - function buildValues(diff, components, newString, oldString, useLongestToken) { - var componentPos = 0, - componentLen = components.length, - newPos = 0, - oldPos = 0; - - for (; componentPos < componentLen; componentPos++) { - var component = components[componentPos]; - if (!component.removed) { - if (!component.added && useLongestToken) { - var value = newString.slice(newPos, newPos + component.count); - value = value.map(function (value, i) { - var oldValue = oldString[oldPos + i]; - return oldValue.length > value.length ? oldValue : value; - }); - - component.value = diff.join(value); - } else { - component.value = diff.join(newString.slice(newPos, newPos + component.count)); - } - newPos += component.count; - - // Common case - if (!component.added) { - oldPos += component.count; - } - } else { - component.value = diff.join(oldString.slice(oldPos, oldPos + component.count)); - oldPos += component.count; - - // Reverse add and remove so removes are output first to match common convention - // The diffing algorithm is tied to add then remove output and this is the simplest - // route to get the desired output with minimal overhead. - if (componentPos && components[componentPos - 1].added) { - var tmp = components[componentPos - 1]; - components[componentPos - 1] = components[componentPos]; - components[componentPos] = tmp; - } - } - } - - // Special case handle for when one terminal is ignored (i.e. whitespace). - // For this case we merge the terminal into the prior string and drop the change. - // This is only available for string mode. - var lastComponent = components[componentLen - 1]; - if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) { - components[componentLen - 2].value += lastComponent.value; - components.pop(); - } - - return components; - } - - function clonePath(path) { - return { newPos: path.newPos, components: path.components.slice(0) }; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOlsiRGlmZiIsInByb3RvdHlwZSIsImRpZmYiLCJvbGRTdHJpbmciLCJuZXdTdHJpbmciLCJvcHRpb25zIiwiY2FsbGJhY2siLCJzZWxmIiwiZG9uZSIsInZhbHVlIiwic2V0VGltZW91dCIsInVuZGVmaW5lZCIsImNhc3RJbnB1dCIsInJlbW92ZUVtcHR5IiwidG9rZW5pemUiLCJuZXdMZW4iLCJsZW5ndGgiLCJvbGRMZW4iLCJlZGl0TGVuZ3RoIiwibWF4RWRpdExlbmd0aCIsImJlc3RQYXRoIiwibmV3UG9zIiwiY29tcG9uZW50cyIsIm9sZFBvcyIsImV4dHJhY3RDb21tb24iLCJqb2luIiwiY291bnQiLCJleGVjRWRpdExlbmd0aCIsImRpYWdvbmFsUGF0aCIsImJhc2VQYXRoIiwiYWRkUGF0aCIsInJlbW92ZVBhdGgiLCJjYW5BZGQiLCJjYW5SZW1vdmUiLCJjbG9uZVBhdGgiLCJwdXNoQ29tcG9uZW50IiwiYnVpbGRWYWx1ZXMiLCJ1c2VMb25nZXN0VG9rZW4iLCJleGVjIiwicmV0IiwiYWRkZWQiLCJyZW1vdmVkIiwibGFzdCIsInB1c2giLCJjb21tb25Db3VudCIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsImNvbXBhcmF0b3IiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJhcnJheSIsImkiLCJzcGxpdCIsImNoYXJzIiwiY29tcG9uZW50UG9zIiwiY29tcG9uZW50TGVuIiwiY29tcG9uZW50Iiwic2xpY2UiLCJtYXAiLCJvbGRWYWx1ZSIsInRtcCIsImxhc3RDb21wb25lbnQiLCJwb3AiLCJwYXRoIl0sIm1hcHBpbmdzIjoiOzs7NENBQXdCQSxJO0FBQVQsU0FBU0EsSUFBVCxHQUFnQixDQUFFOztBQUVqQ0EsS0FBS0MsU0FBTCxHQUFpQjtBQUFBLG1EQUNmQyxJQURlLGdCQUNWQyxTQURVLEVBQ0NDLFNBREQsRUFDMEI7QUFBQSx3REFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUN2QyxRQUFJQyxXQUFXRCxRQUFRQyxRQUF2QjtBQUNBLFFBQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsaUJBQVdELE9BQVg7QUFDQUEsZ0JBQVUsRUFBVjtBQUNEO0FBQ0QsU0FBS0EsT0FBTCxHQUFlQSxPQUFmOztBQUVBLFFBQUlFLE9BQU8sSUFBWDs7QUFFQSxhQUFTQyxJQUFULENBQWNDLEtBQWQsRUFBcUI7QUFDbkIsVUFBSUgsUUFBSixFQUFjO0FBQ1pJLG1CQUFXLFlBQVc7QUFBRUosbUJBQVNLLFNBQVQsRUFBb0JGLEtBQXBCO0FBQTZCLFNBQXJELEVBQXVELENBQXZEO0FBQ0EsZUFBTyxJQUFQO0FBQ0QsT0FIRCxNQUdPO0FBQ0wsZUFBT0EsS0FBUDtBQUNEO0FBQ0Y7O0FBRUQ7QUFDQU4sZ0JBQVksS0FBS1MsU0FBTCxDQUFlVCxTQUFmLENBQVo7QUFDQUMsZ0JBQVksS0FBS1EsU0FBTCxDQUFlUixTQUFmLENBQVo7O0FBRUFELGdCQUFZLEtBQUtVLFdBQUwsQ0FBaUIsS0FBS0MsUUFBTCxDQUFjWCxTQUFkLENBQWpCLENBQVo7QUFDQUMsZ0JBQVksS0FBS1MsV0FBTCxDQUFpQixLQUFLQyxRQUFMLENBQWNWLFNBQWQsQ0FBakIsQ0FBWjs7QUFFQSxRQUFJVyxTQUFTWCxVQUFVWSxNQUF2QjtBQUFBLFFBQStCQyxTQUFTZCxVQUFVYSxNQUFsRDtBQUNBLFFBQUlFLGFBQWEsQ0FBakI7QUFDQSxRQUFJQyxnQkFBZ0JKLFNBQVNFLE1BQTdCO0FBQ0EsUUFBSUcsV0FBVyxDQUFDLEVBQUVDLFFBQVEsQ0FBQyxDQUFYLEVBQWNDLFlBQVksRUFBMUIsRUFBRCxDQUFmOztBQUVBO0FBQ0EsUUFBSUMsU0FBUyxLQUFLQyxhQUFMLENBQW1CSixTQUFTLENBQVQsQ0FBbkIsRUFBZ0NoQixTQUFoQyxFQUEyQ0QsU0FBM0MsRUFBc0QsQ0FBdEQsQ0FBYjtBQUNBLFFBQUlpQixTQUFTLENBQVQsRUFBWUMsTUFBWixHQUFxQixDQUFyQixJQUEwQk4sTUFBMUIsSUFBb0NRLFNBQVMsQ0FBVCxJQUFjTixNQUF0RCxFQUE4RDtBQUM1RDtBQUNBLGFBQU9ULEtBQUssQ0FBQyxFQUFDQyxPQUFPLEtBQUtnQixJQUFMLENBQVVyQixTQUFWLENBQVIsRUFBOEJzQixPQUFPdEIsVUFBVVksTUFBL0MsRUFBRCxDQUFMLENBQVA7QUFDRDs7QUFFRDtBQUNBLGFBQVNXLGNBQVQsR0FBMEI7QUFDeEIsV0FBSyxJQUFJQyxlQUFlLENBQUMsQ0FBRCxHQUFLVixVQUE3QixFQUF5Q1UsZ0JBQWdCVixVQUF6RCxFQUFxRVUsZ0JBQWdCLENBQXJGLEVBQXdGO0FBQ3RGLFlBQUlDLDBDQUFKO0FBQ0EsWUFBSUMsVUFBVVYsU0FBU1EsZUFBZSxDQUF4QixDQUFkO0FBQUEsWUFDSUcsYUFBYVgsU0FBU1EsZUFBZSxDQUF4QixDQURqQjtBQUFBLFlBRUlMLFVBQVMsQ0FBQ1EsYUFBYUEsV0FBV1YsTUFBeEIsR0FBaUMsQ0FBbEMsSUFBdUNPLFlBRnBEO0FBR0EsWUFBSUUsT0FBSixFQUFhO0FBQ1g7QUFDQVYsbUJBQVNRLGVBQWUsQ0FBeEIsSUFBNkJqQixTQUE3QjtBQUNEOztBQUVELFlBQUlxQixTQUFTRixXQUFXQSxRQUFRVCxNQUFSLEdBQWlCLENBQWpCLEdBQXFCTixNQUE3QztBQUFBLFlBQ0lrQixZQUFZRixjQUFjLEtBQUtSLE9BQW5CLElBQTZCQSxVQUFTTixNQUR0RDtBQUVBLFlBQUksQ0FBQ2UsTUFBRCxJQUFXLENBQUNDLFNBQWhCLEVBQTJCO0FBQ3pCO0FBQ0FiLG1CQUFTUSxZQUFULElBQXlCakIsU0FBekI7QUFDQTtBQUNEOztBQUVEO0FBQ0E7QUFDQTtBQUNBLFlBQUksQ0FBQ3FCLE1BQUQsSUFBWUMsYUFBYUgsUUFBUVQsTUFBUixHQUFpQlUsV0FBV1YsTUFBekQsRUFBa0U7QUFDaEVRLHFCQUFXSyxVQUFVSCxVQUFWLENBQVg7QUFDQXhCLGVBQUs0QixhQUFMLENBQW1CTixTQUFTUCxVQUE1QixFQUF3Q1gsU0FBeEMsRUFBbUQsSUFBbkQ7QUFDRCxTQUhELE1BR087QUFDTGtCLHFCQUFXQyxPQUFYLENBREssQ0FDaUI7QUFDdEJELG1CQUFTUixNQUFUO0FBQ0FkLGVBQUs0QixhQUFMLENBQW1CTixTQUFTUCxVQUE1QixFQUF3QyxJQUF4QyxFQUE4Q1gsU0FBOUM7QUFDRDs7QUFFRFksa0JBQVNoQixLQUFLaUIsYUFBTCxDQUFtQkssUUFBbkIsRUFBNkJ6QixTQUE3QixFQUF3Q0QsU0FBeEMsRUFBbUR5QixZQUFuRCxDQUFUOztBQUVBO0FBQ0EsWUFBSUMsU0FBU1IsTUFBVCxHQUFrQixDQUFsQixJQUF1Qk4sTUFBdkIsSUFBaUNRLFVBQVMsQ0FBVCxJQUFjTixNQUFuRCxFQUEyRDtBQUN6RCxpQkFBT1QsS0FBSzRCLFlBQVk3QixJQUFaLEVBQWtCc0IsU0FBU1AsVUFBM0IsRUFBdUNsQixTQUF2QyxFQUFrREQsU0FBbEQsRUFBNkRJLEtBQUs4QixlQUFsRSxDQUFMLENBQVA7QUFDRCxTQUZELE1BRU87QUFDTDtBQUNBakIsbUJBQVNRLFlBQVQsSUFBeUJDLFFBQXpCO0FBQ0Q7QUFDRjs7QUFFRFg7QUFDRDs7QUFFRDtBQUNBO0FBQ0E7QUFDQSxRQUFJWixRQUFKLEVBQWM7QUFDWCxnQkFBU2dDLElBQVQsR0FBZ0I7QUFDZjVCLG1CQUFXLFlBQVc7QUFDcEI7QUFDQTtBQUNBLGNBQUlRLGFBQWFDLGFBQWpCLEVBQWdDO0FBQzlCLG1CQUFPYixVQUFQO0FBQ0Q7O0FBRUQsY0FBSSxDQUFDcUIsZ0JBQUwsRUFBdUI7QUFDckJXO0FBQ0Q7QUFDRixTQVZELEVBVUcsQ0FWSDtBQVdELE9BWkEsR0FBRDtBQWFELEtBZEQsTUFjTztBQUNMLGFBQU9wQixjQUFjQyxhQUFyQixFQUFvQztBQUNsQyxZQUFJb0IsTUFBTVosZ0JBQVY7QUFDQSxZQUFJWSxHQUFKLEVBQVM7QUFDUCxpQkFBT0EsR0FBUDtBQUNEO0FBQ0Y7QUFDRjtBQUNGLEdBOUdjO0FBQUEsbURBZ0hmSixhQWhIZSx5QkFnSERiLFVBaEhDLEVBZ0hXa0IsS0FoSFgsRUFnSGtCQyxPQWhIbEIsRUFnSDJCO0FBQ3hDLFFBQUlDLE9BQU9wQixXQUFXQSxXQUFXTixNQUFYLEdBQW9CLENBQS9CLENBQVg7QUFDQSxRQUFJMEIsUUFBUUEsS0FBS0YsS0FBTCxLQUFlQSxLQUF2QixJQUFnQ0UsS0FBS0QsT0FBTCxLQUFpQkEsT0FBckQsRUFBOEQ7QUFDNUQ7QUFDQTtBQUNBbkIsaUJBQVdBLFdBQVdOLE1BQVgsR0FBb0IsQ0FBL0IsSUFBb0MsRUFBQ1UsT0FBT2dCLEtBQUtoQixLQUFMLEdBQWEsQ0FBckIsRUFBd0JjLE9BQU9BLEtBQS9CLEVBQXNDQyxTQUFTQSxPQUEvQyxFQUFwQztBQUNELEtBSkQsTUFJTztBQUNMbkIsaUJBQVdxQixJQUFYLENBQWdCLEVBQUNqQixPQUFPLENBQVIsRUFBV2MsT0FBT0EsS0FBbEIsRUFBeUJDLFNBQVNBLE9BQWxDLEVBQWhCO0FBQ0Q7QUFDRixHQXpIYztBQUFBLG1EQTBIZmpCLGFBMUhlLHlCQTBIREssUUExSEMsRUEwSFN6QixTQTFIVCxFQTBIb0JELFNBMUhwQixFQTBIK0J5QixZQTFIL0IsRUEwSDZDO0FBQzFELFFBQUliLFNBQVNYLFVBQVVZLE1BQXZCO0FBQUEsUUFDSUMsU0FBU2QsVUFBVWEsTUFEdkI7QUFBQSxRQUVJSyxTQUFTUSxTQUFTUixNQUZ0QjtBQUFBLFFBR0lFLFNBQVNGLFNBQVNPLFlBSHRCO0FBQUEsUUFLSWdCLGNBQWMsQ0FMbEI7QUFNQSxXQUFPdkIsU0FBUyxDQUFULEdBQWFOLE1BQWIsSUFBdUJRLFNBQVMsQ0FBVCxHQUFhTixNQUFwQyxJQUE4QyxLQUFLNEIsTUFBTCxDQUFZekMsVUFBVWlCLFNBQVMsQ0FBbkIsQ0FBWixFQUFtQ2xCLFVBQVVvQixTQUFTLENBQW5CLENBQW5DLENBQXJELEVBQWdIO0FBQzlHRjtBQUNBRTtBQUNBcUI7QUFDRDs7QUFFRCxRQUFJQSxXQUFKLEVBQWlCO0FBQ2ZmLGVBQVNQLFVBQVQsQ0FBb0JxQixJQUFwQixDQUF5QixFQUFDakIsT0FBT2tCLFdBQVIsRUFBekI7QUFDRDs7QUFFRGYsYUFBU1IsTUFBVCxHQUFrQkEsTUFBbEI7QUFDQSxXQUFPRSxNQUFQO0FBQ0QsR0E3SWM7QUFBQSxtREErSWZzQixNQS9JZSxrQkErSVJDLElBL0lRLEVBK0lGQyxLQS9JRSxFQStJSztBQUNsQixRQUFJLEtBQUsxQyxPQUFMLENBQWEyQyxVQUFqQixFQUE2QjtBQUMzQixhQUFPLEtBQUszQyxPQUFMLENBQWEyQyxVQUFiLENBQXdCRixJQUF4QixFQUE4QkMsS0FBOUIsQ0FBUDtBQUNELEtBRkQsTUFFTztBQUNMLGFBQU9ELFNBQVNDLEtBQVQsSUFDRCxLQUFLMUMsT0FBTCxDQUFhNEMsVUFBYixJQUEyQkgsS0FBS0ksV0FBTCxPQUF1QkgsTUFBTUcsV0FBTixFQUR4RDtBQUVEO0FBQ0YsR0F0SmM7QUFBQSxtREF1SmZyQyxXQXZKZSx1QkF1SkhzQyxLQXZKRyxFQXVKSTtBQUNqQixRQUFJWixNQUFNLEVBQVY7QUFDQSxTQUFLLElBQUlhLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTW5DLE1BQTFCLEVBQWtDb0MsR0FBbEMsRUFBdUM7QUFDckMsVUFBSUQsTUFBTUMsQ0FBTixDQUFKLEVBQWM7QUFDWmIsWUFBSUksSUFBSixDQUFTUSxNQUFNQyxDQUFOLENBQVQ7QUFDRDtBQUNGO0FBQ0QsV0FBT2IsR0FBUDtBQUNELEdBL0pjO0FBQUEsbURBZ0tmM0IsU0FoS2UscUJBZ0tMSCxLQWhLSyxFQWdLRTtBQUNmLFdBQU9BLEtBQVA7QUFDRCxHQWxLYztBQUFBLG1EQW1LZkssUUFuS2Usb0JBbUtOTCxLQW5LTSxFQW1LQztBQUNkLFdBQU9BLE1BQU00QyxLQUFOLENBQVksRUFBWixDQUFQO0FBQ0QsR0FyS2M7QUFBQSxtREFzS2Y1QixJQXRLZSxnQkFzS1Y2QixLQXRLVSxFQXNLSDtBQUNWLFdBQU9BLE1BQU03QixJQUFOLENBQVcsRUFBWCxDQUFQO0FBQ0Q7QUF4S2MsQ0FBakI7O0FBMktBLFNBQVNXLFdBQVQsQ0FBcUJsQyxJQUFyQixFQUEyQm9CLFVBQTNCLEVBQXVDbEIsU0FBdkMsRUFBa0RELFNBQWxELEVBQTZEa0MsZUFBN0QsRUFBOEU7QUFDNUUsTUFBSWtCLGVBQWUsQ0FBbkI7QUFBQSxNQUNJQyxlQUFlbEMsV0FBV04sTUFEOUI7QUFBQSxNQUVJSyxTQUFTLENBRmI7QUFBQSxNQUdJRSxTQUFTLENBSGI7O0FBS0EsU0FBT2dDLGVBQWVDLFlBQXRCLEVBQW9DRCxjQUFwQyxFQUFvRDtBQUNsRCxRQUFJRSxZQUFZbkMsV0FBV2lDLFlBQVgsQ0FBaEI7QUFDQSxRQUFJLENBQUNFLFVBQVVoQixPQUFmLEVBQXdCO0FBQ3RCLFVBQUksQ0FBQ2dCLFVBQVVqQixLQUFYLElBQW9CSCxlQUF4QixFQUF5QztBQUN2QyxZQUFJNUIsUUFBUUwsVUFBVXNELEtBQVYsQ0FBZ0JyQyxNQUFoQixFQUF3QkEsU0FBU29DLFVBQVUvQixLQUEzQyxDQUFaO0FBQ0FqQixnQkFBUUEsTUFBTWtELEdBQU4sQ0FBVSxVQUFTbEQsS0FBVCxFQUFnQjJDLENBQWhCLEVBQW1CO0FBQ25DLGNBQUlRLFdBQVd6RCxVQUFVb0IsU0FBUzZCLENBQW5CLENBQWY7QUFDQSxpQkFBT1EsU0FBUzVDLE1BQVQsR0FBa0JQLE1BQU1PLE1BQXhCLEdBQWlDNEMsUUFBakMsR0FBNENuRCxLQUFuRDtBQUNELFNBSE8sQ0FBUjs7QUFLQWdELGtCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVWhCLEtBQVYsQ0FBbEI7QUFDRCxPQVJELE1BUU87QUFDTGdELGtCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVXJCLFVBQVVzRCxLQUFWLENBQWdCckMsTUFBaEIsRUFBd0JBLFNBQVNvQyxVQUFVL0IsS0FBM0MsQ0FBVixDQUFsQjtBQUNEO0FBQ0RMLGdCQUFVb0MsVUFBVS9CLEtBQXBCOztBQUVBO0FBQ0EsVUFBSSxDQUFDK0IsVUFBVWpCLEtBQWYsRUFBc0I7QUFDcEJqQixrQkFBVWtDLFVBQVUvQixLQUFwQjtBQUNEO0FBQ0YsS0FsQkQsTUFrQk87QUFDTCtCLGdCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVXRCLFVBQVV1RCxLQUFWLENBQWdCbkMsTUFBaEIsRUFBd0JBLFNBQVNrQyxVQUFVL0IsS0FBM0MsQ0FBVixDQUFsQjtBQUNBSCxnQkFBVWtDLFVBQVUvQixLQUFwQjs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxVQUFJNkIsZ0JBQWdCakMsV0FBV2lDLGVBQWUsQ0FBMUIsRUFBNkJmLEtBQWpELEVBQXdEO0FBQ3RELFlBQUlxQixNQUFNdkMsV0FBV2lDLGVBQWUsQ0FBMUIsQ0FBVjtBQUNBakMsbUJBQVdpQyxlQUFlLENBQTFCLElBQStCakMsV0FBV2lDLFlBQVgsQ0FBL0I7QUFDQWpDLG1CQUFXaUMsWUFBWCxJQUEyQk0sR0FBM0I7QUFDRDtBQUNGO0FBQ0Y7O0FBRUQ7QUFDQTtBQUNBO0FBQ0EsTUFBSUMsZ0JBQWdCeEMsV0FBV2tDLGVBQWUsQ0FBMUIsQ0FBcEI7QUFDQSxNQUFJQSxlQUFlLENBQWYsSUFDRyxPQUFPTSxjQUFjckQsS0FBckIsS0FBK0IsUUFEbEMsS0FFSXFELGNBQWN0QixLQUFkLElBQXVCc0IsY0FBY3JCLE9BRnpDLEtBR0d2QyxLQUFLMkMsTUFBTCxDQUFZLEVBQVosRUFBZ0JpQixjQUFjckQsS0FBOUIsQ0FIUCxFQUc2QztBQUMzQ2EsZUFBV2tDLGVBQWUsQ0FBMUIsRUFBNkIvQyxLQUE3QixJQUFzQ3FELGNBQWNyRCxLQUFwRDtBQUNBYSxlQUFXeUMsR0FBWDtBQUNEOztBQUVELFNBQU96QyxVQUFQO0FBQ0Q7O0FBRUQsU0FBU1ksU0FBVCxDQUFtQjhCLElBQW5CLEVBQXlCO0FBQ3ZCLFNBQU8sRUFBRTNDLFFBQVEyQyxLQUFLM0MsTUFBZixFQUF1QkMsWUFBWTBDLEtBQUsxQyxVQUFMLENBQWdCb0MsS0FBaEIsQ0FBc0IsQ0FBdEIsQ0FBbkMsRUFBUDtBQUNEIiwiZmlsZSI6ImJhc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBEaWZmKCkge31cblxuRGlmZi5wcm90b3R5cGUgPSB7XG4gIGRpZmYob2xkU3RyaW5nLCBuZXdTdHJpbmcsIG9wdGlvbnMgPSB7fSkge1xuICAgIGxldCBjYWxsYmFjayA9IG9wdGlvbnMuY2FsbGJhY2s7XG4gICAgaWYgKHR5cGVvZiBvcHRpb25zID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBjYWxsYmFjayA9IG9wdGlvbnM7XG4gICAgICBvcHRpb25zID0ge307XG4gICAgfVxuICAgIHRoaXMub3B0aW9ucyA9IG9wdGlvbnM7XG5cbiAgICBsZXQgc2VsZiA9IHRoaXM7XG5cbiAgICBmdW5jdGlvbiBkb25lKHZhbHVlKSB7XG4gICAgICBpZiAoY2FsbGJhY2spIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHsgY2FsbGJhY2sodW5kZWZpbmVkLCB2YWx1ZSk7IH0sIDApO1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAvLyBBbGxvdyBzdWJjbGFzc2VzIHRvIG1hc3NhZ2UgdGhlIGlucHV0IHByaW9yIHRvIHJ1bm5pbmdcbiAgICBvbGRTdHJpbmcgPSB0aGlzLmNhc3RJbnB1dChvbGRTdHJpbmcpO1xuICAgIG5ld1N0cmluZyA9IHRoaXMuY2FzdElucHV0KG5ld1N0cmluZyk7XG5cbiAgICBvbGRTdHJpbmcgPSB0aGlzLnJlbW92ZUVtcHR5KHRoaXMudG9rZW5pemUob2xkU3RyaW5nKSk7XG4gICAgbmV3U3RyaW5nID0gdGhpcy5yZW1vdmVFbXB0eSh0aGlzLnRva2VuaXplKG5ld1N0cmluZykpO1xuXG4gICAgbGV0IG5ld0xlbiA9IG5ld1N0cmluZy5sZW5ndGgsIG9sZExlbiA9IG9sZFN0cmluZy5sZW5ndGg7XG4gICAgbGV0IGVkaXRMZW5ndGggPSAxO1xuICAgIGxldCBtYXhFZGl0TGVuZ3RoID0gbmV3TGVuICsgb2xkTGVuO1xuICAgIGxldCBiZXN0UGF0aCA9IFt7IG5ld1BvczogLTEsIGNvbXBvbmVudHM6IFtdIH1dO1xuXG4gICAgLy8gU2VlZCBlZGl0TGVuZ3RoID0gMCwgaS5lLiB0aGUgY29udGVudCBzdGFydHMgd2l0aCB0aGUgc2FtZSB2YWx1ZXNcbiAgICBsZXQgb2xkUG9zID0gdGhpcy5leHRyYWN0Q29tbW9uKGJlc3RQYXRoWzBdLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgMCk7XG4gICAgaWYgKGJlc3RQYXRoWzBdLm5ld1BvcyArIDEgPj0gbmV3TGVuICYmIG9sZFBvcyArIDEgPj0gb2xkTGVuKSB7XG4gICAgICAvLyBJZGVudGl0eSBwZXIgdGhlIGVxdWFsaXR5IGFuZCB0b2tlbml6ZXJcbiAgICAgIHJldHVybiBkb25lKFt7dmFsdWU6IHRoaXMuam9pbihuZXdTdHJpbmcpLCBjb3VudDogbmV3U3RyaW5nLmxlbmd0aH1dKTtcbiAgICB9XG5cbiAgICAvLyBNYWluIHdvcmtlciBtZXRob2QuIGNoZWNrcyBhbGwgcGVybXV0YXRpb25zIG9mIGEgZ2l2ZW4gZWRpdCBsZW5ndGggZm9yIGFjY2VwdGFuY2UuXG4gICAgZnVuY3Rpb24gZXhlY0VkaXRMZW5ndGgoKSB7XG4gICAgICBmb3IgKGxldCBkaWFnb25hbFBhdGggPSAtMSAqIGVkaXRMZW5ndGg7IGRpYWdvbmFsUGF0aCA8PSBlZGl0TGVuZ3RoOyBkaWFnb25hbFBhdGggKz0gMikge1xuICAgICAgICBsZXQgYmFzZVBhdGg7XG4gICAgICAgIGxldCBhZGRQYXRoID0gYmVzdFBhdGhbZGlhZ29uYWxQYXRoIC0gMV0sXG4gICAgICAgICAgICByZW1vdmVQYXRoID0gYmVzdFBhdGhbZGlhZ29uYWxQYXRoICsgMV0sXG4gICAgICAgICAgICBvbGRQb3MgPSAocmVtb3ZlUGF0aCA/IHJlbW92ZVBhdGgubmV3UG9zIDogMCkgLSBkaWFnb25hbFBhdGg7XG4gICAgICAgIGlmIChhZGRQYXRoKSB7XG4gICAgICAgICAgLy8gTm8gb25lIGVsc2UgaXMgZ29pbmcgdG8gYXR0ZW1wdCB0byB1c2UgdGhpcyB2YWx1ZSwgY2xlYXIgaXRcbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGggLSAxXSA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBjYW5BZGQgPSBhZGRQYXRoICYmIGFkZFBhdGgubmV3UG9zICsgMSA8IG5ld0xlbixcbiAgICAgICAgICAgIGNhblJlbW92ZSA9IHJlbW92ZVBhdGggJiYgMCA8PSBvbGRQb3MgJiYgb2xkUG9zIDwgb2xkTGVuO1xuICAgICAgICBpZiAoIWNhbkFkZCAmJiAhY2FuUmVtb3ZlKSB7XG4gICAgICAgICAgLy8gSWYgdGhpcyBwYXRoIGlzIGEgdGVybWluYWwgdGhlbiBwcnVuZVxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aF0gPSB1bmRlZmluZWQ7XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBTZWxlY3QgdGhlIGRpYWdvbmFsIHRoYXQgd2Ugd2FudCB0byBicmFuY2ggZnJvbS4gV2Ugc2VsZWN0IHRoZSBwcmlvclxuICAgICAgICAvLyBwYXRoIHdob3NlIHBvc2l0aW9uIGluIHRoZSBuZXcgc3RyaW5nIGlzIHRoZSBmYXJ0aGVzdCBmcm9tIHRoZSBvcmlnaW5cbiAgICAgICAgLy8gYW5kIGRvZXMgbm90IHBhc3MgdGhlIGJvdW5kcyBvZiB0aGUgZGlmZiBncmFwaFxuICAgICAgICBpZiAoIWNhbkFkZCB8fCAoY2FuUmVtb3ZlICYmIGFkZFBhdGgubmV3UG9zIDwgcmVtb3ZlUGF0aC5uZXdQb3MpKSB7XG4gICAgICAgICAgYmFzZVBhdGggPSBjbG9uZVBhdGgocmVtb3ZlUGF0aCk7XG4gICAgICAgICAgc2VsZi5wdXNoQ29tcG9uZW50KGJhc2VQYXRoLmNvbXBvbmVudHMsIHVuZGVmaW5lZCwgdHJ1ZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgYmFzZVBhdGggPSBhZGRQYXRoOyAgIC8vIE5vIG5lZWQgdG8gY2xvbmUsIHdlJ3ZlIHB1bGxlZCBpdCBmcm9tIHRoZSBsaXN0XG4gICAgICAgICAgYmFzZVBhdGgubmV3UG9zKys7XG4gICAgICAgICAgc2VsZi5wdXNoQ29tcG9uZW50KGJhc2VQYXRoLmNvbXBvbmVudHMsIHRydWUsIHVuZGVmaW5lZCk7XG4gICAgICAgIH1cblxuICAgICAgICBvbGRQb3MgPSBzZWxmLmV4dHJhY3RDb21tb24oYmFzZVBhdGgsIG5ld1N0cmluZywgb2xkU3RyaW5nLCBkaWFnb25hbFBhdGgpO1xuXG4gICAgICAgIC8vIElmIHdlIGhhdmUgaGl0IHRoZSBlbmQgb2YgYm90aCBzdHJpbmdzLCB0aGVuIHdlIGFyZSBkb25lXG4gICAgICAgIGlmIChiYXNlUGF0aC5uZXdQb3MgKyAxID49IG5ld0xlbiAmJiBvbGRQb3MgKyAxID49IG9sZExlbikge1xuICAgICAgICAgIHJldHVybiBkb25lKGJ1aWxkVmFsdWVzKHNlbGYsIGJhc2VQYXRoLmNvbXBvbmVudHMsIG5ld1N0cmluZywgb2xkU3RyaW5nLCBzZWxmLnVzZUxvbmdlc3RUb2tlbikpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIE90aGVyd2lzZSB0cmFjayB0aGlzIHBhdGggYXMgYSBwb3RlbnRpYWwgY2FuZGlkYXRlIGFuZCBjb250aW51ZS5cbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGhdID0gYmFzZVBhdGg7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgZWRpdExlbmd0aCsrO1xuICAgIH1cblxuICAgIC8vIFBlcmZvcm1zIHRoZSBsZW5ndGggb2YgZWRpdCBpdGVyYXRpb24uIElzIGEgYml0IGZ1Z2x5IGFzIHRoaXMgaGFzIHRvIHN1cHBvcnQgdGhlXG4gICAgLy8gc3luYyBhbmQgYXN5bmMgbW9kZSB3aGljaCBpcyBuZXZlciBmdW4uIExvb3BzIG92ZXIgZXhlY0VkaXRMZW5ndGggdW50aWwgYSB2YWx1ZVxuICAgIC8vIGlzIHByb2R1Y2VkLlxuICAgIGlmIChjYWxsYmFjaykge1xuICAgICAgKGZ1bmN0aW9uIGV4ZWMoKSB7XG4gICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7XG4gICAgICAgICAgLy8gVGhpcyBzaG91bGQgbm90IGhhcHBlbiwgYnV0IHdlIHdhbnQgdG8gYmUgc2FmZS5cbiAgICAgICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgICAgIGlmIChlZGl0TGVuZ3RoID4gbWF4RWRpdExlbmd0aCkge1xuICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKCFleGVjRWRpdExlbmd0aCgpKSB7XG4gICAgICAgICAgICBleGVjKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LCAwKTtcbiAgICAgIH0oKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHdoaWxlIChlZGl0TGVuZ3RoIDw9IG1heEVkaXRMZW5ndGgpIHtcbiAgICAgICAgbGV0IHJldCA9IGV4ZWNFZGl0TGVuZ3RoKCk7XG4gICAgICAgIGlmIChyZXQpIHtcbiAgICAgICAgICByZXR1cm4gcmV0O1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9LFxuXG4gIHB1c2hDb21wb25lbnQoY29tcG9uZW50cywgYWRkZWQsIHJlbW92ZWQpIHtcbiAgICBsZXQgbGFzdCA9IGNvbXBvbmVudHNbY29tcG9uZW50cy5sZW5ndGggLSAxXTtcbiAgICBpZiAobGFzdCAmJiBsYXN0LmFkZGVkID09PSBhZGRlZCAmJiBsYXN0LnJlbW92ZWQgPT09IHJlbW92ZWQpIHtcbiAgICAgIC8vIFdlIG5lZWQgdG8gY2xvbmUgaGVyZSBhcyB0aGUgY29tcG9uZW50IGNsb25lIG9wZXJhdGlvbiBpcyBqdXN0XG4gICAgICAvLyBhcyBzaGFsbG93IGFycmF5IGNsb25lXG4gICAgICBjb21wb25lbnRzW2NvbXBvbmVudHMubGVuZ3RoIC0gMV0gPSB7Y291bnQ6IGxhc3QuY291bnQgKyAxLCBhZGRlZDogYWRkZWQsIHJlbW92ZWQ6IHJlbW92ZWQgfTtcbiAgICB9IGVsc2Uge1xuICAgICAgY29tcG9uZW50cy5wdXNoKHtjb3VudDogMSwgYWRkZWQ6IGFkZGVkLCByZW1vdmVkOiByZW1vdmVkIH0pO1xuICAgIH1cbiAgfSxcbiAgZXh0cmFjdENvbW1vbihiYXNlUGF0aCwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIGRpYWdvbmFsUGF0aCkge1xuICAgIGxldCBuZXdMZW4gPSBuZXdTdHJpbmcubGVuZ3RoLFxuICAgICAgICBvbGRMZW4gPSBvbGRTdHJpbmcubGVuZ3RoLFxuICAgICAgICBuZXdQb3MgPSBiYXNlUGF0aC5uZXdQb3MsXG4gICAgICAgIG9sZFBvcyA9IG5ld1BvcyAtIGRpYWdvbmFsUGF0aCxcblxuICAgICAgICBjb21tb25Db3VudCA9IDA7XG4gICAgd2hpbGUgKG5ld1BvcyArIDEgPCBuZXdMZW4gJiYgb2xkUG9zICsgMSA8IG9sZExlbiAmJiB0aGlzLmVxdWFscyhuZXdTdHJpbmdbbmV3UG9zICsgMV0sIG9sZFN0cmluZ1tvbGRQb3MgKyAxXSkpIHtcbiAgICAgIG5ld1BvcysrO1xuICAgICAgb2xkUG9zKys7XG4gICAgICBjb21tb25Db3VudCsrO1xuICAgIH1cblxuICAgIGlmIChjb21tb25Db3VudCkge1xuICAgICAgYmFzZVBhdGguY29tcG9uZW50cy5wdXNoKHtjb3VudDogY29tbW9uQ291bnR9KTtcbiAgICB9XG5cbiAgICBiYXNlUGF0aC5uZXdQb3MgPSBuZXdQb3M7XG4gICAgcmV0dXJuIG9sZFBvcztcbiAgfSxcblxuICBlcXVhbHMobGVmdCwgcmlnaHQpIHtcbiAgICBpZiAodGhpcy5vcHRpb25zLmNvbXBhcmF0b3IpIHtcbiAgICAgIHJldHVybiB0aGlzLm9wdGlvbnMuY29tcGFyYXRvcihsZWZ0LCByaWdodCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBsZWZ0ID09PSByaWdodFxuICAgICAgICB8fCAodGhpcy5vcHRpb25zLmlnbm9yZUNhc2UgJiYgbGVmdC50b0xvd2VyQ2FzZSgpID09PSByaWdodC50b0xvd2VyQ2FzZSgpKTtcbiAgICB9XG4gIH0sXG4gIHJlbW92ZUVtcHR5KGFycmF5KSB7XG4gICAgbGV0IHJldCA9IFtdO1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgYXJyYXkubGVuZ3RoOyBpKyspIHtcbiAgICAgIGlmIChhcnJheVtpXSkge1xuICAgICAgICByZXQucHVzaChhcnJheVtpXSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByZXQ7XG4gIH0sXG4gIGNhc3RJbnB1dCh2YWx1ZSkge1xuICAgIHJldHVybiB2YWx1ZTtcbiAgfSxcbiAgdG9rZW5pemUodmFsdWUpIHtcbiAgICByZXR1cm4gdmFsdWUuc3BsaXQoJycpO1xuICB9LFxuICBqb2luKGNoYXJzKSB7XG4gICAgcmV0dXJuIGNoYXJzLmpvaW4oJycpO1xuICB9XG59O1xuXG5mdW5jdGlvbiBidWlsZFZhbHVlcyhkaWZmLCBjb21wb25lbnRzLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgdXNlTG9uZ2VzdFRva2VuKSB7XG4gIGxldCBjb21wb25lbnRQb3MgPSAwLFxuICAgICAgY29tcG9uZW50TGVuID0gY29tcG9uZW50cy5sZW5ndGgsXG4gICAgICBuZXdQb3MgPSAwLFxuICAgICAgb2xkUG9zID0gMDtcblxuICBmb3IgKDsgY29tcG9uZW50UG9zIDwgY29tcG9uZW50TGVuOyBjb21wb25lbnRQb3MrKykge1xuICAgIGxldCBjb21wb25lbnQgPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgaWYgKCFjb21wb25lbnQucmVtb3ZlZCkge1xuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQgJiYgdXNlTG9uZ2VzdFRva2VuKSB7XG4gICAgICAgIGxldCB2YWx1ZSA9IG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCk7XG4gICAgICAgIHZhbHVlID0gdmFsdWUubWFwKGZ1bmN0aW9uKHZhbHVlLCBpKSB7XG4gICAgICAgICAgbGV0IG9sZFZhbHVlID0gb2xkU3RyaW5nW29sZFBvcyArIGldO1xuICAgICAgICAgIHJldHVybiBvbGRWYWx1ZS5sZW5ndGggPiB2YWx1ZS5sZW5ndGggPyBvbGRWYWx1ZSA6IHZhbHVlO1xuICAgICAgICB9KTtcblxuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4odmFsdWUpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgfVxuICAgICAgbmV3UG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gQ29tbW9uIGNhc2VcbiAgICAgIGlmICghY29tcG9uZW50LmFkZGVkKSB7XG4gICAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbXBvbmVudC52YWx1ZSA9IGRpZmYuam9pbihvbGRTdHJpbmcuc2xpY2Uob2xkUG9zLCBvbGRQb3MgKyBjb21wb25lbnQuY291bnQpKTtcbiAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG5cbiAgICAgIC8vIFJldmVyc2UgYWRkIGFuZCByZW1vdmUgc28gcmVtb3ZlcyBhcmUgb3V0cHV0IGZpcnN0IHRvIG1hdGNoIGNvbW1vbiBjb252ZW50aW9uXG4gICAgICAvLyBUaGUgZGlmZmluZyBhbGdvcml0aG0gaXMgdGllZCB0byBhZGQgdGhlbiByZW1vdmUgb3V0cHV0IGFuZCB0aGlzIGlzIHRoZSBzaW1wbGVzdFxuICAgICAgLy8gcm91dGUgdG8gZ2V0IHRoZSBkZXNpcmVkIG91dHB1dCB3aXRoIG1pbmltYWwgb3ZlcmhlYWQuXG4gICAgICBpZiAoY29tcG9uZW50UG9zICYmIGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV0uYWRkZWQpIHtcbiAgICAgICAgbGV0IHRtcCA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV07XG4gICAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV0gPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50UG9zXSA9IHRtcDtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBTcGVjaWFsIGNhc2UgaGFuZGxlIGZvciB3aGVuIG9uZSB0ZXJtaW5hbCBpcyBpZ25vcmVkIChpLmUuIHdoaXRlc3BhY2UpLlxuICAvLyBGb3IgdGhpcyBjYXNlIHdlIG1lcmdlIHRoZSB0ZXJtaW5hbCBpbnRvIHRoZSBwcmlvciBzdHJpbmcgYW5kIGRyb3AgdGhlIGNoYW5nZS5cbiAgLy8gVGhpcyBpcyBvbmx5IGF2YWlsYWJsZSBmb3Igc3RyaW5nIG1vZGUuXG4gIGxldCBsYXN0Q29tcG9uZW50ID0gY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAxXTtcbiAgaWYgKGNvbXBvbmVudExlbiA+IDFcbiAgICAgICYmIHR5cGVvZiBsYXN0Q29tcG9uZW50LnZhbHVlID09PSAnc3RyaW5nJ1xuICAgICAgJiYgKGxhc3RDb21wb25lbnQuYWRkZWQgfHwgbGFzdENvbXBvbmVudC5yZW1vdmVkKVxuICAgICAgJiYgZGlmZi5lcXVhbHMoJycsIGxhc3RDb21wb25lbnQudmFsdWUpKSB7XG4gICAgY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAyXS52YWx1ZSArPSBsYXN0Q29tcG9uZW50LnZhbHVlO1xuICAgIGNvbXBvbmVudHMucG9wKCk7XG4gIH1cblxuICByZXR1cm4gY29tcG9uZW50cztcbn1cblxuZnVuY3Rpb24gY2xvbmVQYXRoKHBhdGgpIHtcbiAgcmV0dXJuIHsgbmV3UG9zOiBwYXRoLm5ld1BvcywgY29tcG9uZW50czogcGF0aC5jb21wb25lbnRzLnNsaWNlKDApIH07XG59XG4iXX0= - - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.characterDiff = undefined; - exports. /*istanbul ignore end*/diffChars = diffChars; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var characterDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/characterDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - function diffChars(oldStr, newStr, options) { - return characterDiff.diff(oldStr, newStr, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2NoYXJhY3Rlci5qcyJdLCJuYW1lcyI6WyJkaWZmQ2hhcnMiLCJjaGFyYWN0ZXJEaWZmIiwib2xkU3RyIiwibmV3U3RyIiwib3B0aW9ucyIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBR2dCQSxTLEdBQUFBLFM7O0FBSGhCOzs7Ozs7dUJBRU8sSUFBTUMseUZBQWdCLHdFQUF0QjtBQUNBLFNBQVNELFNBQVQsQ0FBbUJFLE1BQW5CLEVBQTJCQyxNQUEzQixFQUFtQ0MsT0FBbkMsRUFBNEM7QUFBRSxTQUFPSCxjQUFjSSxJQUFkLENBQW1CSCxNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNDLE9BQW5DLENBQVA7QUFBcUQiLCJmaWxlIjoiY2hhcmFjdGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGNoYXJhY3RlckRpZmYgPSBuZXcgRGlmZigpO1xuZXhwb3J0IGZ1bmN0aW9uIGRpZmZDaGFycyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykgeyByZXR1cm4gY2hhcmFjdGVyRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTsgfVxuIl19 - - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.wordDiff = undefined; - exports. /*istanbul ignore end*/diffWords = diffWords; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = diffWordsWithSpace; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/ // Based on https://en.wikipedia.org/wiki/Latin_script_in_Unicode - // - // Ranges and exceptions: - // Latin-1 Supplement, 0080–00FF - // - U+00D7 × Multiplication sign - // - U+00F7 ÷ Division sign - // Latin Extended-A, 0100–017F - // Latin Extended-B, 0180–024F - // IPA Extensions, 0250–02AF - // Spacing Modifier Letters, 02B0–02FF - // - U+02C7 ˇ ˇ Caron - // - U+02D8 ˘ ˘ Breve - // - U+02D9 ˙ ˙ Dot Above - // - U+02DA ˚ ˚ Ring Above - // - U+02DB ˛ ˛ Ogonek - // - U+02DC ˜ ˜ Small Tilde - // - U+02DD ˝ ˝ Double Acute Accent - // Latin Extended Additional, 1E00–1EFF - var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/; - - var reWhitespace = /\S/; - - var wordDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/wordDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - wordDiff.equals = function (left, right) { - if (this.options.ignoreCase) { - left = left.toLowerCase(); - right = right.toLowerCase(); - } - return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right); - }; - wordDiff.tokenize = function (value) { - var tokens = value.split(/(\s+|\b)/); - - // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set. - for (var i = 0; i < tokens.length - 1; i++) { - // If we have an empty string in the next field and we have only word chars before and after, merge - if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) { - tokens[i] += tokens[i + 2]; - tokens.splice(i + 1, 2); - i--; - } - } - - return tokens; - }; - - function diffWords(oldStr, newStr, options) { - options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(options, { ignoreWhitespace: true }); - return wordDiff.diff(oldStr, newStr, options); - } - - function diffWordsWithSpace(oldStr, newStr, options) { - return wordDiff.diff(oldStr, newStr, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3dvcmQuanMiXSwibmFtZXMiOlsiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZXh0ZW5kZWRXb3JkQ2hhcnMiLCJyZVdoaXRlc3BhY2UiLCJ3b3JkRGlmZiIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsIm9wdGlvbnMiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJpZ25vcmVXaGl0ZXNwYWNlIiwidGVzdCIsInRva2VuaXplIiwidmFsdWUiLCJ0b2tlbnMiLCJzcGxpdCIsImkiLCJsZW5ndGgiLCJzcGxpY2UiLCJvbGRTdHIiLCJuZXdTdHIiLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7O2dDQW1EZ0JBLFMsR0FBQUEsUzt5REFLQUMsa0IsR0FBQUEsa0I7O0FBeERoQjs7Ozt1QkFDQTs7Ozt3QkFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxJQUFNQyxvQkFBb0IsK0RBQTFCOztBQUVBLElBQU1DLGVBQWUsSUFBckI7O0FBRU8sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1BBLFNBQVNDLE1BQVQsR0FBa0IsVUFBU0MsSUFBVCxFQUFlQyxLQUFmLEVBQXNCO0FBQ3RDLE1BQUksS0FBS0MsT0FBTCxDQUFhQyxVQUFqQixFQUE2QjtBQUMzQkgsV0FBT0EsS0FBS0ksV0FBTCxFQUFQO0FBQ0FILFlBQVFBLE1BQU1HLFdBQU4sRUFBUjtBQUNEO0FBQ0QsU0FBT0osU0FBU0MsS0FBVCxJQUFtQixLQUFLQyxPQUFMLENBQWFHLGdCQUFiLElBQWlDLENBQUNSLGFBQWFTLElBQWIsQ0FBa0JOLElBQWxCLENBQWxDLElBQTZELENBQUNILGFBQWFTLElBQWIsQ0FBa0JMLEtBQWxCLENBQXhGO0FBQ0QsQ0FORDtBQU9BSCxTQUFTUyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsU0FBU0QsTUFBTUUsS0FBTixDQUFZLFVBQVosQ0FBYjs7QUFFQTtBQUNBLE9BQUssSUFBSUMsSUFBSSxDQUFiLEVBQWdCQSxJQUFJRixPQUFPRyxNQUFQLEdBQWdCLENBQXBDLEVBQXVDRCxHQUF2QyxFQUE0QztBQUMxQztBQUNBLFFBQUksQ0FBQ0YsT0FBT0UsSUFBSSxDQUFYLENBQUQsSUFBa0JGLE9BQU9FLElBQUksQ0FBWCxDQUFsQixJQUNLZixrQkFBa0JVLElBQWxCLENBQXVCRyxPQUFPRSxDQUFQLENBQXZCLENBREwsSUFFS2Ysa0JBQWtCVSxJQUFsQixDQUF1QkcsT0FBT0UsSUFBSSxDQUFYLENBQXZCLENBRlQsRUFFZ0Q7QUFDOUNGLGFBQU9FLENBQVAsS0FBYUYsT0FBT0UsSUFBSSxDQUFYLENBQWI7QUFDQUYsYUFBT0ksTUFBUCxDQUFjRixJQUFJLENBQWxCLEVBQXFCLENBQXJCO0FBQ0FBO0FBQ0Q7QUFDRjs7QUFFRCxTQUFPRixNQUFQO0FBQ0QsQ0FoQkQ7O0FBa0JPLFNBQVNmLFNBQVQsQ0FBbUJvQixNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNiLE9BQW5DLEVBQTRDO0FBQ2pEQSxZQUFVLDhFQUFnQkEsT0FBaEIsRUFBeUIsRUFBQ0csa0JBQWtCLElBQW5CLEVBQXpCLENBQVY7QUFDQSxTQUFPUCxTQUFTa0IsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUNEOztBQUVNLFNBQVNQLGtCQUFULENBQTRCbUIsTUFBNUIsRUFBb0NDLE1BQXBDLEVBQTRDYixPQUE1QyxFQUFxRDtBQUMxRCxTQUFPSixTQUFTa0IsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUNEIiwiZmlsZSI6IndvcmQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRGlmZiBmcm9tICcuL2Jhc2UnO1xuaW1wb3J0IHtnZW5lcmF0ZU9wdGlvbnN9IGZyb20gJy4uL3V0aWwvcGFyYW1zJztcblxuLy8gQmFzZWQgb24gaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTGF0aW5fc2NyaXB0X2luX1VuaWNvZGVcbi8vXG4vLyBSYW5nZXMgYW5kIGV4Y2VwdGlvbnM6XG4vLyBMYXRpbi0xIFN1cHBsZW1lbnQsIDAwODDigJMwMEZGXG4vLyAgLSBVKzAwRDcgIMOXIE11bHRpcGxpY2F0aW9uIHNpZ25cbi8vICAtIFUrMDBGNyAgw7cgRGl2aXNpb24gc2lnblxuLy8gTGF0aW4gRXh0ZW5kZWQtQSwgMDEwMOKAkzAxN0Zcbi8vIExhdGluIEV4dGVuZGVkLUIsIDAxODDigJMwMjRGXG4vLyBJUEEgRXh0ZW5zaW9ucywgMDI1MOKAkzAyQUZcbi8vIFNwYWNpbmcgTW9kaWZpZXIgTGV0dGVycywgMDJCMOKAkzAyRkZcbi8vICAtIFUrMDJDNyAgy4cgJiM3MTE7ICBDYXJvblxuLy8gIC0gVSswMkQ4ICDLmCAmIzcyODsgIEJyZXZlXG4vLyAgLSBVKzAyRDkgIMuZICYjNzI5OyAgRG90IEFib3ZlXG4vLyAgLSBVKzAyREEgIMuaICYjNzMwOyAgUmluZyBBYm92ZVxuLy8gIC0gVSswMkRCICDLmyAmIzczMTsgIE9nb25la1xuLy8gIC0gVSswMkRDICDLnCAmIzczMjsgIFNtYWxsIFRpbGRlXG4vLyAgLSBVKzAyREQgIMudICYjNzMzOyAgRG91YmxlIEFjdXRlIEFjY2VudFxuLy8gTGF0aW4gRXh0ZW5kZWQgQWRkaXRpb25hbCwgMUUwMOKAkzFFRkZcbmNvbnN0IGV4dGVuZGVkV29yZENoYXJzID0gL15bYS16QS1aXFx1e0MwfS1cXHV7RkZ9XFx1e0Q4fS1cXHV7RjZ9XFx1e0Y4fS1cXHV7MkM2fVxcdXsyQzh9LVxcdXsyRDd9XFx1ezJERX0tXFx1ezJGRn1cXHV7MUUwMH0tXFx1ezFFRkZ9XSskL3U7XG5cbmNvbnN0IHJlV2hpdGVzcGFjZSA9IC9cXFMvO1xuXG5leHBvcnQgY29uc3Qgd29yZERpZmYgPSBuZXcgRGlmZigpO1xud29yZERpZmYuZXF1YWxzID0gZnVuY3Rpb24obGVmdCwgcmlnaHQpIHtcbiAgaWYgKHRoaXMub3B0aW9ucy5pZ25vcmVDYXNlKSB7XG4gICAgbGVmdCA9IGxlZnQudG9Mb3dlckNhc2UoKTtcbiAgICByaWdodCA9IHJpZ2h0LnRvTG93ZXJDYXNlKCk7XG4gIH1cbiAgcmV0dXJuIGxlZnQgPT09IHJpZ2h0IHx8ICh0aGlzLm9wdGlvbnMuaWdub3JlV2hpdGVzcGFjZSAmJiAhcmVXaGl0ZXNwYWNlLnRlc3QobGVmdCkgJiYgIXJlV2hpdGVzcGFjZS50ZXN0KHJpZ2h0KSk7XG59O1xud29yZERpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICBsZXQgdG9rZW5zID0gdmFsdWUuc3BsaXQoLyhcXHMrfFxcYikvKTtcblxuICAvLyBKb2luIHRoZSBib3VuZGFyeSBzcGxpdHMgdGhhdCB3ZSBkbyBub3QgY29uc2lkZXIgdG8gYmUgYm91bmRhcmllcy4gVGhpcyBpcyBwcmltYXJpbHkgdGhlIGV4dGVuZGVkIExhdGluIGNoYXJhY3RlciBzZXQuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgdG9rZW5zLmxlbmd0aCAtIDE7IGkrKykge1xuICAgIC8vIElmIHdlIGhhdmUgYW4gZW1wdHkgc3RyaW5nIGluIHRoZSBuZXh0IGZpZWxkIGFuZCB3ZSBoYXZlIG9ubHkgd29yZCBjaGFycyBiZWZvcmUgYW5kIGFmdGVyLCBtZXJnZVxuICAgIGlmICghdG9rZW5zW2kgKyAxXSAmJiB0b2tlbnNbaSArIDJdXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaV0pXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaSArIDJdKSkge1xuICAgICAgdG9rZW5zW2ldICs9IHRva2Vuc1tpICsgMl07XG4gICAgICB0b2tlbnMuc3BsaWNlKGkgKyAxLCAyKTtcbiAgICAgIGktLTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gdG9rZW5zO1xufTtcblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3JkcyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICBvcHRpb25zID0gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiB3b3JkRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3Jkc1dpdGhTcGFjZShvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICByZXR1cm4gd29yZERpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucyk7XG59XG4iXX0= - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/generateOptions = generateOptions; - function generateOptions(options, defaults) { - if (typeof options === 'function') { - defaults.callback = options; - } else if (options) { - for (var name in options) { - /* istanbul ignore else */ - if (options.hasOwnProperty(name)) { - defaults[name] = options[name]; - } - } - } - return defaults; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6WyJnZW5lcmF0ZU9wdGlvbnMiLCJvcHRpb25zIiwiZGVmYXVsdHMiLCJjYWxsYmFjayIsIm5hbWUiLCJoYXNPd25Qcm9wZXJ0eSJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsZSxHQUFBQSxlO0FBQVQsU0FBU0EsZUFBVCxDQUF5QkMsT0FBekIsRUFBa0NDLFFBQWxDLEVBQTRDO0FBQ2pELE1BQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsYUFBU0MsUUFBVCxHQUFvQkYsT0FBcEI7QUFDRCxHQUZELE1BRU8sSUFBSUEsT0FBSixFQUFhO0FBQ2xCLFNBQUssSUFBSUcsSUFBVCxJQUFpQkgsT0FBakIsRUFBMEI7QUFDeEI7QUFDQSxVQUFJQSxRQUFRSSxjQUFSLENBQXVCRCxJQUF2QixDQUFKLEVBQWtDO0FBQ2hDRixpQkFBU0UsSUFBVCxJQUFpQkgsUUFBUUcsSUFBUixDQUFqQjtBQUNEO0FBQ0Y7QUFDRjtBQUNELFNBQU9GLFFBQVA7QUFDRCIsImZpbGUiOiJwYXJhbXMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIGRlZmF1bHRzKSB7XG4gIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGRlZmF1bHRzLmNhbGxiYWNrID0gb3B0aW9ucztcbiAgfSBlbHNlIGlmIChvcHRpb25zKSB7XG4gICAgZm9yIChsZXQgbmFtZSBpbiBvcHRpb25zKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9wdGlvbnMuaGFzT3duUHJvcGVydHkobmFtZSkpIHtcbiAgICAgICAgZGVmYXVsdHNbbmFtZV0gPSBvcHRpb25zW25hbWVdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZGVmYXVsdHM7XG59XG4iXX0= - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.lineDiff = undefined; - exports. /*istanbul ignore end*/diffLines = diffLines; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = diffTrimmedLines; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var lineDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/lineDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - lineDiff.tokenize = function (value) { - var retLines = [], - linesAndNewlines = value.split(/(\n|\r\n)/); - - // Ignore the final empty token that occurs if the string ends with a new line - if (!linesAndNewlines[linesAndNewlines.length - 1]) { - linesAndNewlines.pop(); - } - - // Merge the content and line separators into single tokens - for (var i = 0; i < linesAndNewlines.length; i++) { - var line = linesAndNewlines[i]; - - if (i % 2 && !this.options.newlineIsToken) { - retLines[retLines.length - 1] += line; - } else { - if (this.options.ignoreWhitespace) { - line = line.trim(); - } - retLines.push(line); - } - } - - return retLines; - }; - - function diffLines(oldStr, newStr, callback) { - return lineDiff.diff(oldStr, newStr, callback); - } - function diffTrimmedLines(oldStr, newStr, callback) { - var options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(callback, { ignoreWhitespace: true }); - return lineDiff.diff(oldStr, newStr, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2xpbmUuanMiXSwibmFtZXMiOlsiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImxpbmVEaWZmIiwidG9rZW5pemUiLCJ2YWx1ZSIsInJldExpbmVzIiwibGluZXNBbmROZXdsaW5lcyIsInNwbGl0IiwibGVuZ3RoIiwicG9wIiwiaSIsImxpbmUiLCJvcHRpb25zIiwibmV3bGluZUlzVG9rZW4iLCJpZ25vcmVXaGl0ZXNwYWNlIiwidHJpbSIsInB1c2giLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBOEJnQkEsUyxHQUFBQSxTO3lEQUNBQyxnQixHQUFBQSxnQjs7QUEvQmhCOzs7O3VCQUNBOzs7O3VCQUVPLElBQU1DLCtFQUFXLHdFQUFqQjtBQUNQQSxTQUFTQyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsV0FBVyxFQUFmO0FBQUEsTUFDSUMsbUJBQW1CRixNQUFNRyxLQUFOLENBQVksV0FBWixDQUR2Qjs7QUFHQTtBQUNBLE1BQUksQ0FBQ0QsaUJBQWlCQSxpQkFBaUJFLE1BQWpCLEdBQTBCLENBQTNDLENBQUwsRUFBb0Q7QUFDbERGLHFCQUFpQkcsR0FBakI7QUFDRDs7QUFFRDtBQUNBLE9BQUssSUFBSUMsSUFBSSxDQUFiLEVBQWdCQSxJQUFJSixpQkFBaUJFLE1BQXJDLEVBQTZDRSxHQUE3QyxFQUFrRDtBQUNoRCxRQUFJQyxPQUFPTCxpQkFBaUJJLENBQWpCLENBQVg7O0FBRUEsUUFBSUEsSUFBSSxDQUFKLElBQVMsQ0FBQyxLQUFLRSxPQUFMLENBQWFDLGNBQTNCLEVBQTJDO0FBQ3pDUixlQUFTQSxTQUFTRyxNQUFULEdBQWtCLENBQTNCLEtBQWlDRyxJQUFqQztBQUNELEtBRkQsTUFFTztBQUNMLFVBQUksS0FBS0MsT0FBTCxDQUFhRSxnQkFBakIsRUFBbUM7QUFDakNILGVBQU9BLEtBQUtJLElBQUwsRUFBUDtBQUNEO0FBQ0RWLGVBQVNXLElBQVQsQ0FBY0wsSUFBZDtBQUNEO0FBQ0Y7O0FBRUQsU0FBT04sUUFBUDtBQUNELENBeEJEOztBQTBCTyxTQUFTTCxTQUFULENBQW1CaUIsTUFBbkIsRUFBMkJDLE1BQTNCLEVBQW1DQyxRQUFuQyxFQUE2QztBQUFFLFNBQU9qQixTQUFTa0IsSUFBVCxDQUFjSCxNQUFkLEVBQXNCQyxNQUF0QixFQUE4QkMsUUFBOUIsQ0FBUDtBQUFpRDtBQUNoRyxTQUFTbEIsZ0JBQVQsQ0FBMEJnQixNQUExQixFQUFrQ0MsTUFBbEMsRUFBMENDLFFBQTFDLEVBQW9EO0FBQ3pELE1BQUlQLFVBQVUsOEVBQWdCTyxRQUFoQixFQUEwQixFQUFDTCxrQkFBa0IsSUFBbkIsRUFBMUIsQ0FBZDtBQUNBLFNBQU9aLFNBQVNrQixJQUFULENBQWNILE1BQWQsRUFBc0JDLE1BQXRCLEVBQThCTixPQUE5QixDQUFQO0FBQ0QiLCJmaWxlIjoibGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5pbXBvcnQge2dlbmVyYXRlT3B0aW9uc30gZnJvbSAnLi4vdXRpbC9wYXJhbXMnO1xuXG5leHBvcnQgY29uc3QgbGluZURpZmYgPSBuZXcgRGlmZigpO1xubGluZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICBsZXQgcmV0TGluZXMgPSBbXSxcbiAgICAgIGxpbmVzQW5kTmV3bGluZXMgPSB2YWx1ZS5zcGxpdCgvKFxcbnxcXHJcXG4pLyk7XG5cbiAgLy8gSWdub3JlIHRoZSBmaW5hbCBlbXB0eSB0b2tlbiB0aGF0IG9jY3VycyBpZiB0aGUgc3RyaW5nIGVuZHMgd2l0aCBhIG5ldyBsaW5lXG4gIGlmICghbGluZXNBbmROZXdsaW5lc1tsaW5lc0FuZE5ld2xpbmVzLmxlbmd0aCAtIDFdKSB7XG4gICAgbGluZXNBbmROZXdsaW5lcy5wb3AoKTtcbiAgfVxuXG4gIC8vIE1lcmdlIHRoZSBjb250ZW50IGFuZCBsaW5lIHNlcGFyYXRvcnMgaW50byBzaW5nbGUgdG9rZW5zXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgbGluZXNBbmROZXdsaW5lcy5sZW5ndGg7IGkrKykge1xuICAgIGxldCBsaW5lID0gbGluZXNBbmROZXdsaW5lc1tpXTtcblxuICAgIGlmIChpICUgMiAmJiAhdGhpcy5vcHRpb25zLm5ld2xpbmVJc1Rva2VuKSB7XG4gICAgICByZXRMaW5lc1tyZXRMaW5lcy5sZW5ndGggLSAxXSArPSBsaW5lO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAodGhpcy5vcHRpb25zLmlnbm9yZVdoaXRlc3BhY2UpIHtcbiAgICAgICAgbGluZSA9IGxpbmUudHJpbSgpO1xuICAgICAgfVxuICAgICAgcmV0TGluZXMucHVzaChsaW5lKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0TGluZXM7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjaykgeyByZXR1cm4gbGluZURpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG5leHBvcnQgZnVuY3Rpb24gZGlmZlRyaW1tZWRMaW5lcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHtcbiAgbGV0IG9wdGlvbnMgPSBnZW5lcmF0ZU9wdGlvbnMoY2FsbGJhY2ssIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiBsaW5lRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cbiJdfQ== - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.sentenceDiff = undefined; - exports. /*istanbul ignore end*/diffSentences = diffSentences; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var sentenceDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/sentenceDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - sentenceDiff.tokenize = function (value) { - return value.split(/(\S.+?[.!?])(?=\s+|$)/); - }; - - function diffSentences(oldStr, newStr, callback) { - return sentenceDiff.diff(oldStr, newStr, callback); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3NlbnRlbmNlLmpzIl0sIm5hbWVzIjpbImRpZmZTZW50ZW5jZXMiLCJzZW50ZW5jZURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic3BsaXQiLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBUWdCQSxhLEdBQUFBLGE7O0FBUmhCOzs7Ozs7dUJBR08sSUFBTUMsdUZBQWUsd0VBQXJCO0FBQ1BBLGFBQWFDLFFBQWIsR0FBd0IsVUFBU0MsS0FBVCxFQUFnQjtBQUN0QyxTQUFPQSxNQUFNQyxLQUFOLENBQVksdUJBQVosQ0FBUDtBQUNELENBRkQ7O0FBSU8sU0FBU0osYUFBVCxDQUF1QkssTUFBdkIsRUFBK0JDLE1BQS9CLEVBQXVDQyxRQUF2QyxFQUFpRDtBQUFFLFNBQU9OLGFBQWFPLElBQWIsQ0FBa0JILE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ0MsUUFBbEMsQ0FBUDtBQUFxRCIsImZpbGUiOiJzZW50ZW5jZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cblxuZXhwb3J0IGNvbnN0IHNlbnRlbmNlRGlmZiA9IG5ldyBEaWZmKCk7XG5zZW50ZW5jZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhcXFMuKz9bLiE/XSkoPz1cXHMrfCQpLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZlNlbnRlbmNlcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIHNlbnRlbmNlRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjayk7IH1cbiJdfQ== - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.cssDiff = undefined; - exports. /*istanbul ignore end*/diffCss = diffCss; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var cssDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/cssDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - cssDiff.tokenize = function (value) { - return value.split(/([{}:;,]|\s+)/); - }; - - function diffCss(oldStr, newStr, callback) { - return cssDiff.diff(oldStr, newStr, callback); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Nzcy5qcyJdLCJuYW1lcyI6WyJkaWZmQ3NzIiwiY3NzRGlmZiIsInRva2VuaXplIiwidmFsdWUiLCJzcGxpdCIsIm9sZFN0ciIsIm5ld1N0ciIsImNhbGxiYWNrIiwiZGlmZiJdLCJtYXBwaW5ncyI6Ijs7OztnQ0FPZ0JBLE8sR0FBQUEsTzs7QUFQaEI7Ozs7Ozt1QkFFTyxJQUFNQyw2RUFBVSx3RUFBaEI7QUFDUEEsUUFBUUMsUUFBUixHQUFtQixVQUFTQyxLQUFULEVBQWdCO0FBQ2pDLFNBQU9BLE1BQU1DLEtBQU4sQ0FBWSxlQUFaLENBQVA7QUFDRCxDQUZEOztBQUlPLFNBQVNKLE9BQVQsQ0FBaUJLLE1BQWpCLEVBQXlCQyxNQUF6QixFQUFpQ0MsUUFBakMsRUFBMkM7QUFBRSxTQUFPTixRQUFRTyxJQUFSLENBQWFILE1BQWIsRUFBcUJDLE1BQXJCLEVBQTZCQyxRQUE3QixDQUFQO0FBQWdEIiwiZmlsZSI6ImNzcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBjc3NEaWZmID0gbmV3IERpZmYoKTtcbmNzc0RpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhbe306OyxdfFxccyspLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkNzcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIGNzc0RpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG4iXX0= - - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.jsonDiff = undefined; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - exports. /*istanbul ignore end*/diffJson = diffJson; - /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = canonicalize; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var objectPrototypeToString = Object.prototype.toString; - - var jsonDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/jsonDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a - // dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output: - jsonDiff.useLongestToken = true; - - jsonDiff.tokenize = /*istanbul ignore start*/_line.lineDiff /*istanbul ignore end*/.tokenize; - jsonDiff.castInput = function (value) { - /*istanbul ignore start*/var _options = /*istanbul ignore end*/this.options, - undefinedReplacement = _options.undefinedReplacement, - _options$stringifyRep = _options.stringifyReplacer, - stringifyReplacer = _options$stringifyRep === undefined ? function (k, v) /*istanbul ignore start*/{ - return (/*istanbul ignore end*/typeof v === 'undefined' ? undefinedReplacement : v - ); - } : _options$stringifyRep; - - - return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' '); - }; - jsonDiff.equals = function (left, right) { - return (/*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, '$1'), right.replace(/,([\r\n])/g, '$1')) - ); - }; - - function diffJson(oldObj, newObj, options) { - return jsonDiff.diff(oldObj, newObj, options); - } - - // This function handles the presence of circular references by bailing out when encountering an - // object that is already on the "stack" of items being processed. Accepts an optional replacer - function canonicalize(obj, stack, replacementStack, replacer, key) { - stack = stack || []; - replacementStack = replacementStack || []; - - if (replacer) { - obj = replacer(key, obj); - } - - var i = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - - for (i = 0; i < stack.length; i += 1) { - if (stack[i] === obj) { - return replacementStack[i]; - } - } - - var canonicalizedObj = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - - if ('[object Array]' === objectPrototypeToString.call(obj)) { - stack.push(obj); - canonicalizedObj = new Array(obj.length); - replacementStack.push(canonicalizedObj); - for (i = 0; i < obj.length; i += 1) { - canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key); - } - stack.pop(); - replacementStack.pop(); - return canonicalizedObj; - } - - if (obj && obj.toJSON) { - obj = obj.toJSON(); - } - - if ( /*istanbul ignore start*/(typeof /*istanbul ignore end*/obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj !== null) { - stack.push(obj); - canonicalizedObj = {}; - replacementStack.push(canonicalizedObj); - var sortedKeys = [], - _key = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - for (_key in obj) { - /* istanbul ignore else */ - if (obj.hasOwnProperty(_key)) { - sortedKeys.push(_key); - } - } - sortedKeys.sort(); - for (i = 0; i < sortedKeys.length; i += 1) { - _key = sortedKeys[i]; - canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key); - } - stack.pop(); - replacementStack.pop(); - } else { - canonicalizedObj = obj; - } - return canonicalizedObj; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2pzb24uanMiXSwibmFtZXMiOlsiZGlmZkpzb24iLCJjYW5vbmljYWxpemUiLCJvYmplY3RQcm90b3R5cGVUb1N0cmluZyIsIk9iamVjdCIsInByb3RvdHlwZSIsInRvU3RyaW5nIiwianNvbkRpZmYiLCJ1c2VMb25nZXN0VG9rZW4iLCJ0b2tlbml6ZSIsImNhc3RJbnB1dCIsInZhbHVlIiwib3B0aW9ucyIsInVuZGVmaW5lZFJlcGxhY2VtZW50Iiwic3RyaW5naWZ5UmVwbGFjZXIiLCJrIiwidiIsIkpTT04iLCJzdHJpbmdpZnkiLCJlcXVhbHMiLCJsZWZ0IiwicmlnaHQiLCJjYWxsIiwicmVwbGFjZSIsIm9sZE9iaiIsIm5ld09iaiIsImRpZmYiLCJvYmoiLCJzdGFjayIsInJlcGxhY2VtZW50U3RhY2siLCJyZXBsYWNlciIsImtleSIsImkiLCJsZW5ndGgiLCJjYW5vbmljYWxpemVkT2JqIiwicHVzaCIsIkFycmF5IiwicG9wIiwidG9KU09OIiwic29ydGVkS2V5cyIsImhhc093blByb3BlcnR5Iiwic29ydCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztnQ0FxQmdCQSxRLEdBQUFBLFE7eURBSUFDLFksR0FBQUEsWTs7QUF6QmhCOzs7O3VCQUNBOzs7O3VCQUVBLElBQU1DLDBCQUEwQkMsT0FBT0MsU0FBUCxDQUFpQkMsUUFBakQ7O0FBR08sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1A7QUFDQTtBQUNBQSxTQUFTQyxlQUFULEdBQTJCLElBQTNCOztBQUVBRCxTQUFTRSxRQUFULEdBQW9CLGdFQUFTQSxRQUE3QjtBQUNBRixTQUFTRyxTQUFULEdBQXFCLFVBQVNDLEtBQVQsRUFBZ0I7QUFBQSxpRUFDK0UsS0FBS0MsT0FEcEY7QUFBQSxNQUM1QkMsb0JBRDRCLFlBQzVCQSxvQkFENEI7QUFBQSx1Q0FDTkMsaUJBRE07QUFBQSxNQUNOQSxpQkFETSx5Q0FDYyxVQUFDQyxDQUFELEVBQUlDLENBQUo7QUFBQSxtQ0FBVSxPQUFPQSxDQUFQLEtBQWEsV0FBYixHQUEyQkgsb0JBQTNCLEdBQWtERztBQUE1RDtBQUFBLEdBRGQ7OztBQUduQyxTQUFPLE9BQU9MLEtBQVAsS0FBaUIsUUFBakIsR0FBNEJBLEtBQTVCLEdBQW9DTSxLQUFLQyxTQUFMLENBQWVoQixhQUFhUyxLQUFiLEVBQW9CLElBQXBCLEVBQTBCLElBQTFCLEVBQWdDRyxpQkFBaEMsQ0FBZixFQUFtRUEsaUJBQW5FLEVBQXNGLElBQXRGLENBQTNDO0FBQ0QsQ0FKRDtBQUtBUCxTQUFTWSxNQUFULEdBQWtCLFVBQVNDLElBQVQsRUFBZUMsS0FBZixFQUFzQjtBQUN0QyxTQUFPLG9FQUFLaEIsU0FBTCxDQUFlYyxNQUFmLENBQXNCRyxJQUF0QixDQUEyQmYsUUFBM0IsRUFBcUNhLEtBQUtHLE9BQUwsQ0FBYSxZQUFiLEVBQTJCLElBQTNCLENBQXJDLEVBQXVFRixNQUFNRSxPQUFOLENBQWMsWUFBZCxFQUE0QixJQUE1QixDQUF2RTtBQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTdEIsUUFBVCxDQUFrQnVCLE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ2IsT0FBbEMsRUFBMkM7QUFBRSxTQUFPTCxTQUFTbUIsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUFnRDs7QUFFcEc7QUFDQTtBQUNPLFNBQVNWLFlBQVQsQ0FBc0J5QixHQUF0QixFQUEyQkMsS0FBM0IsRUFBa0NDLGdCQUFsQyxFQUFvREMsUUFBcEQsRUFBOERDLEdBQTlELEVBQW1FO0FBQ3hFSCxVQUFRQSxTQUFTLEVBQWpCO0FBQ0FDLHFCQUFtQkEsb0JBQW9CLEVBQXZDOztBQUVBLE1BQUlDLFFBQUosRUFBYztBQUNaSCxVQUFNRyxTQUFTQyxHQUFULEVBQWNKLEdBQWQsQ0FBTjtBQUNEOztBQUVELE1BQUlLLG1DQUFKOztBQUVBLE9BQUtBLElBQUksQ0FBVCxFQUFZQSxJQUFJSixNQUFNSyxNQUF0QixFQUE4QkQsS0FBSyxDQUFuQyxFQUFzQztBQUNwQyxRQUFJSixNQUFNSSxDQUFOLE1BQWFMLEdBQWpCLEVBQXNCO0FBQ3BCLGFBQU9FLGlCQUFpQkcsQ0FBakIsQ0FBUDtBQUNEO0FBQ0Y7O0FBRUQsTUFBSUUsa0RBQUo7O0FBRUEsTUFBSSxxQkFBcUIvQix3QkFBd0JtQixJQUF4QixDQUE2QkssR0FBN0IsQ0FBekIsRUFBNEQ7QUFDMURDLFVBQU1PLElBQU4sQ0FBV1IsR0FBWDtBQUNBTyx1QkFBbUIsSUFBSUUsS0FBSixDQUFVVCxJQUFJTSxNQUFkLENBQW5CO0FBQ0FKLHFCQUFpQk0sSUFBakIsQ0FBc0JELGdCQUF0QjtBQUNBLFNBQUtGLElBQUksQ0FBVCxFQUFZQSxJQUFJTCxJQUFJTSxNQUFwQixFQUE0QkQsS0FBSyxDQUFqQyxFQUFvQztBQUNsQ0UsdUJBQWlCRixDQUFqQixJQUFzQjlCLGFBQWF5QixJQUFJSyxDQUFKLENBQWIsRUFBcUJKLEtBQXJCLEVBQTRCQyxnQkFBNUIsRUFBOENDLFFBQTlDLEVBQXdEQyxHQUF4RCxDQUF0QjtBQUNEO0FBQ0RILFVBQU1TLEdBQU47QUFDQVIscUJBQWlCUSxHQUFqQjtBQUNBLFdBQU9ILGdCQUFQO0FBQ0Q7O0FBRUQsTUFBSVAsT0FBT0EsSUFBSVcsTUFBZixFQUF1QjtBQUNyQlgsVUFBTUEsSUFBSVcsTUFBSixFQUFOO0FBQ0Q7O0FBRUQsTUFBSSx5REFBT1gsR0FBUCx5Q0FBT0EsR0FBUCxPQUFlLFFBQWYsSUFBMkJBLFFBQVEsSUFBdkMsRUFBNkM7QUFDM0NDLFVBQU1PLElBQU4sQ0FBV1IsR0FBWDtBQUNBTyx1QkFBbUIsRUFBbkI7QUFDQUwscUJBQWlCTSxJQUFqQixDQUFzQkQsZ0JBQXRCO0FBQ0EsUUFBSUssYUFBYSxFQUFqQjtBQUFBLFFBQ0lSLHNDQURKO0FBRUEsU0FBS0EsSUFBTCxJQUFZSixHQUFaLEVBQWlCO0FBQ2Y7QUFDQSxVQUFJQSxJQUFJYSxjQUFKLENBQW1CVCxJQUFuQixDQUFKLEVBQTZCO0FBQzNCUSxtQkFBV0osSUFBWCxDQUFnQkosSUFBaEI7QUFDRDtBQUNGO0FBQ0RRLGVBQVdFLElBQVg7QUFDQSxTQUFLVCxJQUFJLENBQVQsRUFBWUEsSUFBSU8sV0FBV04sTUFBM0IsRUFBbUNELEtBQUssQ0FBeEMsRUFBMkM7QUFDekNELGFBQU1RLFdBQVdQLENBQVgsQ0FBTjtBQUNBRSx1QkFBaUJILElBQWpCLElBQXdCN0IsYUFBYXlCLElBQUlJLElBQUosQ0FBYixFQUF1QkgsS0FBdkIsRUFBOEJDLGdCQUE5QixFQUFnREMsUUFBaEQsRUFBMERDLElBQTFELENBQXhCO0FBQ0Q7QUFDREgsVUFBTVMsR0FBTjtBQUNBUixxQkFBaUJRLEdBQWpCO0FBQ0QsR0FuQkQsTUFtQk87QUFDTEgsdUJBQW1CUCxHQUFuQjtBQUNEO0FBQ0QsU0FBT08sZ0JBQVA7QUFDRCIsImZpbGUiOiJqc29uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcbmltcG9ydCB7bGluZURpZmZ9IGZyb20gJy4vbGluZSc7XG5cbmNvbnN0IG9iamVjdFByb3RvdHlwZVRvU3RyaW5nID0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZztcblxuXG5leHBvcnQgY29uc3QganNvbkRpZmYgPSBuZXcgRGlmZigpO1xuLy8gRGlzY3JpbWluYXRlIGJldHdlZW4gdHdvIGxpbmVzIG9mIHByZXR0eS1wcmludGVkLCBzZXJpYWxpemVkIEpTT04gd2hlcmUgb25lIG9mIHRoZW0gaGFzIGFcbi8vIGRhbmdsaW5nIGNvbW1hIGFuZCB0aGUgb3RoZXIgZG9lc24ndC4gVHVybnMgb3V0IGluY2x1ZGluZyB0aGUgZGFuZ2xpbmcgY29tbWEgeWllbGRzIHRoZSBuaWNlc3Qgb3V0cHV0OlxuanNvbkRpZmYudXNlTG9uZ2VzdFRva2VuID0gdHJ1ZTtcblxuanNvbkRpZmYudG9rZW5pemUgPSBsaW5lRGlmZi50b2tlbml6ZTtcbmpzb25EaWZmLmNhc3RJbnB1dCA9IGZ1bmN0aW9uKHZhbHVlKSB7XG4gIGNvbnN0IHt1bmRlZmluZWRSZXBsYWNlbWVudCwgc3RyaW5naWZ5UmVwbGFjZXIgPSAoaywgdikgPT4gdHlwZW9mIHYgPT09ICd1bmRlZmluZWQnID8gdW5kZWZpbmVkUmVwbGFjZW1lbnQgOiB2fSA9IHRoaXMub3B0aW9ucztcblxuICByZXR1cm4gdHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJyA/IHZhbHVlIDogSlNPTi5zdHJpbmdpZnkoY2Fub25pY2FsaXplKHZhbHVlLCBudWxsLCBudWxsLCBzdHJpbmdpZnlSZXBsYWNlciksIHN0cmluZ2lmeVJlcGxhY2VyLCAnICAnKTtcbn07XG5qc29uRGlmZi5lcXVhbHMgPSBmdW5jdGlvbihsZWZ0LCByaWdodCkge1xuICByZXR1cm4gRGlmZi5wcm90b3R5cGUuZXF1YWxzLmNhbGwoanNvbkRpZmYsIGxlZnQucmVwbGFjZSgvLChbXFxyXFxuXSkvZywgJyQxJyksIHJpZ2h0LnJlcGxhY2UoLywoW1xcclxcbl0pL2csICckMScpKTtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBkaWZmSnNvbihvbGRPYmosIG5ld09iaiwgb3B0aW9ucykgeyByZXR1cm4ganNvbkRpZmYuZGlmZihvbGRPYmosIG5ld09iaiwgb3B0aW9ucyk7IH1cblxuLy8gVGhpcyBmdW5jdGlvbiBoYW5kbGVzIHRoZSBwcmVzZW5jZSBvZiBjaXJjdWxhciByZWZlcmVuY2VzIGJ5IGJhaWxpbmcgb3V0IHdoZW4gZW5jb3VudGVyaW5nIGFuXG4vLyBvYmplY3QgdGhhdCBpcyBhbHJlYWR5IG9uIHRoZSBcInN0YWNrXCIgb2YgaXRlbXMgYmVpbmcgcHJvY2Vzc2VkLiBBY2NlcHRzIGFuIG9wdGlvbmFsIHJlcGxhY2VyXG5leHBvcnQgZnVuY3Rpb24gY2Fub25pY2FsaXplKG9iaiwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpIHtcbiAgc3RhY2sgPSBzdGFjayB8fCBbXTtcbiAgcmVwbGFjZW1lbnRTdGFjayA9IHJlcGxhY2VtZW50U3RhY2sgfHwgW107XG5cbiAgaWYgKHJlcGxhY2VyKSB7XG4gICAgb2JqID0gcmVwbGFjZXIoa2V5LCBvYmopO1xuICB9XG5cbiAgbGV0IGk7XG5cbiAgZm9yIChpID0gMDsgaSA8IHN0YWNrLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgaWYgKHN0YWNrW2ldID09PSBvYmopIHtcbiAgICAgIHJldHVybiByZXBsYWNlbWVudFN0YWNrW2ldO1xuICAgIH1cbiAgfVxuXG4gIGxldCBjYW5vbmljYWxpemVkT2JqO1xuXG4gIGlmICgnW29iamVjdCBBcnJheV0nID09PSBvYmplY3RQcm90b3R5cGVUb1N0cmluZy5jYWxsKG9iaikpIHtcbiAgICBzdGFjay5wdXNoKG9iaik7XG4gICAgY2Fub25pY2FsaXplZE9iaiA9IG5ldyBBcnJheShvYmoubGVuZ3RoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnB1c2goY2Fub25pY2FsaXplZE9iaik7XG4gICAgZm9yIChpID0gMDsgaSA8IG9iai5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgY2Fub25pY2FsaXplZE9ialtpXSA9IGNhbm9uaWNhbGl6ZShvYmpbaV0sIHN0YWNrLCByZXBsYWNlbWVudFN0YWNrLCByZXBsYWNlciwga2V5KTtcbiAgICB9XG4gICAgc3RhY2sucG9wKCk7XG4gICAgcmVwbGFjZW1lbnRTdGFjay5wb3AoKTtcbiAgICByZXR1cm4gY2Fub25pY2FsaXplZE9iajtcbiAgfVxuXG4gIGlmIChvYmogJiYgb2JqLnRvSlNPTikge1xuICAgIG9iaiA9IG9iai50b0pTT04oKTtcbiAgfVxuXG4gIGlmICh0eXBlb2Ygb2JqID09PSAnb2JqZWN0JyAmJiBvYmogIT09IG51bGwpIHtcbiAgICBzdGFjay5wdXNoKG9iaik7XG4gICAgY2Fub25pY2FsaXplZE9iaiA9IHt9O1xuICAgIHJlcGxhY2VtZW50U3RhY2sucHVzaChjYW5vbmljYWxpemVkT2JqKTtcbiAgICBsZXQgc29ydGVkS2V5cyA9IFtdLFxuICAgICAgICBrZXk7XG4gICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgIHNvcnRlZEtleXMucHVzaChrZXkpO1xuICAgICAgfVxuICAgIH1cbiAgICBzb3J0ZWRLZXlzLnNvcnQoKTtcbiAgICBmb3IgKGkgPSAwOyBpIDwgc29ydGVkS2V5cy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAga2V5ID0gc29ydGVkS2V5c1tpXTtcbiAgICAgIGNhbm9uaWNhbGl6ZWRPYmpba2V5XSA9IGNhbm9uaWNhbGl6ZShvYmpba2V5XSwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpO1xuICAgIH1cbiAgICBzdGFjay5wb3AoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnBvcCgpO1xuICB9IGVsc2Uge1xuICAgIGNhbm9uaWNhbGl6ZWRPYmogPSBvYmo7XG4gIH1cbiAgcmV0dXJuIGNhbm9uaWNhbGl6ZWRPYmo7XG59XG4iXX0= - - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.arrayDiff = undefined; - exports. /*istanbul ignore end*/diffArrays = diffArrays; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var arrayDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - arrayDiff.tokenize = function (value) { - return value.slice(); - }; - arrayDiff.join = arrayDiff.removeEmpty = function (value) { - return value; - }; - - function diffArrays(oldArr, newArr, callback) { - return arrayDiff.diff(oldArr, newArr, callback); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2FycmF5LmpzIl0sIm5hbWVzIjpbImRpZmZBcnJheXMiLCJhcnJheURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic2xpY2UiLCJqb2luIiwicmVtb3ZlRW1wdHkiLCJvbGRBcnIiLCJuZXdBcnIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBVWdCQSxVLEdBQUFBLFU7O0FBVmhCOzs7Ozs7dUJBRU8sSUFBTUMsaUZBQVksd0VBQWxCO0FBQ1BBLFVBQVVDLFFBQVYsR0FBcUIsVUFBU0MsS0FBVCxFQUFnQjtBQUNuQyxTQUFPQSxNQUFNQyxLQUFOLEVBQVA7QUFDRCxDQUZEO0FBR0FILFVBQVVJLElBQVYsR0FBaUJKLFVBQVVLLFdBQVYsR0FBd0IsVUFBU0gsS0FBVCxFQUFnQjtBQUN2RCxTQUFPQSxLQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTSCxVQUFULENBQW9CTyxNQUFwQixFQUE0QkMsTUFBNUIsRUFBb0NDLFFBQXBDLEVBQThDO0FBQUUsU0FBT1IsVUFBVVMsSUFBVixDQUFlSCxNQUFmLEVBQXVCQyxNQUF2QixFQUErQkMsUUFBL0IsQ0FBUDtBQUFrRCIsImZpbGUiOiJhcnJheS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBhcnJheURpZmYgPSBuZXcgRGlmZigpO1xuYXJyYXlEaWZmLnRva2VuaXplID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlLnNsaWNlKCk7XG59O1xuYXJyYXlEaWZmLmpvaW4gPSBhcnJheURpZmYucmVtb3ZlRW1wdHkgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWU7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkFycmF5cyhvbGRBcnIsIG5ld0FyciwgY2FsbGJhY2spIHsgcmV0dXJuIGFycmF5RGlmZi5kaWZmKG9sZEFyciwgbmV3QXJyLCBjYWxsYmFjayk7IH1cbiJdfQ== - - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/applyPatch = applyPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = applyPatches; - - var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_distanceIterator = __webpack_require__(12) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _distanceIterator2 = _interopRequireDefault(_distanceIterator); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/function applyPatch(source, uniDiff) { - /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - - if (typeof uniDiff === 'string') { - uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff); - } - - if (Array.isArray(uniDiff)) { - if (uniDiff.length > 1) { - throw new Error('applyPatch only works with a single input.'); - } - - uniDiff = uniDiff[0]; - } - - // Apply the diff to the input - var lines = source.split(/\r\n|[\n\v\f\r\x85]/), - delimiters = source.match(/\r\n|[\n\v\f\r\x85]/g) || [], - hunks = uniDiff.hunks, - compareLine = options.compareLine || function (lineNumber, line, operation, patchContent) /*istanbul ignore start*/{ - return (/*istanbul ignore end*/line === patchContent - ); - }, - errorCount = 0, - fuzzFactor = options.fuzzFactor || 0, - minLine = 0, - offset = 0, - removeEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/, - addEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - - /** - * Checks if the hunk exactly fits on the provided location - */ - function hunkFits(hunk, toPos) { - for (var j = 0; j < hunk.lines.length; j++) { - var line = hunk.lines[j], - operation = line.length > 0 ? line[0] : ' ', - content = line.length > 0 ? line.substr(1) : line; - - if (operation === ' ' || operation === '-') { - // Context sanity check - if (!compareLine(toPos + 1, lines[toPos], operation, content)) { - errorCount++; - - if (errorCount > fuzzFactor) { - return false; - } - } - toPos++; - } - } - - return true; - } - - // Search best fit offsets for each hunk based on the previous ones - for (var i = 0; i < hunks.length; i++) { - var hunk = hunks[i], - maxLine = lines.length - hunk.oldLines, - localOffset = 0, - toPos = offset + hunk.oldStart - 1; - - var iterator = /*istanbul ignore start*/(0, _distanceIterator2['default']) /*istanbul ignore end*/(toPos, minLine, maxLine); - - for (; localOffset !== undefined; localOffset = iterator()) { - if (hunkFits(hunk, toPos + localOffset)) { - hunk.offset = offset += localOffset; - break; - } - } - - if (localOffset === undefined) { - return false; - } - - // Set lower text limit to end of the current hunk, so next ones don't try - // to fit over already patched text - minLine = hunk.offset + hunk.oldStart + hunk.oldLines; - } - - // Apply patch hunks - var diffOffset = 0; - for (var _i = 0; _i < hunks.length; _i++) { - var _hunk = hunks[_i], - _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1; - diffOffset += _hunk.newLines - _hunk.oldLines; - - if (_toPos < 0) { - // Creating a new file - _toPos = 0; - } - - for (var j = 0; j < _hunk.lines.length; j++) { - var line = _hunk.lines[j], - operation = line.length > 0 ? line[0] : ' ', - content = line.length > 0 ? line.substr(1) : line, - delimiter = _hunk.linedelimiters[j]; - - if (operation === ' ') { - _toPos++; - } else if (operation === '-') { - lines.splice(_toPos, 1); - delimiters.splice(_toPos, 1); - /* istanbul ignore else */ - } else if (operation === '+') { - lines.splice(_toPos, 0, content); - delimiters.splice(_toPos, 0, delimiter); - _toPos++; - } else if (operation === '\\') { - var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null; - if (previousOperation === '+') { - removeEOFNL = true; - } else if (previousOperation === '-') { - addEOFNL = true; - } - } - } - } - - // Handle EOFNL insertion/removal - if (removeEOFNL) { - while (!lines[lines.length - 1]) { - lines.pop(); - delimiters.pop(); - } - } else if (addEOFNL) { - lines.push(''); - delimiters.push('\n'); - } - for (var _k = 0; _k < lines.length - 1; _k++) { - lines[_k] = lines[_k] + delimiters[_k]; - } - return lines.join(''); - } - - // Wrapper that supports multiple file patches via callbacks. - function applyPatches(uniDiff, options) { - if (typeof uniDiff === 'string') { - uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff); - } - - var currentIndex = 0; - function processIndex() { - var index = uniDiff[currentIndex++]; - if (!index) { - return options.complete(); - } - - options.loadFile(index, function (err, data) { - if (err) { - return options.complete(err); - } - - var updatedContent = applyPatch(data, index, options); - options.patched(index, updatedContent, function (err) { - if (err) { - return options.complete(err); - } - - processIndex(); - }); - }); - } - processIndex(); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9hcHBseS5qcyJdLCJuYW1lcyI6WyJhcHBseVBhdGNoIiwiYXBwbHlQYXRjaGVzIiwic291cmNlIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJBcnJheSIsImlzQXJyYXkiLCJsZW5ndGgiLCJFcnJvciIsImxpbmVzIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJodW5rcyIsImNvbXBhcmVMaW5lIiwibGluZU51bWJlciIsImxpbmUiLCJvcGVyYXRpb24iLCJwYXRjaENvbnRlbnQiLCJlcnJvckNvdW50IiwiZnV6ekZhY3RvciIsIm1pbkxpbmUiLCJvZmZzZXQiLCJyZW1vdmVFT0ZOTCIsImFkZEVPRk5MIiwiaHVua0ZpdHMiLCJodW5rIiwidG9Qb3MiLCJqIiwiY29udGVudCIsInN1YnN0ciIsImkiLCJtYXhMaW5lIiwib2xkTGluZXMiLCJsb2NhbE9mZnNldCIsIm9sZFN0YXJ0IiwiaXRlcmF0b3IiLCJ1bmRlZmluZWQiLCJkaWZmT2Zmc2V0IiwibmV3TGluZXMiLCJkZWxpbWl0ZXIiLCJsaW5lZGVsaW1pdGVycyIsInNwbGljZSIsInByZXZpb3VzT3BlcmF0aW9uIiwicG9wIiwicHVzaCIsIl9rIiwiam9pbiIsImN1cnJlbnRJbmRleCIsInByb2Nlc3NJbmRleCIsImluZGV4IiwiY29tcGxldGUiLCJsb2FkRmlsZSIsImVyciIsImRhdGEiLCJ1cGRhdGVkQ29udGVudCIsInBhdGNoZWQiXSwibWFwcGluZ3MiOiI7OztnQ0FHZ0JBLFUsR0FBQUEsVTt5REFvSUFDLFksR0FBQUEsWTs7QUF2SWhCOztBQUNBOzs7Ozs7dUJBRU8sU0FBU0QsVUFBVCxDQUFvQkUsTUFBcEIsRUFBNEJDLE9BQTVCLEVBQW1EO0FBQUEsc0RBQWRDLE9BQWMsdUVBQUosRUFBSTs7QUFDeEQsTUFBSSxPQUFPRCxPQUFQLEtBQW1CLFFBQXZCLEVBQWlDO0FBQy9CQSxjQUFVLHdFQUFXQSxPQUFYLENBQVY7QUFDRDs7QUFFRCxNQUFJRSxNQUFNQyxPQUFOLENBQWNILE9BQWQsQ0FBSixFQUE0QjtBQUMxQixRQUFJQSxRQUFRSSxNQUFSLEdBQWlCLENBQXJCLEVBQXdCO0FBQ3RCLFlBQU0sSUFBSUMsS0FBSixDQUFVLDRDQUFWLENBQU47QUFDRDs7QUFFREwsY0FBVUEsUUFBUSxDQUFSLENBQVY7QUFDRDs7QUFFRDtBQUNBLE1BQUlNLFFBQVFQLE9BQU9RLEtBQVAsQ0FBYSxxQkFBYixDQUFaO0FBQUEsTUFDSUMsYUFBYVQsT0FBT1UsS0FBUCxDQUFhLHNCQUFiLEtBQXdDLEVBRHpEO0FBQUEsTUFFSUMsUUFBUVYsUUFBUVUsS0FGcEI7QUFBQSxNQUlJQyxjQUFjVixRQUFRVSxXQUFSLElBQXdCLFVBQUNDLFVBQUQsRUFBYUMsSUFBYixFQUFtQkMsU0FBbkIsRUFBOEJDLFlBQTlCO0FBQUEsbUNBQStDRixTQUFTRTtBQUF4RDtBQUFBLEdBSjFDO0FBQUEsTUFLSUMsYUFBYSxDQUxqQjtBQUFBLE1BTUlDLGFBQWFoQixRQUFRZ0IsVUFBUixJQUFzQixDQU52QztBQUFBLE1BT0lDLFVBQVUsQ0FQZDtBQUFBLE1BUUlDLFNBQVMsQ0FSYjtBQUFBLE1BVUlDLDZDQVZKO0FBQUEsTUFXSUMsMENBWEo7O0FBYUE7OztBQUdBLFdBQVNDLFFBQVQsQ0FBa0JDLElBQWxCLEVBQXdCQyxLQUF4QixFQUErQjtBQUM3QixTQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUYsS0FBS2pCLEtBQUwsQ0FBV0YsTUFBL0IsRUFBdUNxQixHQUF2QyxFQUE0QztBQUMxQyxVQUFJWixPQUFPVSxLQUFLakIsS0FBTCxDQUFXbUIsQ0FBWCxDQUFYO0FBQUEsVUFDSVgsWUFBYUQsS0FBS1QsTUFBTCxHQUFjLENBQWQsR0FBa0JTLEtBQUssQ0FBTCxDQUFsQixHQUE0QixHQUQ3QztBQUFBLFVBRUlhLFVBQVdiLEtBQUtULE1BQUwsR0FBYyxDQUFkLEdBQWtCUyxLQUFLYyxNQUFMLENBQVksQ0FBWixDQUFsQixHQUFtQ2QsSUFGbEQ7O0FBSUEsVUFBSUMsY0FBYyxHQUFkLElBQXFCQSxjQUFjLEdBQXZDLEVBQTRDO0FBQzFDO0FBQ0EsWUFBSSxDQUFDSCxZQUFZYSxRQUFRLENBQXBCLEVBQXVCbEIsTUFBTWtCLEtBQU4sQ0FBdkIsRUFBcUNWLFNBQXJDLEVBQWdEWSxPQUFoRCxDQUFMLEVBQStEO0FBQzdEVjs7QUFFQSxjQUFJQSxhQUFhQyxVQUFqQixFQUE2QjtBQUMzQixtQkFBTyxLQUFQO0FBQ0Q7QUFDRjtBQUNETztBQUNEO0FBQ0Y7O0FBRUQsV0FBTyxJQUFQO0FBQ0Q7O0FBRUQ7QUFDQSxPQUFLLElBQUlJLElBQUksQ0FBYixFQUFnQkEsSUFBSWxCLE1BQU1OLE1BQTFCLEVBQWtDd0IsR0FBbEMsRUFBdUM7QUFDckMsUUFBSUwsT0FBT2IsTUFBTWtCLENBQU4sQ0FBWDtBQUFBLFFBQ0lDLFVBQVV2QixNQUFNRixNQUFOLEdBQWVtQixLQUFLTyxRQURsQztBQUFBLFFBRUlDLGNBQWMsQ0FGbEI7QUFBQSxRQUdJUCxRQUFRTCxTQUFTSSxLQUFLUyxRQUFkLEdBQXlCLENBSHJDOztBQUtBLFFBQUlDLFdBQVcsb0ZBQWlCVCxLQUFqQixFQUF3Qk4sT0FBeEIsRUFBaUNXLE9BQWpDLENBQWY7O0FBRUEsV0FBT0UsZ0JBQWdCRyxTQUF2QixFQUFrQ0gsY0FBY0UsVUFBaEQsRUFBNEQ7QUFDMUQsVUFBSVgsU0FBU0MsSUFBVCxFQUFlQyxRQUFRTyxXQUF2QixDQUFKLEVBQXlDO0FBQ3ZDUixhQUFLSixNQUFMLEdBQWNBLFVBQVVZLFdBQXhCO0FBQ0E7QUFDRDtBQUNGOztBQUVELFFBQUlBLGdCQUFnQkcsU0FBcEIsRUFBK0I7QUFDN0IsYUFBTyxLQUFQO0FBQ0Q7O0FBRUQ7QUFDQTtBQUNBaEIsY0FBVUssS0FBS0osTUFBTCxHQUFjSSxLQUFLUyxRQUFuQixHQUE4QlQsS0FBS08sUUFBN0M7QUFDRDs7QUFFRDtBQUNBLE1BQUlLLGFBQWEsQ0FBakI7QUFDQSxPQUFLLElBQUlQLEtBQUksQ0FBYixFQUFnQkEsS0FBSWxCLE1BQU1OLE1BQTFCLEVBQWtDd0IsSUFBbEMsRUFBdUM7QUFDckMsUUFBSUwsUUFBT2IsTUFBTWtCLEVBQU4sQ0FBWDtBQUFBLFFBQ0lKLFNBQVFELE1BQUtTLFFBQUwsR0FBZ0JULE1BQUtKLE1BQXJCLEdBQThCZ0IsVUFBOUIsR0FBMkMsQ0FEdkQ7QUFFQUEsa0JBQWNaLE1BQUthLFFBQUwsR0FBZ0JiLE1BQUtPLFFBQW5DOztBQUVBLFFBQUlOLFNBQVEsQ0FBWixFQUFlO0FBQUU7QUFDZkEsZUFBUSxDQUFSO0FBQ0Q7O0FBRUQsU0FBSyxJQUFJQyxJQUFJLENBQWIsRUFBZ0JBLElBQUlGLE1BQUtqQixLQUFMLENBQVdGLE1BQS9CLEVBQXVDcUIsR0FBdkMsRUFBNEM7QUFDMUMsVUFBSVosT0FBT1UsTUFBS2pCLEtBQUwsQ0FBV21CLENBQVgsQ0FBWDtBQUFBLFVBQ0lYLFlBQWFELEtBQUtULE1BQUwsR0FBYyxDQUFkLEdBQWtCUyxLQUFLLENBQUwsQ0FBbEIsR0FBNEIsR0FEN0M7QUFBQSxVQUVJYSxVQUFXYixLQUFLVCxNQUFMLEdBQWMsQ0FBZCxHQUFrQlMsS0FBS2MsTUFBTCxDQUFZLENBQVosQ0FBbEIsR0FBbUNkLElBRmxEO0FBQUEsVUFHSXdCLFlBQVlkLE1BQUtlLGNBQUwsQ0FBb0JiLENBQXBCLENBSGhCOztBQUtBLFVBQUlYLGNBQWMsR0FBbEIsRUFBdUI7QUFDckJVO0FBQ0QsT0FGRCxNQUVPLElBQUlWLGNBQWMsR0FBbEIsRUFBdUI7QUFDNUJSLGNBQU1pQyxNQUFOLENBQWFmLE1BQWIsRUFBb0IsQ0FBcEI7QUFDQWhCLG1CQUFXK0IsTUFBWCxDQUFrQmYsTUFBbEIsRUFBeUIsQ0FBekI7QUFDRjtBQUNDLE9BSk0sTUFJQSxJQUFJVixjQUFjLEdBQWxCLEVBQXVCO0FBQzVCUixjQUFNaUMsTUFBTixDQUFhZixNQUFiLEVBQW9CLENBQXBCLEVBQXVCRSxPQUF2QjtBQUNBbEIsbUJBQVcrQixNQUFYLENBQWtCZixNQUFsQixFQUF5QixDQUF6QixFQUE0QmEsU0FBNUI7QUFDQWI7QUFDRCxPQUpNLE1BSUEsSUFBSVYsY0FBYyxJQUFsQixFQUF3QjtBQUM3QixZQUFJMEIsb0JBQW9CakIsTUFBS2pCLEtBQUwsQ0FBV21CLElBQUksQ0FBZixJQUFvQkYsTUFBS2pCLEtBQUwsQ0FBV21CLElBQUksQ0FBZixFQUFrQixDQUFsQixDQUFwQixHQUEyQyxJQUFuRTtBQUNBLFlBQUllLHNCQUFzQixHQUExQixFQUErQjtBQUM3QnBCLHdCQUFjLElBQWQ7QUFDRCxTQUZELE1BRU8sSUFBSW9CLHNCQUFzQixHQUExQixFQUErQjtBQUNwQ25CLHFCQUFXLElBQVg7QUFDRDtBQUNGO0FBQ0Y7QUFDRjs7QUFFRDtBQUNBLE1BQUlELFdBQUosRUFBaUI7QUFDZixXQUFPLENBQUNkLE1BQU1BLE1BQU1GLE1BQU4sR0FBZSxDQUFyQixDQUFSLEVBQWlDO0FBQy9CRSxZQUFNbUMsR0FBTjtBQUNBakMsaUJBQVdpQyxHQUFYO0FBQ0Q7QUFDRixHQUxELE1BS08sSUFBSXBCLFFBQUosRUFBYztBQUNuQmYsVUFBTW9DLElBQU4sQ0FBVyxFQUFYO0FBQ0FsQyxlQUFXa0MsSUFBWCxDQUFnQixJQUFoQjtBQUNEO0FBQ0QsT0FBSyxJQUFJQyxLQUFLLENBQWQsRUFBaUJBLEtBQUtyQyxNQUFNRixNQUFOLEdBQWUsQ0FBckMsRUFBd0N1QyxJQUF4QyxFQUE4QztBQUM1Q3JDLFVBQU1xQyxFQUFOLElBQVlyQyxNQUFNcUMsRUFBTixJQUFZbkMsV0FBV21DLEVBQVgsQ0FBeEI7QUFDRDtBQUNELFNBQU9yQyxNQUFNc0MsSUFBTixDQUFXLEVBQVgsQ0FBUDtBQUNEOztBQUVEO0FBQ08sU0FBUzlDLFlBQVQsQ0FBc0JFLE9BQXRCLEVBQStCQyxPQUEvQixFQUF3QztBQUM3QyxNQUFJLE9BQU9ELE9BQVAsS0FBbUIsUUFBdkIsRUFBaUM7QUFDL0JBLGNBQVUsd0VBQVdBLE9BQVgsQ0FBVjtBQUNEOztBQUVELE1BQUk2QyxlQUFlLENBQW5CO0FBQ0EsV0FBU0MsWUFBVCxHQUF3QjtBQUN0QixRQUFJQyxRQUFRL0MsUUFBUTZDLGNBQVIsQ0FBWjtBQUNBLFFBQUksQ0FBQ0UsS0FBTCxFQUFZO0FBQ1YsYUFBTzlDLFFBQVErQyxRQUFSLEVBQVA7QUFDRDs7QUFFRC9DLFlBQVFnRCxRQUFSLENBQWlCRixLQUFqQixFQUF3QixVQUFTRyxHQUFULEVBQWNDLElBQWQsRUFBb0I7QUFDMUMsVUFBSUQsR0FBSixFQUFTO0FBQ1AsZUFBT2pELFFBQVErQyxRQUFSLENBQWlCRSxHQUFqQixDQUFQO0FBQ0Q7O0FBRUQsVUFBSUUsaUJBQWlCdkQsV0FBV3NELElBQVgsRUFBaUJKLEtBQWpCLEVBQXdCOUMsT0FBeEIsQ0FBckI7QUFDQUEsY0FBUW9ELE9BQVIsQ0FBZ0JOLEtBQWhCLEVBQXVCSyxjQUF2QixFQUF1QyxVQUFTRixHQUFULEVBQWM7QUFDbkQsWUFBSUEsR0FBSixFQUFTO0FBQ1AsaUJBQU9qRCxRQUFRK0MsUUFBUixDQUFpQkUsR0FBakIsQ0FBUDtBQUNEOztBQUVESjtBQUNELE9BTkQ7QUFPRCxLQWJEO0FBY0Q7QUFDREE7QUFDRCIsImZpbGUiOiJhcHBseS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXJzZSc7XG5pbXBvcnQgZGlzdGFuY2VJdGVyYXRvciBmcm9tICcuLi91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yJztcblxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5UGF0Y2goc291cmNlLCB1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgaWYgKHR5cGVvZiB1bmlEaWZmID09PSAnc3RyaW5nJykge1xuICAgIHVuaURpZmYgPSBwYXJzZVBhdGNoKHVuaURpZmYpO1xuICB9XG5cbiAgaWYgKEFycmF5LmlzQXJyYXkodW5pRGlmZikpIHtcbiAgICBpZiAodW5pRGlmZi5sZW5ndGggPiAxKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ2FwcGx5UGF0Y2ggb25seSB3b3JrcyB3aXRoIGEgc2luZ2xlIGlucHV0LicpO1xuICAgIH1cblxuICAgIHVuaURpZmYgPSB1bmlEaWZmWzBdO1xuICB9XG5cbiAgLy8gQXBwbHkgdGhlIGRpZmYgdG8gdGhlIGlucHV0XG4gIGxldCBsaW5lcyA9IHNvdXJjZS5zcGxpdCgvXFxyXFxufFtcXG5cXHZcXGZcXHJcXHg4NV0vKSxcbiAgICAgIGRlbGltaXRlcnMgPSBzb3VyY2UubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgaHVua3MgPSB1bmlEaWZmLmh1bmtzLFxuXG4gICAgICBjb21wYXJlTGluZSA9IG9wdGlvbnMuY29tcGFyZUxpbmUgfHwgKChsaW5lTnVtYmVyLCBsaW5lLCBvcGVyYXRpb24sIHBhdGNoQ29udGVudCkgPT4gbGluZSA9PT0gcGF0Y2hDb250ZW50KSxcbiAgICAgIGVycm9yQ291bnQgPSAwLFxuICAgICAgZnV6ekZhY3RvciA9IG9wdGlvbnMuZnV6ekZhY3RvciB8fCAwLFxuICAgICAgbWluTGluZSA9IDAsXG4gICAgICBvZmZzZXQgPSAwLFxuXG4gICAgICByZW1vdmVFT0ZOTCxcbiAgICAgIGFkZEVPRk5MO1xuXG4gIC8qKlxuICAgKiBDaGVja3MgaWYgdGhlIGh1bmsgZXhhY3RseSBmaXRzIG9uIHRoZSBwcm92aWRlZCBsb2NhdGlvblxuICAgKi9cbiAgZnVuY3Rpb24gaHVua0ZpdHMoaHVuaywgdG9Qb3MpIHtcbiAgICBmb3IgKGxldCBqID0gMDsgaiA8IGh1bmsubGluZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgIGxldCBsaW5lID0gaHVuay5saW5lc1tqXSxcbiAgICAgICAgICBvcGVyYXRpb24gPSAobGluZS5sZW5ndGggPiAwID8gbGluZVswXSA6ICcgJyksXG4gICAgICAgICAgY29udGVudCA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lLnN1YnN0cigxKSA6IGxpbmUpO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnLScpIHtcbiAgICAgICAgLy8gQ29udGV4dCBzYW5pdHkgY2hlY2tcbiAgICAgICAgaWYgKCFjb21wYXJlTGluZSh0b1BvcyArIDEsIGxpbmVzW3RvUG9zXSwgb3BlcmF0aW9uLCBjb250ZW50KSkge1xuICAgICAgICAgIGVycm9yQ291bnQrKztcblxuICAgICAgICAgIGlmIChlcnJvckNvdW50ID4gZnV6ekZhY3Rvcikge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0b1BvcysrO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0cnVlO1xuICB9XG5cbiAgLy8gU2VhcmNoIGJlc3QgZml0IG9mZnNldHMgZm9yIGVhY2ggaHVuayBiYXNlZCBvbiB0aGUgcHJldmlvdXMgb25lc1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGh1bmtzLmxlbmd0aDsgaSsrKSB7XG4gICAgbGV0IGh1bmsgPSBodW5rc1tpXSxcbiAgICAgICAgbWF4TGluZSA9IGxpbmVzLmxlbmd0aCAtIGh1bmsub2xkTGluZXMsXG4gICAgICAgIGxvY2FsT2Zmc2V0ID0gMCxcbiAgICAgICAgdG9Qb3MgPSBvZmZzZXQgKyBodW5rLm9sZFN0YXJ0IC0gMTtcblxuICAgIGxldCBpdGVyYXRvciA9IGRpc3RhbmNlSXRlcmF0b3IodG9Qb3MsIG1pbkxpbmUsIG1heExpbmUpO1xuXG4gICAgZm9yICg7IGxvY2FsT2Zmc2V0ICE9PSB1bmRlZmluZWQ7IGxvY2FsT2Zmc2V0ID0gaXRlcmF0b3IoKSkge1xuICAgICAgaWYgKGh1bmtGaXRzKGh1bmssIHRvUG9zICsgbG9jYWxPZmZzZXQpKSB7XG4gICAgICAgIGh1bmsub2Zmc2V0ID0gb2Zmc2V0ICs9IGxvY2FsT2Zmc2V0O1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAobG9jYWxPZmZzZXQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIC8vIFNldCBsb3dlciB0ZXh0IGxpbWl0IHRvIGVuZCBvZiB0aGUgY3VycmVudCBodW5rLCBzbyBuZXh0IG9uZXMgZG9uJ3QgdHJ5XG4gICAgLy8gdG8gZml0IG92ZXIgYWxyZWFkeSBwYXRjaGVkIHRleHRcbiAgICBtaW5MaW5lID0gaHVuay5vZmZzZXQgKyBodW5rLm9sZFN0YXJ0ICsgaHVuay5vbGRMaW5lcztcbiAgfVxuXG4gIC8vIEFwcGx5IHBhdGNoIGh1bmtzXG4gIGxldCBkaWZmT2Zmc2V0ID0gMDtcbiAgZm9yIChsZXQgaSA9IDA7IGkgPCBodW5rcy5sZW5ndGg7IGkrKykge1xuICAgIGxldCBodW5rID0gaHVua3NbaV0sXG4gICAgICAgIHRvUG9zID0gaHVuay5vbGRTdGFydCArIGh1bmsub2Zmc2V0ICsgZGlmZk9mZnNldCAtIDE7XG4gICAgZGlmZk9mZnNldCArPSBodW5rLm5ld0xpbmVzIC0gaHVuay5vbGRMaW5lcztcblxuICAgIGlmICh0b1BvcyA8IDApIHsgLy8gQ3JlYXRpbmcgYSBuZXcgZmlsZVxuICAgICAgdG9Qb3MgPSAwO1xuICAgIH1cblxuICAgIGZvciAobGV0IGogPSAwOyBqIDwgaHVuay5saW5lcy5sZW5ndGg7IGorKykge1xuICAgICAgbGV0IGxpbmUgPSBodW5rLmxpbmVzW2pdLFxuICAgICAgICAgIG9wZXJhdGlvbiA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lWzBdIDogJyAnKSxcbiAgICAgICAgICBjb250ZW50ID0gKGxpbmUubGVuZ3RoID4gMCA/IGxpbmUuc3Vic3RyKDEpIDogbGluZSksXG4gICAgICAgICAgZGVsaW1pdGVyID0gaHVuay5saW5lZGVsaW1pdGVyc1tqXTtcblxuICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJyAnKSB7XG4gICAgICAgIHRvUG9zKys7XG4gICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJy0nKSB7XG4gICAgICAgIGxpbmVzLnNwbGljZSh0b1BvcywgMSk7XG4gICAgICAgIGRlbGltaXRlcnMuc3BsaWNlKHRvUG9zLCAxKTtcbiAgICAgIC8qIGlzdGFuYnVsIGlnbm9yZSBlbHNlICovXG4gICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgIGxpbmVzLnNwbGljZSh0b1BvcywgMCwgY29udGVudCk7XG4gICAgICAgIGRlbGltaXRlcnMuc3BsaWNlKHRvUG9zLCAwLCBkZWxpbWl0ZXIpO1xuICAgICAgICB0b1BvcysrO1xuICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICdcXFxcJykge1xuICAgICAgICBsZXQgcHJldmlvdXNPcGVyYXRpb24gPSBodW5rLmxpbmVzW2ogLSAxXSA/IGh1bmsubGluZXNbaiAtIDFdWzBdIDogbnVsbDtcbiAgICAgICAgaWYgKHByZXZpb3VzT3BlcmF0aW9uID09PSAnKycpIHtcbiAgICAgICAgICByZW1vdmVFT0ZOTCA9IHRydWU7XG4gICAgICAgIH0gZWxzZSBpZiAocHJldmlvdXNPcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIGFkZEVPRk5MID0gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vIEhhbmRsZSBFT0ZOTCBpbnNlcnRpb24vcmVtb3ZhbFxuICBpZiAocmVtb3ZlRU9GTkwpIHtcbiAgICB3aGlsZSAoIWxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdKSB7XG4gICAgICBsaW5lcy5wb3AoKTtcbiAgICAgIGRlbGltaXRlcnMucG9wKCk7XG4gICAgfVxuICB9IGVsc2UgaWYgKGFkZEVPRk5MKSB7XG4gICAgbGluZXMucHVzaCgnJyk7XG4gICAgZGVsaW1pdGVycy5wdXNoKCdcXG4nKTtcbiAgfVxuICBmb3IgKGxldCBfayA9IDA7IF9rIDwgbGluZXMubGVuZ3RoIC0gMTsgX2srKykge1xuICAgIGxpbmVzW19rXSA9IGxpbmVzW19rXSArIGRlbGltaXRlcnNbX2tdO1xuICB9XG4gIHJldHVybiBsaW5lcy5qb2luKCcnKTtcbn1cblxuLy8gV3JhcHBlciB0aGF0IHN1cHBvcnRzIG11bHRpcGxlIGZpbGUgcGF0Y2hlcyB2aWEgY2FsbGJhY2tzLlxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5UGF0Y2hlcyh1bmlEaWZmLCBvcHRpb25zKSB7XG4gIGlmICh0eXBlb2YgdW5pRGlmZiA9PT0gJ3N0cmluZycpIHtcbiAgICB1bmlEaWZmID0gcGFyc2VQYXRjaCh1bmlEaWZmKTtcbiAgfVxuXG4gIGxldCBjdXJyZW50SW5kZXggPSAwO1xuICBmdW5jdGlvbiBwcm9jZXNzSW5kZXgoKSB7XG4gICAgbGV0IGluZGV4ID0gdW5pRGlmZltjdXJyZW50SW5kZXgrK107XG4gICAgaWYgKCFpbmRleCkge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoKTtcbiAgICB9XG5cbiAgICBvcHRpb25zLmxvYWRGaWxlKGluZGV4LCBmdW5jdGlvbihlcnIsIGRhdGEpIHtcbiAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoZXJyKTtcbiAgICAgIH1cblxuICAgICAgbGV0IHVwZGF0ZWRDb250ZW50ID0gYXBwbHlQYXRjaChkYXRhLCBpbmRleCwgb3B0aW9ucyk7XG4gICAgICBvcHRpb25zLnBhdGNoZWQoaW5kZXgsIHVwZGF0ZWRDb250ZW50LCBmdW5jdGlvbihlcnIpIHtcbiAgICAgICAgaWYgKGVycikge1xuICAgICAgICAgIHJldHVybiBvcHRpb25zLmNvbXBsZXRlKGVycik7XG4gICAgICAgIH1cblxuICAgICAgICBwcm9jZXNzSW5kZXgoKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9XG4gIHByb2Nlc3NJbmRleCgpO1xufVxuIl19 - - -/***/ }), -/* 11 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/parsePatch = parsePatch; - function parsePatch(uniDiff) { - /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var diffstr = uniDiff.split(/\r\n|[\n\v\f\r\x85]/), - delimiters = uniDiff.match(/\r\n|[\n\v\f\r\x85]/g) || [], - list = [], - i = 0; - - function parseIndex() { - var index = {}; - list.push(index); - - // Parse diff metadata - while (i < diffstr.length) { - var line = diffstr[i]; - - // File header found, end parsing diff metadata - if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) { - break; - } - - // Diff index - var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line); - if (header) { - index.index = header[1]; - } - - i++; - } - - // Parse file headers if they are defined. Unified diff requires them, but - // there's no technical issues to have an isolated hunk without file header - parseFileHeader(index); - parseFileHeader(index); - - // Parse hunks - index.hunks = []; - - while (i < diffstr.length) { - var _line = diffstr[i]; - - if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) { - break; - } else if (/^@@/.test(_line)) { - index.hunks.push(parseHunk()); - } else if (_line && options.strict) { - // Ignore unexpected content unless in strict mode - throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line)); - } else { - i++; - } - } - } - - // Parses the --- and +++ headers, if none are found, no lines - // are consumed. - function parseFileHeader(index) { - var fileHeader = /^(---|\+\+\+)\s+(.*)$/.exec(diffstr[i]); - if (fileHeader) { - var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new'; - var data = fileHeader[2].split('\t', 2); - var fileName = data[0].replace(/\\\\/g, '\\'); - if (/^".*"$/.test(fileName)) { - fileName = fileName.substr(1, fileName.length - 2); - } - index[keyPrefix + 'FileName'] = fileName; - index[keyPrefix + 'Header'] = (data[1] || '').trim(); - - i++; - } - } - - // Parses a hunk - // This assumes that we are at the start of a hunk. - function parseHunk() { - var chunkHeaderIndex = i, - chunkHeaderLine = diffstr[i++], - chunkHeader = chunkHeaderLine.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/); - - var hunk = { - oldStart: +chunkHeader[1], - oldLines: +chunkHeader[2] || 1, - newStart: +chunkHeader[3], - newLines: +chunkHeader[4] || 1, - lines: [], - linedelimiters: [] - }; - - var addCount = 0, - removeCount = 0; - for (; i < diffstr.length; i++) { - // Lines starting with '---' could be mistaken for the "remove line" operation - // But they could be the header for the next file. Therefore prune such cases out. - if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) { - break; - } - var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0]; - - if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\') { - hunk.lines.push(diffstr[i]); - hunk.linedelimiters.push(delimiters[i] || '\n'); - - if (operation === '+') { - addCount++; - } else if (operation === '-') { - removeCount++; - } else if (operation === ' ') { - addCount++; - removeCount++; - } - } else { - break; - } - } - - // Handle the empty block count case - if (!addCount && hunk.newLines === 1) { - hunk.newLines = 0; - } - if (!removeCount && hunk.oldLines === 1) { - hunk.oldLines = 0; - } - - // Perform optional sanity checking - if (options.strict) { - if (addCount !== hunk.newLines) { - throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1)); - } - if (removeCount !== hunk.oldLines) { - throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1)); - } - } - - return hunk; - } - - while (i < diffstr.length) { - parseIndex(); - } - - return list; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9wYXJzZS5qcyJdLCJuYW1lcyI6WyJwYXJzZVBhdGNoIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJkaWZmc3RyIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJsaXN0IiwiaSIsInBhcnNlSW5kZXgiLCJpbmRleCIsInB1c2giLCJsZW5ndGgiLCJsaW5lIiwidGVzdCIsImhlYWRlciIsImV4ZWMiLCJwYXJzZUZpbGVIZWFkZXIiLCJodW5rcyIsInBhcnNlSHVuayIsInN0cmljdCIsIkVycm9yIiwiSlNPTiIsInN0cmluZ2lmeSIsImZpbGVIZWFkZXIiLCJrZXlQcmVmaXgiLCJkYXRhIiwiZmlsZU5hbWUiLCJyZXBsYWNlIiwic3Vic3RyIiwidHJpbSIsImNodW5rSGVhZGVySW5kZXgiLCJjaHVua0hlYWRlckxpbmUiLCJjaHVua0hlYWRlciIsImh1bmsiLCJvbGRTdGFydCIsIm9sZExpbmVzIiwibmV3U3RhcnQiLCJuZXdMaW5lcyIsImxpbmVzIiwibGluZWRlbGltaXRlcnMiLCJhZGRDb3VudCIsInJlbW92ZUNvdW50IiwiaW5kZXhPZiIsIm9wZXJhdGlvbiJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsVSxHQUFBQSxVO0FBQVQsU0FBU0EsVUFBVCxDQUFvQkMsT0FBcEIsRUFBMkM7QUFBQSxzREFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUNoRCxNQUFJQyxVQUFVRixRQUFRRyxLQUFSLENBQWMscUJBQWQsQ0FBZDtBQUFBLE1BQ0lDLGFBQWFKLFFBQVFLLEtBQVIsQ0FBYyxzQkFBZCxLQUF5QyxFQUQxRDtBQUFBLE1BRUlDLE9BQU8sRUFGWDtBQUFBLE1BR0lDLElBQUksQ0FIUjs7QUFLQSxXQUFTQyxVQUFULEdBQXNCO0FBQ3BCLFFBQUlDLFFBQVEsRUFBWjtBQUNBSCxTQUFLSSxJQUFMLENBQVVELEtBQVY7O0FBRUE7QUFDQSxXQUFPRixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6QixVQUFJQyxPQUFPVixRQUFRSyxDQUFSLENBQVg7O0FBRUE7QUFDQSxVQUFJLHdCQUF3Qk0sSUFBeEIsQ0FBNkJELElBQTdCLENBQUosRUFBd0M7QUFDdEM7QUFDRDs7QUFFRDtBQUNBLFVBQUlFLFNBQVUsMENBQUQsQ0FBNkNDLElBQTdDLENBQWtESCxJQUFsRCxDQUFiO0FBQ0EsVUFBSUUsTUFBSixFQUFZO0FBQ1ZMLGNBQU1BLEtBQU4sR0FBY0ssT0FBTyxDQUFQLENBQWQ7QUFDRDs7QUFFRFA7QUFDRDs7QUFFRDtBQUNBO0FBQ0FTLG9CQUFnQlAsS0FBaEI7QUFDQU8sb0JBQWdCUCxLQUFoQjs7QUFFQTtBQUNBQSxVQUFNUSxLQUFOLEdBQWMsRUFBZDs7QUFFQSxXQUFPVixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6QixVQUFJQyxRQUFPVixRQUFRSyxDQUFSLENBQVg7O0FBRUEsVUFBSSxpQ0FBaUNNLElBQWpDLENBQXNDRCxLQUF0QyxDQUFKLEVBQWlEO0FBQy9DO0FBQ0QsT0FGRCxNQUVPLElBQUksTUFBTUMsSUFBTixDQUFXRCxLQUFYLENBQUosRUFBc0I7QUFDM0JILGNBQU1RLEtBQU4sQ0FBWVAsSUFBWixDQUFpQlEsV0FBakI7QUFDRCxPQUZNLE1BRUEsSUFBSU4sU0FBUVgsUUFBUWtCLE1BQXBCLEVBQTRCO0FBQ2pDO0FBQ0EsY0FBTSxJQUFJQyxLQUFKLENBQVUsbUJBQW1CYixJQUFJLENBQXZCLElBQTRCLEdBQTVCLEdBQWtDYyxLQUFLQyxTQUFMLENBQWVWLEtBQWYsQ0FBNUMsQ0FBTjtBQUNELE9BSE0sTUFHQTtBQUNMTDtBQUNEO0FBQ0Y7QUFDRjs7QUFFRDtBQUNBO0FBQ0EsV0FBU1MsZUFBVCxDQUF5QlAsS0FBekIsRUFBZ0M7QUFDOUIsUUFBTWMsYUFBYyx1QkFBRCxDQUEwQlIsSUFBMUIsQ0FBK0JiLFFBQVFLLENBQVIsQ0FBL0IsQ0FBbkI7QUFDQSxRQUFJZ0IsVUFBSixFQUFnQjtBQUNkLFVBQUlDLFlBQVlELFdBQVcsQ0FBWCxNQUFrQixLQUFsQixHQUEwQixLQUExQixHQUFrQyxLQUFsRDtBQUNBLFVBQU1FLE9BQU9GLFdBQVcsQ0FBWCxFQUFjcEIsS0FBZCxDQUFvQixJQUFwQixFQUEwQixDQUExQixDQUFiO0FBQ0EsVUFBSXVCLFdBQVdELEtBQUssQ0FBTCxFQUFRRSxPQUFSLENBQWdCLE9BQWhCLEVBQXlCLElBQXpCLENBQWY7QUFDQSxVQUFJLFNBQVNkLElBQVQsQ0FBY2EsUUFBZCxDQUFKLEVBQTZCO0FBQzNCQSxtQkFBV0EsU0FBU0UsTUFBVCxDQUFnQixDQUFoQixFQUFtQkYsU0FBU2YsTUFBVCxHQUFrQixDQUFyQyxDQUFYO0FBQ0Q7QUFDREYsWUFBTWUsWUFBWSxVQUFsQixJQUFnQ0UsUUFBaEM7QUFDQWpCLFlBQU1lLFlBQVksUUFBbEIsSUFBOEIsQ0FBQ0MsS0FBSyxDQUFMLEtBQVcsRUFBWixFQUFnQkksSUFBaEIsRUFBOUI7O0FBRUF0QjtBQUNEO0FBQ0Y7O0FBRUQ7QUFDQTtBQUNBLFdBQVNXLFNBQVQsR0FBcUI7QUFDbkIsUUFBSVksbUJBQW1CdkIsQ0FBdkI7QUFBQSxRQUNJd0Isa0JBQWtCN0IsUUFBUUssR0FBUixDQUR0QjtBQUFBLFFBRUl5QixjQUFjRCxnQkFBZ0I1QixLQUFoQixDQUFzQiw0Q0FBdEIsQ0FGbEI7O0FBSUEsUUFBSThCLE9BQU87QUFDVEMsZ0JBQVUsQ0FBQ0YsWUFBWSxDQUFaLENBREY7QUFFVEcsZ0JBQVUsQ0FBQ0gsWUFBWSxDQUFaLENBQUQsSUFBbUIsQ0FGcEI7QUFHVEksZ0JBQVUsQ0FBQ0osWUFBWSxDQUFaLENBSEY7QUFJVEssZ0JBQVUsQ0FBQ0wsWUFBWSxDQUFaLENBQUQsSUFBbUIsQ0FKcEI7QUFLVE0sYUFBTyxFQUxFO0FBTVRDLHNCQUFnQjtBQU5QLEtBQVg7O0FBU0EsUUFBSUMsV0FBVyxDQUFmO0FBQUEsUUFDSUMsY0FBYyxDQURsQjtBQUVBLFdBQU9sQyxJQUFJTCxRQUFRUyxNQUFuQixFQUEyQkosR0FBM0IsRUFBZ0M7QUFDOUI7QUFDQTtBQUNBLFVBQUlMLFFBQVFLLENBQVIsRUFBV21DLE9BQVgsQ0FBbUIsTUFBbkIsTUFBK0IsQ0FBL0IsSUFDTW5DLElBQUksQ0FBSixHQUFRTCxRQUFRUyxNQUR0QixJQUVLVCxRQUFRSyxJQUFJLENBQVosRUFBZW1DLE9BQWYsQ0FBdUIsTUFBdkIsTUFBbUMsQ0FGeEMsSUFHS3hDLFFBQVFLLElBQUksQ0FBWixFQUFlbUMsT0FBZixDQUF1QixJQUF2QixNQUFpQyxDQUgxQyxFQUc2QztBQUN6QztBQUNIO0FBQ0QsVUFBSUMsWUFBYXpDLFFBQVFLLENBQVIsRUFBV0ksTUFBWCxJQUFxQixDQUFyQixJQUEwQkosS0FBTUwsUUFBUVMsTUFBUixHQUFpQixDQUFsRCxHQUF3RCxHQUF4RCxHQUE4RFQsUUFBUUssQ0FBUixFQUFXLENBQVgsQ0FBOUU7O0FBRUEsVUFBSW9DLGNBQWMsR0FBZCxJQUFxQkEsY0FBYyxHQUFuQyxJQUEwQ0EsY0FBYyxHQUF4RCxJQUErREEsY0FBYyxJQUFqRixFQUF1RjtBQUNyRlYsYUFBS0ssS0FBTCxDQUFXNUIsSUFBWCxDQUFnQlIsUUFBUUssQ0FBUixDQUFoQjtBQUNBMEIsYUFBS00sY0FBTCxDQUFvQjdCLElBQXBCLENBQXlCTixXQUFXRyxDQUFYLEtBQWlCLElBQTFDOztBQUVBLFlBQUlvQyxjQUFjLEdBQWxCLEVBQXVCO0FBQ3JCSDtBQUNELFNBRkQsTUFFTyxJQUFJRyxjQUFjLEdBQWxCLEVBQXVCO0FBQzVCRjtBQUNELFNBRk0sTUFFQSxJQUFJRSxjQUFjLEdBQWxCLEVBQXVCO0FBQzVCSDtBQUNBQztBQUNEO0FBQ0YsT0FaRCxNQVlPO0FBQ0w7QUFDRDtBQUNGOztBQUVEO0FBQ0EsUUFBSSxDQUFDRCxRQUFELElBQWFQLEtBQUtJLFFBQUwsS0FBa0IsQ0FBbkMsRUFBc0M7QUFDcENKLFdBQUtJLFFBQUwsR0FBZ0IsQ0FBaEI7QUFDRDtBQUNELFFBQUksQ0FBQ0ksV0FBRCxJQUFnQlIsS0FBS0UsUUFBTCxLQUFrQixDQUF0QyxFQUF5QztBQUN2Q0YsV0FBS0UsUUFBTCxHQUFnQixDQUFoQjtBQUNEOztBQUVEO0FBQ0EsUUFBSWxDLFFBQVFrQixNQUFaLEVBQW9CO0FBQ2xCLFVBQUlxQixhQUFhUCxLQUFLSSxRQUF0QixFQUFnQztBQUM5QixjQUFNLElBQUlqQixLQUFKLENBQVUsc0RBQXNEVSxtQkFBbUIsQ0FBekUsQ0FBVixDQUFOO0FBQ0Q7QUFDRCxVQUFJVyxnQkFBZ0JSLEtBQUtFLFFBQXpCLEVBQW1DO0FBQ2pDLGNBQU0sSUFBSWYsS0FBSixDQUFVLHdEQUF3RFUsbUJBQW1CLENBQTNFLENBQVYsQ0FBTjtBQUNEO0FBQ0Y7O0FBRUQsV0FBT0csSUFBUDtBQUNEOztBQUVELFNBQU8xQixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6Qkg7QUFDRDs7QUFFRCxTQUFPRixJQUFQO0FBQ0QiLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gcGFyc2VQYXRjaCh1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgbGV0IGRpZmZzdHIgPSB1bmlEaWZmLnNwbGl0KC9cXHJcXG58W1xcblxcdlxcZlxcclxceDg1XS8pLFxuICAgICAgZGVsaW1pdGVycyA9IHVuaURpZmYubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgbGlzdCA9IFtdLFxuICAgICAgaSA9IDA7XG5cbiAgZnVuY3Rpb24gcGFyc2VJbmRleCgpIHtcbiAgICBsZXQgaW5kZXggPSB7fTtcbiAgICBsaXN0LnB1c2goaW5kZXgpO1xuXG4gICAgLy8gUGFyc2UgZGlmZiBtZXRhZGF0YVxuICAgIHdoaWxlIChpIDwgZGlmZnN0ci5sZW5ndGgpIHtcbiAgICAgIGxldCBsaW5lID0gZGlmZnN0cltpXTtcblxuICAgICAgLy8gRmlsZSBoZWFkZXIgZm91bmQsIGVuZCBwYXJzaW5nIGRpZmYgbWV0YWRhdGFcbiAgICAgIGlmICgvXihcXC1cXC1cXC18XFwrXFwrXFwrfEBAKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cblxuICAgICAgLy8gRGlmZiBpbmRleFxuICAgICAgbGV0IGhlYWRlciA9ICgvXig/OkluZGV4OnxkaWZmKD86IC1yIFxcdyspKylcXHMrKC4rPylcXHMqJC8pLmV4ZWMobGluZSk7XG4gICAgICBpZiAoaGVhZGVyKSB7XG4gICAgICAgIGluZGV4LmluZGV4ID0gaGVhZGVyWzFdO1xuICAgICAgfVxuXG4gICAgICBpKys7XG4gICAgfVxuXG4gICAgLy8gUGFyc2UgZmlsZSBoZWFkZXJzIGlmIHRoZXkgYXJlIGRlZmluZWQuIFVuaWZpZWQgZGlmZiByZXF1aXJlcyB0aGVtLCBidXRcbiAgICAvLyB0aGVyZSdzIG5vIHRlY2huaWNhbCBpc3N1ZXMgdG8gaGF2ZSBhbiBpc29sYXRlZCBodW5rIHdpdGhvdXQgZmlsZSBoZWFkZXJcbiAgICBwYXJzZUZpbGVIZWFkZXIoaW5kZXgpO1xuICAgIHBhcnNlRmlsZUhlYWRlcihpbmRleCk7XG5cbiAgICAvLyBQYXJzZSBodW5rc1xuICAgIGluZGV4Lmh1bmtzID0gW107XG5cbiAgICB3aGlsZSAoaSA8IGRpZmZzdHIubGVuZ3RoKSB7XG4gICAgICBsZXQgbGluZSA9IGRpZmZzdHJbaV07XG5cbiAgICAgIGlmICgvXihJbmRleDp8ZGlmZnxcXC1cXC1cXC18XFwrXFwrXFwrKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH0gZWxzZSBpZiAoL15AQC8udGVzdChsaW5lKSkge1xuICAgICAgICBpbmRleC5odW5rcy5wdXNoKHBhcnNlSHVuaygpKTtcbiAgICAgIH0gZWxzZSBpZiAobGluZSAmJiBvcHRpb25zLnN0cmljdCkge1xuICAgICAgICAvLyBJZ25vcmUgdW5leHBlY3RlZCBjb250ZW50IHVubGVzcyBpbiBzdHJpY3QgbW9kZVxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1Vua25vd24gbGluZSAnICsgKGkgKyAxKSArICcgJyArIEpTT04uc3RyaW5naWZ5KGxpbmUpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGkrKztcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBQYXJzZXMgdGhlIC0tLSBhbmQgKysrIGhlYWRlcnMsIGlmIG5vbmUgYXJlIGZvdW5kLCBubyBsaW5lc1xuICAvLyBhcmUgY29uc3VtZWQuXG4gIGZ1bmN0aW9uIHBhcnNlRmlsZUhlYWRlcihpbmRleCkge1xuICAgIGNvbnN0IGZpbGVIZWFkZXIgPSAoL14oLS0tfFxcK1xcK1xcKylcXHMrKC4qKSQvKS5leGVjKGRpZmZzdHJbaV0pO1xuICAgIGlmIChmaWxlSGVhZGVyKSB7XG4gICAgICBsZXQga2V5UHJlZml4ID0gZmlsZUhlYWRlclsxXSA9PT0gJy0tLScgPyAnb2xkJyA6ICduZXcnO1xuICAgICAgY29uc3QgZGF0YSA9IGZpbGVIZWFkZXJbMl0uc3BsaXQoJ1xcdCcsIDIpO1xuICAgICAgbGV0IGZpbGVOYW1lID0gZGF0YVswXS5yZXBsYWNlKC9cXFxcXFxcXC9nLCAnXFxcXCcpO1xuICAgICAgaWYgKC9eXCIuKlwiJC8udGVzdChmaWxlTmFtZSkpIHtcbiAgICAgICAgZmlsZU5hbWUgPSBmaWxlTmFtZS5zdWJzdHIoMSwgZmlsZU5hbWUubGVuZ3RoIC0gMik7XG4gICAgICB9XG4gICAgICBpbmRleFtrZXlQcmVmaXggKyAnRmlsZU5hbWUnXSA9IGZpbGVOYW1lO1xuICAgICAgaW5kZXhba2V5UHJlZml4ICsgJ0hlYWRlciddID0gKGRhdGFbMV0gfHwgJycpLnRyaW0oKTtcblxuICAgICAgaSsrO1xuICAgIH1cbiAgfVxuXG4gIC8vIFBhcnNlcyBhIGh1bmtcbiAgLy8gVGhpcyBhc3N1bWVzIHRoYXQgd2UgYXJlIGF0IHRoZSBzdGFydCBvZiBhIGh1bmsuXG4gIGZ1bmN0aW9uIHBhcnNlSHVuaygpIHtcbiAgICBsZXQgY2h1bmtIZWFkZXJJbmRleCA9IGksXG4gICAgICAgIGNodW5rSGVhZGVyTGluZSA9IGRpZmZzdHJbaSsrXSxcbiAgICAgICAgY2h1bmtIZWFkZXIgPSBjaHVua0hlYWRlckxpbmUuc3BsaXQoL0BAIC0oXFxkKykoPzosKFxcZCspKT8gXFwrKFxcZCspKD86LChcXGQrKSk/IEBALyk7XG5cbiAgICBsZXQgaHVuayA9IHtcbiAgICAgIG9sZFN0YXJ0OiArY2h1bmtIZWFkZXJbMV0sXG4gICAgICBvbGRMaW5lczogK2NodW5rSGVhZGVyWzJdIHx8IDEsXG4gICAgICBuZXdTdGFydDogK2NodW5rSGVhZGVyWzNdLFxuICAgICAgbmV3TGluZXM6ICtjaHVua0hlYWRlcls0XSB8fCAxLFxuICAgICAgbGluZXM6IFtdLFxuICAgICAgbGluZWRlbGltaXRlcnM6IFtdXG4gICAgfTtcblxuICAgIGxldCBhZGRDb3VudCA9IDAsXG4gICAgICAgIHJlbW92ZUNvdW50ID0gMDtcbiAgICBmb3IgKDsgaSA8IGRpZmZzdHIubGVuZ3RoOyBpKyspIHtcbiAgICAgIC8vIExpbmVzIHN0YXJ0aW5nIHdpdGggJy0tLScgY291bGQgYmUgbWlzdGFrZW4gZm9yIHRoZSBcInJlbW92ZSBsaW5lXCIgb3BlcmF0aW9uXG4gICAgICAvLyBCdXQgdGhleSBjb3VsZCBiZSB0aGUgaGVhZGVyIGZvciB0aGUgbmV4dCBmaWxlLiBUaGVyZWZvcmUgcHJ1bmUgc3VjaCBjYXNlcyBvdXQuXG4gICAgICBpZiAoZGlmZnN0cltpXS5pbmRleE9mKCctLS0gJykgPT09IDBcbiAgICAgICAgICAgICYmIChpICsgMiA8IGRpZmZzdHIubGVuZ3RoKVxuICAgICAgICAgICAgJiYgZGlmZnN0cltpICsgMV0uaW5kZXhPZignKysrICcpID09PSAwXG4gICAgICAgICAgICAmJiBkaWZmc3RyW2kgKyAyXS5pbmRleE9mKCdAQCcpID09PSAwKSB7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICB9XG4gICAgICBsZXQgb3BlcmF0aW9uID0gKGRpZmZzdHJbaV0ubGVuZ3RoID09IDAgJiYgaSAhPSAoZGlmZnN0ci5sZW5ndGggLSAxKSkgPyAnICcgOiBkaWZmc3RyW2ldWzBdO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnKycgfHwgb3BlcmF0aW9uID09PSAnLScgfHwgb3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnXFxcXCcpIHtcbiAgICAgICAgaHVuay5saW5lcy5wdXNoKGRpZmZzdHJbaV0pO1xuICAgICAgICBodW5rLmxpbmVkZWxpbWl0ZXJzLnB1c2goZGVsaW1pdGVyc1tpXSB8fCAnXFxuJyk7XG5cbiAgICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgICAgYWRkQ291bnQrKztcbiAgICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH0gZWxzZSBpZiAob3BlcmF0aW9uID09PSAnICcpIHtcbiAgICAgICAgICBhZGRDb3VudCsrO1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEhhbmRsZSB0aGUgZW1wdHkgYmxvY2sgY291bnQgY2FzZVxuICAgIGlmICghYWRkQ291bnQgJiYgaHVuay5uZXdMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5uZXdMaW5lcyA9IDA7XG4gICAgfVxuICAgIGlmICghcmVtb3ZlQ291bnQgJiYgaHVuay5vbGRMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5vbGRMaW5lcyA9IDA7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybSBvcHRpb25hbCBzYW5pdHkgY2hlY2tpbmdcbiAgICBpZiAob3B0aW9ucy5zdHJpY3QpIHtcbiAgICAgIGlmIChhZGRDb3VudCAhPT0gaHVuay5uZXdMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0FkZGVkIGxpbmUgY291bnQgZGlkIG5vdCBtYXRjaCBmb3IgaHVuayBhdCBsaW5lICcgKyAoY2h1bmtIZWFkZXJJbmRleCArIDEpKTtcbiAgICAgIH1cbiAgICAgIGlmIChyZW1vdmVDb3VudCAhPT0gaHVuay5vbGRMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1JlbW92ZWQgbGluZSBjb3VudCBkaWQgbm90IG1hdGNoIGZvciBodW5rIGF0IGxpbmUgJyArIChjaHVua0hlYWRlckluZGV4ICsgMSkpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBodW5rO1xuICB9XG5cbiAgd2hpbGUgKGkgPCBkaWZmc3RyLmxlbmd0aCkge1xuICAgIHBhcnNlSW5kZXgoKTtcbiAgfVxuXG4gIHJldHVybiBsaXN0O1xufVxuIl19 - - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/"use strict"; - - exports.__esModule = true; - - exports["default"] = /*istanbul ignore end*/function (start, minLine, maxLine) { - var wantForward = true, - backwardExhausted = false, - forwardExhausted = false, - localOffset = 1; - - return function iterator() { - if (wantForward && !forwardExhausted) { - if (backwardExhausted) { - localOffset++; - } else { - wantForward = false; - } - - // Check if trying to fit beyond text length, and if not, check it fits - // after offset location (or desired location on first iteration) - if (start + localOffset <= maxLine) { - return localOffset; - } - - forwardExhausted = true; - } - - if (!backwardExhausted) { - if (!forwardExhausted) { - wantForward = true; - } - - // Check if trying to fit before text beginning, and if not, check it fits - // before offset location - if (minLine <= start - localOffset) { - return -localOffset++; - } - - backwardExhausted = true; - return iterator(); - } - - // We tried to fit hunk before text beginning and beyond text length, then - // hunk can't fit on the text. Return undefined - }; - }; - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yLmpzIl0sIm5hbWVzIjpbInN0YXJ0IiwibWluTGluZSIsIm1heExpbmUiLCJ3YW50Rm9yd2FyZCIsImJhY2t3YXJkRXhoYXVzdGVkIiwiZm9yd2FyZEV4aGF1c3RlZCIsImxvY2FsT2Zmc2V0IiwiaXRlcmF0b3IiXSwibWFwcGluZ3MiOiI7Ozs7NENBR2UsVUFBU0EsS0FBVCxFQUFnQkMsT0FBaEIsRUFBeUJDLE9BQXpCLEVBQWtDO0FBQy9DLE1BQUlDLGNBQWMsSUFBbEI7QUFBQSxNQUNJQyxvQkFBb0IsS0FEeEI7QUFBQSxNQUVJQyxtQkFBbUIsS0FGdkI7QUFBQSxNQUdJQyxjQUFjLENBSGxCOztBQUtBLFNBQU8sU0FBU0MsUUFBVCxHQUFvQjtBQUN6QixRQUFJSixlQUFlLENBQUNFLGdCQUFwQixFQUFzQztBQUNwQyxVQUFJRCxpQkFBSixFQUF1QjtBQUNyQkU7QUFDRCxPQUZELE1BRU87QUFDTEgsc0JBQWMsS0FBZDtBQUNEOztBQUVEO0FBQ0E7QUFDQSxVQUFJSCxRQUFRTSxXQUFSLElBQXVCSixPQUEzQixFQUFvQztBQUNsQyxlQUFPSSxXQUFQO0FBQ0Q7O0FBRURELHlCQUFtQixJQUFuQjtBQUNEOztBQUVELFFBQUksQ0FBQ0QsaUJBQUwsRUFBd0I7QUFDdEIsVUFBSSxDQUFDQyxnQkFBTCxFQUF1QjtBQUNyQkYsc0JBQWMsSUFBZDtBQUNEOztBQUVEO0FBQ0E7QUFDQSxVQUFJRixXQUFXRCxRQUFRTSxXQUF2QixFQUFvQztBQUNsQyxlQUFPLENBQUNBLGFBQVI7QUFDRDs7QUFFREYsMEJBQW9CLElBQXBCO0FBQ0EsYUFBT0csVUFBUDtBQUNEOztBQUVEO0FBQ0E7QUFDRCxHQWxDRDtBQW1DRCxDIiwiZmlsZSI6ImRpc3RhbmNlLWl0ZXJhdG9yLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gSXRlcmF0b3IgdGhhdCB0cmF2ZXJzZXMgaW4gdGhlIHJhbmdlIG9mIFttaW4sIG1heF0sIHN0ZXBwaW5nXG4vLyBieSBkaXN0YW5jZSBmcm9tIGEgZ2l2ZW4gc3RhcnQgcG9zaXRpb24uIEkuZS4gZm9yIFswLCA0XSwgd2l0aFxuLy8gc3RhcnQgb2YgMiwgdGhpcyB3aWxsIGl0ZXJhdGUgMiwgMywgMSwgNCwgMC5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKHN0YXJ0LCBtaW5MaW5lLCBtYXhMaW5lKSB7XG4gIGxldCB3YW50Rm9yd2FyZCA9IHRydWUsXG4gICAgICBiYWNrd2FyZEV4aGF1c3RlZCA9IGZhbHNlLFxuICAgICAgZm9yd2FyZEV4aGF1c3RlZCA9IGZhbHNlLFxuICAgICAgbG9jYWxPZmZzZXQgPSAxO1xuXG4gIHJldHVybiBmdW5jdGlvbiBpdGVyYXRvcigpIHtcbiAgICBpZiAod2FudEZvcndhcmQgJiYgIWZvcndhcmRFeGhhdXN0ZWQpIHtcbiAgICAgIGlmIChiYWNrd2FyZEV4aGF1c3RlZCkge1xuICAgICAgICBsb2NhbE9mZnNldCsrO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgd2FudEZvcndhcmQgPSBmYWxzZTtcbiAgICAgIH1cblxuICAgICAgLy8gQ2hlY2sgaWYgdHJ5aW5nIHRvIGZpdCBiZXlvbmQgdGV4dCBsZW5ndGgsIGFuZCBpZiBub3QsIGNoZWNrIGl0IGZpdHNcbiAgICAgIC8vIGFmdGVyIG9mZnNldCBsb2NhdGlvbiAob3IgZGVzaXJlZCBsb2NhdGlvbiBvbiBmaXJzdCBpdGVyYXRpb24pXG4gICAgICBpZiAoc3RhcnQgKyBsb2NhbE9mZnNldCA8PSBtYXhMaW5lKSB7XG4gICAgICAgIHJldHVybiBsb2NhbE9mZnNldDtcbiAgICAgIH1cblxuICAgICAgZm9yd2FyZEV4aGF1c3RlZCA9IHRydWU7XG4gICAgfVxuXG4gICAgaWYgKCFiYWNrd2FyZEV4aGF1c3RlZCkge1xuICAgICAgaWYgKCFmb3J3YXJkRXhoYXVzdGVkKSB7XG4gICAgICAgIHdhbnRGb3J3YXJkID0gdHJ1ZTtcbiAgICAgIH1cblxuICAgICAgLy8gQ2hlY2sgaWYgdHJ5aW5nIHRvIGZpdCBiZWZvcmUgdGV4dCBiZWdpbm5pbmcsIGFuZCBpZiBub3QsIGNoZWNrIGl0IGZpdHNcbiAgICAgIC8vIGJlZm9yZSBvZmZzZXQgbG9jYXRpb25cbiAgICAgIGlmIChtaW5MaW5lIDw9IHN0YXJ0IC0gbG9jYWxPZmZzZXQpIHtcbiAgICAgICAgcmV0dXJuIC1sb2NhbE9mZnNldCsrO1xuICAgICAgfVxuXG4gICAgICBiYWNrd2FyZEV4aGF1c3RlZCA9IHRydWU7XG4gICAgICByZXR1cm4gaXRlcmF0b3IoKTtcbiAgICB9XG5cbiAgICAvLyBXZSB0cmllZCB0byBmaXQgaHVuayBiZWZvcmUgdGV4dCBiZWdpbm5pbmcgYW5kIGJleW9uZCB0ZXh0IGxlbmd0aCwgdGhlblxuICAgIC8vIGh1bmsgY2FuJ3QgZml0IG9uIHRoZSB0ZXh0LiBSZXR1cm4gdW5kZWZpbmVkXG4gIH07XG59XG4iXX0= - - -/***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/calcLineCount = calcLineCount; - /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = merge; - - var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_array = __webpack_require__(15) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - /*istanbul ignore end*/function calcLineCount(hunk) { - /*istanbul ignore start*/var _calcOldNewLineCount = /*istanbul ignore end*/calcOldNewLineCount(hunk.lines), - oldLines = _calcOldNewLineCount.oldLines, - newLines = _calcOldNewLineCount.newLines; - - if (oldLines !== undefined) { - hunk.oldLines = oldLines; - } else { - delete hunk.oldLines; - } - - if (newLines !== undefined) { - hunk.newLines = newLines; - } else { - delete hunk.newLines; - } - } - - function merge(mine, theirs, base) { - mine = loadPatch(mine, base); - theirs = loadPatch(theirs, base); - - var ret = {}; - - // For index we just let it pass through as it doesn't have any necessary meaning. - // Leaving sanity checks on this to the API consumer that may know more about the - // meaning in their own context. - if (mine.index || theirs.index) { - ret.index = mine.index || theirs.index; - } - - if (mine.newFileName || theirs.newFileName) { - if (!fileNameChanged(mine)) { - // No header or no change in ours, use theirs (and ours if theirs does not exist) - ret.oldFileName = theirs.oldFileName || mine.oldFileName; - ret.newFileName = theirs.newFileName || mine.newFileName; - ret.oldHeader = theirs.oldHeader || mine.oldHeader; - ret.newHeader = theirs.newHeader || mine.newHeader; - } else if (!fileNameChanged(theirs)) { - // No header or no change in theirs, use ours - ret.oldFileName = mine.oldFileName; - ret.newFileName = mine.newFileName; - ret.oldHeader = mine.oldHeader; - ret.newHeader = mine.newHeader; - } else { - // Both changed... figure it out - ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName); - ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName); - ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader); - ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader); - } - } - - ret.hunks = []; - - var mineIndex = 0, - theirsIndex = 0, - mineOffset = 0, - theirsOffset = 0; - - while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) { - var mineCurrent = mine.hunks[mineIndex] || { oldStart: Infinity }, - theirsCurrent = theirs.hunks[theirsIndex] || { oldStart: Infinity }; - - if (hunkBefore(mineCurrent, theirsCurrent)) { - // This patch does not overlap with any of the others, yay. - ret.hunks.push(cloneHunk(mineCurrent, mineOffset)); - mineIndex++; - theirsOffset += mineCurrent.newLines - mineCurrent.oldLines; - } else if (hunkBefore(theirsCurrent, mineCurrent)) { - // This patch does not overlap with any of the others, yay. - ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset)); - theirsIndex++; - mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines; - } else { - // Overlap, merge as best we can - var mergedHunk = { - oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart), - oldLines: 0, - newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset), - newLines: 0, - lines: [] - }; - mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines); - theirsIndex++; - mineIndex++; - - ret.hunks.push(mergedHunk); - } - } - - return ret; - } - - function loadPatch(param, base) { - if (typeof param === 'string') { - if (/^@@/m.test(param) || /^Index:/m.test(param)) { - return (/*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(param)[0] - ); - } - - if (!base) { - throw new Error('Must provide a base reference or pass in a patch'); - } - return (/*istanbul ignore start*/(0, _create.structuredPatch) /*istanbul ignore end*/(undefined, undefined, base, param) - ); - } - - return param; - } - - function fileNameChanged(patch) { - return patch.newFileName && patch.newFileName !== patch.oldFileName; - } - - function selectField(index, mine, theirs) { - if (mine === theirs) { - return mine; - } else { - index.conflict = true; - return { mine: mine, theirs: theirs }; - } - } - - function hunkBefore(test, check) { - return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart; - } - - function cloneHunk(hunk, offset) { - return { - oldStart: hunk.oldStart, oldLines: hunk.oldLines, - newStart: hunk.newStart + offset, newLines: hunk.newLines, - lines: hunk.lines - }; - } - - function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) { - // This will generally result in a conflicted hunk, but there are cases where the context - // is the only overlap where we can successfully merge the content here. - var mine = { offset: mineOffset, lines: mineLines, index: 0 }, - their = { offset: theirOffset, lines: theirLines, index: 0 }; - - // Handle any leading content - insertLeading(hunk, mine, their); - insertLeading(hunk, their, mine); - - // Now in the overlap content. Scan through and select the best changes from each. - while (mine.index < mine.lines.length && their.index < their.lines.length) { - var mineCurrent = mine.lines[mine.index], - theirCurrent = their.lines[their.index]; - - if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) { - // Both modified ... - mutualChange(hunk, mine, their); - } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') { - /*istanbul ignore start*/var _hunk$lines; - - /*istanbul ignore end*/ // Mine inserted - /*istanbul ignore start*/(_hunk$lines = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(mine))); - } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') { - /*istanbul ignore start*/var _hunk$lines2; - - /*istanbul ignore end*/ // Theirs inserted - /*istanbul ignore start*/(_hunk$lines2 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(their))); - } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') { - // Mine removed or edited - removal(hunk, mine, their); - } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') { - // Their removed or edited - removal(hunk, their, mine, true); - } else if (mineCurrent === theirCurrent) { - // Context identity - hunk.lines.push(mineCurrent); - mine.index++; - their.index++; - } else { - // Context mismatch - conflict(hunk, collectChange(mine), collectChange(their)); - } - } - - // Now push anything that may be remaining - insertTrailing(hunk, mine); - insertTrailing(hunk, their); - - calcLineCount(hunk); - } - - function mutualChange(hunk, mine, their) { - var myChanges = collectChange(mine), - theirChanges = collectChange(their); - - if (allRemoves(myChanges) && allRemoves(theirChanges)) { - // Special case for remove changes that are supersets of one another - if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) { - /*istanbul ignore start*/var _hunk$lines3; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines3 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges)); - return; - } else if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) { - /*istanbul ignore start*/var _hunk$lines4; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines4 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines4 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges)); - return; - } - } else if ( /*istanbul ignore start*/(0, _array.arrayEqual) /*istanbul ignore end*/(myChanges, theirChanges)) { - /*istanbul ignore start*/var _hunk$lines5; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines5 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines5 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges)); - return; - } - - conflict(hunk, myChanges, theirChanges); - } - - function removal(hunk, mine, their, swap) { - var myChanges = collectChange(mine), - theirChanges = collectContext(their, myChanges); - if (theirChanges.merged) { - /*istanbul ignore start*/var _hunk$lines6; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines6 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines6 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges.merged)); - } else { - conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges); - } - } - - function conflict(hunk, mine, their) { - hunk.conflict = true; - hunk.lines.push({ - conflict: true, - mine: mine, - theirs: their - }); - } - - function insertLeading(hunk, insert, their) { - while (insert.offset < their.offset && insert.index < insert.lines.length) { - var line = insert.lines[insert.index++]; - hunk.lines.push(line); - insert.offset++; - } - } - function insertTrailing(hunk, insert) { - while (insert.index < insert.lines.length) { - var line = insert.lines[insert.index++]; - hunk.lines.push(line); - } - } - - function collectChange(state) { - var ret = [], - operation = state.lines[state.index][0]; - while (state.index < state.lines.length) { - var line = state.lines[state.index]; - - // Group additions that are immediately after subtractions and treat them as one "atomic" modify change. - if (operation === '-' && line[0] === '+') { - operation = '+'; - } - - if (operation === line[0]) { - ret.push(line); - state.index++; - } else { - break; - } - } - - return ret; - } - function collectContext(state, matchChanges) { - var changes = [], - merged = [], - matchIndex = 0, - contextChanges = false, - conflicted = false; - while (matchIndex < matchChanges.length && state.index < state.lines.length) { - var change = state.lines[state.index], - match = matchChanges[matchIndex]; - - // Once we've hit our add, then we are done - if (match[0] === '+') { - break; - } - - contextChanges = contextChanges || change[0] !== ' '; - - merged.push(match); - matchIndex++; - - // Consume any additions in the other block as a conflict to attempt - // to pull in the remaining context after this - if (change[0] === '+') { - conflicted = true; - - while (change[0] === '+') { - changes.push(change); - change = state.lines[++state.index]; - } - } - - if (match.substr(1) === change.substr(1)) { - changes.push(change); - state.index++; - } else { - conflicted = true; - } - } - - if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) { - conflicted = true; - } - - if (conflicted) { - return changes; - } - - while (matchIndex < matchChanges.length) { - merged.push(matchChanges[matchIndex++]); - } - - return { - merged: merged, - changes: changes - }; - } - - function allRemoves(changes) { - return changes.reduce(function (prev, change) { - return prev && change[0] === '-'; - }, true); - } - function skipRemoveSuperset(state, removeChanges, delta) { - for (var i = 0; i < delta; i++) { - var changeContent = removeChanges[removeChanges.length - delta + i].substr(1); - if (state.lines[state.index + i] !== ' ' + changeContent) { - return false; - } - } - - state.index += delta; - return true; - } - - function calcOldNewLineCount(lines) { - var oldLines = 0; - var newLines = 0; - - lines.forEach(function (line) { - if (typeof line !== 'string') { - var myCount = calcOldNewLineCount(line.mine); - var theirCount = calcOldNewLineCount(line.theirs); - - if (oldLines !== undefined) { - if (myCount.oldLines === theirCount.oldLines) { - oldLines += myCount.oldLines; - } else { - oldLines = undefined; - } - } - - if (newLines !== undefined) { - if (myCount.newLines === theirCount.newLines) { - newLines += myCount.newLines; - } else { - newLines = undefined; - } - } - } else { - if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) { - newLines++; - } - if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) { - oldLines++; - } - } - }); - - return { oldLines: oldLines, newLines: newLines }; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9tZXJnZS5qcyJdLCJuYW1lcyI6WyJjYWxjTGluZUNvdW50IiwibWVyZ2UiLCJodW5rIiwiY2FsY09sZE5ld0xpbmVDb3VudCIsImxpbmVzIiwib2xkTGluZXMiLCJuZXdMaW5lcyIsInVuZGVmaW5lZCIsIm1pbmUiLCJ0aGVpcnMiLCJiYXNlIiwibG9hZFBhdGNoIiwicmV0IiwiaW5kZXgiLCJuZXdGaWxlTmFtZSIsImZpbGVOYW1lQ2hhbmdlZCIsIm9sZEZpbGVOYW1lIiwib2xkSGVhZGVyIiwibmV3SGVhZGVyIiwic2VsZWN0RmllbGQiLCJodW5rcyIsIm1pbmVJbmRleCIsInRoZWlyc0luZGV4IiwibWluZU9mZnNldCIsInRoZWlyc09mZnNldCIsImxlbmd0aCIsIm1pbmVDdXJyZW50Iiwib2xkU3RhcnQiLCJJbmZpbml0eSIsInRoZWlyc0N1cnJlbnQiLCJodW5rQmVmb3JlIiwicHVzaCIsImNsb25lSHVuayIsIm1lcmdlZEh1bmsiLCJNYXRoIiwibWluIiwibmV3U3RhcnQiLCJtZXJnZUxpbmVzIiwicGFyYW0iLCJ0ZXN0IiwiRXJyb3IiLCJwYXRjaCIsImNvbmZsaWN0IiwiY2hlY2siLCJvZmZzZXQiLCJtaW5lTGluZXMiLCJ0aGVpck9mZnNldCIsInRoZWlyTGluZXMiLCJ0aGVpciIsImluc2VydExlYWRpbmciLCJ0aGVpckN1cnJlbnQiLCJtdXR1YWxDaGFuZ2UiLCJjb2xsZWN0Q2hhbmdlIiwicmVtb3ZhbCIsImluc2VydFRyYWlsaW5nIiwibXlDaGFuZ2VzIiwidGhlaXJDaGFuZ2VzIiwiYWxsUmVtb3ZlcyIsInNraXBSZW1vdmVTdXBlcnNldCIsInN3YXAiLCJjb2xsZWN0Q29udGV4dCIsIm1lcmdlZCIsImluc2VydCIsImxpbmUiLCJzdGF0ZSIsIm9wZXJhdGlvbiIsIm1hdGNoQ2hhbmdlcyIsImNoYW5nZXMiLCJtYXRjaEluZGV4IiwiY29udGV4dENoYW5nZXMiLCJjb25mbGljdGVkIiwiY2hhbmdlIiwibWF0Y2giLCJzdWJzdHIiLCJyZWR1Y2UiLCJwcmV2IiwicmVtb3ZlQ2hhbmdlcyIsImRlbHRhIiwiaSIsImNoYW5nZUNvbnRlbnQiLCJmb3JFYWNoIiwibXlDb3VudCIsInRoZWlyQ291bnQiXSwibWFwcGluZ3MiOiI7OztnQ0FLZ0JBLGEsR0FBQUEsYTt5REFnQkFDLEssR0FBQUEsSzs7QUFyQmhCOztBQUNBOztBQUVBOzs7O3VCQUVPLFNBQVNELGFBQVQsQ0FBdUJFLElBQXZCLEVBQTZCO0FBQUEsNkVBQ0xDLG9CQUFvQkQsS0FBS0UsS0FBekIsQ0FESztBQUFBLE1BQzNCQyxRQUQyQix3QkFDM0JBLFFBRDJCO0FBQUEsTUFDakJDLFFBRGlCLHdCQUNqQkEsUUFEaUI7O0FBR2xDLE1BQUlELGFBQWFFLFNBQWpCLEVBQTRCO0FBQzFCTCxTQUFLRyxRQUFMLEdBQWdCQSxRQUFoQjtBQUNELEdBRkQsTUFFTztBQUNMLFdBQU9ILEtBQUtHLFFBQVo7QUFDRDs7QUFFRCxNQUFJQyxhQUFhQyxTQUFqQixFQUE0QjtBQUMxQkwsU0FBS0ksUUFBTCxHQUFnQkEsUUFBaEI7QUFDRCxHQUZELE1BRU87QUFDTCxXQUFPSixLQUFLSSxRQUFaO0FBQ0Q7QUFDRjs7QUFFTSxTQUFTTCxLQUFULENBQWVPLElBQWYsRUFBcUJDLE1BQXJCLEVBQTZCQyxJQUE3QixFQUFtQztBQUN4Q0YsU0FBT0csVUFBVUgsSUFBVixFQUFnQkUsSUFBaEIsQ0FBUDtBQUNBRCxXQUFTRSxVQUFVRixNQUFWLEVBQWtCQyxJQUFsQixDQUFUOztBQUVBLE1BQUlFLE1BQU0sRUFBVjs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxNQUFJSixLQUFLSyxLQUFMLElBQWNKLE9BQU9JLEtBQXpCLEVBQWdDO0FBQzlCRCxRQUFJQyxLQUFKLEdBQVlMLEtBQUtLLEtBQUwsSUFBY0osT0FBT0ksS0FBakM7QUFDRDs7QUFFRCxNQUFJTCxLQUFLTSxXQUFMLElBQW9CTCxPQUFPSyxXQUEvQixFQUE0QztBQUMxQyxRQUFJLENBQUNDLGdCQUFnQlAsSUFBaEIsQ0FBTCxFQUE0QjtBQUMxQjtBQUNBSSxVQUFJSSxXQUFKLEdBQWtCUCxPQUFPTyxXQUFQLElBQXNCUixLQUFLUSxXQUE3QztBQUNBSixVQUFJRSxXQUFKLEdBQWtCTCxPQUFPSyxXQUFQLElBQXNCTixLQUFLTSxXQUE3QztBQUNBRixVQUFJSyxTQUFKLEdBQWdCUixPQUFPUSxTQUFQLElBQW9CVCxLQUFLUyxTQUF6QztBQUNBTCxVQUFJTSxTQUFKLEdBQWdCVCxPQUFPUyxTQUFQLElBQW9CVixLQUFLVSxTQUF6QztBQUNELEtBTkQsTUFNTyxJQUFJLENBQUNILGdCQUFnQk4sTUFBaEIsQ0FBTCxFQUE4QjtBQUNuQztBQUNBRyxVQUFJSSxXQUFKLEdBQWtCUixLQUFLUSxXQUF2QjtBQUNBSixVQUFJRSxXQUFKLEdBQWtCTixLQUFLTSxXQUF2QjtBQUNBRixVQUFJSyxTQUFKLEdBQWdCVCxLQUFLUyxTQUFyQjtBQUNBTCxVQUFJTSxTQUFKLEdBQWdCVixLQUFLVSxTQUFyQjtBQUNELEtBTk0sTUFNQTtBQUNMO0FBQ0FOLFVBQUlJLFdBQUosR0FBa0JHLFlBQVlQLEdBQVosRUFBaUJKLEtBQUtRLFdBQXRCLEVBQW1DUCxPQUFPTyxXQUExQyxDQUFsQjtBQUNBSixVQUFJRSxXQUFKLEdBQWtCSyxZQUFZUCxHQUFaLEVBQWlCSixLQUFLTSxXQUF0QixFQUFtQ0wsT0FBT0ssV0FBMUMsQ0FBbEI7QUFDQUYsVUFBSUssU0FBSixHQUFnQkUsWUFBWVAsR0FBWixFQUFpQkosS0FBS1MsU0FBdEIsRUFBaUNSLE9BQU9RLFNBQXhDLENBQWhCO0FBQ0FMLFVBQUlNLFNBQUosR0FBZ0JDLFlBQVlQLEdBQVosRUFBaUJKLEtBQUtVLFNBQXRCLEVBQWlDVCxPQUFPUyxTQUF4QyxDQUFoQjtBQUNEO0FBQ0Y7O0FBRUROLE1BQUlRLEtBQUosR0FBWSxFQUFaOztBQUVBLE1BQUlDLFlBQVksQ0FBaEI7QUFBQSxNQUNJQyxjQUFjLENBRGxCO0FBQUEsTUFFSUMsYUFBYSxDQUZqQjtBQUFBLE1BR0lDLGVBQWUsQ0FIbkI7O0FBS0EsU0FBT0gsWUFBWWIsS0FBS1ksS0FBTCxDQUFXSyxNQUF2QixJQUFpQ0gsY0FBY2IsT0FBT1csS0FBUCxDQUFhSyxNQUFuRSxFQUEyRTtBQUN6RSxRQUFJQyxjQUFjbEIsS0FBS1ksS0FBTCxDQUFXQyxTQUFYLEtBQXlCLEVBQUNNLFVBQVVDLFFBQVgsRUFBM0M7QUFBQSxRQUNJQyxnQkFBZ0JwQixPQUFPVyxLQUFQLENBQWFFLFdBQWIsS0FBNkIsRUFBQ0ssVUFBVUMsUUFBWCxFQURqRDs7QUFHQSxRQUFJRSxXQUFXSixXQUFYLEVBQXdCRyxhQUF4QixDQUFKLEVBQTRDO0FBQzFDO0FBQ0FqQixVQUFJUSxLQUFKLENBQVVXLElBQVYsQ0FBZUMsVUFBVU4sV0FBVixFQUF1QkgsVUFBdkIsQ0FBZjtBQUNBRjtBQUNBRyxzQkFBZ0JFLFlBQVlwQixRQUFaLEdBQXVCb0IsWUFBWXJCLFFBQW5EO0FBQ0QsS0FMRCxNQUtPLElBQUl5QixXQUFXRCxhQUFYLEVBQTBCSCxXQUExQixDQUFKLEVBQTRDO0FBQ2pEO0FBQ0FkLFVBQUlRLEtBQUosQ0FBVVcsSUFBVixDQUFlQyxVQUFVSCxhQUFWLEVBQXlCTCxZQUF6QixDQUFmO0FBQ0FGO0FBQ0FDLG9CQUFjTSxjQUFjdkIsUUFBZCxHQUF5QnVCLGNBQWN4QixRQUFyRDtBQUNELEtBTE0sTUFLQTtBQUNMO0FBQ0EsVUFBSTRCLGFBQWE7QUFDZk4sa0JBQVVPLEtBQUtDLEdBQUwsQ0FBU1QsWUFBWUMsUUFBckIsRUFBK0JFLGNBQWNGLFFBQTdDLENBREs7QUFFZnRCLGtCQUFVLENBRks7QUFHZitCLGtCQUFVRixLQUFLQyxHQUFMLENBQVNULFlBQVlVLFFBQVosR0FBdUJiLFVBQWhDLEVBQTRDTSxjQUFjRixRQUFkLEdBQXlCSCxZQUFyRSxDQUhLO0FBSWZsQixrQkFBVSxDQUpLO0FBS2ZGLGVBQU87QUFMUSxPQUFqQjtBQU9BaUMsaUJBQVdKLFVBQVgsRUFBdUJQLFlBQVlDLFFBQW5DLEVBQTZDRCxZQUFZdEIsS0FBekQsRUFBZ0V5QixjQUFjRixRQUE5RSxFQUF3RkUsY0FBY3pCLEtBQXRHO0FBQ0FrQjtBQUNBRDs7QUFFQVQsVUFBSVEsS0FBSixDQUFVVyxJQUFWLENBQWVFLFVBQWY7QUFDRDtBQUNGOztBQUVELFNBQU9yQixHQUFQO0FBQ0Q7O0FBRUQsU0FBU0QsU0FBVCxDQUFtQjJCLEtBQW5CLEVBQTBCNUIsSUFBMUIsRUFBZ0M7QUFDOUIsTUFBSSxPQUFPNEIsS0FBUCxLQUFpQixRQUFyQixFQUErQjtBQUM3QixRQUFJLE9BQU9DLElBQVAsQ0FBWUQsS0FBWixLQUF1QixXQUFXQyxJQUFYLENBQWdCRCxLQUFoQixDQUEzQixFQUFvRDtBQUNsRCxhQUFPLHlFQUFXQSxLQUFYLEVBQWtCLENBQWxCO0FBQVA7QUFDRDs7QUFFRCxRQUFJLENBQUM1QixJQUFMLEVBQVc7QUFDVCxZQUFNLElBQUk4QixLQUFKLENBQVUsa0RBQVYsQ0FBTjtBQUNEO0FBQ0QsV0FBTywrRUFBZ0JqQyxTQUFoQixFQUEyQkEsU0FBM0IsRUFBc0NHLElBQXRDLEVBQTRDNEIsS0FBNUM7QUFBUDtBQUNEOztBQUVELFNBQU9BLEtBQVA7QUFDRDs7QUFFRCxTQUFTdkIsZUFBVCxDQUF5QjBCLEtBQXpCLEVBQWdDO0FBQzlCLFNBQU9BLE1BQU0zQixXQUFOLElBQXFCMkIsTUFBTTNCLFdBQU4sS0FBc0IyQixNQUFNekIsV0FBeEQ7QUFDRDs7QUFFRCxTQUFTRyxXQUFULENBQXFCTixLQUFyQixFQUE0QkwsSUFBNUIsRUFBa0NDLE1BQWxDLEVBQTBDO0FBQ3hDLE1BQUlELFNBQVNDLE1BQWIsRUFBcUI7QUFDbkIsV0FBT0QsSUFBUDtBQUNELEdBRkQsTUFFTztBQUNMSyxVQUFNNkIsUUFBTixHQUFpQixJQUFqQjtBQUNBLFdBQU8sRUFBQ2xDLFVBQUQsRUFBT0MsY0FBUCxFQUFQO0FBQ0Q7QUFDRjs7QUFFRCxTQUFTcUIsVUFBVCxDQUFvQlMsSUFBcEIsRUFBMEJJLEtBQTFCLEVBQWlDO0FBQy9CLFNBQU9KLEtBQUtaLFFBQUwsR0FBZ0JnQixNQUFNaEIsUUFBdEIsSUFDRFksS0FBS1osUUFBTCxHQUFnQlksS0FBS2xDLFFBQXRCLEdBQWtDc0MsTUFBTWhCLFFBRDdDO0FBRUQ7O0FBRUQsU0FBU0ssU0FBVCxDQUFtQjlCLElBQW5CLEVBQXlCMEMsTUFBekIsRUFBaUM7QUFDL0IsU0FBTztBQUNMakIsY0FBVXpCLEtBQUt5QixRQURWLEVBQ29CdEIsVUFBVUgsS0FBS0csUUFEbkM7QUFFTCtCLGNBQVVsQyxLQUFLa0MsUUFBTCxHQUFnQlEsTUFGckIsRUFFNkJ0QyxVQUFVSixLQUFLSSxRQUY1QztBQUdMRixXQUFPRixLQUFLRTtBQUhQLEdBQVA7QUFLRDs7QUFFRCxTQUFTaUMsVUFBVCxDQUFvQm5DLElBQXBCLEVBQTBCcUIsVUFBMUIsRUFBc0NzQixTQUF0QyxFQUFpREMsV0FBakQsRUFBOERDLFVBQTlELEVBQTBFO0FBQ3hFO0FBQ0E7QUFDQSxNQUFJdkMsT0FBTyxFQUFDb0MsUUFBUXJCLFVBQVQsRUFBcUJuQixPQUFPeUMsU0FBNUIsRUFBdUNoQyxPQUFPLENBQTlDLEVBQVg7QUFBQSxNQUNJbUMsUUFBUSxFQUFDSixRQUFRRSxXQUFULEVBQXNCMUMsT0FBTzJDLFVBQTdCLEVBQXlDbEMsT0FBTyxDQUFoRCxFQURaOztBQUdBO0FBQ0FvQyxnQkFBYy9DLElBQWQsRUFBb0JNLElBQXBCLEVBQTBCd0MsS0FBMUI7QUFDQUMsZ0JBQWMvQyxJQUFkLEVBQW9COEMsS0FBcEIsRUFBMkJ4QyxJQUEzQjs7QUFFQTtBQUNBLFNBQU9BLEtBQUtLLEtBQUwsR0FBYUwsS0FBS0osS0FBTCxDQUFXcUIsTUFBeEIsSUFBa0N1QixNQUFNbkMsS0FBTixHQUFjbUMsTUFBTTVDLEtBQU4sQ0FBWXFCLE1BQW5FLEVBQTJFO0FBQ3pFLFFBQUlDLGNBQWNsQixLQUFLSixLQUFMLENBQVdJLEtBQUtLLEtBQWhCLENBQWxCO0FBQUEsUUFDSXFDLGVBQWVGLE1BQU01QyxLQUFOLENBQVk0QyxNQUFNbkMsS0FBbEIsQ0FEbkI7O0FBR0EsUUFBSSxDQUFDYSxZQUFZLENBQVosTUFBbUIsR0FBbkIsSUFBMEJBLFlBQVksQ0FBWixNQUFtQixHQUE5QyxNQUNJd0IsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCQSxhQUFhLENBQWIsTUFBb0IsR0FEbkQsQ0FBSixFQUM2RDtBQUMzRDtBQUNBQyxtQkFBYWpELElBQWIsRUFBbUJNLElBQW5CLEVBQXlCd0MsS0FBekI7QUFDRCxLQUpELE1BSU8sSUFBSXRCLFlBQVksQ0FBWixNQUFtQixHQUFuQixJQUEwQndCLGFBQWEsQ0FBYixNQUFvQixHQUFsRCxFQUF1RDtBQUFBOztBQUFBLDhCQUM1RDtBQUNBLDBFQUFLOUMsS0FBTCxFQUFXMkIsSUFBWCw0TEFBb0JxQixjQUFjNUMsSUFBZCxDQUFwQjtBQUNELEtBSE0sTUFHQSxJQUFJMEMsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCeEIsWUFBWSxDQUFaLE1BQW1CLEdBQWxELEVBQXVEO0FBQUE7O0FBQUEsOEJBQzVEO0FBQ0EsMkVBQUt0QixLQUFMLEVBQVcyQixJQUFYLDZMQUFvQnFCLGNBQWNKLEtBQWQsQ0FBcEI7QUFDRCxLQUhNLE1BR0EsSUFBSXRCLFlBQVksQ0FBWixNQUFtQixHQUFuQixJQUEwQndCLGFBQWEsQ0FBYixNQUFvQixHQUFsRCxFQUF1RDtBQUM1RDtBQUNBRyxjQUFRbkQsSUFBUixFQUFjTSxJQUFkLEVBQW9Cd0MsS0FBcEI7QUFDRCxLQUhNLE1BR0EsSUFBSUUsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCeEIsWUFBWSxDQUFaLE1BQW1CLEdBQWxELEVBQXVEO0FBQzVEO0FBQ0EyQixjQUFRbkQsSUFBUixFQUFjOEMsS0FBZCxFQUFxQnhDLElBQXJCLEVBQTJCLElBQTNCO0FBQ0QsS0FITSxNQUdBLElBQUlrQixnQkFBZ0J3QixZQUFwQixFQUFrQztBQUN2QztBQUNBaEQsV0FBS0UsS0FBTCxDQUFXMkIsSUFBWCxDQUFnQkwsV0FBaEI7QUFDQWxCLFdBQUtLLEtBQUw7QUFDQW1DLFlBQU1uQyxLQUFOO0FBQ0QsS0FMTSxNQUtBO0FBQ0w7QUFDQTZCLGVBQVN4QyxJQUFULEVBQWVrRCxjQUFjNUMsSUFBZCxDQUFmLEVBQW9DNEMsY0FBY0osS0FBZCxDQUFwQztBQUNEO0FBQ0Y7O0FBRUQ7QUFDQU0saUJBQWVwRCxJQUFmLEVBQXFCTSxJQUFyQjtBQUNBOEMsaUJBQWVwRCxJQUFmLEVBQXFCOEMsS0FBckI7O0FBRUFoRCxnQkFBY0UsSUFBZDtBQUNEOztBQUVELFNBQVNpRCxZQUFULENBQXNCakQsSUFBdEIsRUFBNEJNLElBQTVCLEVBQWtDd0MsS0FBbEMsRUFBeUM7QUFDdkMsTUFBSU8sWUFBWUgsY0FBYzVDLElBQWQsQ0FBaEI7QUFBQSxNQUNJZ0QsZUFBZUosY0FBY0osS0FBZCxDQURuQjs7QUFHQSxNQUFJUyxXQUFXRixTQUFYLEtBQXlCRSxXQUFXRCxZQUFYLENBQTdCLEVBQXVEO0FBQ3JEO0FBQ0EsUUFBSSw4RUFBZ0JELFNBQWhCLEVBQTJCQyxZQUEzQixLQUNHRSxtQkFBbUJWLEtBQW5CLEVBQTBCTyxTQUExQixFQUFxQ0EsVUFBVTlCLE1BQVYsR0FBbUIrQixhQUFhL0IsTUFBckUsQ0FEUCxFQUNxRjtBQUFBOztBQUFBLDZCQUNuRixzRUFBS3JCLEtBQUwsRUFBVzJCLElBQVgsNkxBQW9Cd0IsU0FBcEI7QUFDQTtBQUNELEtBSkQsTUFJTyxJQUFJLDhFQUFnQkMsWUFBaEIsRUFBOEJELFNBQTlCLEtBQ0pHLG1CQUFtQmxELElBQW5CLEVBQXlCZ0QsWUFBekIsRUFBdUNBLGFBQWEvQixNQUFiLEdBQXNCOEIsVUFBVTlCLE1BQXZFLENBREEsRUFDZ0Y7QUFBQTs7QUFBQSw2QkFDckYsc0VBQUtyQixLQUFMLEVBQVcyQixJQUFYLDZMQUFvQnlCLFlBQXBCO0FBQ0E7QUFDRDtBQUNGLEdBWEQsTUFXTyxJQUFJLHlFQUFXRCxTQUFYLEVBQXNCQyxZQUF0QixDQUFKLEVBQXlDO0FBQUE7O0FBQUEsMkJBQzlDLHNFQUFLcEQsS0FBTCxFQUFXMkIsSUFBWCw2TEFBb0J3QixTQUFwQjtBQUNBO0FBQ0Q7O0FBRURiLFdBQVN4QyxJQUFULEVBQWVxRCxTQUFmLEVBQTBCQyxZQUExQjtBQUNEOztBQUVELFNBQVNILE9BQVQsQ0FBaUJuRCxJQUFqQixFQUF1Qk0sSUFBdkIsRUFBNkJ3QyxLQUE3QixFQUFvQ1csSUFBcEMsRUFBMEM7QUFDeEMsTUFBSUosWUFBWUgsY0FBYzVDLElBQWQsQ0FBaEI7QUFBQSxNQUNJZ0QsZUFBZUksZUFBZVosS0FBZixFQUFzQk8sU0FBdEIsQ0FEbkI7QUFFQSxNQUFJQyxhQUFhSyxNQUFqQixFQUF5QjtBQUFBOztBQUFBLDJCQUN2QixzRUFBS3pELEtBQUwsRUFBVzJCLElBQVgsNkxBQW9CeUIsYUFBYUssTUFBakM7QUFDRCxHQUZELE1BRU87QUFDTG5CLGFBQVN4QyxJQUFULEVBQWV5RCxPQUFPSCxZQUFQLEdBQXNCRCxTQUFyQyxFQUFnREksT0FBT0osU0FBUCxHQUFtQkMsWUFBbkU7QUFDRDtBQUNGOztBQUVELFNBQVNkLFFBQVQsQ0FBa0J4QyxJQUFsQixFQUF3Qk0sSUFBeEIsRUFBOEJ3QyxLQUE5QixFQUFxQztBQUNuQzlDLE9BQUt3QyxRQUFMLEdBQWdCLElBQWhCO0FBQ0F4QyxPQUFLRSxLQUFMLENBQVcyQixJQUFYLENBQWdCO0FBQ2RXLGNBQVUsSUFESTtBQUVkbEMsVUFBTUEsSUFGUTtBQUdkQyxZQUFRdUM7QUFITSxHQUFoQjtBQUtEOztBQUVELFNBQVNDLGFBQVQsQ0FBdUIvQyxJQUF2QixFQUE2QjRELE1BQTdCLEVBQXFDZCxLQUFyQyxFQUE0QztBQUMxQyxTQUFPYyxPQUFPbEIsTUFBUCxHQUFnQkksTUFBTUosTUFBdEIsSUFBZ0NrQixPQUFPakQsS0FBUCxHQUFlaUQsT0FBTzFELEtBQVAsQ0FBYXFCLE1BQW5FLEVBQTJFO0FBQ3pFLFFBQUlzQyxPQUFPRCxPQUFPMUQsS0FBUCxDQUFhMEQsT0FBT2pELEtBQVAsRUFBYixDQUFYO0FBQ0FYLFNBQUtFLEtBQUwsQ0FBVzJCLElBQVgsQ0FBZ0JnQyxJQUFoQjtBQUNBRCxXQUFPbEIsTUFBUDtBQUNEO0FBQ0Y7QUFDRCxTQUFTVSxjQUFULENBQXdCcEQsSUFBeEIsRUFBOEI0RCxNQUE5QixFQUFzQztBQUNwQyxTQUFPQSxPQUFPakQsS0FBUCxHQUFlaUQsT0FBTzFELEtBQVAsQ0FBYXFCLE1BQW5DLEVBQTJDO0FBQ3pDLFFBQUlzQyxPQUFPRCxPQUFPMUQsS0FBUCxDQUFhMEQsT0FBT2pELEtBQVAsRUFBYixDQUFYO0FBQ0FYLFNBQUtFLEtBQUwsQ0FBVzJCLElBQVgsQ0FBZ0JnQyxJQUFoQjtBQUNEO0FBQ0Y7O0FBRUQsU0FBU1gsYUFBVCxDQUF1QlksS0FBdkIsRUFBOEI7QUFDNUIsTUFBSXBELE1BQU0sRUFBVjtBQUFBLE1BQ0lxRCxZQUFZRCxNQUFNNUQsS0FBTixDQUFZNEQsTUFBTW5ELEtBQWxCLEVBQXlCLENBQXpCLENBRGhCO0FBRUEsU0FBT21ELE1BQU1uRCxLQUFOLEdBQWNtRCxNQUFNNUQsS0FBTixDQUFZcUIsTUFBakMsRUFBeUM7QUFDdkMsUUFBSXNDLE9BQU9DLE1BQU01RCxLQUFOLENBQVk0RCxNQUFNbkQsS0FBbEIsQ0FBWDs7QUFFQTtBQUNBLFFBQUlvRCxjQUFjLEdBQWQsSUFBcUJGLEtBQUssQ0FBTCxNQUFZLEdBQXJDLEVBQTBDO0FBQ3hDRSxrQkFBWSxHQUFaO0FBQ0Q7O0FBRUQsUUFBSUEsY0FBY0YsS0FBSyxDQUFMLENBQWxCLEVBQTJCO0FBQ3pCbkQsVUFBSW1CLElBQUosQ0FBU2dDLElBQVQ7QUFDQUMsWUFBTW5ELEtBQU47QUFDRCxLQUhELE1BR087QUFDTDtBQUNEO0FBQ0Y7O0FBRUQsU0FBT0QsR0FBUDtBQUNEO0FBQ0QsU0FBU2dELGNBQVQsQ0FBd0JJLEtBQXhCLEVBQStCRSxZQUEvQixFQUE2QztBQUMzQyxNQUFJQyxVQUFVLEVBQWQ7QUFBQSxNQUNJTixTQUFTLEVBRGI7QUFBQSxNQUVJTyxhQUFhLENBRmpCO0FBQUEsTUFHSUMsaUJBQWlCLEtBSHJCO0FBQUEsTUFJSUMsYUFBYSxLQUpqQjtBQUtBLFNBQU9GLGFBQWFGLGFBQWF6QyxNQUExQixJQUNFdUMsTUFBTW5ELEtBQU4sR0FBY21ELE1BQU01RCxLQUFOLENBQVlxQixNQURuQyxFQUMyQztBQUN6QyxRQUFJOEMsU0FBU1AsTUFBTTVELEtBQU4sQ0FBWTRELE1BQU1uRCxLQUFsQixDQUFiO0FBQUEsUUFDSTJELFFBQVFOLGFBQWFFLFVBQWIsQ0FEWjs7QUFHQTtBQUNBLFFBQUlJLE1BQU0sQ0FBTixNQUFhLEdBQWpCLEVBQXNCO0FBQ3BCO0FBQ0Q7O0FBRURILHFCQUFpQkEsa0JBQWtCRSxPQUFPLENBQVAsTUFBYyxHQUFqRDs7QUFFQVYsV0FBTzlCLElBQVAsQ0FBWXlDLEtBQVo7QUFDQUo7O0FBRUE7QUFDQTtBQUNBLFFBQUlHLE9BQU8sQ0FBUCxNQUFjLEdBQWxCLEVBQXVCO0FBQ3JCRCxtQkFBYSxJQUFiOztBQUVBLGFBQU9DLE9BQU8sQ0FBUCxNQUFjLEdBQXJCLEVBQTBCO0FBQ3hCSixnQkFBUXBDLElBQVIsQ0FBYXdDLE1BQWI7QUFDQUEsaUJBQVNQLE1BQU01RCxLQUFOLENBQVksRUFBRTRELE1BQU1uRCxLQUFwQixDQUFUO0FBQ0Q7QUFDRjs7QUFFRCxRQUFJMkQsTUFBTUMsTUFBTixDQUFhLENBQWIsTUFBb0JGLE9BQU9FLE1BQVAsQ0FBYyxDQUFkLENBQXhCLEVBQTBDO0FBQ3hDTixjQUFRcEMsSUFBUixDQUFhd0MsTUFBYjtBQUNBUCxZQUFNbkQsS0FBTjtBQUNELEtBSEQsTUFHTztBQUNMeUQsbUJBQWEsSUFBYjtBQUNEO0FBQ0Y7O0FBRUQsTUFBSSxDQUFDSixhQUFhRSxVQUFiLEtBQTRCLEVBQTdCLEVBQWlDLENBQWpDLE1BQXdDLEdBQXhDLElBQ0dDLGNBRFAsRUFDdUI7QUFDckJDLGlCQUFhLElBQWI7QUFDRDs7QUFFRCxNQUFJQSxVQUFKLEVBQWdCO0FBQ2QsV0FBT0gsT0FBUDtBQUNEOztBQUVELFNBQU9DLGFBQWFGLGFBQWF6QyxNQUFqQyxFQUF5QztBQUN2Q29DLFdBQU85QixJQUFQLENBQVltQyxhQUFhRSxZQUFiLENBQVo7QUFDRDs7QUFFRCxTQUFPO0FBQ0xQLGtCQURLO0FBRUxNO0FBRkssR0FBUDtBQUlEOztBQUVELFNBQVNWLFVBQVQsQ0FBb0JVLE9BQXBCLEVBQTZCO0FBQzNCLFNBQU9BLFFBQVFPLE1BQVIsQ0FBZSxVQUFTQyxJQUFULEVBQWVKLE1BQWYsRUFBdUI7QUFDM0MsV0FBT0ksUUFBUUosT0FBTyxDQUFQLE1BQWMsR0FBN0I7QUFDRCxHQUZNLEVBRUosSUFGSSxDQUFQO0FBR0Q7QUFDRCxTQUFTYixrQkFBVCxDQUE0Qk0sS0FBNUIsRUFBbUNZLGFBQW5DLEVBQWtEQyxLQUFsRCxFQUF5RDtBQUN2RCxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsS0FBcEIsRUFBMkJDLEdBQTNCLEVBQWdDO0FBQzlCLFFBQUlDLGdCQUFnQkgsY0FBY0EsY0FBY25ELE1BQWQsR0FBdUJvRCxLQUF2QixHQUErQkMsQ0FBN0MsRUFBZ0RMLE1BQWhELENBQXVELENBQXZELENBQXBCO0FBQ0EsUUFBSVQsTUFBTTVELEtBQU4sQ0FBWTRELE1BQU1uRCxLQUFOLEdBQWNpRSxDQUExQixNQUFpQyxNQUFNQyxhQUEzQyxFQUEwRDtBQUN4RCxhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVEZixRQUFNbkQsS0FBTixJQUFlZ0UsS0FBZjtBQUNBLFNBQU8sSUFBUDtBQUNEOztBQUVELFNBQVMxRSxtQkFBVCxDQUE2QkMsS0FBN0IsRUFBb0M7QUFDbEMsTUFBSUMsV0FBVyxDQUFmO0FBQ0EsTUFBSUMsV0FBVyxDQUFmOztBQUVBRixRQUFNNEUsT0FBTixDQUFjLFVBQVNqQixJQUFULEVBQWU7QUFDM0IsUUFBSSxPQUFPQSxJQUFQLEtBQWdCLFFBQXBCLEVBQThCO0FBQzVCLFVBQUlrQixVQUFVOUUsb0JBQW9CNEQsS0FBS3ZELElBQXpCLENBQWQ7QUFDQSxVQUFJMEUsYUFBYS9FLG9CQUFvQjRELEtBQUt0RCxNQUF6QixDQUFqQjs7QUFFQSxVQUFJSixhQUFhRSxTQUFqQixFQUE0QjtBQUMxQixZQUFJMEUsUUFBUTVFLFFBQVIsS0FBcUI2RSxXQUFXN0UsUUFBcEMsRUFBOEM7QUFDNUNBLHNCQUFZNEUsUUFBUTVFLFFBQXBCO0FBQ0QsU0FGRCxNQUVPO0FBQ0xBLHFCQUFXRSxTQUFYO0FBQ0Q7QUFDRjs7QUFFRCxVQUFJRCxhQUFhQyxTQUFqQixFQUE0QjtBQUMxQixZQUFJMEUsUUFBUTNFLFFBQVIsS0FBcUI0RSxXQUFXNUUsUUFBcEMsRUFBOEM7QUFDNUNBLHNCQUFZMkUsUUFBUTNFLFFBQXBCO0FBQ0QsU0FGRCxNQUVPO0FBQ0xBLHFCQUFXQyxTQUFYO0FBQ0Q7QUFDRjtBQUNGLEtBbkJELE1BbUJPO0FBQ0wsVUFBSUQsYUFBYUMsU0FBYixLQUEyQndELEtBQUssQ0FBTCxNQUFZLEdBQVosSUFBbUJBLEtBQUssQ0FBTCxNQUFZLEdBQTFELENBQUosRUFBb0U7QUFDbEV6RDtBQUNEO0FBQ0QsVUFBSUQsYUFBYUUsU0FBYixLQUEyQndELEtBQUssQ0FBTCxNQUFZLEdBQVosSUFBbUJBLEtBQUssQ0FBTCxNQUFZLEdBQTFELENBQUosRUFBb0U7QUFDbEUxRDtBQUNEO0FBQ0Y7QUFDRixHQTVCRDs7QUE4QkEsU0FBTyxFQUFDQSxrQkFBRCxFQUFXQyxrQkFBWCxFQUFQO0FBQ0QiLCJmaWxlIjoibWVyZ2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge3N0cnVjdHVyZWRQYXRjaH0gZnJvbSAnLi9jcmVhdGUnO1xuaW1wb3J0IHtwYXJzZVBhdGNofSBmcm9tICcuL3BhcnNlJztcblxuaW1wb3J0IHthcnJheUVxdWFsLCBhcnJheVN0YXJ0c1dpdGh9IGZyb20gJy4uL3V0aWwvYXJyYXknO1xuXG5leHBvcnQgZnVuY3Rpb24gY2FsY0xpbmVDb3VudChodW5rKSB7XG4gIGNvbnN0IHtvbGRMaW5lcywgbmV3TGluZXN9ID0gY2FsY09sZE5ld0xpbmVDb3VudChodW5rLmxpbmVzKTtcblxuICBpZiAob2xkTGluZXMgIT09IHVuZGVmaW5lZCkge1xuICAgIGh1bmsub2xkTGluZXMgPSBvbGRMaW5lcztcbiAgfSBlbHNlIHtcbiAgICBkZWxldGUgaHVuay5vbGRMaW5lcztcbiAgfVxuXG4gIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgaHVuay5uZXdMaW5lcyA9IG5ld0xpbmVzO1xuICB9IGVsc2Uge1xuICAgIGRlbGV0ZSBodW5rLm5ld0xpbmVzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtZXJnZShtaW5lLCB0aGVpcnMsIGJhc2UpIHtcbiAgbWluZSA9IGxvYWRQYXRjaChtaW5lLCBiYXNlKTtcbiAgdGhlaXJzID0gbG9hZFBhdGNoKHRoZWlycywgYmFzZSk7XG5cbiAgbGV0IHJldCA9IHt9O1xuXG4gIC8vIEZvciBpbmRleCB3ZSBqdXN0IGxldCBpdCBwYXNzIHRocm91Z2ggYXMgaXQgZG9lc24ndCBoYXZlIGFueSBuZWNlc3NhcnkgbWVhbmluZy5cbiAgLy8gTGVhdmluZyBzYW5pdHkgY2hlY2tzIG9uIHRoaXMgdG8gdGhlIEFQSSBjb25zdW1lciB0aGF0IG1heSBrbm93IG1vcmUgYWJvdXQgdGhlXG4gIC8vIG1lYW5pbmcgaW4gdGhlaXIgb3duIGNvbnRleHQuXG4gIGlmIChtaW5lLmluZGV4IHx8IHRoZWlycy5pbmRleCkge1xuICAgIHJldC5pbmRleCA9IG1pbmUuaW5kZXggfHwgdGhlaXJzLmluZGV4O1xuICB9XG5cbiAgaWYgKG1pbmUubmV3RmlsZU5hbWUgfHwgdGhlaXJzLm5ld0ZpbGVOYW1lKSB7XG4gICAgaWYgKCFmaWxlTmFtZUNoYW5nZWQobWluZSkpIHtcbiAgICAgIC8vIE5vIGhlYWRlciBvciBubyBjaGFuZ2UgaW4gb3VycywgdXNlIHRoZWlycyAoYW5kIG91cnMgaWYgdGhlaXJzIGRvZXMgbm90IGV4aXN0KVxuICAgICAgcmV0Lm9sZEZpbGVOYW1lID0gdGhlaXJzLm9sZEZpbGVOYW1lIHx8IG1pbmUub2xkRmlsZU5hbWU7XG4gICAgICByZXQubmV3RmlsZU5hbWUgPSB0aGVpcnMubmV3RmlsZU5hbWUgfHwgbWluZS5uZXdGaWxlTmFtZTtcbiAgICAgIHJldC5vbGRIZWFkZXIgPSB0aGVpcnMub2xkSGVhZGVyIHx8IG1pbmUub2xkSGVhZGVyO1xuICAgICAgcmV0Lm5ld0hlYWRlciA9IHRoZWlycy5uZXdIZWFkZXIgfHwgbWluZS5uZXdIZWFkZXI7XG4gICAgfSBlbHNlIGlmICghZmlsZU5hbWVDaGFuZ2VkKHRoZWlycykpIHtcbiAgICAgIC8vIE5vIGhlYWRlciBvciBubyBjaGFuZ2UgaW4gdGhlaXJzLCB1c2Ugb3Vyc1xuICAgICAgcmV0Lm9sZEZpbGVOYW1lID0gbWluZS5vbGRGaWxlTmFtZTtcbiAgICAgIHJldC5uZXdGaWxlTmFtZSA9IG1pbmUubmV3RmlsZU5hbWU7XG4gICAgICByZXQub2xkSGVhZGVyID0gbWluZS5vbGRIZWFkZXI7XG4gICAgICByZXQubmV3SGVhZGVyID0gbWluZS5uZXdIZWFkZXI7XG4gICAgfSBlbHNlIHtcbiAgICAgIC8vIEJvdGggY2hhbmdlZC4uLiBmaWd1cmUgaXQgb3V0XG4gICAgICByZXQub2xkRmlsZU5hbWUgPSBzZWxlY3RGaWVsZChyZXQsIG1pbmUub2xkRmlsZU5hbWUsIHRoZWlycy5vbGRGaWxlTmFtZSk7XG4gICAgICByZXQubmV3RmlsZU5hbWUgPSBzZWxlY3RGaWVsZChyZXQsIG1pbmUubmV3RmlsZU5hbWUsIHRoZWlycy5uZXdGaWxlTmFtZSk7XG4gICAgICByZXQub2xkSGVhZGVyID0gc2VsZWN0RmllbGQocmV0LCBtaW5lLm9sZEhlYWRlciwgdGhlaXJzLm9sZEhlYWRlcik7XG4gICAgICByZXQubmV3SGVhZGVyID0gc2VsZWN0RmllbGQocmV0LCBtaW5lLm5ld0hlYWRlciwgdGhlaXJzLm5ld0hlYWRlcik7XG4gICAgfVxuICB9XG5cbiAgcmV0Lmh1bmtzID0gW107XG5cbiAgbGV0IG1pbmVJbmRleCA9IDAsXG4gICAgICB0aGVpcnNJbmRleCA9IDAsXG4gICAgICBtaW5lT2Zmc2V0ID0gMCxcbiAgICAgIHRoZWlyc09mZnNldCA9IDA7XG5cbiAgd2hpbGUgKG1pbmVJbmRleCA8IG1pbmUuaHVua3MubGVuZ3RoIHx8IHRoZWlyc0luZGV4IDwgdGhlaXJzLmh1bmtzLmxlbmd0aCkge1xuICAgIGxldCBtaW5lQ3VycmVudCA9IG1pbmUuaHVua3NbbWluZUluZGV4XSB8fCB7b2xkU3RhcnQ6IEluZmluaXR5fSxcbiAgICAgICAgdGhlaXJzQ3VycmVudCA9IHRoZWlycy5odW5rc1t0aGVpcnNJbmRleF0gfHwge29sZFN0YXJ0OiBJbmZpbml0eX07XG5cbiAgICBpZiAoaHVua0JlZm9yZShtaW5lQ3VycmVudCwgdGhlaXJzQ3VycmVudCkpIHtcbiAgICAgIC8vIFRoaXMgcGF0Y2ggZG9lcyBub3Qgb3ZlcmxhcCB3aXRoIGFueSBvZiB0aGUgb3RoZXJzLCB5YXkuXG4gICAgICByZXQuaHVua3MucHVzaChjbG9uZUh1bmsobWluZUN1cnJlbnQsIG1pbmVPZmZzZXQpKTtcbiAgICAgIG1pbmVJbmRleCsrO1xuICAgICAgdGhlaXJzT2Zmc2V0ICs9IG1pbmVDdXJyZW50Lm5ld0xpbmVzIC0gbWluZUN1cnJlbnQub2xkTGluZXM7XG4gICAgfSBlbHNlIGlmIChodW5rQmVmb3JlKHRoZWlyc0N1cnJlbnQsIG1pbmVDdXJyZW50KSkge1xuICAgICAgLy8gVGhpcyBwYXRjaCBkb2VzIG5vdCBvdmVybGFwIHdpdGggYW55IG9mIHRoZSBvdGhlcnMsIHlheS5cbiAgICAgIHJldC5odW5rcy5wdXNoKGNsb25lSHVuayh0aGVpcnNDdXJyZW50LCB0aGVpcnNPZmZzZXQpKTtcbiAgICAgIHRoZWlyc0luZGV4Kys7XG4gICAgICBtaW5lT2Zmc2V0ICs9IHRoZWlyc0N1cnJlbnQubmV3TGluZXMgLSB0aGVpcnNDdXJyZW50Lm9sZExpbmVzO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBPdmVybGFwLCBtZXJnZSBhcyBiZXN0IHdlIGNhblxuICAgICAgbGV0IG1lcmdlZEh1bmsgPSB7XG4gICAgICAgIG9sZFN0YXJ0OiBNYXRoLm1pbihtaW5lQ3VycmVudC5vbGRTdGFydCwgdGhlaXJzQ3VycmVudC5vbGRTdGFydCksXG4gICAgICAgIG9sZExpbmVzOiAwLFxuICAgICAgICBuZXdTdGFydDogTWF0aC5taW4obWluZUN1cnJlbnQubmV3U3RhcnQgKyBtaW5lT2Zmc2V0LCB0aGVpcnNDdXJyZW50Lm9sZFN0YXJ0ICsgdGhlaXJzT2Zmc2V0KSxcbiAgICAgICAgbmV3TGluZXM6IDAsXG4gICAgICAgIGxpbmVzOiBbXVxuICAgICAgfTtcbiAgICAgIG1lcmdlTGluZXMobWVyZ2VkSHVuaywgbWluZUN1cnJlbnQub2xkU3RhcnQsIG1pbmVDdXJyZW50LmxpbmVzLCB0aGVpcnNDdXJyZW50Lm9sZFN0YXJ0LCB0aGVpcnNDdXJyZW50LmxpbmVzKTtcbiAgICAgIHRoZWlyc0luZGV4Kys7XG4gICAgICBtaW5lSW5kZXgrKztcblxuICAgICAgcmV0Lmh1bmtzLnB1c2gobWVyZ2VkSHVuayk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJldDtcbn1cblxuZnVuY3Rpb24gbG9hZFBhdGNoKHBhcmFtLCBiYXNlKSB7XG4gIGlmICh0eXBlb2YgcGFyYW0gPT09ICdzdHJpbmcnKSB7XG4gICAgaWYgKC9eQEAvbS50ZXN0KHBhcmFtKSB8fCAoL15JbmRleDovbS50ZXN0KHBhcmFtKSkpIHtcbiAgICAgIHJldHVybiBwYXJzZVBhdGNoKHBhcmFtKVswXTtcbiAgICB9XG5cbiAgICBpZiAoIWJhc2UpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignTXVzdCBwcm92aWRlIGEgYmFzZSByZWZlcmVuY2Ugb3IgcGFzcyBpbiBhIHBhdGNoJyk7XG4gICAgfVxuICAgIHJldHVybiBzdHJ1Y3R1cmVkUGF0Y2godW5kZWZpbmVkLCB1bmRlZmluZWQsIGJhc2UsIHBhcmFtKTtcbiAgfVxuXG4gIHJldHVybiBwYXJhbTtcbn1cblxuZnVuY3Rpb24gZmlsZU5hbWVDaGFuZ2VkKHBhdGNoKSB7XG4gIHJldHVybiBwYXRjaC5uZXdGaWxlTmFtZSAmJiBwYXRjaC5uZXdGaWxlTmFtZSAhPT0gcGF0Y2gub2xkRmlsZU5hbWU7XG59XG5cbmZ1bmN0aW9uIHNlbGVjdEZpZWxkKGluZGV4LCBtaW5lLCB0aGVpcnMpIHtcbiAgaWYgKG1pbmUgPT09IHRoZWlycykge1xuICAgIHJldHVybiBtaW5lO1xuICB9IGVsc2Uge1xuICAgIGluZGV4LmNvbmZsaWN0ID0gdHJ1ZTtcbiAgICByZXR1cm4ge21pbmUsIHRoZWlyc307XG4gIH1cbn1cblxuZnVuY3Rpb24gaHVua0JlZm9yZSh0ZXN0LCBjaGVjaykge1xuICByZXR1cm4gdGVzdC5vbGRTdGFydCA8IGNoZWNrLm9sZFN0YXJ0XG4gICAgJiYgKHRlc3Qub2xkU3RhcnQgKyB0ZXN0Lm9sZExpbmVzKSA8IGNoZWNrLm9sZFN0YXJ0O1xufVxuXG5mdW5jdGlvbiBjbG9uZUh1bmsoaHVuaywgb2Zmc2V0KSB7XG4gIHJldHVybiB7XG4gICAgb2xkU3RhcnQ6IGh1bmsub2xkU3RhcnQsIG9sZExpbmVzOiBodW5rLm9sZExpbmVzLFxuICAgIG5ld1N0YXJ0OiBodW5rLm5ld1N0YXJ0ICsgb2Zmc2V0LCBuZXdMaW5lczogaHVuay5uZXdMaW5lcyxcbiAgICBsaW5lczogaHVuay5saW5lc1xuICB9O1xufVxuXG5mdW5jdGlvbiBtZXJnZUxpbmVzKGh1bmssIG1pbmVPZmZzZXQsIG1pbmVMaW5lcywgdGhlaXJPZmZzZXQsIHRoZWlyTGluZXMpIHtcbiAgLy8gVGhpcyB3aWxsIGdlbmVyYWxseSByZXN1bHQgaW4gYSBjb25mbGljdGVkIGh1bmssIGJ1dCB0aGVyZSBhcmUgY2FzZXMgd2hlcmUgdGhlIGNvbnRleHRcbiAgLy8gaXMgdGhlIG9ubHkgb3ZlcmxhcCB3aGVyZSB3ZSBjYW4gc3VjY2Vzc2Z1bGx5IG1lcmdlIHRoZSBjb250ZW50IGhlcmUuXG4gIGxldCBtaW5lID0ge29mZnNldDogbWluZU9mZnNldCwgbGluZXM6IG1pbmVMaW5lcywgaW5kZXg6IDB9LFxuICAgICAgdGhlaXIgPSB7b2Zmc2V0OiB0aGVpck9mZnNldCwgbGluZXM6IHRoZWlyTGluZXMsIGluZGV4OiAwfTtcblxuICAvLyBIYW5kbGUgYW55IGxlYWRpbmcgY29udGVudFxuICBpbnNlcnRMZWFkaW5nKGh1bmssIG1pbmUsIHRoZWlyKTtcbiAgaW5zZXJ0TGVhZGluZyhodW5rLCB0aGVpciwgbWluZSk7XG5cbiAgLy8gTm93IGluIHRoZSBvdmVybGFwIGNvbnRlbnQuIFNjYW4gdGhyb3VnaCBhbmQgc2VsZWN0IHRoZSBiZXN0IGNoYW5nZXMgZnJvbSBlYWNoLlxuICB3aGlsZSAobWluZS5pbmRleCA8IG1pbmUubGluZXMubGVuZ3RoICYmIHRoZWlyLmluZGV4IDwgdGhlaXIubGluZXMubGVuZ3RoKSB7XG4gICAgbGV0IG1pbmVDdXJyZW50ID0gbWluZS5saW5lc1ttaW5lLmluZGV4XSxcbiAgICAgICAgdGhlaXJDdXJyZW50ID0gdGhlaXIubGluZXNbdGhlaXIuaW5kZXhdO1xuXG4gICAgaWYgKChtaW5lQ3VycmVudFswXSA9PT0gJy0nIHx8IG1pbmVDdXJyZW50WzBdID09PSAnKycpXG4gICAgICAgICYmICh0aGVpckN1cnJlbnRbMF0gPT09ICctJyB8fCB0aGVpckN1cnJlbnRbMF0gPT09ICcrJykpIHtcbiAgICAgIC8vIEJvdGggbW9kaWZpZWQgLi4uXG4gICAgICBtdXR1YWxDaGFuZ2UoaHVuaywgbWluZSwgdGhlaXIpO1xuICAgIH0gZWxzZSBpZiAobWluZUN1cnJlbnRbMF0gPT09ICcrJyAmJiB0aGVpckN1cnJlbnRbMF0gPT09ICcgJykge1xuICAgICAgLy8gTWluZSBpbnNlcnRlZFxuICAgICAgaHVuay5saW5lcy5wdXNoKC4uLiBjb2xsZWN0Q2hhbmdlKG1pbmUpKTtcbiAgICB9IGVsc2UgaWYgKHRoZWlyQ3VycmVudFswXSA9PT0gJysnICYmIG1pbmVDdXJyZW50WzBdID09PSAnICcpIHtcbiAgICAgIC8vIFRoZWlycyBpbnNlcnRlZFxuICAgICAgaHVuay5saW5lcy5wdXNoKC4uLiBjb2xsZWN0Q2hhbmdlKHRoZWlyKSk7XG4gICAgfSBlbHNlIGlmIChtaW5lQ3VycmVudFswXSA9PT0gJy0nICYmIHRoZWlyQ3VycmVudFswXSA9PT0gJyAnKSB7XG4gICAgICAvLyBNaW5lIHJlbW92ZWQgb3IgZWRpdGVkXG4gICAgICByZW1vdmFsKGh1bmssIG1pbmUsIHRoZWlyKTtcbiAgICB9IGVsc2UgaWYgKHRoZWlyQ3VycmVudFswXSA9PT0gJy0nICYmIG1pbmVDdXJyZW50WzBdID09PSAnICcpIHtcbiAgICAgIC8vIFRoZWlyIHJlbW92ZWQgb3IgZWRpdGVkXG4gICAgICByZW1vdmFsKGh1bmssIHRoZWlyLCBtaW5lLCB0cnVlKTtcbiAgICB9IGVsc2UgaWYgKG1pbmVDdXJyZW50ID09PSB0aGVpckN1cnJlbnQpIHtcbiAgICAgIC8vIENvbnRleHQgaWRlbnRpdHlcbiAgICAgIGh1bmsubGluZXMucHVzaChtaW5lQ3VycmVudCk7XG4gICAgICBtaW5lLmluZGV4Kys7XG4gICAgICB0aGVpci5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBDb250ZXh0IG1pc21hdGNoXG4gICAgICBjb25mbGljdChodW5rLCBjb2xsZWN0Q2hhbmdlKG1pbmUpLCBjb2xsZWN0Q2hhbmdlKHRoZWlyKSk7XG4gICAgfVxuICB9XG5cbiAgLy8gTm93IHB1c2ggYW55dGhpbmcgdGhhdCBtYXkgYmUgcmVtYWluaW5nXG4gIGluc2VydFRyYWlsaW5nKGh1bmssIG1pbmUpO1xuICBpbnNlcnRUcmFpbGluZyhodW5rLCB0aGVpcik7XG5cbiAgY2FsY0xpbmVDb3VudChodW5rKTtcbn1cblxuZnVuY3Rpb24gbXV0dWFsQ2hhbmdlKGh1bmssIG1pbmUsIHRoZWlyKSB7XG4gIGxldCBteUNoYW5nZXMgPSBjb2xsZWN0Q2hhbmdlKG1pbmUpLFxuICAgICAgdGhlaXJDaGFuZ2VzID0gY29sbGVjdENoYW5nZSh0aGVpcik7XG5cbiAgaWYgKGFsbFJlbW92ZXMobXlDaGFuZ2VzKSAmJiBhbGxSZW1vdmVzKHRoZWlyQ2hhbmdlcykpIHtcbiAgICAvLyBTcGVjaWFsIGNhc2UgZm9yIHJlbW92ZSBjaGFuZ2VzIHRoYXQgYXJlIHN1cGVyc2V0cyBvZiBvbmUgYW5vdGhlclxuICAgIGlmIChhcnJheVN0YXJ0c1dpdGgobXlDaGFuZ2VzLCB0aGVpckNoYW5nZXMpXG4gICAgICAgICYmIHNraXBSZW1vdmVTdXBlcnNldCh0aGVpciwgbXlDaGFuZ2VzLCBteUNoYW5nZXMubGVuZ3RoIC0gdGhlaXJDaGFuZ2VzLmxlbmd0aCkpIHtcbiAgICAgIGh1bmsubGluZXMucHVzaCguLi4gbXlDaGFuZ2VzKTtcbiAgICAgIHJldHVybjtcbiAgICB9IGVsc2UgaWYgKGFycmF5U3RhcnRzV2l0aCh0aGVpckNoYW5nZXMsIG15Q2hhbmdlcylcbiAgICAgICAgJiYgc2tpcFJlbW92ZVN1cGVyc2V0KG1pbmUsIHRoZWlyQ2hhbmdlcywgdGhlaXJDaGFuZ2VzLmxlbmd0aCAtIG15Q2hhbmdlcy5sZW5ndGgpKSB7XG4gICAgICBodW5rLmxpbmVzLnB1c2goLi4uIHRoZWlyQ2hhbmdlcyk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICB9IGVsc2UgaWYgKGFycmF5RXF1YWwobXlDaGFuZ2VzLCB0aGVpckNoYW5nZXMpKSB7XG4gICAgaHVuay5saW5lcy5wdXNoKC4uLiBteUNoYW5nZXMpO1xuICAgIHJldHVybjtcbiAgfVxuXG4gIGNvbmZsaWN0KGh1bmssIG15Q2hhbmdlcywgdGhlaXJDaGFuZ2VzKTtcbn1cblxuZnVuY3Rpb24gcmVtb3ZhbChodW5rLCBtaW5lLCB0aGVpciwgc3dhcCkge1xuICBsZXQgbXlDaGFuZ2VzID0gY29sbGVjdENoYW5nZShtaW5lKSxcbiAgICAgIHRoZWlyQ2hhbmdlcyA9IGNvbGxlY3RDb250ZXh0KHRoZWlyLCBteUNoYW5nZXMpO1xuICBpZiAodGhlaXJDaGFuZ2VzLm1lcmdlZCkge1xuICAgIGh1bmsubGluZXMucHVzaCguLi4gdGhlaXJDaGFuZ2VzLm1lcmdlZCk7XG4gIH0gZWxzZSB7XG4gICAgY29uZmxpY3QoaHVuaywgc3dhcCA/IHRoZWlyQ2hhbmdlcyA6IG15Q2hhbmdlcywgc3dhcCA/IG15Q2hhbmdlcyA6IHRoZWlyQ2hhbmdlcyk7XG4gIH1cbn1cblxuZnVuY3Rpb24gY29uZmxpY3QoaHVuaywgbWluZSwgdGhlaXIpIHtcbiAgaHVuay5jb25mbGljdCA9IHRydWU7XG4gIGh1bmsubGluZXMucHVzaCh7XG4gICAgY29uZmxpY3Q6IHRydWUsXG4gICAgbWluZTogbWluZSxcbiAgICB0aGVpcnM6IHRoZWlyXG4gIH0pO1xufVxuXG5mdW5jdGlvbiBpbnNlcnRMZWFkaW5nKGh1bmssIGluc2VydCwgdGhlaXIpIHtcbiAgd2hpbGUgKGluc2VydC5vZmZzZXQgPCB0aGVpci5vZmZzZXQgJiYgaW5zZXJ0LmluZGV4IDwgaW5zZXJ0LmxpbmVzLmxlbmd0aCkge1xuICAgIGxldCBsaW5lID0gaW5zZXJ0LmxpbmVzW2luc2VydC5pbmRleCsrXTtcbiAgICBodW5rLmxpbmVzLnB1c2gobGluZSk7XG4gICAgaW5zZXJ0Lm9mZnNldCsrO1xuICB9XG59XG5mdW5jdGlvbiBpbnNlcnRUcmFpbGluZyhodW5rLCBpbnNlcnQpIHtcbiAgd2hpbGUgKGluc2VydC5pbmRleCA8IGluc2VydC5saW5lcy5sZW5ndGgpIHtcbiAgICBsZXQgbGluZSA9IGluc2VydC5saW5lc1tpbnNlcnQuaW5kZXgrK107XG4gICAgaHVuay5saW5lcy5wdXNoKGxpbmUpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGNvbGxlY3RDaGFuZ2Uoc3RhdGUpIHtcbiAgbGV0IHJldCA9IFtdLFxuICAgICAgb3BlcmF0aW9uID0gc3RhdGUubGluZXNbc3RhdGUuaW5kZXhdWzBdO1xuICB3aGlsZSAoc3RhdGUuaW5kZXggPCBzdGF0ZS5saW5lcy5sZW5ndGgpIHtcbiAgICBsZXQgbGluZSA9IHN0YXRlLmxpbmVzW3N0YXRlLmluZGV4XTtcblxuICAgIC8vIEdyb3VwIGFkZGl0aW9ucyB0aGF0IGFyZSBpbW1lZGlhdGVseSBhZnRlciBzdWJ0cmFjdGlvbnMgYW5kIHRyZWF0IHRoZW0gYXMgb25lIFwiYXRvbWljXCIgbW9kaWZ5IGNoYW5nZS5cbiAgICBpZiAob3BlcmF0aW9uID09PSAnLScgJiYgbGluZVswXSA9PT0gJysnKSB7XG4gICAgICBvcGVyYXRpb24gPSAnKyc7XG4gICAgfVxuXG4gICAgaWYgKG9wZXJhdGlvbiA9PT0gbGluZVswXSkge1xuICAgICAgcmV0LnB1c2gobGluZSk7XG4gICAgICBzdGF0ZS5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICBicmVhaztcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0O1xufVxuZnVuY3Rpb24gY29sbGVjdENvbnRleHQoc3RhdGUsIG1hdGNoQ2hhbmdlcykge1xuICBsZXQgY2hhbmdlcyA9IFtdLFxuICAgICAgbWVyZ2VkID0gW10sXG4gICAgICBtYXRjaEluZGV4ID0gMCxcbiAgICAgIGNvbnRleHRDaGFuZ2VzID0gZmFsc2UsXG4gICAgICBjb25mbGljdGVkID0gZmFsc2U7XG4gIHdoaWxlIChtYXRjaEluZGV4IDwgbWF0Y2hDaGFuZ2VzLmxlbmd0aFxuICAgICAgICAmJiBzdGF0ZS5pbmRleCA8IHN0YXRlLmxpbmVzLmxlbmd0aCkge1xuICAgIGxldCBjaGFuZ2UgPSBzdGF0ZS5saW5lc1tzdGF0ZS5pbmRleF0sXG4gICAgICAgIG1hdGNoID0gbWF0Y2hDaGFuZ2VzW21hdGNoSW5kZXhdO1xuXG4gICAgLy8gT25jZSB3ZSd2ZSBoaXQgb3VyIGFkZCwgdGhlbiB3ZSBhcmUgZG9uZVxuICAgIGlmIChtYXRjaFswXSA9PT0gJysnKSB7XG4gICAgICBicmVhaztcbiAgICB9XG5cbiAgICBjb250ZXh0Q2hhbmdlcyA9IGNvbnRleHRDaGFuZ2VzIHx8IGNoYW5nZVswXSAhPT0gJyAnO1xuXG4gICAgbWVyZ2VkLnB1c2gobWF0Y2gpO1xuICAgIG1hdGNoSW5kZXgrKztcblxuICAgIC8vIENvbnN1bWUgYW55IGFkZGl0aW9ucyBpbiB0aGUgb3RoZXIgYmxvY2sgYXMgYSBjb25mbGljdCB0byBhdHRlbXB0XG4gICAgLy8gdG8gcHVsbCBpbiB0aGUgcmVtYWluaW5nIGNvbnRleHQgYWZ0ZXIgdGhpc1xuICAgIGlmIChjaGFuZ2VbMF0gPT09ICcrJykge1xuICAgICAgY29uZmxpY3RlZCA9IHRydWU7XG5cbiAgICAgIHdoaWxlIChjaGFuZ2VbMF0gPT09ICcrJykge1xuICAgICAgICBjaGFuZ2VzLnB1c2goY2hhbmdlKTtcbiAgICAgICAgY2hhbmdlID0gc3RhdGUubGluZXNbKytzdGF0ZS5pbmRleF07XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKG1hdGNoLnN1YnN0cigxKSA9PT0gY2hhbmdlLnN1YnN0cigxKSkge1xuICAgICAgY2hhbmdlcy5wdXNoKGNoYW5nZSk7XG4gICAgICBzdGF0ZS5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb25mbGljdGVkID0gdHJ1ZTtcbiAgICB9XG4gIH1cblxuICBpZiAoKG1hdGNoQ2hhbmdlc1ttYXRjaEluZGV4XSB8fCAnJylbMF0gPT09ICcrJ1xuICAgICAgJiYgY29udGV4dENoYW5nZXMpIHtcbiAgICBjb25mbGljdGVkID0gdHJ1ZTtcbiAgfVxuXG4gIGlmIChjb25mbGljdGVkKSB7XG4gICAgcmV0dXJuIGNoYW5nZXM7XG4gIH1cblxuICB3aGlsZSAobWF0Y2hJbmRleCA8IG1hdGNoQ2hhbmdlcy5sZW5ndGgpIHtcbiAgICBtZXJnZWQucHVzaChtYXRjaENoYW5nZXNbbWF0Y2hJbmRleCsrXSk7XG4gIH1cblxuICByZXR1cm4ge1xuICAgIG1lcmdlZCxcbiAgICBjaGFuZ2VzXG4gIH07XG59XG5cbmZ1bmN0aW9uIGFsbFJlbW92ZXMoY2hhbmdlcykge1xuICByZXR1cm4gY2hhbmdlcy5yZWR1Y2UoZnVuY3Rpb24ocHJldiwgY2hhbmdlKSB7XG4gICAgcmV0dXJuIHByZXYgJiYgY2hhbmdlWzBdID09PSAnLSc7XG4gIH0sIHRydWUpO1xufVxuZnVuY3Rpb24gc2tpcFJlbW92ZVN1cGVyc2V0KHN0YXRlLCByZW1vdmVDaGFuZ2VzLCBkZWx0YSkge1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGRlbHRhOyBpKyspIHtcbiAgICBsZXQgY2hhbmdlQ29udGVudCA9IHJlbW92ZUNoYW5nZXNbcmVtb3ZlQ2hhbmdlcy5sZW5ndGggLSBkZWx0YSArIGldLnN1YnN0cigxKTtcbiAgICBpZiAoc3RhdGUubGluZXNbc3RhdGUuaW5kZXggKyBpXSAhPT0gJyAnICsgY2hhbmdlQ29udGVudCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIHN0YXRlLmluZGV4ICs9IGRlbHRhO1xuICByZXR1cm4gdHJ1ZTtcbn1cblxuZnVuY3Rpb24gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lcykge1xuICBsZXQgb2xkTGluZXMgPSAwO1xuICBsZXQgbmV3TGluZXMgPSAwO1xuXG4gIGxpbmVzLmZvckVhY2goZnVuY3Rpb24obGluZSkge1xuICAgIGlmICh0eXBlb2YgbGluZSAhPT0gJ3N0cmluZycpIHtcbiAgICAgIGxldCBteUNvdW50ID0gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lLm1pbmUpO1xuICAgICAgbGV0IHRoZWlyQ291bnQgPSBjYWxjT2xkTmV3TGluZUNvdW50KGxpbmUudGhlaXJzKTtcblxuICAgICAgaWYgKG9sZExpbmVzICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgaWYgKG15Q291bnQub2xkTGluZXMgPT09IHRoZWlyQ291bnQub2xkTGluZXMpIHtcbiAgICAgICAgICBvbGRMaW5lcyArPSBteUNvdW50Lm9sZExpbmVzO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG9sZExpbmVzID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGlmIChteUNvdW50Lm5ld0xpbmVzID09PSB0aGVpckNvdW50Lm5ld0xpbmVzKSB7XG4gICAgICAgICAgbmV3TGluZXMgKz0gbXlDb3VudC5uZXdMaW5lcztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBuZXdMaW5lcyA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAobmV3TGluZXMgIT09IHVuZGVmaW5lZCAmJiAobGluZVswXSA9PT0gJysnIHx8IGxpbmVbMF0gPT09ICcgJykpIHtcbiAgICAgICAgbmV3TGluZXMrKztcbiAgICAgIH1cbiAgICAgIGlmIChvbGRMaW5lcyAhPT0gdW5kZWZpbmVkICYmIChsaW5lWzBdID09PSAnLScgfHwgbGluZVswXSA9PT0gJyAnKSkge1xuICAgICAgICBvbGRMaW5lcysrO1xuICAgICAgfVxuICAgIH1cbiAgfSk7XG5cbiAgcmV0dXJuIHtvbGRMaW5lcywgbmV3TGluZXN9O1xufVxuIl19 - - -/***/ }), -/* 14 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/structuredPatch = structuredPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = createTwoFilesPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = createPatch; - - var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - /*istanbul ignore end*/function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) { - if (!options) { - options = {}; - } - if (typeof options.context === 'undefined') { - options.context = 4; - } - - var diff = /*istanbul ignore start*/(0, _line.diffLines) /*istanbul ignore end*/(oldStr, newStr, options); - diff.push({ value: '', lines: [] }); // Append an empty value to make cleanup easier - - function contextLines(lines) { - return lines.map(function (entry) { - return ' ' + entry; - }); - } - - var hunks = []; - var oldRangeStart = 0, - newRangeStart = 0, - curRange = [], - oldLine = 1, - newLine = 1; - - /*istanbul ignore start*/var _loop = function _loop( /*istanbul ignore end*/i) { - var current = diff[i], - lines = current.lines || current.value.replace(/\n$/, '').split('\n'); - current.lines = lines; - - if (current.added || current.removed) { - /*istanbul ignore start*/var _curRange; - - /*istanbul ignore end*/ // If we have previous context, start with that - if (!oldRangeStart) { - var prev = diff[i - 1]; - oldRangeStart = oldLine; - newRangeStart = newLine; - - if (prev) { - curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : []; - oldRangeStart -= curRange.length; - newRangeStart -= curRange.length; - } - } - - // Output our changes - /*istanbul ignore start*/(_curRange = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/lines.map(function (entry) { - return (current.added ? '+' : '-') + entry; - }))); - - // Track the updated file position - if (current.added) { - newLine += lines.length; - } else { - oldLine += lines.length; - } - } else { - // Identical context lines. Track line changes - if (oldRangeStart) { - // Close out any changes that have been output (or join overlapping) - if (lines.length <= options.context * 2 && i < diff.length - 2) { - /*istanbul ignore start*/var _curRange2; - - /*istanbul ignore end*/ // Overlapping - /*istanbul ignore start*/(_curRange2 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines))); - } else { - /*istanbul ignore start*/var _curRange3; - - /*istanbul ignore end*/ // end the range and output - var contextSize = Math.min(lines.length, options.context); - /*istanbul ignore start*/(_curRange3 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines.slice(0, contextSize)))); - - var hunk = { - oldStart: oldRangeStart, - oldLines: oldLine - oldRangeStart + contextSize, - newStart: newRangeStart, - newLines: newLine - newRangeStart + contextSize, - lines: curRange - }; - if (i >= diff.length - 2 && lines.length <= options.context) { - // EOF is inside this hunk - var oldEOFNewline = /\n$/.test(oldStr); - var newEOFNewline = /\n$/.test(newStr); - if (lines.length == 0 && !oldEOFNewline) { - // special case: old has no eol and no trailing context; no-nl can end up before adds - curRange.splice(hunk.oldLines, 0, '\\ No newline at end of file'); - } else if (!oldEOFNewline || !newEOFNewline) { - curRange.push('\\ No newline at end of file'); - } - } - hunks.push(hunk); - - oldRangeStart = 0; - newRangeStart = 0; - curRange = []; - } - } - oldLine += lines.length; - newLine += lines.length; - } - }; - - for (var i = 0; i < diff.length; i++) { - /*istanbul ignore start*/_loop( /*istanbul ignore end*/i); - } - - return { - oldFileName: oldFileName, newFileName: newFileName, - oldHeader: oldHeader, newHeader: newHeader, - hunks: hunks - }; - } - - function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) { - var diff = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options); - - var ret = []; - if (oldFileName == newFileName) { - ret.push('Index: ' + oldFileName); - } - ret.push('==================================================================='); - ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\t' + diff.oldHeader)); - ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\t' + diff.newHeader)); - - for (var i = 0; i < diff.hunks.length; i++) { - var hunk = diff.hunks[i]; - ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@'); - ret.push.apply(ret, hunk.lines); - } - - return ret.join('\n') + '\n'; - } - - function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) { - return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9jcmVhdGUuanMiXSwibmFtZXMiOlsic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwib2xkRmlsZU5hbWUiLCJuZXdGaWxlTmFtZSIsIm9sZFN0ciIsIm5ld1N0ciIsIm9sZEhlYWRlciIsIm5ld0hlYWRlciIsIm9wdGlvbnMiLCJjb250ZXh0IiwiZGlmZiIsInB1c2giLCJ2YWx1ZSIsImxpbmVzIiwiY29udGV4dExpbmVzIiwibWFwIiwiZW50cnkiLCJodW5rcyIsIm9sZFJhbmdlU3RhcnQiLCJuZXdSYW5nZVN0YXJ0IiwiY3VyUmFuZ2UiLCJvbGRMaW5lIiwibmV3TGluZSIsImkiLCJjdXJyZW50IiwicmVwbGFjZSIsInNwbGl0IiwiYWRkZWQiLCJyZW1vdmVkIiwicHJldiIsInNsaWNlIiwibGVuZ3RoIiwiY29udGV4dFNpemUiLCJNYXRoIiwibWluIiwiaHVuayIsIm9sZFN0YXJ0Iiwib2xkTGluZXMiLCJuZXdTdGFydCIsIm5ld0xpbmVzIiwib2xkRU9GTmV3bGluZSIsInRlc3QiLCJuZXdFT0ZOZXdsaW5lIiwic3BsaWNlIiwicmV0IiwiYXBwbHkiLCJqb2luIiwiZmlsZU5hbWUiXSwibWFwcGluZ3MiOiI7OztnQ0FFZ0JBLGUsR0FBQUEsZTt5REFpR0FDLG1CLEdBQUFBLG1CO3lEQXdCQUMsVyxHQUFBQSxXOztBQTNIaEI7Ozs7dUJBRU8sU0FBU0YsZUFBVCxDQUF5QkcsV0FBekIsRUFBc0NDLFdBQXRDLEVBQW1EQyxNQUFuRCxFQUEyREMsTUFBM0QsRUFBbUVDLFNBQW5FLEVBQThFQyxTQUE5RSxFQUF5RkMsT0FBekYsRUFBa0c7QUFDdkcsTUFBSSxDQUFDQSxPQUFMLEVBQWM7QUFDWkEsY0FBVSxFQUFWO0FBQ0Q7QUFDRCxNQUFJLE9BQU9BLFFBQVFDLE9BQWYsS0FBMkIsV0FBL0IsRUFBNEM7QUFDMUNELFlBQVFDLE9BQVIsR0FBa0IsQ0FBbEI7QUFDRDs7QUFFRCxNQUFNQyxPQUFPLHNFQUFVTixNQUFWLEVBQWtCQyxNQUFsQixFQUEwQkcsT0FBMUIsQ0FBYjtBQUNBRSxPQUFLQyxJQUFMLENBQVUsRUFBQ0MsT0FBTyxFQUFSLEVBQVlDLE9BQU8sRUFBbkIsRUFBVixFQVR1RyxDQVNsRTs7QUFFckMsV0FBU0MsWUFBVCxDQUFzQkQsS0FBdEIsRUFBNkI7QUFDM0IsV0FBT0EsTUFBTUUsR0FBTixDQUFVLFVBQVNDLEtBQVQsRUFBZ0I7QUFBRSxhQUFPLE1BQU1BLEtBQWI7QUFBcUIsS0FBakQsQ0FBUDtBQUNEOztBQUVELE1BQUlDLFFBQVEsRUFBWjtBQUNBLE1BQUlDLGdCQUFnQixDQUFwQjtBQUFBLE1BQXVCQyxnQkFBZ0IsQ0FBdkM7QUFBQSxNQUEwQ0MsV0FBVyxFQUFyRDtBQUFBLE1BQ0lDLFVBQVUsQ0FEZDtBQUFBLE1BQ2lCQyxVQUFVLENBRDNCOztBQWhCdUcsOEVBa0I5RkMsQ0FsQjhGO0FBbUJyRyxRQUFNQyxVQUFVZCxLQUFLYSxDQUFMLENBQWhCO0FBQUEsUUFDTVYsUUFBUVcsUUFBUVgsS0FBUixJQUFpQlcsUUFBUVosS0FBUixDQUFjYSxPQUFkLENBQXNCLEtBQXRCLEVBQTZCLEVBQTdCLEVBQWlDQyxLQUFqQyxDQUF1QyxJQUF2QyxDQUQvQjtBQUVBRixZQUFRWCxLQUFSLEdBQWdCQSxLQUFoQjs7QUFFQSxRQUFJVyxRQUFRRyxLQUFSLElBQWlCSCxRQUFRSSxPQUE3QixFQUFzQztBQUFBOztBQUFBLDhCQUNwQztBQUNBLFVBQUksQ0FBQ1YsYUFBTCxFQUFvQjtBQUNsQixZQUFNVyxPQUFPbkIsS0FBS2EsSUFBSSxDQUFULENBQWI7QUFDQUwsd0JBQWdCRyxPQUFoQjtBQUNBRix3QkFBZ0JHLE9BQWhCOztBQUVBLFlBQUlPLElBQUosRUFBVTtBQUNSVCxxQkFBV1osUUFBUUMsT0FBUixHQUFrQixDQUFsQixHQUFzQkssYUFBYWUsS0FBS2hCLEtBQUwsQ0FBV2lCLEtBQVgsQ0FBaUIsQ0FBQ3RCLFFBQVFDLE9BQTFCLENBQWIsQ0FBdEIsR0FBeUUsRUFBcEY7QUFDQVMsMkJBQWlCRSxTQUFTVyxNQUExQjtBQUNBWiwyQkFBaUJDLFNBQVNXLE1BQTFCO0FBQ0Q7QUFDRjs7QUFFRDtBQUNBLDZFQUFTcEIsSUFBVCwwTEFBa0JFLE1BQU1FLEdBQU4sQ0FBVSxVQUFTQyxLQUFULEVBQWdCO0FBQzFDLGVBQU8sQ0FBQ1EsUUFBUUcsS0FBUixHQUFnQixHQUFoQixHQUFzQixHQUF2QixJQUE4QlgsS0FBckM7QUFDRCxPQUZpQixDQUFsQjs7QUFJQTtBQUNBLFVBQUlRLFFBQVFHLEtBQVosRUFBbUI7QUFDakJMLG1CQUFXVCxNQUFNa0IsTUFBakI7QUFDRCxPQUZELE1BRU87QUFDTFYsbUJBQVdSLE1BQU1rQixNQUFqQjtBQUNEO0FBQ0YsS0F6QkQsTUF5Qk87QUFDTDtBQUNBLFVBQUliLGFBQUosRUFBbUI7QUFDakI7QUFDQSxZQUFJTCxNQUFNa0IsTUFBTixJQUFnQnZCLFFBQVFDLE9BQVIsR0FBa0IsQ0FBbEMsSUFBdUNjLElBQUliLEtBQUtxQixNQUFMLEdBQWMsQ0FBN0QsRUFBZ0U7QUFBQTs7QUFBQSxrQ0FDOUQ7QUFDQSxrRkFBU3BCLElBQVQsMkxBQWtCRyxhQUFhRCxLQUFiLENBQWxCO0FBQ0QsU0FIRCxNQUdPO0FBQUE7O0FBQUEsa0NBQ0w7QUFDQSxjQUFJbUIsY0FBY0MsS0FBS0MsR0FBTCxDQUFTckIsTUFBTWtCLE1BQWYsRUFBdUJ2QixRQUFRQyxPQUEvQixDQUFsQjtBQUNBLGtGQUFTRSxJQUFULDJMQUFrQkcsYUFBYUQsTUFBTWlCLEtBQU4sQ0FBWSxDQUFaLEVBQWVFLFdBQWYsQ0FBYixDQUFsQjs7QUFFQSxjQUFJRyxPQUFPO0FBQ1RDLHNCQUFVbEIsYUFERDtBQUVUbUIsc0JBQVdoQixVQUFVSCxhQUFWLEdBQTBCYyxXQUY1QjtBQUdUTSxzQkFBVW5CLGFBSEQ7QUFJVG9CLHNCQUFXakIsVUFBVUgsYUFBVixHQUEwQmEsV0FKNUI7QUFLVG5CLG1CQUFPTztBQUxFLFdBQVg7QUFPQSxjQUFJRyxLQUFLYixLQUFLcUIsTUFBTCxHQUFjLENBQW5CLElBQXdCbEIsTUFBTWtCLE1BQU4sSUFBZ0J2QixRQUFRQyxPQUFwRCxFQUE2RDtBQUMzRDtBQUNBLGdCQUFJK0IsZ0JBQWlCLE1BQU1DLElBQU4sQ0FBV3JDLE1BQVgsQ0FBckI7QUFDQSxnQkFBSXNDLGdCQUFpQixNQUFNRCxJQUFOLENBQVdwQyxNQUFYLENBQXJCO0FBQ0EsZ0JBQUlRLE1BQU1rQixNQUFOLElBQWdCLENBQWhCLElBQXFCLENBQUNTLGFBQTFCLEVBQXlDO0FBQ3ZDO0FBQ0FwQix1QkFBU3VCLE1BQVQsQ0FBZ0JSLEtBQUtFLFFBQXJCLEVBQStCLENBQS9CLEVBQWtDLDhCQUFsQztBQUNELGFBSEQsTUFHTyxJQUFJLENBQUNHLGFBQUQsSUFBa0IsQ0FBQ0UsYUFBdkIsRUFBc0M7QUFDM0N0Qix1QkFBU1QsSUFBVCxDQUFjLDhCQUFkO0FBQ0Q7QUFDRjtBQUNETSxnQkFBTU4sSUFBTixDQUFXd0IsSUFBWDs7QUFFQWpCLDBCQUFnQixDQUFoQjtBQUNBQywwQkFBZ0IsQ0FBaEI7QUFDQUMscUJBQVcsRUFBWDtBQUNEO0FBQ0Y7QUFDREMsaUJBQVdSLE1BQU1rQixNQUFqQjtBQUNBVCxpQkFBV1QsTUFBTWtCLE1BQWpCO0FBQ0Q7QUF2Rm9HOztBQWtCdkcsT0FBSyxJQUFJUixJQUFJLENBQWIsRUFBZ0JBLElBQUliLEtBQUtxQixNQUF6QixFQUFpQ1IsR0FBakMsRUFBc0M7QUFBQSwyREFBN0JBLENBQTZCO0FBc0VyQzs7QUFFRCxTQUFPO0FBQ0xyQixpQkFBYUEsV0FEUixFQUNxQkMsYUFBYUEsV0FEbEM7QUFFTEcsZUFBV0EsU0FGTixFQUVpQkMsV0FBV0EsU0FGNUI7QUFHTFUsV0FBT0E7QUFIRixHQUFQO0FBS0Q7O0FBRU0sU0FBU2pCLG1CQUFULENBQTZCRSxXQUE3QixFQUEwQ0MsV0FBMUMsRUFBdURDLE1BQXZELEVBQStEQyxNQUEvRCxFQUF1RUMsU0FBdkUsRUFBa0ZDLFNBQWxGLEVBQTZGQyxPQUE3RixFQUFzRztBQUMzRyxNQUFNRSxPQUFPWCxnQkFBZ0JHLFdBQWhCLEVBQTZCQyxXQUE3QixFQUEwQ0MsTUFBMUMsRUFBa0RDLE1BQWxELEVBQTBEQyxTQUExRCxFQUFxRUMsU0FBckUsRUFBZ0ZDLE9BQWhGLENBQWI7O0FBRUEsTUFBTW9DLE1BQU0sRUFBWjtBQUNBLE1BQUkxQyxlQUFlQyxXQUFuQixFQUFnQztBQUM5QnlDLFFBQUlqQyxJQUFKLENBQVMsWUFBWVQsV0FBckI7QUFDRDtBQUNEMEMsTUFBSWpDLElBQUosQ0FBUyxxRUFBVDtBQUNBaUMsTUFBSWpDLElBQUosQ0FBUyxTQUFTRCxLQUFLUixXQUFkLElBQTZCLE9BQU9RLEtBQUtKLFNBQVosS0FBMEIsV0FBMUIsR0FBd0MsRUFBeEMsR0FBNkMsT0FBT0ksS0FBS0osU0FBdEYsQ0FBVDtBQUNBc0MsTUFBSWpDLElBQUosQ0FBUyxTQUFTRCxLQUFLUCxXQUFkLElBQTZCLE9BQU9PLEtBQUtILFNBQVosS0FBMEIsV0FBMUIsR0FBd0MsRUFBeEMsR0FBNkMsT0FBT0csS0FBS0gsU0FBdEYsQ0FBVDs7QUFFQSxPQUFLLElBQUlnQixJQUFJLENBQWIsRUFBZ0JBLElBQUliLEtBQUtPLEtBQUwsQ0FBV2MsTUFBL0IsRUFBdUNSLEdBQXZDLEVBQTRDO0FBQzFDLFFBQU1ZLE9BQU96QixLQUFLTyxLQUFMLENBQVdNLENBQVgsQ0FBYjtBQUNBcUIsUUFBSWpDLElBQUosQ0FDRSxTQUFTd0IsS0FBS0MsUUFBZCxHQUF5QixHQUF6QixHQUErQkQsS0FBS0UsUUFBcEMsR0FDRSxJQURGLEdBQ1NGLEtBQUtHLFFBRGQsR0FDeUIsR0FEekIsR0FDK0JILEtBQUtJLFFBRHBDLEdBRUUsS0FISjtBQUtBSyxRQUFJakMsSUFBSixDQUFTa0MsS0FBVCxDQUFlRCxHQUFmLEVBQW9CVCxLQUFLdEIsS0FBekI7QUFDRDs7QUFFRCxTQUFPK0IsSUFBSUUsSUFBSixDQUFTLElBQVQsSUFBaUIsSUFBeEI7QUFDRDs7QUFFTSxTQUFTN0MsV0FBVCxDQUFxQjhDLFFBQXJCLEVBQStCM0MsTUFBL0IsRUFBdUNDLE1BQXZDLEVBQStDQyxTQUEvQyxFQUEwREMsU0FBMUQsRUFBcUVDLE9BQXJFLEVBQThFO0FBQ25GLFNBQU9SLG9CQUFvQitDLFFBQXBCLEVBQThCQSxRQUE5QixFQUF3QzNDLE1BQXhDLEVBQWdEQyxNQUFoRCxFQUF3REMsU0FBeEQsRUFBbUVDLFNBQW5FLEVBQThFQyxPQUE5RSxDQUFQO0FBQ0QiLCJmaWxlIjoiY3JlYXRlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtkaWZmTGluZXN9IGZyb20gJy4uL2RpZmYvbGluZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiBzdHJ1Y3R1cmVkUGF0Y2gob2xkRmlsZU5hbWUsIG5ld0ZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgaWYgKCFvcHRpb25zKSB7XG4gICAgb3B0aW9ucyA9IHt9O1xuICB9XG4gIGlmICh0eXBlb2Ygb3B0aW9ucy5jb250ZXh0ID09PSAndW5kZWZpbmVkJykge1xuICAgIG9wdGlvbnMuY29udGV4dCA9IDQ7XG4gIH1cblxuICBjb25zdCBkaWZmID0gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbiAgZGlmZi5wdXNoKHt2YWx1ZTogJycsIGxpbmVzOiBbXX0pOyAgIC8vIEFwcGVuZCBhbiBlbXB0eSB2YWx1ZSB0byBtYWtlIGNsZWFudXAgZWFzaWVyXG5cbiAgZnVuY3Rpb24gY29udGV4dExpbmVzKGxpbmVzKSB7XG4gICAgcmV0dXJuIGxpbmVzLm1hcChmdW5jdGlvbihlbnRyeSkgeyByZXR1cm4gJyAnICsgZW50cnk7IH0pO1xuICB9XG5cbiAgbGV0IGh1bmtzID0gW107XG4gIGxldCBvbGRSYW5nZVN0YXJ0ID0gMCwgbmV3UmFuZ2VTdGFydCA9IDAsIGN1clJhbmdlID0gW10sXG4gICAgICBvbGRMaW5lID0gMSwgbmV3TGluZSA9IDE7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgZGlmZi5sZW5ndGg7IGkrKykge1xuICAgIGNvbnN0IGN1cnJlbnQgPSBkaWZmW2ldLFxuICAgICAgICAgIGxpbmVzID0gY3VycmVudC5saW5lcyB8fCBjdXJyZW50LnZhbHVlLnJlcGxhY2UoL1xcbiQvLCAnJykuc3BsaXQoJ1xcbicpO1xuICAgIGN1cnJlbnQubGluZXMgPSBsaW5lcztcblxuICAgIGlmIChjdXJyZW50LmFkZGVkIHx8IGN1cnJlbnQucmVtb3ZlZCkge1xuICAgICAgLy8gSWYgd2UgaGF2ZSBwcmV2aW91cyBjb250ZXh0LCBzdGFydCB3aXRoIHRoYXRcbiAgICAgIGlmICghb2xkUmFuZ2VTdGFydCkge1xuICAgICAgICBjb25zdCBwcmV2ID0gZGlmZltpIC0gMV07XG4gICAgICAgIG9sZFJhbmdlU3RhcnQgPSBvbGRMaW5lO1xuICAgICAgICBuZXdSYW5nZVN0YXJ0ID0gbmV3TGluZTtcblxuICAgICAgICBpZiAocHJldikge1xuICAgICAgICAgIGN1clJhbmdlID0gb3B0aW9ucy5jb250ZXh0ID4gMCA/IGNvbnRleHRMaW5lcyhwcmV2LmxpbmVzLnNsaWNlKC1vcHRpb25zLmNvbnRleHQpKSA6IFtdO1xuICAgICAgICAgIG9sZFJhbmdlU3RhcnQgLT0gY3VyUmFuZ2UubGVuZ3RoO1xuICAgICAgICAgIG5ld1JhbmdlU3RhcnQgLT0gY3VyUmFuZ2UubGVuZ3RoO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC8vIE91dHB1dCBvdXIgY2hhbmdlc1xuICAgICAgY3VyUmFuZ2UucHVzaCguLi4gbGluZXMubWFwKGZ1bmN0aW9uKGVudHJ5KSB7XG4gICAgICAgIHJldHVybiAoY3VycmVudC5hZGRlZCA/ICcrJyA6ICctJykgKyBlbnRyeTtcbiAgICAgIH0pKTtcblxuICAgICAgLy8gVHJhY2sgdGhlIHVwZGF0ZWQgZmlsZSBwb3NpdGlvblxuICAgICAgaWYgKGN1cnJlbnQuYWRkZWQpIHtcbiAgICAgICAgbmV3TGluZSArPSBsaW5lcy5sZW5ndGg7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBvbGRMaW5lICs9IGxpbmVzLmxlbmd0aDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgLy8gSWRlbnRpY2FsIGNvbnRleHQgbGluZXMuIFRyYWNrIGxpbmUgY2hhbmdlc1xuICAgICAgaWYgKG9sZFJhbmdlU3RhcnQpIHtcbiAgICAgICAgLy8gQ2xvc2Ugb3V0IGFueSBjaGFuZ2VzIHRoYXQgaGF2ZSBiZWVuIG91dHB1dCAob3Igam9pbiBvdmVybGFwcGluZylcbiAgICAgICAgaWYgKGxpbmVzLmxlbmd0aCA8PSBvcHRpb25zLmNvbnRleHQgKiAyICYmIGkgPCBkaWZmLmxlbmd0aCAtIDIpIHtcbiAgICAgICAgICAvLyBPdmVybGFwcGluZ1xuICAgICAgICAgIGN1clJhbmdlLnB1c2goLi4uIGNvbnRleHRMaW5lcyhsaW5lcykpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIGVuZCB0aGUgcmFuZ2UgYW5kIG91dHB1dFxuICAgICAgICAgIGxldCBjb250ZXh0U2l6ZSA9IE1hdGgubWluKGxpbmVzLmxlbmd0aCwgb3B0aW9ucy5jb250ZXh0KTtcbiAgICAgICAgICBjdXJSYW5nZS5wdXNoKC4uLiBjb250ZXh0TGluZXMobGluZXMuc2xpY2UoMCwgY29udGV4dFNpemUpKSk7XG5cbiAgICAgICAgICBsZXQgaHVuayA9IHtcbiAgICAgICAgICAgIG9sZFN0YXJ0OiBvbGRSYW5nZVN0YXJ0LFxuICAgICAgICAgICAgb2xkTGluZXM6IChvbGRMaW5lIC0gb2xkUmFuZ2VTdGFydCArIGNvbnRleHRTaXplKSxcbiAgICAgICAgICAgIG5ld1N0YXJ0OiBuZXdSYW5nZVN0YXJ0LFxuICAgICAgICAgICAgbmV3TGluZXM6IChuZXdMaW5lIC0gbmV3UmFuZ2VTdGFydCArIGNvbnRleHRTaXplKSxcbiAgICAgICAgICAgIGxpbmVzOiBjdXJSYW5nZVxuICAgICAgICAgIH07XG4gICAgICAgICAgaWYgKGkgPj0gZGlmZi5sZW5ndGggLSAyICYmIGxpbmVzLmxlbmd0aCA8PSBvcHRpb25zLmNvbnRleHQpIHtcbiAgICAgICAgICAgIC8vIEVPRiBpcyBpbnNpZGUgdGhpcyBodW5rXG4gICAgICAgICAgICBsZXQgb2xkRU9GTmV3bGluZSA9ICgvXFxuJC8udGVzdChvbGRTdHIpKTtcbiAgICAgICAgICAgIGxldCBuZXdFT0ZOZXdsaW5lID0gKC9cXG4kLy50ZXN0KG5ld1N0cikpO1xuICAgICAgICAgICAgaWYgKGxpbmVzLmxlbmd0aCA9PSAwICYmICFvbGRFT0ZOZXdsaW5lKSB7XG4gICAgICAgICAgICAgIC8vIHNwZWNpYWwgY2FzZTogb2xkIGhhcyBubyBlb2wgYW5kIG5vIHRyYWlsaW5nIGNvbnRleHQ7IG5vLW5sIGNhbiBlbmQgdXAgYmVmb3JlIGFkZHNcbiAgICAgICAgICAgICAgY3VyUmFuZ2Uuc3BsaWNlKGh1bmsub2xkTGluZXMsIDAsICdcXFxcIE5vIG5ld2xpbmUgYXQgZW5kIG9mIGZpbGUnKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIW9sZEVPRk5ld2xpbmUgfHwgIW5ld0VPRk5ld2xpbmUpIHtcbiAgICAgICAgICAgICAgY3VyUmFuZ2UucHVzaCgnXFxcXCBObyBuZXdsaW5lIGF0IGVuZCBvZiBmaWxlJyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICAgIGh1bmtzLnB1c2goaHVuayk7XG5cbiAgICAgICAgICBvbGRSYW5nZVN0YXJ0ID0gMDtcbiAgICAgICAgICBuZXdSYW5nZVN0YXJ0ID0gMDtcbiAgICAgICAgICBjdXJSYW5nZSA9IFtdO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBvbGRMaW5lICs9IGxpbmVzLmxlbmd0aDtcbiAgICAgIG5ld0xpbmUgKz0gbGluZXMubGVuZ3RoO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB7XG4gICAgb2xkRmlsZU5hbWU6IG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZTogbmV3RmlsZU5hbWUsXG4gICAgb2xkSGVhZGVyOiBvbGRIZWFkZXIsIG5ld0hlYWRlcjogbmV3SGVhZGVyLFxuICAgIGh1bmtzOiBodW5rc1xuICB9O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlVHdvRmlsZXNQYXRjaChvbGRGaWxlTmFtZSwgbmV3RmlsZU5hbWUsIG9sZFN0ciwgbmV3U3RyLCBvbGRIZWFkZXIsIG5ld0hlYWRlciwgb3B0aW9ucykge1xuICBjb25zdCBkaWZmID0gc3RydWN0dXJlZFBhdGNoKG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZSwgb2xkU3RyLCBuZXdTdHIsIG9sZEhlYWRlciwgbmV3SGVhZGVyLCBvcHRpb25zKTtcblxuICBjb25zdCByZXQgPSBbXTtcbiAgaWYgKG9sZEZpbGVOYW1lID09IG5ld0ZpbGVOYW1lKSB7XG4gICAgcmV0LnB1c2goJ0luZGV4OiAnICsgb2xkRmlsZU5hbWUpO1xuICB9XG4gIHJldC5wdXNoKCc9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Jyk7XG4gIHJldC5wdXNoKCctLS0gJyArIGRpZmYub2xkRmlsZU5hbWUgKyAodHlwZW9mIGRpZmYub2xkSGVhZGVyID09PSAndW5kZWZpbmVkJyA/ICcnIDogJ1xcdCcgKyBkaWZmLm9sZEhlYWRlcikpO1xuICByZXQucHVzaCgnKysrICcgKyBkaWZmLm5ld0ZpbGVOYW1lICsgKHR5cGVvZiBkaWZmLm5ld0hlYWRlciA9PT0gJ3VuZGVmaW5lZCcgPyAnJyA6ICdcXHQnICsgZGlmZi5uZXdIZWFkZXIpKTtcblxuICBmb3IgKGxldCBpID0gMDsgaSA8IGRpZmYuaHVua3MubGVuZ3RoOyBpKyspIHtcbiAgICBjb25zdCBodW5rID0gZGlmZi5odW5rc1tpXTtcbiAgICByZXQucHVzaChcbiAgICAgICdAQCAtJyArIGh1bmsub2xkU3RhcnQgKyAnLCcgKyBodW5rLm9sZExpbmVzXG4gICAgICArICcgKycgKyBodW5rLm5ld1N0YXJ0ICsgJywnICsgaHVuay5uZXdMaW5lc1xuICAgICAgKyAnIEBAJ1xuICAgICk7XG4gICAgcmV0LnB1c2guYXBwbHkocmV0LCBodW5rLmxpbmVzKTtcbiAgfVxuXG4gIHJldHVybiByZXQuam9pbignXFxuJykgKyAnXFxuJztcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVBhdGNoKGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgcmV0dXJuIGNyZWF0ZVR3b0ZpbGVzUGF0Y2goZmlsZU5hbWUsIGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpO1xufVxuIl19 - - -/***/ }), -/* 15 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/"use strict"; - - exports.__esModule = true; - exports. /*istanbul ignore end*/arrayEqual = arrayEqual; - /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayStartsWith = arrayStartsWith; - function arrayEqual(a, b) { - if (a.length !== b.length) { - return false; - } - - return arrayStartsWith(a, b); - } - - function arrayStartsWith(array, start) { - if (start.length > array.length) { - return false; - } - - for (var i = 0; i < start.length; i++) { - if (start[i] !== array[i]) { - return false; - } - } - - return true; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2FycmF5LmpzIl0sIm5hbWVzIjpbImFycmF5RXF1YWwiLCJhcnJheVN0YXJ0c1dpdGgiLCJhIiwiYiIsImxlbmd0aCIsImFycmF5Iiwic3RhcnQiLCJpIl0sIm1hcHBpbmdzIjoiOzs7Z0NBQWdCQSxVLEdBQUFBLFU7eURBUUFDLGUsR0FBQUEsZTtBQVJULFNBQVNELFVBQVQsQ0FBb0JFLENBQXBCLEVBQXVCQyxDQUF2QixFQUEwQjtBQUMvQixNQUFJRCxFQUFFRSxNQUFGLEtBQWFELEVBQUVDLE1BQW5CLEVBQTJCO0FBQ3pCLFdBQU8sS0FBUDtBQUNEOztBQUVELFNBQU9ILGdCQUFnQkMsQ0FBaEIsRUFBbUJDLENBQW5CLENBQVA7QUFDRDs7QUFFTSxTQUFTRixlQUFULENBQXlCSSxLQUF6QixFQUFnQ0MsS0FBaEMsRUFBdUM7QUFDNUMsTUFBSUEsTUFBTUYsTUFBTixHQUFlQyxNQUFNRCxNQUF6QixFQUFpQztBQUMvQixXQUFPLEtBQVA7QUFDRDs7QUFFRCxPQUFLLElBQUlHLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTUYsTUFBMUIsRUFBa0NHLEdBQWxDLEVBQXVDO0FBQ3JDLFFBQUlELE1BQU1DLENBQU4sTUFBYUYsTUFBTUUsQ0FBTixDQUFqQixFQUEyQjtBQUN6QixhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVELFNBQU8sSUFBUDtBQUNEIiwiZmlsZSI6ImFycmF5LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGFycmF5RXF1YWwoYSwgYikge1xuICBpZiAoYS5sZW5ndGggIT09IGIubGVuZ3RoKSB7XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG5cbiAgcmV0dXJuIGFycmF5U3RhcnRzV2l0aChhLCBiKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGFycmF5U3RhcnRzV2l0aChhcnJheSwgc3RhcnQpIHtcbiAgaWYgKHN0YXJ0Lmxlbmd0aCA+IGFycmF5Lmxlbmd0aCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgc3RhcnQubGVuZ3RoOyBpKyspIHtcbiAgICBpZiAoc3RhcnRbaV0gIT09IGFycmF5W2ldKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHRydWU7XG59XG4iXX0= - - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/"use strict"; - - exports.__esModule = true; - exports. /*istanbul ignore end*/convertChangesToDMP = convertChangesToDMP; - // See: http://code.google.com/p/google-diff-match-patch/wiki/API - function convertChangesToDMP(changes) { - var ret = [], - change = /*istanbul ignore start*/void 0 /*istanbul ignore end*/, - operation = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - for (var i = 0; i < changes.length; i++) { - change = changes[i]; - if (change.added) { - operation = 1; - } else if (change.removed) { - operation = -1; - } else { - operation = 0; - } - - ret.push([operation, change.value]); - } - return ret; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0L2RtcC5qcyJdLCJuYW1lcyI6WyJjb252ZXJ0Q2hhbmdlc1RvRE1QIiwiY2hhbmdlcyIsInJldCIsImNoYW5nZSIsIm9wZXJhdGlvbiIsImkiLCJsZW5ndGgiLCJhZGRlZCIsInJlbW92ZWQiLCJwdXNoIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7OztnQ0FDZ0JBLG1CLEdBQUFBLG1CO0FBRGhCO0FBQ08sU0FBU0EsbUJBQVQsQ0FBNkJDLE9BQTdCLEVBQXNDO0FBQzNDLE1BQUlDLE1BQU0sRUFBVjtBQUFBLE1BQ0lDLHdDQURKO0FBQUEsTUFFSUMsMkNBRko7QUFHQSxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosUUFBUUssTUFBNUIsRUFBb0NELEdBQXBDLEVBQXlDO0FBQ3ZDRixhQUFTRixRQUFRSSxDQUFSLENBQVQ7QUFDQSxRQUFJRixPQUFPSSxLQUFYLEVBQWtCO0FBQ2hCSCxrQkFBWSxDQUFaO0FBQ0QsS0FGRCxNQUVPLElBQUlELE9BQU9LLE9BQVgsRUFBb0I7QUFDekJKLGtCQUFZLENBQUMsQ0FBYjtBQUNELEtBRk0sTUFFQTtBQUNMQSxrQkFBWSxDQUFaO0FBQ0Q7O0FBRURGLFFBQUlPLElBQUosQ0FBUyxDQUFDTCxTQUFELEVBQVlELE9BQU9PLEtBQW5CLENBQVQ7QUFDRDtBQUNELFNBQU9SLEdBQVA7QUFDRCIsImZpbGUiOiJkbXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTZWU6IGh0dHA6Ly9jb2RlLmdvb2dsZS5jb20vcC9nb29nbGUtZGlmZi1tYXRjaC1wYXRjaC93aWtpL0FQSVxuZXhwb3J0IGZ1bmN0aW9uIGNvbnZlcnRDaGFuZ2VzVG9ETVAoY2hhbmdlcykge1xuICBsZXQgcmV0ID0gW10sXG4gICAgICBjaGFuZ2UsXG4gICAgICBvcGVyYXRpb247XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgY2hhbmdlcy5sZW5ndGg7IGkrKykge1xuICAgIGNoYW5nZSA9IGNoYW5nZXNbaV07XG4gICAgaWYgKGNoYW5nZS5hZGRlZCkge1xuICAgICAgb3BlcmF0aW9uID0gMTtcbiAgICB9IGVsc2UgaWYgKGNoYW5nZS5yZW1vdmVkKSB7XG4gICAgICBvcGVyYXRpb24gPSAtMTtcbiAgICB9IGVsc2Uge1xuICAgICAgb3BlcmF0aW9uID0gMDtcbiAgICB9XG5cbiAgICByZXQucHVzaChbb3BlcmF0aW9uLCBjaGFuZ2UudmFsdWVdKTtcbiAgfVxuICByZXR1cm4gcmV0O1xufVxuIl19 - - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/convertChangesToXML = convertChangesToXML; - function convertChangesToXML(changes) { - var ret = []; - for (var i = 0; i < changes.length; i++) { - var change = changes[i]; - if (change.added) { - ret.push(''); - } else if (change.removed) { - ret.push(''); - } - - ret.push(escapeHTML(change.value)); - - if (change.added) { - ret.push(''); - } else if (change.removed) { - ret.push(''); - } - } - return ret.join(''); - } - - function escapeHTML(s) { - var n = s; - n = n.replace(/&/g, '&'); - n = n.replace(//g, '>'); - n = n.replace(/"/g, '"'); - - return n; - } - - -/***/ }) -/******/ ]) -}); -; - -/***/ }), - -/***/ 263: -/***/ (function(module, exports) { - -var traverse = module.exports = function (obj) { - return new Traverse(obj); -}; - -function Traverse (obj) { - this.value = obj; -} - -Traverse.prototype.get = function (ps) { - var node = this.value; - for (var i = 0; i < ps.length; i ++) { - var key = ps[i]; - if (!node || !hasOwnProperty.call(node, key)) { - node = undefined; - break; - } - node = node[key]; - } - return node; -}; - -Traverse.prototype.has = function (ps) { - var node = this.value; - for (var i = 0; i < ps.length; i ++) { - var key = ps[i]; - if (!node || !hasOwnProperty.call(node, key)) { - return false; - } - node = node[key]; - } - return true; -}; - -Traverse.prototype.set = function (ps, value) { - var node = this.value; - for (var i = 0; i < ps.length - 1; i ++) { - var key = ps[i]; - if (!hasOwnProperty.call(node, key)) node[key] = {}; - node = node[key]; - } - node[ps[i]] = value; - return value; -}; - -Traverse.prototype.map = function (cb) { - return walk(this.value, cb, true); -}; - -Traverse.prototype.forEach = function (cb) { - this.value = walk(this.value, cb, false); - return this.value; -}; - -Traverse.prototype.reduce = function (cb, init) { - var skip = arguments.length === 1; - var acc = skip ? this.value : init; - this.forEach(function (x) { - if (!this.isRoot || !skip) { - acc = cb.call(this, acc, x); - } - }); - return acc; -}; - -Traverse.prototype.paths = function () { - var acc = []; - this.forEach(function (x) { - acc.push(this.path); - }); - return acc; -}; - -Traverse.prototype.nodes = function () { - var acc = []; - this.forEach(function (x) { - acc.push(this.node); - }); - return acc; -}; - -Traverse.prototype.clone = function () { - var parents = [], nodes = []; - - return (function clone (src) { - for (var i = 0; i < parents.length; i++) { - if (parents[i] === src) { - return nodes[i]; - } - } - - if (typeof src === 'object' && src !== null) { - var dst = copy(src); - - parents.push(src); - nodes.push(dst); - - forEach(objectKeys(src), function (key) { - dst[key] = clone(src[key]); - }); - - parents.pop(); - nodes.pop(); - return dst; - } - else { - return src; - } - })(this.value); -}; - -function walk (root, cb, immutable) { - var path = []; - var parents = []; - var alive = true; - - return (function walker (node_) { - var node = immutable ? copy(node_) : node_; - var modifiers = {}; - - var keepGoing = true; - - var state = { - node : node, - node_ : node_, - path : [].concat(path), - parent : parents[parents.length - 1], - parents : parents, - key : path.slice(-1)[0], - isRoot : path.length === 0, - level : path.length, - circular : null, - update : function (x, stopHere) { - if (!state.isRoot) { - state.parent.node[state.key] = x; - } - state.node = x; - if (stopHere) keepGoing = false; - }, - 'delete' : function (stopHere) { - delete state.parent.node[state.key]; - if (stopHere) keepGoing = false; - }, - remove : function (stopHere) { - if (isArray(state.parent.node)) { - state.parent.node.splice(state.key, 1); - } - else { - delete state.parent.node[state.key]; - } - if (stopHere) keepGoing = false; - }, - keys : null, - before : function (f) { modifiers.before = f }, - after : function (f) { modifiers.after = f }, - pre : function (f) { modifiers.pre = f }, - post : function (f) { modifiers.post = f }, - stop : function () { alive = false }, - block : function () { keepGoing = false } - }; - - if (!alive) return state; - - function updateState() { - if (typeof state.node === 'object' && state.node !== null) { - if (!state.keys || state.node_ !== state.node) { - state.keys = objectKeys(state.node) - } - - state.isLeaf = state.keys.length == 0; - - for (var i = 0; i < parents.length; i++) { - if (parents[i].node_ === node_) { - state.circular = parents[i]; - break; - } - } - } - else { - state.isLeaf = true; - state.keys = null; - } - - state.notLeaf = !state.isLeaf; - state.notRoot = !state.isRoot; - } - - updateState(); - - // use return values to update if defined - var ret = cb.call(state, state.node); - if (ret !== undefined && state.update) state.update(ret); - - if (modifiers.before) modifiers.before.call(state, state.node); - - if (!keepGoing) return state; - - if (typeof state.node == 'object' - && state.node !== null && !state.circular) { - parents.push(state); - - updateState(); - - forEach(state.keys, function (key, i) { - path.push(key); - - if (modifiers.pre) modifiers.pre.call(state, state.node[key], key); - - var child = walker(state.node[key]); - if (immutable && hasOwnProperty.call(state.node, key)) { - state.node[key] = child.node; - } - - child.isLast = i == state.keys.length - 1; - child.isFirst = i == 0; - - if (modifiers.post) modifiers.post.call(state, child); - - path.pop(); - }); - parents.pop(); - } - - if (modifiers.after) modifiers.after.call(state, state.node); - - return state; - })(root).node; -} - -function copy (src) { - if (typeof src === 'object' && src !== null) { - var dst; - - if (isArray(src)) { - dst = []; - } - else if (isDate(src)) { - dst = new Date(src.getTime ? src.getTime() : src); - } - else if (isRegExp(src)) { - dst = new RegExp(src); - } - else if (isError(src)) { - dst = { message: src.message }; - } - else if (isBoolean(src)) { - dst = new Boolean(src); - } - else if (isNumber(src)) { - dst = new Number(src); - } - else if (isString(src)) { - dst = new String(src); - } - else if (Object.create && Object.getPrototypeOf) { - dst = Object.create(Object.getPrototypeOf(src)); - } - else if (src.constructor === Object) { - dst = {}; - } - else { - var proto = - (src.constructor && src.constructor.prototype) - || src.__proto__ - || {} - ; - var T = function () {}; - T.prototype = proto; - dst = new T; - } - - forEach(objectKeys(src), function (key) { - dst[key] = src[key]; - }); - return dst; - } - else return src; -} - -var objectKeys = Object.keys || function keys (obj) { - var res = []; - for (var key in obj) res.push(key) - return res; -}; - -function toS (obj) { return Object.prototype.toString.call(obj) } -function isDate (obj) { return toS(obj) === '[object Date]' } -function isRegExp (obj) { return toS(obj) === '[object RegExp]' } -function isError (obj) { return toS(obj) === '[object Error]' } -function isBoolean (obj) { return toS(obj) === '[object Boolean]' } -function isNumber (obj) { return toS(obj) === '[object Number]' } -function isString (obj) { return toS(obj) === '[object String]' } - -var isArray = Array.isArray || function isArray (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - -var forEach = function (xs, fn) { - if (xs.forEach) return xs.forEach(fn) - else for (var i = 0; i < xs.length; i++) { - fn(xs[i], i, xs); - } -}; - -forEach(objectKeys(Traverse.prototype), function (key) { - traverse[key] = function (obj) { - var args = [].slice.call(arguments, 1); - var t = new Traverse(obj); - return t[key].apply(t, args); - }; -}); - -var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { - return key in obj; -}; - - -/***/ }), - -/***/ 27: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} - -/***/ }), - -/***/ 28: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["dom"]; }()); - -/***/ }), - -/***/ 281: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z" -})); -/* harmony default export */ __webpack_exports__["a"] = (alignLeft); - - -/***/ }), - -/***/ 282: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z" -})); -/* harmony default export */ __webpack_exports__["a"] = (alignCenter); - - -/***/ }), - -/***/ 283: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z" -})); -/* harmony default export */ __webpack_exports__["a"] = (alignRight); - - -/***/ }), - -/***/ 284: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var moreHorizontal = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" -})); -/* harmony default export */ __webpack_exports__["a"] = (moreHorizontal); - - -/***/ }), - -/***/ 285: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var plusCircle = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (plusCircle); - - -/***/ }), - -/***/ 286: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (pencil); - - -/***/ }), - -/***/ 287: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z" -})); -/* harmony default export */ __webpack_exports__["a"] = (upload); - - -/***/ }), - -/***/ 288: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z" -})); -/* harmony default export */ __webpack_exports__["a"] = (chevronDown); - - -/***/ }), - -/***/ 289: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" -})); -/* harmony default export */ __webpack_exports__["a"] = (chevronUp); - - -/***/ }), - -/***/ 3: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["components"]; }()); - -/***/ }), - -/***/ 30: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["url"]; }()); - -/***/ }), - -/***/ 32: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["hooks"]; }()); - -/***/ }), - -/***/ 34: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); -function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - - return _typeof(obj); -} - -/***/ }), - -/***/ 35: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); -} - -/***/ }), - -/***/ 37: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), - -/***/ 38: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), - -/***/ 39: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} - -/***/ }), - -/***/ 4: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["data"]; }()); - -/***/ }), - -/***/ 40: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), - -/***/ 41: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - -/***/ 421: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var actions_namespaceObject = {}; -__webpack_require__.r(actions_namespaceObject); -__webpack_require__.d(actions_namespaceObject, "resetBlocks", function() { return actions_resetBlocks; }); -__webpack_require__.d(actions_namespaceObject, "resetSelection", function() { return actions_resetSelection; }); -__webpack_require__.d(actions_namespaceObject, "receiveBlocks", function() { return receiveBlocks; }); -__webpack_require__.d(actions_namespaceObject, "updateBlockAttributes", function() { return actions_updateBlockAttributes; }); -__webpack_require__.d(actions_namespaceObject, "updateBlock", function() { return actions_updateBlock; }); -__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return actions_selectBlock; }); -__webpack_require__.d(actions_namespaceObject, "selectPreviousBlock", function() { return selectPreviousBlock; }); -__webpack_require__.d(actions_namespaceObject, "selectNextBlock", function() { return selectNextBlock; }); -__webpack_require__.d(actions_namespaceObject, "startMultiSelect", function() { return actions_startMultiSelect; }); -__webpack_require__.d(actions_namespaceObject, "stopMultiSelect", function() { return actions_stopMultiSelect; }); -__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return actions_multiSelect; }); -__webpack_require__.d(actions_namespaceObject, "clearSelectedBlock", function() { return actions_clearSelectedBlock; }); -__webpack_require__.d(actions_namespaceObject, "toggleSelection", function() { return actions_toggleSelection; }); -__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return actions_replaceBlocks; }); -__webpack_require__.d(actions_namespaceObject, "replaceBlock", function() { return replaceBlock; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return actions_moveBlocksDown; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return actions_moveBlocksUp; }); -__webpack_require__.d(actions_namespaceObject, "moveBlockToPosition", function() { return actions_moveBlockToPosition; }); -__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return actions_insertBlock; }); -__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return actions_insertBlocks; }); -__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return actions_showInsertionPoint; }); -__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return actions_hideInsertionPoint; }); -__webpack_require__.d(actions_namespaceObject, "setTemplateValidity", function() { return setTemplateValidity; }); -__webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function() { return synchronizeTemplate; }); -__webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return actions_mergeBlocks; }); -__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return actions_removeBlocks; }); -__webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return actions_removeBlock; }); -__webpack_require__.d(actions_namespaceObject, "replaceInnerBlocks", function() { return actions_replaceInnerBlocks; }); -__webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; }); -__webpack_require__.d(actions_namespaceObject, "startTyping", function() { return actions_startTyping; }); -__webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return actions_stopTyping; }); -__webpack_require__.d(actions_namespaceObject, "startDraggingBlocks", function() { return actions_startDraggingBlocks; }); -__webpack_require__.d(actions_namespaceObject, "stopDraggingBlocks", function() { return actions_stopDraggingBlocks; }); -__webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return actions_enterFormattedText; }); -__webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return actions_exitFormattedText; }); -__webpack_require__.d(actions_namespaceObject, "selectionChange", function() { return actions_selectionChange; }); -__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return actions_insertDefaultBlock; }); -__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return updateBlockListSettings; }); -__webpack_require__.d(actions_namespaceObject, "updateSettings", function() { return actions_updateSettings; }); -__webpack_require__.d(actions_namespaceObject, "__unstableSaveReusableBlock", function() { return __unstableSaveReusableBlock; }); -__webpack_require__.d(actions_namespaceObject, "__unstableMarkLastChangeAsPersistent", function() { return actions_unstableMarkLastChangeAsPersistent; }); -__webpack_require__.d(actions_namespaceObject, "__unstableMarkNextChangeAsNotPersistent", function() { return __unstableMarkNextChangeAsNotPersistent; }); -__webpack_require__.d(actions_namespaceObject, "__unstableMarkAutomaticChange", function() { return actions_unstableMarkAutomaticChange; }); -__webpack_require__.d(actions_namespaceObject, "setNavigationMode", function() { return actions_setNavigationMode; }); -__webpack_require__.d(actions_namespaceObject, "duplicateBlocks", function() { return actions_duplicateBlocks; }); -__webpack_require__.d(actions_namespaceObject, "insertBeforeBlock", function() { return actions_insertBeforeBlock; }); -__webpack_require__.d(actions_namespaceObject, "insertAfterBlock", function() { return actions_insertAfterBlock; }); -var selectors_namespaceObject = {}; -__webpack_require__.r(selectors_namespaceObject); -__webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_HIGH", function() { return INSERTER_UTILITY_HIGH; }); -__webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_MEDIUM", function() { return INSERTER_UTILITY_MEDIUM; }); -__webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_LOW", function() { return INSERTER_UTILITY_LOW; }); -__webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_NONE", function() { return INSERTER_UTILITY_NONE; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockName", function() { return selectors_getBlockName; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return selectors_isBlockValid; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockAttributes", function() { return getBlockAttributes; }); -__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return selectors_getBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return selectors_unstableGetBlockWithoutInnerBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "getBlocks", function() { return selectors_getBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "getClientIdsOfDescendants", function() { return selectors_getClientIdsOfDescendants; }); -__webpack_require__.d(selectors_namespaceObject, "getClientIdsWithDescendants", function() { return getClientIdsWithDescendants; }); -__webpack_require__.d(selectors_namespaceObject, "getGlobalBlockCount", function() { return getGlobalBlockCount; }); -__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return selectors_getBlocksByClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return selectors_getBlockCount; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectionStart", function() { return selectors_getSelectionStart; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectionEnd", function() { return selectors_getSelectionEnd; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockSelectionStart", function() { return getBlockSelectionStart; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockSelectionEnd", function() { return getBlockSelectionEnd; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockCount", function() { return selectors_getSelectedBlockCount; }); -__webpack_require__.d(selectors_namespaceObject, "hasSelectedBlock", function() { return hasSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientId", function() { return selectors_getSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlock", function() { return selectors_getSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockRootClientId", function() { return selectors_getBlockRootClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockParents", function() { return selectors_getBlockParents; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockParentsByBlockName", function() { return getBlockParentsByBlockName; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockHierarchyRootClientId", function() { return getBlockHierarchyRootClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getLowestCommonAncestorWithSelectedBlock", function() { return getLowestCommonAncestorWithSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "getAdjacentBlockClientId", function() { return getAdjacentBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getPreviousBlockClientId", function() { return getPreviousBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getNextBlockClientId", function() { return getNextBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlocksInitialCaretPosition", function() { return selectors_getSelectedBlocksInitialCaretPosition; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientIds", function() { return selectors_getSelectedBlockClientIds; }); -__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlockClientIds", function() { return getMultiSelectedBlockClientIds; }); -__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocks", function() { return getMultiSelectedBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "getFirstMultiSelectedBlockClientId", function() { return selectors_getFirstMultiSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getLastMultiSelectedBlockClientId", function() { return selectors_getLastMultiSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "isFirstMultiSelectedBlock", function() { return selectors_isFirstMultiSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockMultiSelected", function() { return selectors_isBlockMultiSelected; }); -__webpack_require__.d(selectors_namespaceObject, "isAncestorMultiSelected", function() { return selectors_isAncestorMultiSelected; }); -__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksStartClientId", function() { return getMultiSelectedBlocksStartClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksEndClientId", function() { return getMultiSelectedBlocksEndClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockOrder", function() { return selectors_getBlockOrder; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockIndex", function() { return selectors_getBlockIndex; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockSelected", function() { return selectors_isBlockSelected; }); -__webpack_require__.d(selectors_namespaceObject, "hasSelectedInnerBlock", function() { return selectors_hasSelectedInnerBlock; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockWithinSelection", function() { return isBlockWithinSelection; }); -__webpack_require__.d(selectors_namespaceObject, "hasMultiSelection", function() { return selectors_hasMultiSelection; }); -__webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() { return selectors_isMultiSelecting; }); -__webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; }); -__webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; }); -__webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return selectors_isDraggingBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "isCaretWithinFormattedText", function() { return selectors_isCaretWithinFormattedText; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockInsertionPoint", function() { return getBlockInsertionPoint; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockInsertionPointVisible", function() { return isBlockInsertionPointVisible; }); -__webpack_require__.d(selectors_namespaceObject, "isValidTemplate", function() { return isValidTemplate; }); -__webpack_require__.d(selectors_namespaceObject, "getTemplate", function() { return getTemplate; }); -__webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return selectors_getTemplateLock; }); -__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return selectors_canInsertBlockType; }); -__webpack_require__.d(selectors_namespaceObject, "getInserterItems", function() { return selectors_getInserterItems; }); -__webpack_require__.d(selectors_namespaceObject, "hasInserterItems", function() { return selectors_hasInserterItems; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetAllowedBlocks", function() { return selectors_experimentalGetAllowedBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockListSettings", function() { return selectors_getBlockListSettings; }); -__webpack_require__.d(selectors_namespaceObject, "getSettings", function() { return selectors_getSettings; }); -__webpack_require__.d(selectors_namespaceObject, "isLastBlockChangePersistent", function() { return selectors_isLastBlockChangePersistent; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetBlockListSettingsForBlocks", function() { return selectors_experimentalGetBlockListSettingsForBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetParsedReusableBlock", function() { return __experimentalGetParsedReusableBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__unstableIsLastBlockChangeIgnored", function() { return selectors_unstableIsLastBlockChangeIgnored; }); -__webpack_require__.d(selectors_namespaceObject, "__experimentalGetLastBlockAttributeChanges", function() { return __experimentalGetLastBlockAttributeChanges; }); -__webpack_require__.d(selectors_namespaceObject, "isNavigationMode", function() { return selectors_isNavigationMode; }); -__webpack_require__.d(selectors_namespaceObject, "didAutomaticChange", function() { return selectors_didAutomaticChange; }); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(24); - -// EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(56); - -// EXTERNAL MODULE: external {"this":["wp","keyboardShortcuts"]} -var external_this_wp_keyboardShortcuts_ = __webpack_require__(48); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(12); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(11); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":"lodash"} -var external_this_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(32); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(54); -var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/utils.js -/** - * External dependencies - */ - - -/** - * Provided an array of color objects as set by the theme or by the editor defaults, - * and the values of the defined color or custom color returns a color object describing the color. - * - * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. - * @param {?string} definedColor A string containing the color slug. - * @param {?string} customColor A string containing the customColor value. - * - * @return {?Object} If definedColor is passed and the name is found in colors, - * the color object exactly as set by the theme or editor defaults is returned. - * Otherwise, an object that just sets the color is defined. - */ - -var utils_getColorObjectByAttributeValues = function getColorObjectByAttributeValues(colors, definedColor, customColor) { - if (definedColor) { - var colorObj = Object(external_this_lodash_["find"])(colors, { - slug: definedColor - }); - - if (colorObj) { - return colorObj; - } - } - - return { - color: customColor - }; -}; -/** - * Provided an array of color objects as set by the theme or by the editor defaults, and a color value returns the color object matching that value or undefined. - * - * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. - * @param {?string} colorValue A string containing the color value. - * - * @return {?Object} Color object included in the colors array whose color property equals colorValue. - * Returns undefined if no color object matches this requirement. - */ - -var utils_getColorObjectByColorValue = function getColorObjectByColorValue(colors, colorValue) { - return Object(external_this_lodash_["find"])(colors, { - color: colorValue - }); -}; -/** - * Returns a class based on the context a color is being used and its slug. - * - * @param {string} colorContextName Context/place where color is being used e.g: background, text etc... - * @param {string} colorSlug Slug of the color. - * - * @return {?string} String with the class corresponding to the color in the provided context. - * Returns undefined if either colorContextName or colorSlug are not provided. - */ - -function getColorClassName(colorContextName, colorSlug) { - if (!colorContextName || !colorSlug) { - return undefined; - } - - return "has-".concat(Object(external_this_lodash_["kebabCase"])(colorSlug), "-").concat(colorContextName); -} -/** - * Given an array of color objects and a color value returns the color value of the most readable color in the array. - * - * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. - * @param {?string} colorValue A string containing the color value. - * - * @return {string} String with the color value of the most readable color. - */ - -function utils_getMostReadableColor(colors, colorValue) { - return tinycolor_default.a.mostReadable(colorValue, Object(external_this_lodash_["map"])(colors, 'color')).toHexString(); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(17); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js - - - - - - - - - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -var DEFAULT_COLORS = []; -/** - * Higher order component factory for injecting the `colorsArray` argument as - * the colors prop in the `withCustomColors` HOC. - * - * @param {Array} colorsArray An array of color objects. - * - * @return {Function} The higher order component. - */ - -var with_colors_withCustomColorPalette = function withCustomColorPalette(colorsArray) { - return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { - colors: colorsArray - })); - }; - }, 'withCustomColorPalette'); -}; -/** - * Higher order component factory for injecting the editor colors as the - * `colors` prop in the `withColors` HOC. - * - * @return {Function} The higher order component. - */ - - -var with_colors_withEditorColorPalette = function withEditorColorPalette() { - return Object(external_this_wp_data_["withSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return { - colors: Object(external_this_lodash_["get"])(settings, ['colors'], DEFAULT_COLORS) - }; - }); -}; -/** - * Helper function used with `createHigherOrderComponent` to create - * higher order components for managing color logic. - * - * @param {Array} colorTypes An array of color types (e.g. 'backgroundColor, borderColor). - * @param {Function} withColorPalette A HOC for injecting the 'colors' prop into the WrappedComponent. - * - * @return {WPComponent} The component that can be used as a HOC. - */ - - -function createColorHOC(colorTypes, withColorPalette) { - var colorMap = Object(external_this_lodash_["reduce"])(colorTypes, function (colorObject, colorType) { - return _objectSpread({}, colorObject, {}, Object(external_this_lodash_["isString"])(colorType) ? Object(defineProperty["a" /* default */])({}, colorType, Object(external_this_lodash_["kebabCase"])(colorType)) : colorType); - }, {}); - return Object(external_this_wp_compose_["compose"])([withColorPalette, function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).call(this, props)); - _this.setters = _this.createSetters(); - _this.colorUtils = { - getMostReadableColor: _this.getMostReadableColor.bind(Object(assertThisInitialized["a" /* default */])(_this)) - }; - _this.state = {}; - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "getMostReadableColor", - value: function getMostReadableColor(colorValue) { - var colors = this.props.colors; - return utils_getMostReadableColor(colors, colorValue); - } - }, { - key: "createSetters", - value: function createSetters() { - var _this2 = this; - - return Object(external_this_lodash_["reduce"])(colorMap, function (settersAccumulator, colorContext, colorAttributeName) { - var upperFirstColorAttributeName = Object(external_this_lodash_["upperFirst"])(colorAttributeName); - var customColorAttributeName = "custom".concat(upperFirstColorAttributeName); - settersAccumulator["set".concat(upperFirstColorAttributeName)] = _this2.createSetColor(colorAttributeName, customColorAttributeName); - return settersAccumulator; - }, {}); - } - }, { - key: "createSetColor", - value: function createSetColor(colorAttributeName, customColorAttributeName) { - var _this3 = this; - - return function (colorValue) { - var _this3$props$setAttri; - - var colorObject = utils_getColorObjectByColorValue(_this3.props.colors, colorValue); - - _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, colorAttributeName, colorObject && colorObject.slug ? colorObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customColorAttributeName, colorObject && colorObject.slug ? undefined : colorValue), _this3$props$setAttri)); - }; - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, _objectSpread({}, this.props, { - colors: undefined - }, this.state, {}, this.setters, { - colorUtils: this.colorUtils - })); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(_ref2, previousState) { - var attributes = _ref2.attributes, - colors = _ref2.colors; - return Object(external_this_lodash_["reduce"])(colorMap, function (newState, colorContext, colorAttributeName) { - var colorObject = utils_getColorObjectByAttributeValues(colors, attributes[colorAttributeName], attributes["custom".concat(Object(external_this_lodash_["upperFirst"])(colorAttributeName))]); - var previousColorObject = previousState[colorAttributeName]; - var previousColor = Object(external_this_lodash_["get"])(previousColorObject, ['color']); - /** - * The "and previousColorObject" condition checks that a previous color object was already computed. - * At the start previousColorObject and colorValue are both equal to undefined - * bus as previousColorObject does not exist we should compute the object. - */ - - if (previousColor === colorObject.color && previousColorObject) { - newState[colorAttributeName] = previousColorObject; - } else { - newState[colorAttributeName] = _objectSpread({}, colorObject, { - class: getColorClassName(colorContext, colorObject.slug) - }); - } - - return newState; - }, {}); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); - }]); -} -/** - * A higher-order component factory for creating a 'withCustomColors' HOC, which handles color logic - * for class generation color value, retrieval and color attribute setting. - * - * Use this higher-order component to work with a custom set of colors. - * - * @example - * - * ```jsx - * const CUSTOM_COLORS = [ { name: 'Red', slug: 'red', color: '#ff0000' }, { name: 'Blue', slug: 'blue', color: '#0000ff' } ]; - * const withCustomColors = createCustomColorsHOC( CUSTOM_COLORS ); - * // ... - * export default compose( - * withCustomColors( 'backgroundColor', 'borderColor' ), - * MyColorfulComponent, - * ); - * ``` - * - * @param {Array} colorsArray The array of color objects (name, slug, color, etc... ). - * - * @return {Function} Higher-order component. - */ - - -function createCustomColorsHOC(colorsArray) { - return function () { - var withColorPalette = with_colors_withCustomColorPalette(colorsArray); - - for (var _len = arguments.length, colorTypes = new Array(_len), _key = 0; _key < _len; _key++) { - colorTypes[_key] = arguments[_key]; - } - - return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withCustomColors'); - }; -} -/** - * A higher-order component, which handles color logic for class generation color value, retrieval and color attribute setting. - * - * For use with the default editor/theme color palette. - * - * @example - * - * ```jsx - * export default compose( - * withColors( 'backgroundColor', { textColor: 'color' } ), - * MyColorfulComponent, - * ); - * ``` - * - * @param {...(Object|string)} colorTypes The arguments can be strings or objects. If the argument is an object, - * it should contain the color attribute name as key and the color context as value. - * If the argument is a string the value should be the color attribute name, - * the color context is computed by applying a kebab case transform to the value. - * Color context represents the context/place where the color is going to be used. - * The class name of the color is generated using 'has' followed by the color name - * and ending with the color context all in kebab case e.g: has-green-background-color. - * - * @return {Function} Higher-order component. - */ - -function withColors() { - var withColorPalette = with_colors_withEditorColorPalette(); - - for (var _len2 = arguments.length, colorTypes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - colorTypes[_key2] = arguments[_key2]; - } - - return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withColors'); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(20); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); - -// EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(46); -var memize_default = /*#__PURE__*/__webpack_require__.n(memize); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var edit_Edit = function Edit(props) { - var _props$attributes = props.attributes, - attributes = _props$attributes === void 0 ? {} : _props$attributes, - name = props.name; - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); - - if (!blockType) { - return null; - } // Generate a class name for the block's editable form - - - var generatedClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true) ? Object(external_this_wp_blocks_["getBlockDefaultClassName"])(name) : null; - var className = classnames_default()(generatedClassName, attributes.className); // `edit` and `save` are functions or components describing the markup - // with which a block is displayed. If `blockType` is valid, assign - // them preferentially as the render value for the block. - - var Component = blockType.edit || blockType.save; - return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { - className: className - })); -}; -/* harmony default export */ var edit = (Object(external_this_wp_components_["withFilters"])('editor.BlockEdit')(edit_Edit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/context.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var Context = Object(external_this_wp_element_["createContext"])({ - name: '', - isSelected: false, - focusedElement: null, - setFocusedElement: external_this_lodash_["noop"], - clientId: null -}); -var Provider = Context.Provider, - Consumer = Context.Consumer; - -/** - * A hook that returns the block edit context. - * - * @return {Object} Block edit context - */ - -function useBlockEditContext() { - return Object(external_this_wp_element_["useContext"])(Context); -} -/** - * A Higher Order Component used to inject BlockEdit context to the - * wrapped component. - * - * @param {Function} mapContextToProps Function called on every context change, - * expected to return object of props to - * merge with the component's own props. - * - * @return {WPComponent} Enhanced component with injected context as props. - */ - -var context_withBlockEditContext = function withBlockEditContext(mapContextToProps) { - return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (context) { - return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, mapContextToProps(context, props))); - }); - }; - }, 'withBlockEditContext'); -}; -/** - * A Higher Order Component used to render conditionally the wrapped - * component only when the BlockEdit has selected state set. - * - * @param {WPComponent} OriginalComponent Component to wrap. - * - * @return {WPComponent} Component which renders only when the BlockEdit is selected. - */ - -var ifBlockEditSelected = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (_ref) { - var isSelected = _ref.isSelected; - return isSelected && Object(external_this_wp_element_["createElement"])(OriginalComponent, props); - }); - }; -}, 'ifBlockEditSelected'); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/index.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - -var block_edit_BlockEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockEdit, _Component); - - function BlockEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockEdit).apply(this, arguments)); // It is important to return the same object if props haven't changed - // to avoid unnecessary rerenders. - // See https://reactjs.org/docs/context.html#caveats. - - _this.propsToContext = memize_default()(_this.propsToContext.bind(Object(assertThisInitialized["a" /* default */])(_this)), { - maxSize: 1 - }); - return _this; - } - - Object(createClass["a" /* default */])(BlockEdit, [{ - key: "propsToContext", - value: function propsToContext(name, isSelected, clientId, onFocus, onCaretVerticalPositionChange) { - return { - name: name, - isSelected: isSelected, - clientId: clientId, - onFocus: onFocus, - onCaretVerticalPositionChange: onCaretVerticalPositionChange - }; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - name = _this$props.name, - isSelected = _this$props.isSelected, - clientId = _this$props.clientId, - onFocus = _this$props.onFocus, - onCaretVerticalPositionChange = _this$props.onCaretVerticalPositionChange; - var value = this.propsToContext(name, isSelected, clientId, onFocus, onCaretVerticalPositionChange); - return Object(external_this_wp_element_["createElement"])(Provider, { - value: value - }, Object(external_this_wp_element_["createElement"])(edit, this.props)); - } - }]); - - return BlockEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_edit = (block_edit_BlockEdit); - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradients/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -function __experimentalGetGradientClass(gradientSlug) { - if (!gradientSlug) { - return undefined; - } - - return "has-".concat(gradientSlug, "-gradient-background"); -} - -function getGradientValueBySlug(gradients, slug) { - var gradient = Object(external_this_lodash_["find"])(gradients, ['slug', slug]); - return gradient && gradient.gradient; -} - -function __experimentalGetGradientObjectByGradientValue(gradients, value) { - var gradient = Object(external_this_lodash_["find"])(gradients, ['gradient', value]); - return gradient; -} - -function getGradientSlugByValue(gradients, value) { - var gradient = __experimentalGetGradientObjectByGradientValue(gradients, value); - - return gradient && gradient.slug; -} - -function __experimentalUseGradient() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref$gradientAttribut = _ref.gradientAttribute, - gradientAttribute = _ref$gradientAttribut === void 0 ? 'gradient' : _ref$gradientAttribut, - _ref$customGradientAt = _ref.customGradientAttribute, - customGradientAttribute = _ref$customGradientAt === void 0 ? 'customGradient' : _ref$customGradientAt; - - var _useBlockEditContext = useBlockEditContext(), - clientId = _useBlockEditContext.clientId; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockAttributes = _select.getBlockAttributes, - getSettings = _select.getSettings; - - var attributes = getBlockAttributes(clientId); - return { - gradient: attributes[gradientAttribute], - customGradient: attributes[customGradientAttribute], - gradients: getSettings().gradients - }; - }, [clientId, gradientAttribute, customGradientAttribute]), - gradients = _useSelect.gradients, - gradient = _useSelect.gradient, - customGradient = _useSelect.customGradient; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - updateBlockAttributes = _useDispatch.updateBlockAttributes; - - var setGradient = Object(external_this_wp_element_["useCallback"])(function (newGradientValue) { - var _updateBlockAttribute2; - - var slug = getGradientSlugByValue(gradients, newGradientValue); - - if (slug) { - var _updateBlockAttribute; - - updateBlockAttributes(clientId, (_updateBlockAttribute = {}, Object(defineProperty["a" /* default */])(_updateBlockAttribute, gradientAttribute, slug), Object(defineProperty["a" /* default */])(_updateBlockAttribute, customGradientAttribute, undefined), _updateBlockAttribute)); - return; - } - - updateBlockAttributes(clientId, (_updateBlockAttribute2 = {}, Object(defineProperty["a" /* default */])(_updateBlockAttribute2, gradientAttribute, undefined), Object(defineProperty["a" /* default */])(_updateBlockAttribute2, customGradientAttribute, newGradientValue), _updateBlockAttribute2)); - }, [gradients, clientId, updateBlockAttributes]); - - var gradientClass = __experimentalGetGradientClass(gradient); - - var gradientValue; - - if (gradient) { - gradientValue = getGradientValueBySlug(gradients, gradient); - } else { - gradientValue = customGradient; - } - - return { - gradientClass: gradientClass, - gradientValue: gradientValue, - setGradient: setGradient - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/control.js - - - - - -function control_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { control_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - // translators: first %s: the color name or value (e.g. red or #ff0000) - -var colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(Color: %s)'); // translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%) - - -var gradientIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(Gradient: %s)'); - -var colorsAndGradientKeys = ['colors', 'disableCustomColors', 'gradients', 'disableCustomGradients']; - -function VisualLabel(_ref) { - var colors = _ref.colors, - gradients = _ref.gradients, - label = _ref.label, - currentTab = _ref.currentTab, - colorValue = _ref.colorValue, - gradientValue = _ref.gradientValue; - var value, ariaLabel; - - if (currentTab === 'color') { - if (colorValue) { - value = colorValue; - var colorObject = utils_getColorObjectByColorValue(colors, value); - var colorName = colorObject && colorObject.name; - ariaLabel = Object(external_this_wp_i18n_["sprintf"])(colorIndicatorAriaLabel, colorName || value); - } - } else if (currentTab === 'gradient' && gradientValue) { - value = gradientValue; - - var gradientObject = __experimentalGetGradientObjectByGradientValue(gradients, value); - - var gradientName = gradientObject && gradientObject.name; - ariaLabel = Object(external_this_wp_i18n_["sprintf"])(gradientIndicatorAriaLabel, gradientName || value); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, label, !!value && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { - colorValue: value, - "aria-label": ariaLabel - })); -} - -function ColorGradientControlInner(_ref2) { - var colors = _ref2.colors, - gradients = _ref2.gradients, - disableCustomColors = _ref2.disableCustomColors, - disableCustomGradients = _ref2.disableCustomGradients, - className = _ref2.className, - label = _ref2.label, - onColorChange = _ref2.onColorChange, - onGradientChange = _ref2.onGradientChange, - colorValue = _ref2.colorValue, - gradientValue = _ref2.gradientValue; - var canChooseAColor = onColorChange && (!Object(external_this_lodash_["isEmpty"])(colors) || !disableCustomColors); - var canChooseAGradient = onGradientChange && (!Object(external_this_lodash_["isEmpty"])(gradients) || !disableCustomGradients); - - var _useState = Object(external_this_wp_element_["useState"])(gradientValue ? 'gradient' : !!canChooseAColor && 'color'), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - currentTab = _useState2[0], - setCurrentTab = _useState2[1]; - - if (!canChooseAColor && !canChooseAGradient) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: classnames_default()('block-editor-color-gradient-control', className) - }, Object(external_this_wp_element_["createElement"])("fieldset", null, Object(external_this_wp_element_["createElement"])("legend", null, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-color-gradient-control__color-indicator" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_element_["createElement"])(VisualLabel, { - currentTab: currentTab, - label: label, - colorValue: colorValue, - gradientValue: gradientValue - })))), canChooseAColor && canChooseAGradient && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { - className: "block-editor-color-gradient-control__button-tabs" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSmall: true, - isPrimary: currentTab === 'color', - isSecondary: currentTab !== 'color', - onClick: function onClick() { - return setCurrentTab('color'); - } - }, Object(external_this_wp_i18n_["__"])('Solid')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSmall: true, - isPrimary: currentTab === 'gradient', - isSecondary: currentTab !== 'gradient', - onClick: function onClick() { - return setCurrentTab('gradient'); - } - }, Object(external_this_wp_i18n_["__"])('Gradient'))), (currentTab === 'color' || !canChooseAGradient) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorPalette"], Object(esm_extends["a" /* default */])({ - value: colorValue, - onChange: canChooseAGradient ? function (newColor) { - onColorChange(newColor); - onGradientChange(); - } : onColorChange - }, { - colors: colors, - disableCustomColors: disableCustomColors - })), (currentTab === 'gradient' || !canChooseAColor) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalGradientPicker"], Object(esm_extends["a" /* default */])({ - value: gradientValue, - onChange: canChooseAColor ? function (newGradient) { - onGradientChange(newGradient); - onColorChange(); - } : onGradientChange - }, { - gradients: gradients, - disableCustomGradients: disableCustomGradients - })))); -} - -function ColorGradientControlSelect(props) { - var colorGradientSettings = Object(external_this_wp_data_["useSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return Object(external_this_lodash_["pick"])(settings, colorsAndGradientKeys); - }); - return Object(external_this_wp_element_["createElement"])(ColorGradientControlInner, control_objectSpread({}, colorGradientSettings, {}, props)); -} - -function ColorGradientControl(props) { - if (Object(external_this_lodash_["every"])(colorsAndGradientKeys, function (key) { - return props.hasOwnProperty(key); - })) { - return Object(external_this_wp_element_["createElement"])(ColorGradientControlInner, props); - } - - return Object(external_this_wp_element_["createElement"])(ColorGradientControlSelect, props); -} - -/* harmony default export */ var control = (ColorGradientControl); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.js - - - - - -function panel_color_gradient_settings_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function panel_color_gradient_settings_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { panel_color_gradient_settings_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { panel_color_gradient_settings_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000) - -var panel_color_gradient_settings_colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: color %s)'); // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000) - - -var panel_color_gradient_settings_gradientIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: gradient %s)'); - -var panel_color_gradient_settings_colorsAndGradientKeys = ['colors', 'disableCustomColors', 'gradients', 'disableCustomGradients']; - -var panel_color_gradient_settings_Indicators = function Indicators(_ref) { - var colors = _ref.colors, - gradients = _ref.gradients, - settings = _ref.settings; - return settings.map(function (_ref2, index) { - var colorValue = _ref2.colorValue, - gradientValue = _ref2.gradientValue, - label = _ref2.label, - availableColors = _ref2.colors, - availableGradients = _ref2.gradients; - - if (!colorValue && !gradientValue) { - return null; - } - - var ariaLabel; - - if (colorValue) { - var colorObject = utils_getColorObjectByColorValue(availableColors || colors, colorValue); - ariaLabel = Object(external_this_wp_i18n_["sprintf"])(panel_color_gradient_settings_colorIndicatorAriaLabel, label.toLowerCase(), colorObject && colorObject.name || colorValue); - } else { - var gradientObject = __experimentalGetGradientObjectByGradientValue(availableGradients || gradients, colorValue); - - ariaLabel = Object(external_this_wp_i18n_["sprintf"])(panel_color_gradient_settings_gradientIndicatorAriaLabel, label.toLowerCase(), gradientObject && gradientObject.name || gradientValue); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { - key: index, - colorValue: colorValue || gradientValue, - "aria-label": ariaLabel - }); - }); -}; - -var panel_color_gradient_settings_PanelColorGradientSettingsInner = function PanelColorGradientSettingsInner(_ref3) { - var className = _ref3.className, - colors = _ref3.colors, - gradients = _ref3.gradients, - disableCustomColors = _ref3.disableCustomColors, - disableCustomGradients = _ref3.disableCustomGradients, - children = _ref3.children, - settings = _ref3.settings, - title = _ref3.title, - props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["className", "colors", "gradients", "disableCustomColors", "disableCustomGradients", "children", "settings", "title"]); - - if (Object(external_this_lodash_["isEmpty"])(colors) && Object(external_this_lodash_["isEmpty"])(gradients) && disableCustomColors && disableCustomGradients && Object(external_this_lodash_["every"])(settings, function (setting) { - return Object(external_this_lodash_["isEmpty"])(setting.colors) && Object(external_this_lodash_["isEmpty"])(setting.gradients) && (setting.disableCustomColors === undefined || setting.disableCustomColors) && (setting.disableCustomGradients === undefined || setting.disableCustomGradients); - })) { - return null; - } - - var titleElement = Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-panel-color-gradient-settings__panel-title" - }, title, Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_Indicators, { - colors: colors, - gradients: gradients, - settings: settings - })); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], Object(esm_extends["a" /* default */])({ - className: classnames_default()('block-editor-panel-color-gradient-settings', className), - title: titleElement - }, props), settings.map(function (setting, index) { - return Object(external_this_wp_element_["createElement"])(control, Object(esm_extends["a" /* default */])({ - key: index - }, panel_color_gradient_settings_objectSpread({ - colors: colors, - gradients: gradients, - disableCustomColors: disableCustomColors, - disableCustomGradients: disableCustomGradients - }, setting))); - }), children); -}; - -var panel_color_gradient_settings_PanelColorGradientSettingsSelect = function PanelColorGradientSettingsSelect(props) { - var colorGradientSettings = Object(external_this_wp_data_["useSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return Object(external_this_lodash_["pick"])(settings, panel_color_gradient_settings_colorsAndGradientKeys); - }); - return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsInner, panel_color_gradient_settings_objectSpread({}, colorGradientSettings, {}, props)); -}; - -var panel_color_gradient_settings_PanelColorGradientSettings = function PanelColorGradientSettings(props) { - if (Object(external_this_lodash_["every"])(panel_color_gradient_settings_colorsAndGradientKeys, function (key) { - return props.hasOwnProperty(key); - })) { - return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsInner, props); - } - - return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsSelect, props); -}; - -/* harmony default export */ var panel_color_gradient_settings = (panel_color_gradient_settings_PanelColorGradientSettings); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/panel-color-settings/index.js - - - - - -function panel_color_settings_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function panel_color_settings_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { panel_color_settings_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { panel_color_settings_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * Internal dependencies - */ - - -var panel_color_settings_PanelColorSettings = function PanelColorSettings(_ref) { - var colorSettings = _ref.colorSettings, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["colorSettings"]); - - var settings = colorSettings.map(function (_ref2) { - var value = _ref2.value, - onChange = _ref2.onChange, - otherSettings = Object(objectWithoutProperties["a" /* default */])(_ref2, ["value", "onChange"]); - - return panel_color_settings_objectSpread({}, otherSettings, { - colorValue: value, - onColorChange: onChange - }); - }); - return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings, Object(esm_extends["a" /* default */])({ - settings: settings, - gradients: [], - disableCustomGradients: true - }, props)); -}; - -/* harmony default export */ var panel_color_settings = (panel_color_settings_PanelColorSettings); - -// EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(50); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function ContrastCheckerMessage(_ref) { - var tinyBackgroundColor = _ref.tinyBackgroundColor, - tinyTextColor = _ref.tinyTextColor, - backgroundColor = _ref.backgroundColor, - textColor = _ref.textColor; - var msg = tinyBackgroundColor.getBrightness() < tinyTextColor.getBrightness() ? Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color.') : Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.'); // Note: The `Notice` component can speak messages via its `spokenMessage` - // prop, but the contrast checker requires granular control over when the - // announcements are made. Notably, the message will be re-announced if a - // new color combination is selected and the contrast is still insufficient. - - Object(external_this_wp_element_["useEffect"])(function () { - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read.')); - }, [backgroundColor, textColor]); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-contrast-checker" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { - spokenMessage: null, - status: "warning", - isDismissible: false - }, msg)); -} - -function ContrastChecker(_ref2) { - var backgroundColor = _ref2.backgroundColor, - fallbackBackgroundColor = _ref2.fallbackBackgroundColor, - fallbackTextColor = _ref2.fallbackTextColor, - fontSize = _ref2.fontSize, - isLargeText = _ref2.isLargeText, - textColor = _ref2.textColor; - - if (!(backgroundColor || fallbackBackgroundColor) || !(textColor || fallbackTextColor)) { - return null; - } - - var tinyBackgroundColor = tinycolor_default()(backgroundColor || fallbackBackgroundColor); - var tinyTextColor = tinycolor_default()(textColor || fallbackTextColor); - var hasTransparency = tinyBackgroundColor.getAlpha() !== 1 || tinyTextColor.getAlpha() !== 1; - - if (hasTransparency || tinycolor_default.a.isReadable(tinyBackgroundColor, tinyTextColor, { - level: 'AA', - size: isLargeText || isLargeText !== false && fontSize >= 24 ? 'large' : 'small' - })) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(ContrastCheckerMessage, { - backgroundColor: backgroundColor, - textColor: textColor, - tinyBackgroundColor: tinyBackgroundColor, - tinyTextColor: tinyTextColor - }); -} - -/* harmony default export */ var contrast_checker = (ContrastChecker); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('InspectorControls'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -var InspectorControls = ifBlockEditSelected(Fill); -InspectorControls.Slot = Slot; -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/inspector-controls/README.md - */ - -/* harmony default export */ var inspector_controls = (InspectorControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/use-colors.js - - - - - - - -function use_colors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function use_colors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_colors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { use_colors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - -/** - * Browser dependencies - */ - -var _window = window, - getComputedStyle = _window.getComputedStyle, - Node = _window.Node; -var use_colors_DEFAULT_COLORS = []; -var COMMON_COLOR_LABELS = { - textColor: Object(external_this_wp_i18n_["__"])('Text Color'), - backgroundColor: Object(external_this_wp_i18n_["__"])('Background Color') -}; - -var resolveContrastCheckerColor = function resolveContrastCheckerColor(color, colorSettings, detectedColor) { - if (typeof color === 'function') { - return color(colorSettings); - } else if (color === true) { - return detectedColor; - } - - return color; -}; - -var use_colors_ColorPanel = function ColorPanel(_ref) { - var title = _ref.title, - colorSettings = _ref.colorSettings, - colorPanelProps = _ref.colorPanelProps, - contrastCheckers = _ref.contrastCheckers, - detectedBackgroundColor = _ref.detectedBackgroundColor, - detectedColor = _ref.detectedColor, - panelChildren = _ref.panelChildren, - initialOpen = _ref.initialOpen; - return Object(external_this_wp_element_["createElement"])(panel_color_settings, Object(esm_extends["a" /* default */])({ - title: title, - initialOpen: initialOpen, - colorSettings: Object.values(colorSettings) - }, colorPanelProps), contrastCheckers && (Array.isArray(contrastCheckers) ? contrastCheckers.map(function (_ref2) { - var backgroundColor = _ref2.backgroundColor, - textColor = _ref2.textColor, - rest = Object(objectWithoutProperties["a" /* default */])(_ref2, ["backgroundColor", "textColor"]); - - backgroundColor = resolveContrastCheckerColor(backgroundColor, colorSettings, detectedBackgroundColor); - textColor = resolveContrastCheckerColor(textColor, colorSettings, detectedColor); - return Object(external_this_wp_element_["createElement"])(contrast_checker, Object(esm_extends["a" /* default */])({ - key: "".concat(backgroundColor, "-").concat(textColor), - backgroundColor: backgroundColor, - textColor: textColor - }, rest)); - }) : Object(external_this_lodash_["map"])(colorSettings, function (_ref3) { - var value = _ref3.value; - var backgroundColor = contrastCheckers.backgroundColor, - textColor = contrastCheckers.textColor; - backgroundColor = resolveContrastCheckerColor(backgroundColor || value, colorSettings, detectedBackgroundColor); - textColor = resolveContrastCheckerColor(textColor || value, colorSettings, detectedColor); - return Object(external_this_wp_element_["createElement"])(contrast_checker, Object(esm_extends["a" /* default */])({}, contrastCheckers, { - key: "".concat(backgroundColor, "-").concat(textColor), - backgroundColor: backgroundColor, - textColor: textColor - })); - })), typeof panelChildren === 'function' ? panelChildren(colorSettings) : panelChildren); -}; - -var use_colors_InspectorControlsColorPanel = function InspectorControlsColorPanel(props) { - return Object(external_this_wp_element_["createElement"])(inspector_controls, null, Object(external_this_wp_element_["createElement"])(use_colors_ColorPanel, props)); -}; - -function __experimentalUseColors(colorConfigs) { - var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - panelTitle: Object(external_this_wp_i18n_["__"])('Color settings') - }, - _ref4$panelTitle = _ref4.panelTitle, - panelTitle = _ref4$panelTitle === void 0 ? Object(external_this_wp_i18n_["__"])('Color settings') : _ref4$panelTitle, - colorPanelProps = _ref4.colorPanelProps, - contrastCheckers = _ref4.contrastCheckers, - panelChildren = _ref4.panelChildren, - _ref4$colorDetector = _ref4.colorDetector; - - _ref4$colorDetector = _ref4$colorDetector === void 0 ? {} : _ref4$colorDetector; - var targetRef = _ref4$colorDetector.targetRef, - _ref4$colorDetector$b = _ref4$colorDetector.backgroundColorTargetRef, - backgroundColorTargetRef = _ref4$colorDetector$b === void 0 ? targetRef : _ref4$colorDetector$b, - _ref4$colorDetector$t = _ref4$colorDetector.textColorTargetRef, - textColorTargetRef = _ref4$colorDetector$t === void 0 ? targetRef : _ref4$colorDetector$t; - var deps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - - var _useBlockEditContext = useBlockEditContext(), - clientId = _useBlockEditContext.clientId; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockAttributes = _select.getBlockAttributes, - getSettings = _select.getSettings; - - var colors = getSettings().colors; - return { - attributes: getBlockAttributes(clientId), - settingsColors: !colors || colors === true ? use_colors_DEFAULT_COLORS : colors - }; - }, [clientId]), - attributes = _useSelect.attributes, - settingsColors = _useSelect.settingsColors; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - updateBlockAttributes = _useDispatch.updateBlockAttributes; - - var setAttributes = Object(external_this_wp_element_["useCallback"])(function (newAttributes) { - return updateBlockAttributes(clientId, newAttributes); - }, [updateBlockAttributes, clientId]); - var createComponent = Object(external_this_wp_element_["useMemo"])(function () { - return memize_default()(function (name, property, className, color, colorValue, customColor) { - return function (_ref5) { - var children = _ref5.children, - _ref5$className = _ref5.className, - componentClassName = _ref5$className === void 0 ? '' : _ref5$className, - _ref5$style = _ref5.style, - componentStyle = _ref5$style === void 0 ? {} : _ref5$style; - return (// Clone children, setting the style property from the color configuration, - // if not already set explicitly through props. - external_this_wp_element_["Children"].map(children, function (child) { - var _classnames; - - var colorStyle = {}; - - if (color) { - colorStyle = Object(defineProperty["a" /* default */])({}, property, colorValue); - } else if (customColor) { - colorStyle = Object(defineProperty["a" /* default */])({}, property, customColor); - } - - return Object(external_this_wp_element_["cloneElement"])(child, { - className: classnames_default()(componentClassName, child.props.className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "has-".concat(Object(external_this_lodash_["kebabCase"])(color), "-").concat(Object(external_this_lodash_["kebabCase"])(property)), color), Object(defineProperty["a" /* default */])(_classnames, className || "has-".concat(Object(external_this_lodash_["kebabCase"])(name)), color || customColor), _classnames)), - style: use_colors_objectSpread({}, colorStyle, {}, componentStyle, {}, child.props.style || {}) - }); - }) - ); - }; - }, { - maxSize: colorConfigs.length - }); - }, [colorConfigs.length]); - var createSetColor = Object(external_this_wp_element_["useMemo"])(function () { - return memize_default()(function (name, colors) { - return function (newColor) { - var color = colors.find(function (_color) { - return _color.color === newColor; - }); - setAttributes(Object(defineProperty["a" /* default */])({}, color ? Object(external_this_lodash_["camelCase"])("custom ".concat(name)) : name, undefined)); - setAttributes(Object(defineProperty["a" /* default */])({}, color ? name : Object(external_this_lodash_["camelCase"])("custom ".concat(name)), color ? color.slug : newColor)); - }; - }, { - maxSize: colorConfigs.length - }); - }, [setAttributes, colorConfigs.length]); - - var _useState = Object(external_this_wp_element_["useState"])(), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - detectedBackgroundColor = _useState2[0], - setDetectedBackgroundColor = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - detectedColor = _useState4[0], - setDetectedColor = _useState4[1]; - - Object(external_this_wp_element_["useEffect"])(function () { - if (!contrastCheckers) { - return undefined; - } - - var needsBackgroundColor = false; - var needsColor = false; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = Object(external_this_lodash_["castArray"])(contrastCheckers)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var _step$value = _step.value, - _backgroundColor = _step$value.backgroundColor, - textColor = _step$value.textColor; - - if (!needsBackgroundColor) { - needsBackgroundColor = _backgroundColor === true; - } - - if (!needsColor) { - needsColor = textColor === true; - } - - if (needsBackgroundColor && needsColor) { - break; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - if (needsColor) { - setDetectedColor(getComputedStyle(textColorTargetRef.current).color); - } - - if (needsBackgroundColor) { - var backgroundColorNode = backgroundColorTargetRef.current; - var backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; - - while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === Node.ELEMENT_NODE) { - backgroundColorNode = backgroundColorNode.parentNode; - backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; - } - - setDetectedBackgroundColor(backgroundColor); - } - }, [colorConfigs.reduce(function (acc, colorConfig) { - return "".concat(acc, " | ").concat(attributes[colorConfig.name], " | ").concat(attributes[Object(external_this_lodash_["camelCase"])("custom ".concat(colorConfig.name))]); - }, '')].concat(Object(toConsumableArray["a" /* default */])(deps))); - return Object(external_this_wp_element_["useMemo"])(function () { - var colorSettings = {}; - var components = colorConfigs.reduce(function (acc, colorConfig) { - if (typeof colorConfig === 'string') { - colorConfig = { - name: colorConfig - }; - } - - var _colorConfig$color = use_colors_objectSpread({}, colorConfig, { - color: attributes[colorConfig.name] - }), - name = _colorConfig$color.name, - _colorConfig$color$pr = _colorConfig$color.property, - property = _colorConfig$color$pr === void 0 ? name : _colorConfig$color$pr, - className = _colorConfig$color.className, - _colorConfig$color$pa = _colorConfig$color.panelLabel, - panelLabel = _colorConfig$color$pa === void 0 ? colorConfig.label || COMMON_COLOR_LABELS[name] || Object(external_this_lodash_["startCase"])(name) : _colorConfig$color$pa, - _colorConfig$color$co = _colorConfig$color.componentName, - componentName = _colorConfig$color$co === void 0 ? Object(external_this_lodash_["startCase"])(name).replace(/\s/g, '') : _colorConfig$color$co, - _colorConfig$color$co2 = _colorConfig$color.color, - color = _colorConfig$color$co2 === void 0 ? colorConfig.color : _colorConfig$color$co2, - _colorConfig$color$co3 = _colorConfig$color.colors, - colors = _colorConfig$color$co3 === void 0 ? settingsColors : _colorConfig$color$co3; - - var customColor = attributes[Object(external_this_lodash_["camelCase"])("custom ".concat(name))]; // We memoize the non-primitives to avoid unnecessary updates - // when they are used as props for other components. - - var _color = customColor ? undefined : colors.find(function (__color) { - return __color.slug === color; - }); - - acc[componentName] = createComponent(name, property, className, color, _color && _color.color, customColor); - acc[componentName].displayName = componentName; - acc[componentName].color = customColor ? customColor : _color && _color.color; - acc[componentName].slug = color; - acc[componentName].setColor = createSetColor(name, colors); - colorSettings[componentName] = { - value: _color ? _color.color : attributes[Object(external_this_lodash_["camelCase"])("custom ".concat(name))], - onChange: acc[componentName].setColor, - label: panelLabel, - colors: colors - }; // These settings will be spread over the `colors` in - // `colorPanelProps`, so we need to unset the key here, - // if not set to an actual value, to avoid overwriting - // an actual value in `colorPanelProps`. - - if (!colors) { - delete colorSettings[componentName].colors; - } - - return acc; - }, {}); - var wrappedColorPanelProps = { - title: panelTitle, - initialOpen: false, - colorSettings: colorSettings, - colorPanelProps: colorPanelProps, - contrastCheckers: contrastCheckers, - detectedBackgroundColor: detectedBackgroundColor, - detectedColor: detectedColor, - panelChildren: panelChildren - }; - return use_colors_objectSpread({}, components, { - ColorPanel: Object(external_this_wp_element_["createElement"])(use_colors_ColorPanel, wrappedColorPanelProps), - InspectorControlsColorPanel: Object(external_this_wp_element_["createElement"])(use_colors_InspectorControlsColorPanel, wrappedColorPanelProps) - }); - }, [attributes, setAttributes, detectedColor, detectedBackgroundColor].concat(Object(toConsumableArray["a" /* default */])(deps))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/index.js - - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/utils.js -/** - * External dependencies - */ - -/** - * Returns the font size object based on an array of named font sizes and the namedFontSize and customFontSize values. - * If namedFontSize is undefined or not found in fontSizes an object with just the size value based on customFontSize is returned. - * - * @param {Array} fontSizes Array of font size objects containing at least the "name" and "size" values as properties. - * @param {?string} fontSizeAttribute Content of the font size attribute (slug). - * @param {?number} customFontSizeAttribute Contents of the custom font size attribute (value). - * - * @return {?string} If fontSizeAttribute is set and an equal slug is found in fontSizes it returns the font size object for that slug. - * Otherwise, an object with just the size value based on customFontSize is returned. - */ - -var utils_getFontSize = function getFontSize(fontSizes, fontSizeAttribute, customFontSizeAttribute) { - if (fontSizeAttribute) { - var fontSizeObject = Object(external_this_lodash_["find"])(fontSizes, { - slug: fontSizeAttribute - }); - - if (fontSizeObject) { - return fontSizeObject; - } - } - - return { - size: customFontSizeAttribute - }; -}; -/** - * Returns a class based on fontSizeName. - * - * @param {string} fontSizeSlug Slug of the fontSize. - * - * @return {string} String with the class corresponding to the fontSize passed. - * The class is generated by appending 'has-' followed by fontSizeSlug in kebabCase and ending with '-font-size'. - */ - -function getFontSizeClass(fontSizeSlug) { - if (!fontSizeSlug) { - return; - } - - return "has-".concat(Object(external_this_lodash_["kebabCase"])(fontSizeSlug), "-font-size"); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/font-size-picker.js -/** - * WordPress dependencies - */ - - -/* harmony default export */ var font_size_picker = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select$getSettings = select('core/block-editor').getSettings(), - disableCustomFontSizes = _select$getSettings.disableCustomFontSizes, - fontSizes = _select$getSettings.fontSizes; - - return { - disableCustomFontSizes: disableCustomFontSizes, - fontSizes: fontSizes - }; -})(external_this_wp_components_["FontSizePicker"])); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/with-font-sizes.js - - - - - - - - -function with_font_sizes_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function with_font_sizes_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_font_sizes_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { with_font_sizes_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Higher-order component, which handles font size logic for class generation, - * font size value retrieval, and font size change handling. - * - * @param {...(Object|string)} fontSizeNames The arguments should all be strings. - * Each string contains the font size - * attribute name e.g: 'fontSize'. - * - * @return {Function} Higher-order component. - */ - -/* harmony default export */ var with_font_sizes = (function () { - for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) { - fontSizeNames[_key] = arguments[_key]; - } - - /* - * Computes an object whose key is the font size attribute name as passed in the array, - * and the value is the custom font size attribute name. - * Custom font size is automatically compted by appending custom followed by the font size attribute name in with the first letter capitalized. - */ - var fontSizeAttributeNames = Object(external_this_lodash_["reduce"])(fontSizeNames, function (fontSizeAttributeNamesAccumulator, fontSizeAttributeName) { - fontSizeAttributeNamesAccumulator[fontSizeAttributeName] = "custom".concat(Object(external_this_lodash_["upperFirst"])(fontSizeAttributeName)); - return fontSizeAttributeNamesAccumulator; - }, {}); - return Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select$getSettings = select('core/block-editor').getSettings(), - fontSizes = _select$getSettings.fontSizes; - - return { - fontSizes: fontSizes - }; - }), function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).call(this, props)); - _this.setters = _this.createSetters(); - _this.state = {}; - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "createSetters", - value: function createSetters() { - var _this2 = this; - - return Object(external_this_lodash_["reduce"])(fontSizeAttributeNames, function (settersAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { - var upperFirstFontSizeAttributeName = Object(external_this_lodash_["upperFirst"])(fontSizeAttributeName); - settersAccumulator["set".concat(upperFirstFontSizeAttributeName)] = _this2.createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName); - return settersAccumulator; - }, {}); - } - }, { - key: "createSetFontSize", - value: function createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName) { - var _this3 = this; - - return function (fontSizeValue) { - var _this3$props$setAttri; - - var fontSizeObject = Object(external_this_lodash_["find"])(_this3.props.fontSizes, { - size: Number(fontSizeValue) - }); - - _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, fontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? fontSizeObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customFontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? undefined : fontSizeValue), _this3$props$setAttri)); - }; - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_font_sizes_objectSpread({}, this.props, { - fontSizes: undefined - }, this.state, {}, this.setters)); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(_ref, previousState) { - var attributes = _ref.attributes, - fontSizes = _ref.fontSizes; - - var didAttributesChange = function didAttributesChange(customFontSizeAttributeName, fontSizeAttributeName) { - if (previousState[fontSizeAttributeName]) { - // if new font size is name compare with the previous slug - if (attributes[fontSizeAttributeName]) { - return attributes[fontSizeAttributeName] !== previousState[fontSizeAttributeName].slug; - } // if font size is not named, update when the font size value changes. - - - return previousState[fontSizeAttributeName].size !== attributes[customFontSizeAttributeName]; - } // in this case we need to build the font size object - - - return true; - }; - - if (!Object(external_this_lodash_["some"])(fontSizeAttributeNames, didAttributesChange)) { - return null; - } - - var newState = Object(external_this_lodash_["reduce"])(Object(external_this_lodash_["pickBy"])(fontSizeAttributeNames, didAttributesChange), function (newStateAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { - var fontSizeAttributeValue = attributes[fontSizeAttributeName]; - var fontSizeObject = utils_getFontSize(fontSizes, fontSizeAttributeValue, attributes[customFontSizeAttributeName]); - newStateAccumulator[fontSizeAttributeName] = with_font_sizes_objectSpread({}, fontSizeObject, { - class: getFontSizeClass(fontSizeAttributeValue) - }); - return newStateAccumulator; - }, {}); - return with_font_sizes_objectSpread({}, previousState, {}, newState); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); - }]), 'withFontSizes'); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/index.js - - - - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js -var align_left = __webpack_require__(281); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(282); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(283); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-toolbar/index.js - - - -function alignment_toolbar_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function alignment_toolbar_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { alignment_toolbar_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { alignment_toolbar_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var DEFAULT_ALIGNMENT_CONTROLS = [{ - icon: align_left["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Align text left'), - align: 'left' -}, { - icon: align_center["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Align text center'), - align: 'center' -}, { - icon: align_right["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Align text right'), - align: 'right' -}]; -function AlignmentToolbar(props) { - var value = props.value, - onChange = props.onChange, - _props$alignmentContr = props.alignmentControls, - alignmentControls = _props$alignmentContr === void 0 ? DEFAULT_ALIGNMENT_CONTROLS : _props$alignmentContr, - _props$label = props.label, - label = _props$label === void 0 ? Object(external_this_wp_i18n_["__"])('Change text alignment') : _props$label, - _props$isCollapsed = props.isCollapsed, - isCollapsed = _props$isCollapsed === void 0 ? true : _props$isCollapsed; - - function applyOrUnset(align) { - return function () { - return onChange(value === align ? undefined : align); - }; - } - - var activeAlignment = Object(external_this_lodash_["find"])(alignmentControls, function (control) { - return control.align === value; - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - isCollapsed: isCollapsed, - icon: activeAlignment ? activeAlignment.icon : 'editor-alignleft', - label: label, - controls: alignmentControls.map(function (control) { - var align = control.align; - var isActive = value === align; - return alignment_toolbar_objectSpread({}, control, { - isActive: isActive, - role: isCollapsed ? 'menuitemradio' : undefined, - onClick: applyOrUnset(align) - }); - }) - }); -} -/* harmony default export */ var alignment_toolbar = (AlignmentToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/autocomplete/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Wrap the default Autocomplete component with one that - * supports a filter hook for customizing its list of autocompleters. - * - * This function is exported for unit test. - * - * @param {Function} Autocomplete Original component. - * @return {Function} Wrapped component - */ - -function withFilteredAutocompleters(Autocomplete) { - return function (props) { - var _props$completers = props.completers, - completers = _props$completers === void 0 ? [] : _props$completers; - - if (Object(external_this_wp_hooks_["hasFilter"])('editor.Autocomplete.completers')) { - completers = Object(external_this_wp_hooks_["applyFilters"])('editor.Autocomplete.completers', // Provide copies so filters may directly modify them. - completers.map(external_this_lodash_["clone"]), props.blockName); - } - - return Object(external_this_wp_element_["createElement"])(Autocomplete, Object(esm_extends["a" /* default */])({}, props, { - completers: completers - })); - }; -} -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/autocomplete/README.md - */ - -/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([context_withBlockEditContext(function (_ref) { - var name = _ref.name; - return { - blockName: name - }; -}), withFilteredAutocompleters])(external_this_wp_components_["Autocomplete"])); - -// EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-left.js - - -/** - * WordPress dependencies - */ - -var positionLeft = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z" -})); -/* harmony default export */ var position_left = (positionLeft); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-center.js - - -/** - * WordPress dependencies - */ - -var positionCenter = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z" -})); -/* harmony default export */ var position_center = (positionCenter); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-right.js - - -/** - * WordPress dependencies - */ - -var positionRight = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z" -})); -/* harmony default export */ var position_right = (positionRight); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stretch-wide.js - - -/** - * WordPress dependencies - */ - -var stretchWide = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z" -})); -/* harmony default export */ var stretch_wide = (stretchWide); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stretch-full-width.js - - -/** - * WordPress dependencies - */ - -var stretchFullWidth = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M17 13V3H3v10h14zM5 17h10v-2H5v2z" -})); -/* harmony default export */ var stretch_full_width = (stretchFullWidth); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-toolbar/index.js - - - -function block_alignment_toolbar_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function block_alignment_toolbar_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_alignment_toolbar_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_alignment_toolbar_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var BLOCK_ALIGNMENTS_CONTROLS = { - left: { - icon: position_left, - title: Object(external_this_wp_i18n_["__"])('Align left') - }, - center: { - icon: position_center, - title: Object(external_this_wp_i18n_["__"])('Align center') - }, - right: { - icon: position_right, - title: Object(external_this_wp_i18n_["__"])('Align right') - }, - wide: { - icon: stretch_wide, - title: Object(external_this_wp_i18n_["__"])('Wide width') - }, - full: { - icon: stretch_full_width, - title: Object(external_this_wp_i18n_["__"])('Full width') - } -}; -var DEFAULT_CONTROLS = ['left', 'center', 'right', 'wide', 'full']; -var DEFAULT_CONTROL = 'center'; -var WIDE_CONTROLS = ['wide', 'full']; -function BlockAlignmentToolbar(_ref) { - var value = _ref.value, - onChange = _ref.onChange, - _ref$controls = _ref.controls, - controls = _ref$controls === void 0 ? DEFAULT_CONTROLS : _ref$controls, - _ref$isCollapsed = _ref.isCollapsed, - isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed, - _ref$wideControlsEnab = _ref.wideControlsEnabled, - wideControlsEnabled = _ref$wideControlsEnab === void 0 ? false : _ref$wideControlsEnab; - - function applyOrUnset(align) { - return function () { - return onChange(value === align ? undefined : align); - }; - } - - var enabledControls = wideControlsEnabled ? controls : controls.filter(function (control) { - return WIDE_CONTROLS.indexOf(control) === -1; - }); - var activeAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS[value]; - var defaultAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS[DEFAULT_CONTROL]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - isCollapsed: isCollapsed, - icon: activeAlignmentControl ? activeAlignmentControl.icon : defaultAlignmentControl.icon, - label: Object(external_this_wp_i18n_["__"])('Change alignment'), - controls: enabledControls.map(function (control) { - return block_alignment_toolbar_objectSpread({}, BLOCK_ALIGNMENTS_CONTROLS[control], { - isActive: value === control, - role: isCollapsed ? 'menuitemradio' : undefined, - onClick: applyOrUnset(control) - }); - }) - }); -} -/* harmony default export */ var block_alignment_toolbar = (Object(external_this_wp_compose_["compose"])(context_withBlockEditContext(function (_ref2) { - var clientId = _ref2.clientId; - return { - clientId: clientId - }; -}), Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - var settings = getSettings(); - return { - wideControlsEnabled: settings.alignWide - }; -}))(BlockAlignmentToolbar)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-title/index.js -/** - * WordPress dependencies - */ - - -/** - * Renders the block's configured title as a string, or empty if the title - * cannot be determined. - * - * @example - * - * ```jsx - * - * ``` - * - * @param {Object} props - * @param {?string} props.name Block name. - * - * @return {?string} Block title. - */ - -function BlockTitle(_ref) { - var name = _ref.name; - - if (!name) { - return null; - } - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); - - if (!blockType) { - return null; - } - - return blockType.title; -} -/* harmony default export */ var block_title = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - getBlockName = _select.getBlockName; - - var clientId = ownProps.clientId; - return { - name: getBlockName(clientId) - }; -})(BlockTitle)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-breadcrumb/index.js - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Block breadcrumb component, displaying the hierarchy of the current block selection as a breadcrumb. - * - * @return {WPElement} Block Breadcrumb. - */ - -var block_breadcrumb_BlockBreadcrumb = function BlockBreadcrumb() { - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - selectBlock = _useDispatch.selectBlock, - clearSelectedBlock = _useDispatch.clearSelectedBlock; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectionStart = _select.getSelectionStart, - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getBlockParents = _select.getBlockParents; - - var selectedBlockClientId = getSelectedBlockClientId(); - return { - parents: getBlockParents(selectedBlockClientId), - clientId: selectedBlockClientId, - hasSelection: !!getSelectionStart().clientId - }; - }, []), - clientId = _useSelect.clientId, - parents = _useSelect.parents, - hasSelection = _useSelect.hasSelection; - /* - * Disable reason: The `list` ARIA role is redundant but - * Safari+VoiceOver won't announce the list otherwise. - */ - - /* eslint-disable jsx-a11y/no-redundant-roles */ - - - return Object(external_this_wp_element_["createElement"])("ul", { - className: "block-editor-block-breadcrumb", - role: "list", - "aria-label": Object(external_this_wp_i18n_["__"])('Block breadcrumb') - }, Object(external_this_wp_element_["createElement"])("li", { - className: !hasSelection ? 'block-editor-block-breadcrumb__current' : undefined, - "aria-current": !hasSelection ? 'true' : undefined - }, hasSelection && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-block-breadcrumb__button", - isTertiary: true, - onClick: clearSelectedBlock - }, Object(external_this_wp_i18n_["__"])('Document')), !hasSelection && Object(external_this_wp_i18n_["__"])('Document')), parents.map(function (parentClientId) { - return Object(external_this_wp_element_["createElement"])("li", { - key: parentClientId - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-block-breadcrumb__button", - isTertiary: true, - onClick: function onClick() { - return selectBlock(parentClientId); - } - }, Object(external_this_wp_element_["createElement"])(block_title, { - clientId: parentClientId - }))); - }), !!clientId && Object(external_this_wp_element_["createElement"])("li", { - className: "block-editor-block-breadcrumb__current", - "aria-current": "true" - }, Object(external_this_wp_element_["createElement"])(block_title, { - clientId: clientId - }))) - /* eslint-enable jsx-a11y/no-redundant-roles */ - ; -}; - -/* harmony default export */ var block_breadcrumb = (block_breadcrumb_BlockBreadcrumb); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var block_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockControls'), - block_controls_Fill = block_controls_createSlotFill.Fill, - block_controls_Slot = block_controls_createSlotFill.Slot; - -var block_controls_BlockControlsFill = function BlockControlsFill(_ref) { - var controls = _ref.controls, - children = _ref.children; - return Object(external_this_wp_element_["createElement"])(block_controls_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: controls - }), children); -}; - -var BlockControls = ifBlockEditSelected(block_controls_BlockControlsFill); -BlockControls.Slot = block_controls_Slot; -/* harmony default export */ var block_controls = (BlockControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-format-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var block_format_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockFormatControls'), - block_format_controls_Fill = block_format_controls_createSlotFill.Fill, - block_format_controls_Slot = block_format_controls_createSlotFill.Slot; - -var BlockFormatControls = ifBlockEditSelected(block_format_controls_Fill); -BlockFormatControls.Slot = block_format_controls_Slot; -/* harmony default export */ var block_format_controls = (BlockFormatControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -function BlockIcon(_ref) { - var icon = _ref.icon, - _ref$showColors = _ref.showColors, - showColors = _ref$showColors === void 0 ? false : _ref$showColors, - className = _ref.className; - - if (Object(external_this_lodash_["get"])(icon, ['src']) === 'block-default') { - icon = { - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 7h-1V5h-4v2h-4V5H6v2H5c-1.1 0-2 .9-2 2v10h18V9c0-1.1-.9-2-2-2zm0 10H5V9h14v8z" - })) - }; - } - - var renderedIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { - icon: icon && icon.src ? icon.src : icon - }); - var style = showColors ? { - backgroundColor: icon && icon.background, - color: icon && icon.foreground - } : {}; - return Object(external_this_wp_element_["createElement"])("span", { - style: style, - className: classnames_default()('block-editor-block-icon', className, { - 'has-colors': showColors - }) - }, renderedIcon); -} - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(191); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus-circle.js -var plus_circle = __webpack_require__(285); - -// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var lib = __webpack_require__(84); -var lib_default = /*#__PURE__*/__webpack_require__.n(lib); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(22); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(30); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/defaults.js -/** - * WordPress dependencies - */ - -var PREFERENCES_DEFAULTS = { - insertUsage: {} -}; -/** - * The default editor settings - * - * @typedef {Object} SETTINGS_DEFAULT - * @property {boolean} alignWide Enable/Disable Wide/Full Alignments - * @property {Array} availableLegacyWidgets Array of objects representing the legacy widgets available. - * @property {Array} colors Palette colors - * @property {boolean} disableCustomColors Whether or not the custom colors are disabled - * @property {Array} fontSizes Available font sizes - * @property {boolean} disableCustomFontSizes Whether or not the custom font sizes are disabled - * @property {Array} imageSizes Available image sizes - * @property {number} maxWidth Max width to constraint resizing - * @property {boolean|Array} allowedBlockTypes Allowed block types - * @property {boolean} hasFixedToolbar Whether or not the editor toolbar is fixed - * @property {boolean} hasPermissionsToManageWidgets Whether or not the user is able to manage widgets. - * @property {boolean} focusMode Whether the focus mode is enabled or not - * @property {Array} styles Editor Styles - * @property {boolean} isRTL Whether the editor is in RTL mode - * @property {string} bodyPlaceholder Empty post placeholder - * @property {string} titlePlaceholder Empty title placeholder - * @property {boolean} codeEditingEnabled Whether or not the user can switch to the code editor - * @property {boolean} showInserterHelpPanel Whether or not the inserter help panel is shown - * @property {boolean} __experimentalCanUserUseUnfilteredHTML Whether the user should be able to use unfiltered HTML or the HTML should be filtered e.g., to remove elements considered insecure like iframes. - * @property {boolean} __experimentalEnableLegacyWidgetBlock Whether the user has enabled the Legacy Widget Block - * @property {boolean} __experimentalBlockDirectory Whether the user has enabled the Block Directory - * @property {boolean} __experimentalEnableFullSiteEditing Whether the user has enabled Full Site Editing - * @property {boolean} __experimentalEnableFullSiteEditingDemo Whether the user has enabled Full Site Editing Demo Templates - * @property {boolean} __experimentalEnablePageTemplates Whether the user has enabled the Page Templates - */ - -var SETTINGS_DEFAULTS = { - alignWide: false, - colors: [{ - name: Object(external_this_wp_i18n_["__"])('Pale pink'), - slug: 'pale-pink', - color: '#f78da7' - }, { - name: Object(external_this_wp_i18n_["__"])('Vivid red'), - slug: 'vivid-red', - color: '#cf2e2e' - }, { - name: Object(external_this_wp_i18n_["__"])('Luminous vivid orange'), - slug: 'luminous-vivid-orange', - color: '#ff6900' - }, { - name: Object(external_this_wp_i18n_["__"])('Luminous vivid amber'), - slug: 'luminous-vivid-amber', - color: '#fcb900' - }, { - name: Object(external_this_wp_i18n_["__"])('Light green cyan'), - slug: 'light-green-cyan', - color: '#7bdcb5' - }, { - name: Object(external_this_wp_i18n_["__"])('Vivid green cyan'), - slug: 'vivid-green-cyan', - color: '#00d084' - }, { - name: Object(external_this_wp_i18n_["__"])('Pale cyan blue'), - slug: 'pale-cyan-blue', - color: '#8ed1fc' - }, { - name: Object(external_this_wp_i18n_["__"])('Vivid cyan blue'), - slug: 'vivid-cyan-blue', - color: '#0693e3' - }, { - name: Object(external_this_wp_i18n_["__"])('Vivid purple'), - slug: 'vivid-purple', - color: '#9b51e0' - }, { - name: Object(external_this_wp_i18n_["__"])('Very light gray'), - slug: 'very-light-gray', - color: '#eeeeee' - }, { - name: Object(external_this_wp_i18n_["__"])('Cyan bluish gray'), - slug: 'cyan-bluish-gray', - color: '#abb8c3' - }, { - name: Object(external_this_wp_i18n_["__"])('Very dark gray'), - slug: 'very-dark-gray', - color: '#313131' - }], - fontSizes: [{ - name: Object(external_this_wp_i18n_["_x"])('Small', 'font size name'), - size: 13, - slug: 'small' - }, { - name: Object(external_this_wp_i18n_["_x"])('Normal', 'font size name'), - size: 16, - slug: 'normal' - }, { - name: Object(external_this_wp_i18n_["_x"])('Medium', 'font size name'), - size: 20, - slug: 'medium' - }, { - name: Object(external_this_wp_i18n_["_x"])('Large', 'font size name'), - size: 36, - slug: 'large' - }, { - name: Object(external_this_wp_i18n_["_x"])('Huge', 'font size name'), - size: 48, - slug: 'huge' - }], - imageSizes: [{ - slug: 'thumbnail', - name: Object(external_this_wp_i18n_["__"])('Thumbnail') - }, { - slug: 'medium', - name: Object(external_this_wp_i18n_["__"])('Medium') - }, { - slug: 'large', - name: Object(external_this_wp_i18n_["__"])('Large') - }, { - slug: 'full', - name: Object(external_this_wp_i18n_["__"])('Full Size') - }], - // This is current max width of the block inner area - // It's used to constraint image resizing and this value could be overridden later by themes - maxWidth: 580, - // Allowed block types for the editor, defaulting to true (all supported). - allowedBlockTypes: true, - // Maximum upload size in bytes allowed for the site. - maxUploadFileSize: 0, - // List of allowed mime types and file extensions. - allowedMimeTypes: null, - availableLegacyWidgets: {}, - hasPermissionsToManageWidgets: false, - showInserterHelpPanel: true, - __experimentalCanUserUseUnfilteredHTML: false, - __experimentalEnableLegacyWidgetBlock: false, - __experimentalBlockDirectory: false, - __experimentalEnableFullSiteEditing: false, - __experimentalEnableFullSiteEditingDemo: false, - __experimentalEnablePageTemplates: false, - gradients: [{ - name: Object(external_this_wp_i18n_["__"])('Vivid cyan blue to vivid purple'), - gradient: 'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)', - slug: 'vivid-cyan-blue-to-vivid-purple' - }, { - name: Object(external_this_wp_i18n_["__"])('Light green cyan to vivid green cyan'), - gradient: 'linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)', - slug: 'light-green-cyan-to-vivid-green-cyan' - }, { - name: Object(external_this_wp_i18n_["__"])('Luminous vivid amber to luminous vivid orange'), - gradient: 'linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)', - slug: 'luminous-vivid-amber-to-luminous-vivid-orange' - }, { - name: Object(external_this_wp_i18n_["__"])('Luminous vivid orange to vivid red'), - gradient: 'linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)', - slug: 'luminous-vivid-orange-to-vivid-red' - }, { - name: Object(external_this_wp_i18n_["__"])('Very light gray to cyan bluish gray'), - gradient: 'linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)', - slug: 'very-light-gray-to-cyan-bluish-gray' - }, { - name: Object(external_this_wp_i18n_["__"])('Cool to warm spectrum'), - gradient: 'linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)', - slug: 'cool-to-warm-spectrum' - }, { - name: Object(external_this_wp_i18n_["__"])('Blush light purple'), - gradient: 'linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)', - slug: 'blush-light-purple' - }, { - name: Object(external_this_wp_i18n_["__"])('Blush bordeaux'), - gradient: 'linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)', - slug: 'blush-bordeaux' - }, { - name: Object(external_this_wp_i18n_["__"])('Luminous dusk'), - gradient: 'linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)', - slug: 'luminous-dusk' - }, { - name: Object(external_this_wp_i18n_["__"])('Pale ocean'), - gradient: 'linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)', - slug: 'pale-ocean' - }, { - name: Object(external_this_wp_i18n_["__"])('Electric grass'), - gradient: 'linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)', - slug: 'electric-grass' - }, { - name: Object(external_this_wp_i18n_["__"])('Midnight'), - gradient: 'linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)', - slug: 'midnight' - }] -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/array.js - - -/** - * External dependencies - */ - -/** - * Insert one or multiple elements into a given position of an array. - * - * @param {Array} array Source array. - * @param {*} elements Elements to insert. - * @param {number} index Insert Position. - * - * @return {Array} Result. - */ - -function insertAt(array, elements, index) { - return [].concat(Object(toConsumableArray["a" /* default */])(array.slice(0, index)), Object(toConsumableArray["a" /* default */])(Object(external_this_lodash_["castArray"])(elements)), Object(toConsumableArray["a" /* default */])(array.slice(index))); -} -/** - * Moves an element in an array. - * - * @param {Array} array Source array. - * @param {number} from Source index. - * @param {number} to Destination index. - * @param {number} count Number of elements to move. - * - * @return {Array} Result. - */ - -function moveTo(array, from, to) { - var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; - - var withoutMovedElements = Object(toConsumableArray["a" /* default */])(array); - - withoutMovedElements.splice(from, count); - return insertAt(withoutMovedElements, array.slice(from, from + count), to); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/reducer.js - - - - -function reducer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function reducer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { reducer_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { reducer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -/** - * Given an array of blocks, returns an object where each key is a nesting - * context, the value of which is an array of block client IDs existing within - * that nesting context. - * - * @param {Array} blocks Blocks to map. - * @param {?string} rootClientId Assumed root client ID. - * - * @return {Object} Block order map object. - */ - -function mapBlockOrder(blocks) { - var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - - var result = Object(defineProperty["a" /* default */])({}, rootClientId, []); - - blocks.forEach(function (block) { - var clientId = block.clientId, - innerBlocks = block.innerBlocks; - result[rootClientId].push(clientId); - Object.assign(result, mapBlockOrder(innerBlocks, clientId)); - }); - return result; -} -/** - * Given an array of blocks, returns an object where each key contains - * the clientId of the block and the value is the parent of the block. - * - * @param {Array} blocks Blocks to map. - * @param {?string} rootClientId Assumed root client ID. - * - * @return {Object} Block order map object. - */ - - -function mapBlockParents(blocks) { - var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - return blocks.reduce(function (result, block) { - return Object.assign(result, Object(defineProperty["a" /* default */])({}, block.clientId, rootClientId), mapBlockParents(block.innerBlocks, block.clientId)); - }, {}); -} -/** - * Helper method to iterate through all blocks, recursing into inner blocks, - * applying a transformation function to each one. - * Returns a flattened object with the transformed blocks. - * - * @param {Array} blocks Blocks to flatten. - * @param {Function} transform Transforming function to be applied to each block. - * - * @return {Object} Flattened object. - */ - - -function flattenBlocks(blocks) { - var transform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : external_this_lodash_["identity"]; - var result = {}; - - var stack = Object(toConsumableArray["a" /* default */])(blocks); - - while (stack.length) { - var _stack$shift = stack.shift(), - innerBlocks = _stack$shift.innerBlocks, - block = Object(objectWithoutProperties["a" /* default */])(_stack$shift, ["innerBlocks"]); - - stack.push.apply(stack, Object(toConsumableArray["a" /* default */])(innerBlocks)); - result[block.clientId] = transform(block); - } - - return result; -} -/** - * Given an array of blocks, returns an object containing all blocks, without - * attributes, recursing into inner blocks. Keys correspond to the block client - * ID, the value of which is the attributes object. - * - * @param {Array} blocks Blocks to flatten. - * - * @return {Object} Flattened block attributes object. - */ - - -function getFlattenedBlocksWithoutAttributes(blocks) { - return flattenBlocks(blocks, function (block) { - return Object(external_this_lodash_["omit"])(block, 'attributes'); - }); -} -/** - * Given an array of blocks, returns an object containing all block attributes, - * recursing into inner blocks. Keys correspond to the block client ID, the - * value of which is the attributes object. - * - * @param {Array} blocks Blocks to flatten. - * - * @return {Object} Flattened block attributes object. - */ - - -function getFlattenedBlockAttributes(blocks) { - return flattenBlocks(blocks, function (block) { - return block.attributes; - }); -} -/** - * Given a block order map object, returns *all* of the block client IDs that are - * a descendant of the given root client ID. - * - * Calling this with `rootClientId` set to `''` results in a list of client IDs - * that are in the post. That is, it excludes blocks like fetched reusable - * blocks which are stored into state but not visible. - * - * @param {Object} blocksOrder Object that maps block client IDs to a list of - * nested block client IDs. - * @param {?string} rootClientId The root client ID to search. Defaults to ''. - * - * @return {Array} List of descendant client IDs. - */ - - -function getNestedBlockClientIds(blocksOrder) { - var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - return Object(external_this_lodash_["reduce"])(blocksOrder[rootClientId], function (result, clientId) { - return [].concat(Object(toConsumableArray["a" /* default */])(result), [clientId], Object(toConsumableArray["a" /* default */])(getNestedBlockClientIds(blocksOrder, clientId))); - }, []); -} -/** - * Returns an object against which it is safe to perform mutating operations, - * given the original object and its current working copy. - * - * @param {Object} original Original object. - * @param {Object} working Working object. - * - * @return {Object} Mutation-safe object. - */ - - -function getMutateSafeObject(original, working) { - if (original === working) { - return reducer_objectSpread({}, original); - } - - return working; -} -/** - * Returns true if the two object arguments have the same keys, or false - * otherwise. - * - * @param {Object} a First object. - * @param {Object} b Second object. - * - * @return {boolean} Whether the two objects have the same keys. - */ - - -function hasSameKeys(a, b) { - return Object(external_this_lodash_["isEqual"])(Object(external_this_lodash_["keys"])(a), Object(external_this_lodash_["keys"])(b)); -} -/** - * Returns true if, given the currently dispatching action and the previously - * dispatched action, the two actions are updating the same block attribute, or - * false otherwise. - * - * @param {Object} action Currently dispatching action. - * @param {Object} lastAction Previously dispatched action. - * - * @return {boolean} Whether actions are updating the same block attribute. - */ - -function isUpdatingSameBlockAttribute(action, lastAction) { - return action.type === 'UPDATE_BLOCK_ATTRIBUTES' && lastAction !== undefined && lastAction.type === 'UPDATE_BLOCK_ATTRIBUTES' && action.clientId === lastAction.clientId && hasSameKeys(action.attributes, lastAction.attributes); -} -/** - * Utility returning an object with an empty object value for each key. - * - * @param {Array} objectKeys Keys to fill. - * @return {Object} Object filled with empty object as values for each clientId. - */ - -var fillKeysWithEmptyObject = function fillKeysWithEmptyObject(objectKeys) { - return objectKeys.reduce(function (result, key) { - result[key] = {}; - return result; - }, {}); -}; -/** - * Higher-order reducer intended to compute a cache key for each block in the post. - * A new instance of the cache key (empty object) is created each time the block object - * needs to be refreshed (for any change in the block or its children). - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -var reducer_withBlockCache = function withBlockCache(reducer) { - return function () { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - var newState = reducer(state, action); - - if (newState === state) { - return state; - } - - newState.cache = state.cache ? state.cache : {}; - /** - * For each clientId provided, traverses up parents, adding the provided clientIds - * and each parent's clientId to the returned array. - * - * When calling this function consider that it uses the old state, so any state - * modifications made by the `reducer` will not be present. - * - * @param {Array} clientIds an Array of block clientIds. - * - * @return {Array} The provided clientIds and all of their parent clientIds. - */ - - var getBlocksWithParentsClientIds = function getBlocksWithParentsClientIds(clientIds) { - return clientIds.reduce(function (result, clientId) { - var current = clientId; - - do { - result.push(current); - current = state.parents[current]; - } while (current); - - return result; - }, []); - }; - - switch (action.type) { - case 'RESET_BLOCKS': - newState.cache = Object(external_this_lodash_["mapValues"])(flattenBlocks(action.blocks), function () { - return {}; - }); - break; - - case 'RECEIVE_BLOCKS': - case 'INSERT_BLOCKS': - { - var updatedBlockUids = Object(external_this_lodash_["keys"])(flattenBlocks(action.blocks)); - - if (action.rootClientId) { - updatedBlockUids.push(action.rootClientId); - } - - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(updatedBlockUids))); - break; - } - - case 'UPDATE_BLOCK': - case 'UPDATE_BLOCK_ATTRIBUTES': - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds([action.clientId]))); - break; - - case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': - var parentClientIds = fillKeysWithEmptyObject(getBlocksWithParentsClientIds(action.replacedClientIds)); - newState.cache = reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.replacedClientIds), {}, Object(external_this_lodash_["omit"])(parentClientIds, action.replacedClientIds), {}, fillKeysWithEmptyObject(Object(external_this_lodash_["keys"])(flattenBlocks(action.blocks)))); - break; - - case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': - newState.cache = reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.removedClientIds), {}, fillKeysWithEmptyObject(Object(external_this_lodash_["difference"])(getBlocksWithParentsClientIds(action.clientIds), action.clientIds))); - break; - - case 'MOVE_BLOCK_TO_POSITION': - { - var _updatedBlockUids = [action.clientId]; - - if (action.fromRootClientId) { - _updatedBlockUids.push(action.fromRootClientId); - } - - if (action.toRootClientId) { - _updatedBlockUids.push(action.toRootClientId); - } - - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids))); - break; - } - - case 'MOVE_BLOCKS_UP': - case 'MOVE_BLOCKS_DOWN': - { - var _updatedBlockUids2 = []; - - if (action.rootClientId) { - _updatedBlockUids2.push(action.rootClientId); - } - - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids2))); - break; - } - - case 'SAVE_REUSABLE_BLOCK_SUCCESS': - { - var _updatedBlockUids3 = Object(external_this_lodash_["keys"])(Object(external_this_lodash_["omitBy"])(newState.attributes, function (attributes, clientId) { - return newState.byClientId[clientId].name !== 'core/block' || attributes.ref !== action.updatedId; - })); - - newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids3))); - } - } - - return newState; - }; -}; -/** - * Higher-order reducer intended to augment the blocks reducer, assigning an - * `isPersistentChange` property value corresponding to whether a change in - * state can be considered as persistent. All changes are considered persistent - * except when updating the same block attribute as in the previous action. - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -function withPersistentBlockChange(reducer) { - var lastAction; - var markNextChangeAsNotPersistent = false; - return function (state, action) { - var nextState = reducer(state, action); - var isExplicitPersistentChange = action.type === 'MARK_LAST_CHANGE_AS_PERSISTENT' || markNextChangeAsNotPersistent; // Defer to previous state value (or default) unless changing or - // explicitly marking as persistent. - - if (state === nextState && !isExplicitPersistentChange) { - markNextChangeAsNotPersistent = action.type === 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT'; - var nextIsPersistentChange = Object(external_this_lodash_["get"])(state, ['isPersistentChange'], true); - - if (state.isPersistentChange === nextIsPersistentChange) { - return state; - } - - return reducer_objectSpread({}, nextState, { - isPersistentChange: nextIsPersistentChange - }); - } - - nextState = reducer_objectSpread({}, nextState, { - isPersistentChange: isExplicitPersistentChange ? !markNextChangeAsNotPersistent : !isUpdatingSameBlockAttribute(action, lastAction) - }); // In comparing against the previous action, consider only those which - // would have qualified as one which would have been ignored or not - // have resulted in a changed state. - - lastAction = action; - markNextChangeAsNotPersistent = action.type === 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT'; - return nextState; - }; -} -/** - * Higher-order reducer intended to augment the blocks reducer, assigning an - * `isIgnoredChange` property value corresponding to whether a change in state - * can be considered as ignored. A change is considered ignored when the result - * of an action not incurred by direct user interaction. - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -function withIgnoredBlockChange(reducer) { - /** - * Set of action types for which a blocks state change should be ignored. - * - * @type {Set} - */ - var IGNORED_ACTION_TYPES = new Set(['RECEIVE_BLOCKS']); - return function (state, action) { - var nextState = reducer(state, action); - - if (nextState !== state) { - nextState.isIgnoredChange = IGNORED_ACTION_TYPES.has(action.type); - } - - return nextState; - }; -} -/** - * Higher-order reducer targeting the combined blocks reducer, augmenting - * block client IDs in remove action to include cascade of inner blocks. - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -var reducer_withInnerBlocksRemoveCascade = function withInnerBlocksRemoveCascade(reducer) { - return function (state, action) { - var getAllChildren = function getAllChildren(clientIds) { - var result = clientIds; - - for (var i = 0; i < result.length; i++) { - var _result2; - - if (!state.order[result[i]]) { - continue; - } - - if (result === clientIds) { - result = Object(toConsumableArray["a" /* default */])(result); - } - - (_result2 = result).push.apply(_result2, Object(toConsumableArray["a" /* default */])(state.order[result[i]])); - } - - return result; - }; - - if (state) { - switch (action.type) { - case 'REMOVE_BLOCKS': - action = reducer_objectSpread({}, action, { - type: 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN', - removedClientIds: getAllChildren(action.clientIds) - }); - break; - - case 'REPLACE_BLOCKS': - action = reducer_objectSpread({}, action, { - type: 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN', - replacedClientIds: getAllChildren(action.clientIds) - }); - break; - } - } - - return reducer(state, action); - }; -}; -/** - * Higher-order reducer which targets the combined blocks reducer and handles - * the `RESET_BLOCKS` action. When dispatched, this action will replace all - * blocks that exist in the post, leaving blocks that exist only in state (e.g. - * reusable blocks) alone. - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -var reducer_withBlockReset = function withBlockReset(reducer) { - return function (state, action) { - if (state && action.type === 'RESET_BLOCKS') { - var visibleClientIds = getNestedBlockClientIds(state.order); - return reducer_objectSpread({}, state, { - byClientId: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.byClientId, visibleClientIds), {}, getFlattenedBlocksWithoutAttributes(action.blocks)), - attributes: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.attributes, visibleClientIds), {}, getFlattenedBlockAttributes(action.blocks)), - order: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.order, visibleClientIds), {}, mapBlockOrder(action.blocks)), - parents: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.parents, visibleClientIds), {}, mapBlockParents(action.blocks)), - cache: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.cache, visibleClientIds), {}, Object(external_this_lodash_["mapValues"])(flattenBlocks(action.blocks), function () { - return {}; - })) - }); - } - - return reducer(state, action); - }; -}; -/** - * Higher-order reducer which targets the combined blocks reducer and handles - * the `REPLACE_INNER_BLOCKS` action. When dispatched, this action the state should become equivalent - * to the execution of a `REMOVE_BLOCKS` action containing all the child's of the root block followed by - * the execution of `INSERT_BLOCKS` with the new blocks. - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -var withReplaceInnerBlocks = function withReplaceInnerBlocks(reducer) { - return function (state, action) { - if (action.type !== 'REPLACE_INNER_BLOCKS') { - return reducer(state, action); - } - - var stateAfterBlocksRemoval = state; - - if (state.order[action.rootClientId]) { - stateAfterBlocksRemoval = reducer(stateAfterBlocksRemoval, { - type: 'REMOVE_BLOCKS', - clientIds: state.order[action.rootClientId] - }); - } - - var stateAfterInsert = stateAfterBlocksRemoval; - - if (action.blocks.length) { - stateAfterInsert = reducer(stateAfterInsert, reducer_objectSpread({}, action, { - type: 'INSERT_BLOCKS', - index: 0 - })); - } - - return stateAfterInsert; - }; -}; -/** - * Higher-order reducer which targets the combined blocks reducer and handles - * the `SAVE_REUSABLE_BLOCK_SUCCESS` action. This action can't be handled by - * regular reducers and needs a higher-order reducer since it needs access to - * both `byClientId` and `attributes` simultaneously. - * - * @param {Function} reducer Original reducer function. - * - * @return {Function} Enhanced reducer function. - */ - - -var reducer_withSaveReusableBlock = function withSaveReusableBlock(reducer) { - return function (state, action) { - if (state && action.type === 'SAVE_REUSABLE_BLOCK_SUCCESS') { - var id = action.id, - updatedId = action.updatedId; // If a temporary reusable block is saved, we swap the temporary id with the final one - - if (id === updatedId) { - return state; - } - - state = reducer_objectSpread({}, state); - state.attributes = Object(external_this_lodash_["mapValues"])(state.attributes, function (attributes, clientId) { - var name = state.byClientId[clientId].name; - - if (name === 'core/block' && attributes.ref === id) { - return reducer_objectSpread({}, attributes, { - ref: updatedId - }); - } - - return attributes; - }); - } - - return reducer(state, action); - }; -}; -/** - * Reducer returning the blocks state. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - - -var reducer_blocks = Object(external_this_lodash_["flow"])(external_this_wp_data_["combineReducers"], reducer_withSaveReusableBlock, // needs to be before withBlockCache -reducer_withBlockCache, // needs to be before withInnerBlocksRemoveCascade -reducer_withInnerBlocksRemoveCascade, withReplaceInnerBlocks, // needs to be after withInnerBlocksRemoveCascade -reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ - byClientId: function byClientId() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'RESET_BLOCKS': - return getFlattenedBlocksWithoutAttributes(action.blocks); - - case 'RECEIVE_BLOCKS': - case 'INSERT_BLOCKS': - return reducer_objectSpread({}, state, {}, getFlattenedBlocksWithoutAttributes(action.blocks)); - - case 'UPDATE_BLOCK': - // Ignore updates if block isn't known - if (!state[action.clientId]) { - return state; - } // Do nothing if only attributes change. - - - var changes = Object(external_this_lodash_["omit"])(action.updates, 'attributes'); - - if (Object(external_this_lodash_["isEmpty"])(changes)) { - return state; - } - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread({}, state[action.clientId], {}, changes))); - - case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': - if (!action.blocks) { - return state; - } - - return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, getFlattenedBlocksWithoutAttributes(action.blocks)); - - case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': - return Object(external_this_lodash_["omit"])(state, action.removedClientIds); - } - - return state; - }, - attributes: function attributes() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'RESET_BLOCKS': - return getFlattenedBlockAttributes(action.blocks); - - case 'RECEIVE_BLOCKS': - case 'INSERT_BLOCKS': - return reducer_objectSpread({}, state, {}, getFlattenedBlockAttributes(action.blocks)); - - case 'UPDATE_BLOCK': - // Ignore updates if block isn't known or there are no attribute changes. - if (!state[action.clientId] || !action.updates.attributes) { - return state; - } - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread({}, state[action.clientId], {}, action.updates.attributes))); - - case 'UPDATE_BLOCK_ATTRIBUTES': - // Ignore updates if block isn't known - if (!state[action.clientId]) { - return state; - } // Consider as updates only changed values - - - var nextAttributes = Object(external_this_lodash_["reduce"])(action.attributes, function (result, value, key) { - if (value !== result[key]) { - result = getMutateSafeObject(state[action.clientId], result); - result[key] = value; - } - - return result; - }, state[action.clientId]); // Skip update if nothing has been changed. The reference will - // match the original block if `reduce` had no changed values. - - if (nextAttributes === state[action.clientId]) { - return state; - } // Otherwise replace attributes in state - - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, nextAttributes)); - - case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': - if (!action.blocks) { - return state; - } - - return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, getFlattenedBlockAttributes(action.blocks)); - - case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': - return Object(external_this_lodash_["omit"])(state, action.removedClientIds); - } - - return state; - }, - order: function order() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'RESET_BLOCKS': - return mapBlockOrder(action.blocks); - - case 'RECEIVE_BLOCKS': - return reducer_objectSpread({}, state, {}, Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), '')); - - case 'INSERT_BLOCKS': - { - var _action$rootClientId = action.rootClientId, - rootClientId = _action$rootClientId === void 0 ? '' : _action$rootClientId; - var subState = state[rootClientId] || []; - var mappedBlocks = mapBlockOrder(action.blocks, rootClientId); - var _action$index = action.index, - index = _action$index === void 0 ? subState.length : _action$index; - return reducer_objectSpread({}, state, {}, mappedBlocks, Object(defineProperty["a" /* default */])({}, rootClientId, insertAt(subState, mappedBlocks[rootClientId], index))); - } - - case 'MOVE_BLOCK_TO_POSITION': - { - var _objectSpread7; - - var _action$fromRootClien = action.fromRootClientId, - fromRootClientId = _action$fromRootClien === void 0 ? '' : _action$fromRootClien, - _action$toRootClientI = action.toRootClientId, - toRootClientId = _action$toRootClientI === void 0 ? '' : _action$toRootClientI, - clientId = action.clientId; - - var _action$index2 = action.index, - _index = _action$index2 === void 0 ? state[toRootClientId].length : _action$index2; // Moving inside the same parent block - - - if (fromRootClientId === toRootClientId) { - var _subState = state[toRootClientId]; - - var fromIndex = _subState.indexOf(clientId); - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, toRootClientId, moveTo(state[toRootClientId], fromIndex, _index))); - } // Moving from a parent block to another - - - return reducer_objectSpread({}, state, (_objectSpread7 = {}, Object(defineProperty["a" /* default */])(_objectSpread7, fromRootClientId, Object(external_this_lodash_["without"])(state[fromRootClientId], clientId)), Object(defineProperty["a" /* default */])(_objectSpread7, toRootClientId, insertAt(state[toRootClientId], clientId, _index)), _objectSpread7)); - } - - case 'MOVE_BLOCKS_UP': - { - var clientIds = action.clientIds, - _action$rootClientId2 = action.rootClientId, - _rootClientId = _action$rootClientId2 === void 0 ? '' : _action$rootClientId2; - - var firstClientId = Object(external_this_lodash_["first"])(clientIds); - var _subState2 = state[_rootClientId]; - - if (!_subState2.length || firstClientId === Object(external_this_lodash_["first"])(_subState2)) { - return state; - } - - var firstIndex = _subState2.indexOf(firstClientId); - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, _rootClientId, moveTo(_subState2, firstIndex, firstIndex - 1, clientIds.length))); - } - - case 'MOVE_BLOCKS_DOWN': - { - var _clientIds = action.clientIds, - _action$rootClientId3 = action.rootClientId, - _rootClientId2 = _action$rootClientId3 === void 0 ? '' : _action$rootClientId3; - - var _firstClientId = Object(external_this_lodash_["first"])(_clientIds); - - var lastClientId = Object(external_this_lodash_["last"])(_clientIds); - var _subState3 = state[_rootClientId2]; - - if (!_subState3.length || lastClientId === Object(external_this_lodash_["last"])(_subState3)) { - return state; - } - - var _firstIndex = _subState3.indexOf(_firstClientId); - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, _rootClientId2, moveTo(_subState3, _firstIndex, _firstIndex + 1, _clientIds.length))); - } - - case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': - { - var _clientIds2 = action.clientIds; - - if (!action.blocks) { - return state; - } - - var _mappedBlocks = mapBlockOrder(action.blocks); - - return Object(external_this_lodash_["flow"])([function (nextState) { - return Object(external_this_lodash_["omit"])(nextState, action.replacedClientIds); - }, function (nextState) { - return reducer_objectSpread({}, nextState, {}, Object(external_this_lodash_["omit"])(_mappedBlocks, '')); - }, function (nextState) { - return Object(external_this_lodash_["mapValues"])(nextState, function (subState) { - return Object(external_this_lodash_["reduce"])(subState, function (result, clientId) { - if (clientId === _clientIds2[0]) { - return [].concat(Object(toConsumableArray["a" /* default */])(result), Object(toConsumableArray["a" /* default */])(_mappedBlocks[''])); - } - - if (_clientIds2.indexOf(clientId) === -1) { - result.push(clientId); - } - - return result; - }, []); - }); - }])(state); - } - - case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': - return Object(external_this_lodash_["flow"])([// Remove inner block ordering for removed blocks - function (nextState) { - return Object(external_this_lodash_["omit"])(nextState, action.removedClientIds); - }, // Remove deleted blocks from other blocks' orderings - function (nextState) { - return Object(external_this_lodash_["mapValues"])(nextState, function (subState) { - return external_this_lodash_["without"].apply(void 0, [subState].concat(Object(toConsumableArray["a" /* default */])(action.removedClientIds))); - }); - }])(state); - } - - return state; - }, - // While technically redundant data as the inverse of `order`, it serves as - // an optimization for the selectors which derive the ancestry of a block. - parents: function parents() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'RESET_BLOCKS': - return mapBlockParents(action.blocks); - - case 'RECEIVE_BLOCKS': - return reducer_objectSpread({}, state, {}, mapBlockParents(action.blocks)); - - case 'INSERT_BLOCKS': - return reducer_objectSpread({}, state, {}, mapBlockParents(action.blocks, action.rootClientId || '')); - - case 'MOVE_BLOCK_TO_POSITION': - { - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, action.toRootClientId || '')); - } - - case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': - return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, mapBlockParents(action.blocks, state[action.clientIds[0]])); - - case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': - return Object(external_this_lodash_["omit"])(state, action.removedClientIds); - } - - return state; - } -}); -/** - * Reducer returning typing state. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {boolean} Updated state. - */ - -function reducer_isTyping() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'START_TYPING': - return true; - - case 'STOP_TYPING': - return false; - } - - return state; -} -/** - * Reducer returning dragging state. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {boolean} Updated state. - */ - -function reducer_isDraggingBlocks() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'START_DRAGGING_BLOCKS': - return true; - - case 'STOP_DRAGGING_BLOCKS': - return false; - } - - return state; -} -/** - * Reducer returning whether the caret is within formatted text. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {boolean} Updated state. - */ - -function reducer_isCaretWithinFormattedText() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'ENTER_FORMATTED_TEXT': - return true; - - case 'EXIT_FORMATTED_TEXT': - return false; - } - - return state; -} -/** - * Internal helper reducer for selectionStart and selectionEnd. Can hold a block - * selection, represented by an object with property clientId. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - -function reducer_selection() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'CLEAR_SELECTED_BLOCK': - { - if (state.clientId) { - return {}; - } - - return state; - } - - case 'SELECT_BLOCK': - if (action.clientId === state.clientId) { - return state; - } - - return { - clientId: action.clientId - }; - - case 'REPLACE_INNER_BLOCKS': // REPLACE_INNER_BLOCKS and INSERT_BLOCKS should follow the same logic. - - case 'INSERT_BLOCKS': - { - if (!action.updateSelection) { - return state; - } - - return { - clientId: action.blocks[0].clientId - }; - } - - case 'REMOVE_BLOCKS': - if (!action.clientIds || !action.clientIds.length || action.clientIds.indexOf(state.clientId) === -1) { - return state; - } - - return {}; - - case 'REPLACE_BLOCKS': - { - if (action.clientIds.indexOf(state.clientId) === -1) { - return state; - } - - var indexToSelect = action.indexToSelect || action.blocks.length - 1; - var blockToSelect = action.blocks[indexToSelect]; - - if (!blockToSelect) { - return {}; - } - - if (blockToSelect.clientId === state.clientId) { - return state; - } - - return { - clientId: blockToSelect.clientId - }; - } - } - - return state; -} -/** - * Reducer returning the block selection's start. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - - -function reducer_selectionStart() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'SELECTION_CHANGE': - return { - clientId: action.clientId, - attributeKey: action.attributeKey, - offset: action.startOffset - }; - - case 'RESET_SELECTION': - return action.selectionStart; - - case 'MULTI_SELECT': - return { - clientId: action.start - }; - } - - return reducer_selection(state, action); -} -/** - * Reducer returning the block selection's end. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - -function reducer_selectionEnd() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'SELECTION_CHANGE': - return { - clientId: action.clientId, - attributeKey: action.attributeKey, - offset: action.endOffset - }; - - case 'RESET_SELECTION': - return action.selectionEnd; - - case 'MULTI_SELECT': - return { - clientId: action.end - }; - } - - return reducer_selection(state, action); -} -/** - * Reducer returning whether the user is multi-selecting. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {boolean} Updated state. - */ - -function reducer_isMultiSelecting() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'START_MULTI_SELECT': - return true; - - case 'STOP_MULTI_SELECT': - return false; - } - - return state; -} -/** - * Reducer returning whether selection is enabled. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {boolean} Updated state. - */ - -function reducer_isSelectionEnabled() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'TOGGLE_SELECTION': - return action.isSelectionEnabled; - } - - return state; -} -/** - * Reducer returning the intial block selection. - * - * Currently this in only used to restore the selection after block deletion. - * This reducer should eventually be removed in favour of setting selection - * directly. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {?number} Initial position: -1 or undefined. - */ - -function reducer_initialPosition(state, action) { - if (action.type === 'SELECT_BLOCK') { - return action.initialPosition; - } else if (action.type === 'REMOVE_BLOCKS') { - return state; - } // Reset the state by default (for any action not handled). - -} -function blocksMode() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - if (action.type === 'TOGGLE_BLOCK_MODE') { - var clientId = action.clientId; - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, state[clientId] && state[clientId] === 'html' ? 'visual' : 'html')); - } - - return state; -} -/** - * Reducer returning the block insertion point visibility, either null if there - * is not an explicit insertion point assigned, or an object of its `index` and - * `rootClientId`. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - -function insertionPoint() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'SHOW_INSERTION_POINT': - var rootClientId = action.rootClientId, - index = action.index; - return { - rootClientId: rootClientId, - index: index - }; - - case 'HIDE_INSERTION_POINT': - return null; - } - - return state; -} -/** - * Reducer returning whether the post blocks match the defined template or not. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {boolean} Updated state. - */ - -function reducer_template() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - isValid: true - }; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'SET_TEMPLATE_VALIDITY': - return reducer_objectSpread({}, state, { - isValid: action.isValid - }); - } - - return state; -} -/** - * Reducer returning the editor setting. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - -function reducer_settings() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SETTINGS_DEFAULTS; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'UPDATE_SETTINGS': - return reducer_objectSpread({}, state, {}, action.settings); - } - - return state; -} -/** - * Reducer returning the user preferences. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {string} Updated state. - */ - -function preferences() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PREFERENCES_DEFAULTS; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'INSERT_BLOCKS': - case 'REPLACE_BLOCKS': - return action.blocks.reduce(function (prevState, block) { - var id = block.name; - var insert = { - name: block.name - }; - - if (Object(external_this_wp_blocks_["isReusableBlock"])(block)) { - insert.ref = block.attributes.ref; - id += '/' + block.attributes.ref; - } - - return reducer_objectSpread({}, prevState, { - insertUsage: reducer_objectSpread({}, prevState.insertUsage, Object(defineProperty["a" /* default */])({}, id, { - time: action.time, - count: prevState.insertUsage[id] ? prevState.insertUsage[id].count + 1 : 1, - insert: insert - })) - }); - }, state); - } - - return state; -} -/** - * Reducer returning an object where each key is a block client ID, its value - * representing the settings for its nested blocks. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - -var reducer_blockListSettings = function blockListSettings() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - // Even if the replaced blocks have the same client ID, our logic - // should correct the state. - case 'REPLACE_BLOCKS': - case 'REMOVE_BLOCKS': - { - return Object(external_this_lodash_["omit"])(state, action.clientIds); - } - - case 'UPDATE_BLOCK_LIST_SETTINGS': - { - var clientId = action.clientId; - - if (!action.settings) { - if (state.hasOwnProperty(clientId)) { - return Object(external_this_lodash_["omit"])(state, clientId); - } - - return state; - } - - if (Object(external_this_lodash_["isEqual"])(state[clientId], action.settings)) { - return state; - } - - return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, action.settings)); - } - } - - return state; -}; -/** - * Reducer returning whether the navigation mode is enabled or not. - * - * @param {string} state Current state. - * @param {Object} action Dispatched action. - * - * @return {string} Updated state. - */ - -function reducer_isNavigationMode() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - // Let inserting block always trigger Edit mode. - if (action.type === 'INSERT_BLOCKS') { - return false; - } - - if (action.type === 'SET_NAVIGATION_MODE') { - return action.isNavigationMode; - } - - return state; -} -/** - * Reducer return an updated state representing the most recent block attribute - * update. The state is structured as an object where the keys represent the - * client IDs of blocks, the values a subset of attributes from the most recent - * block update. The state is always reset to null if the last action is - * anything other than an attributes update. - * - * @param {Object} state Current state. - * @param {Object} action Action object. - * - * @return {[string,Object]} Updated state. - */ - -function lastBlockAttributesChange(state, action) { - switch (action.type) { - case 'UPDATE_BLOCK': - if (!action.updates.attributes) { - break; - } - - return Object(defineProperty["a" /* default */])({}, action.clientId, action.updates.attributes); - - case 'UPDATE_BLOCK_ATTRIBUTES': - return Object(defineProperty["a" /* default */])({}, action.clientId, action.attributes); - } - - return null; -} -/** - * Reducer returning automatic change state. - * - * @param {boolean} state Current state. - * @param {Object} action Dispatched action. - * - * @return {string} Updated state. - */ - -function automaticChangeStatus(state, action) { - switch (action.type) { - case 'MARK_AUTOMATIC_CHANGE': - return 'pending'; - - case 'MARK_AUTOMATIC_CHANGE_FINAL': - if (state === 'pending') { - return 'final'; - } - - return; - - case 'SELECTION_CHANGE': - // As long as the state is not final, ignore any selection changes. - if (state !== 'final') { - return state; - } - - return; - // Undoing an automatic change should still be possible after mouse - // move. - - case 'STOP_TYPING': - return state; - } // Reset the state by default (for any action not handled). - -} -/* harmony default export */ var store_reducer = (Object(external_this_wp_data_["combineReducers"])({ - blocks: reducer_blocks, - isTyping: reducer_isTyping, - isDraggingBlocks: reducer_isDraggingBlocks, - isCaretWithinFormattedText: reducer_isCaretWithinFormattedText, - selectionStart: reducer_selectionStart, - selectionEnd: reducer_selectionEnd, - isMultiSelecting: reducer_isMultiSelecting, - isSelectionEnabled: reducer_isSelectionEnabled, - initialPosition: reducer_initialPosition, - blocksMode: blocksMode, - blockListSettings: reducer_blockListSettings, - insertionPoint: insertionPoint, - template: reducer_template, - settings: reducer_settings, - preferences: preferences, - lastBlockAttributesChange: lastBlockAttributesChange, - isNavigationMode: reducer_isNavigationMode, - automaticChangeStatus: automaticChangeStatus -})); - -// EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(89); -var refx_default = /*#__PURE__*/__webpack_require__.n(refx); - -// EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js -var redux_multi_lib = __webpack_require__(261); -var redux_multi_lib_default = /*#__PURE__*/__webpack_require__.n(redux_multi_lib); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js -var esm_typeof = __webpack_require__(34); - -// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} -var external_this_regeneratorRuntime_ = __webpack_require__(23); -var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/controls.js - - -/** - * WordPress dependencies - */ - -/** - * Calls a selector using the current state. - * - * @param {string} storeName Store name. - * @param {string} selectorName Selector name. - * @param {Array} args Selector arguments. - * - * @return {Object} control descriptor. - */ - -function controls_select(storeName, selectorName) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - return { - type: 'SELECT', - storeName: storeName, - selectorName: selectorName, - args: args - }; -} -var controls_controls = { - SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref) { - var _registry$select; - - var storeName = _ref.storeName, - selectorName = _ref.selectorName, - args = _ref.args; - return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); - }; - }) -}; -/* harmony default export */ var store_controls = (controls_controls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/actions.js - - - -function actions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { actions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { actions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -var _marked = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(ensureDefaultBlock), - _marked2 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(selectPreviousBlock), - _marked3 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(selectNextBlock), - _marked4 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_replaceBlocks), - _marked5 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_moveBlockToPosition), - _marked6 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_insertBlocks), - _marked7 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_removeBlocks), - _marked8 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_setNavigationMode), - _marked9 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_duplicateBlocks), - _marked10 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_insertBeforeBlock), - _marked11 = -/*#__PURE__*/ -external_this_regeneratorRuntime_default.a.mark(actions_insertAfterBlock); - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Generator which will yield a default block insert action if there - * are no other blocks at the root of the editor. This generator should be used - * in actions which may result in no blocks remaining in the editor (removal, - * replacement, etc). - */ - -function ensureDefaultBlock() { - var count; - return external_this_regeneratorRuntime_default.a.wrap(function ensureDefaultBlock$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return controls_select('core/block-editor', 'getBlockCount'); - - case 2: - count = _context.sent; - - if (!(count === 0)) { - _context.next = 6; - break; - } - - _context.next = 6; - return actions_insertDefaultBlock(); - - case 6: - case "end": - return _context.stop(); - } - } - }, _marked); -} -/** - * Returns an action object used in signalling that blocks state should be - * reset to the specified array of blocks, taking precedence over any other - * content reflected as an edit in state. - * - * @param {Array} blocks Array of blocks. - * - * @return {Object} Action object. - */ - - -function actions_resetBlocks(blocks) { - return { - type: 'RESET_BLOCKS', - blocks: blocks - }; -} -/** - * A block selection object. - * - * @typedef {Object} WPBlockSelection - * - * @property {string} clientId A block client ID. - * @property {string} attributeKey A block attribute key. - * @property {number} offset An attribute value offset, based on the rich - * text value. See `wp.richText.create`. - */ - -/** - * Returns an action object used in signalling that selection state should be - * reset to the specified selection. - * - * @param {WPBlockSelection} selectionStart The selection start. - * @param {WPBlockSelection} selectionEnd The selection end. - * - * @return {Object} Action object. - */ - -function actions_resetSelection(selectionStart, selectionEnd) { - return { - type: 'RESET_SELECTION', - selectionStart: selectionStart, - selectionEnd: selectionEnd - }; -} -/** - * Returns an action object used in signalling that blocks have been received. - * Unlike resetBlocks, these should be appended to the existing known set, not - * replacing. - * - * @param {Object[]} blocks Array of block objects. - * - * @return {Object} Action object. - */ - -function receiveBlocks(blocks) { - return { - type: 'RECEIVE_BLOCKS', - blocks: blocks - }; -} -/** - * Returns an action object used in signalling that the block attributes with - * the specified client ID has been updated. - * - * @param {string} clientId Block client ID. - * @param {Object} attributes Block attributes to be merged. - * - * @return {Object} Action object. - */ - -function actions_updateBlockAttributes(clientId, attributes) { - return { - type: 'UPDATE_BLOCK_ATTRIBUTES', - clientId: clientId, - attributes: attributes - }; -} -/** - * Returns an action object used in signalling that the block with the - * specified client ID has been updated. - * - * @param {string} clientId Block client ID. - * @param {Object} updates Block attributes to be merged. - * - * @return {Object} Action object. - */ - -function actions_updateBlock(clientId, updates) { - return { - type: 'UPDATE_BLOCK', - clientId: clientId, - updates: updates - }; -} -/** - * Returns an action object used in signalling that the block with the - * specified client ID has been selected, optionally accepting a position - * value reflecting its selection directionality. An initialPosition of -1 - * reflects a reverse selection. - * - * @param {string} clientId Block client ID. - * @param {?number} initialPosition Optional initial position. Pass as -1 to - * reflect reverse selection. - * - * @return {Object} Action object. - */ - -function actions_selectBlock(clientId) { - var initialPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - return { - type: 'SELECT_BLOCK', - initialPosition: initialPosition, - clientId: clientId - }; -} -/** - * Yields action objects used in signalling that the block preceding the given - * clientId should be selected. - * - * @param {string} clientId Block client ID. - */ - -function selectPreviousBlock(clientId) { - var previousBlockClientId; - return external_this_regeneratorRuntime_default.a.wrap(function selectPreviousBlock$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return controls_select('core/block-editor', 'getPreviousBlockClientId', clientId); - - case 2: - previousBlockClientId = _context2.sent; - - if (!previousBlockClientId) { - _context2.next = 6; - break; - } - - _context2.next = 6; - return actions_selectBlock(previousBlockClientId, -1); - - case 6: - case "end": - return _context2.stop(); - } - } - }, _marked2); -} -/** - * Yields action objects used in signalling that the block following the given - * clientId should be selected. - * - * @param {string} clientId Block client ID. - */ - -function selectNextBlock(clientId) { - var nextBlockClientId; - return external_this_regeneratorRuntime_default.a.wrap(function selectNextBlock$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return controls_select('core/block-editor', 'getNextBlockClientId', clientId); - - case 2: - nextBlockClientId = _context3.sent; - - if (!nextBlockClientId) { - _context3.next = 6; - break; - } - - _context3.next = 6; - return actions_selectBlock(nextBlockClientId); - - case 6: - case "end": - return _context3.stop(); - } - } - }, _marked3); -} -/** - * Returns an action object used in signalling that a block multi-selection has started. - * - * @return {Object} Action object. - */ - -function actions_startMultiSelect() { - return { - type: 'START_MULTI_SELECT' - }; -} -/** - * Returns an action object used in signalling that block multi-selection stopped. - * - * @return {Object} Action object. - */ - -function actions_stopMultiSelect() { - return { - type: 'STOP_MULTI_SELECT' - }; -} -/** - * Returns an action object used in signalling that block multi-selection changed. - * - * @param {string} start First block of the multi selection. - * @param {string} end Last block of the multiselection. - * - * @return {Object} Action object. - */ - -function actions_multiSelect(start, end) { - return { - type: 'MULTI_SELECT', - start: start, - end: end - }; -} -/** - * Returns an action object used in signalling that the block selection is cleared. - * - * @return {Object} Action object. - */ - -function actions_clearSelectedBlock() { - return { - type: 'CLEAR_SELECTED_BLOCK' - }; -} -/** - * Returns an action object that enables or disables block selection. - * - * @param {boolean} [isSelectionEnabled=true] Whether block selection should - * be enabled. - * - * @return {Object} Action object. - */ - -function actions_toggleSelection() { - var isSelectionEnabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - return { - type: 'TOGGLE_SELECTION', - isSelectionEnabled: isSelectionEnabled - }; -} - -function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) { - var preferredStyleVariations = Object(external_this_lodash_["get"])(blockEditorSettings, ['__experimentalPreferredStyleVariations', 'value'], {}); - return blocks.map(function (block) { - var blockName = block.name; - - if (!preferredStyleVariations[blockName]) { - return block; - } - - var className = Object(external_this_lodash_["get"])(block, ['attributes', 'className']); - - if (Object(external_this_lodash_["includes"])(className, 'is-style-')) { - return block; - } - - var _block$attributes = block.attributes, - attributes = _block$attributes === void 0 ? {} : _block$attributes; - var blockStyle = preferredStyleVariations[blockName]; - return actions_objectSpread({}, block, { - attributes: actions_objectSpread({}, attributes, { - className: "".concat(className || '', " is-style-").concat(blockStyle).trim() - }) - }); - }); -} -/** - * Returns an action object signalling that a blocks should be replaced with - * one or more replacement blocks. - * - * @param {(string|string[])} clientIds Block client ID(s) to replace. - * @param {(Object|Object[])} blocks Replacement block(s). - * @param {number} indexToSelect Index of replacement block to - * select. - * - * @yield {Object} Action object. - */ - - -function actions_replaceBlocks(clientIds, blocks, indexToSelect) { - var rootClientId, index, block, canInsertBlock; - return external_this_regeneratorRuntime_default.a.wrap(function replaceBlocks$(_context4) { - while (1) { - switch (_context4.prev = _context4.next) { - case 0: - clientIds = Object(external_this_lodash_["castArray"])(clientIds); - _context4.t0 = getBlocksWithDefaultStylesApplied; - _context4.t1 = Object(external_this_lodash_["castArray"])(blocks); - _context4.next = 5; - return controls_select('core/block-editor', 'getSettings'); - - case 5: - _context4.t2 = _context4.sent; - blocks = (0, _context4.t0)(_context4.t1, _context4.t2); - _context4.next = 9; - return controls_select('core/block-editor', 'getBlockRootClientId', Object(external_this_lodash_["first"])(clientIds)); - - case 9: - rootClientId = _context4.sent; - index = 0; - - case 11: - if (!(index < blocks.length)) { - _context4.next = 21; - break; - } - - block = blocks[index]; - _context4.next = 15; - return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); - - case 15: - canInsertBlock = _context4.sent; - - if (canInsertBlock) { - _context4.next = 18; - break; - } - - return _context4.abrupt("return"); - - case 18: - index++; - _context4.next = 11; - break; - - case 21: - _context4.next = 23; - return { - type: 'REPLACE_BLOCKS', - clientIds: clientIds, - blocks: blocks, - time: Date.now(), - indexToSelect: indexToSelect - }; - - case 23: - return _context4.delegateYield(ensureDefaultBlock(), "t3", 24); - - case 24: - case "end": - return _context4.stop(); - } - } - }, _marked4); -} -/** - * Returns an action object signalling that a single block should be replaced - * with one or more replacement blocks. - * - * @param {(string|string[])} clientId Block client ID to replace. - * @param {(Object|Object[])} block Replacement block(s). - * - * @return {Object} Action object. - */ - -function replaceBlock(clientId, block) { - return actions_replaceBlocks(clientId, block); -} -/** - * Higher-order action creator which, given the action type to dispatch creates - * an action creator for managing block movement. - * - * @param {string} type Action type to dispatch. - * - * @return {Function} Action creator. - */ - -function createOnMove(type) { - return function (clientIds, rootClientId) { - return { - clientIds: Object(external_this_lodash_["castArray"])(clientIds), - type: type, - rootClientId: rootClientId - }; - }; -} - -var actions_moveBlocksDown = createOnMove('MOVE_BLOCKS_DOWN'); -var actions_moveBlocksUp = createOnMove('MOVE_BLOCKS_UP'); -/** - * Returns an action object signalling that an indexed block should be moved - * to a new index. - * - * @param {?string} clientId The client ID of the block. - * @param {?string} fromRootClientId Root client ID source. - * @param {?string} toRootClientId Root client ID destination. - * @param {number} index The index to move the block into. - * - * @yield {Object} Action object. - */ - -function actions_moveBlockToPosition(clientId) { - var fromRootClientId, - toRootClientId, - index, - templateLock, - action, - blockName, - canInsertBlock, - _args5 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function moveBlockToPosition$(_context5) { - while (1) { - switch (_context5.prev = _context5.next) { - case 0: - fromRootClientId = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : ''; - toRootClientId = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : ''; - index = _args5.length > 3 ? _args5[3] : undefined; - _context5.next = 5; - return controls_select('core/block-editor', 'getTemplateLock', fromRootClientId); - - case 5: - templateLock = _context5.sent; - - if (!(templateLock === 'all')) { - _context5.next = 8; - break; - } - - return _context5.abrupt("return"); - - case 8: - action = { - type: 'MOVE_BLOCK_TO_POSITION', - fromRootClientId: fromRootClientId, - toRootClientId: toRootClientId, - clientId: clientId, - index: index - }; // If moving inside the same root block the move is always possible. - - if (!(fromRootClientId === toRootClientId)) { - _context5.next = 13; - break; - } - - _context5.next = 12; - return action; - - case 12: - return _context5.abrupt("return"); - - case 13: - if (!(templateLock === 'insert')) { - _context5.next = 15; - break; - } - - return _context5.abrupt("return"); - - case 15: - _context5.next = 17; - return controls_select('core/block-editor', 'getBlockName', clientId); - - case 17: - blockName = _context5.sent; - _context5.next = 20; - return controls_select('core/block-editor', 'canInsertBlockType', blockName, toRootClientId); - - case 20: - canInsertBlock = _context5.sent; - - if (!canInsertBlock) { - _context5.next = 24; - break; - } - - _context5.next = 24; - return action; - - case 24: - case "end": - return _context5.stop(); - } - } - }, _marked5); -} -/** - * Returns an action object used in signalling that a single block should be - * inserted, optionally at a specific index respective a root block list. - * - * @param {Object} block Block object to insert. - * @param {?number} index Index at which block should be inserted. - * @param {?string} rootClientId Optional root client ID of block list on which to insert. - * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. - * - * @return {Object} Action object. - */ - -function actions_insertBlock(block, index, rootClientId) { - var updateSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; - return actions_insertBlocks([block], index, rootClientId, updateSelection); -} -/** - * Returns an action object used in signalling that an array of blocks should - * be inserted, optionally at a specific index respective a root block list. - * - * @param {Object[]} blocks Block objects to insert. - * @param {?number} index Index at which block should be inserted. - * @param {?string} rootClientId Optional root client ID of block list on which to insert. - * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. - * - * @return {Object} Action object. - */ - -function actions_insertBlocks(blocks, index, rootClientId) { - var updateSelection, - allowedBlocks, - _iteratorNormalCompletion, - _didIteratorError, - _iteratorError, - _iterator, - _step, - block, - isValid, - _args6 = arguments; - - return external_this_regeneratorRuntime_default.a.wrap(function insertBlocks$(_context6) { - while (1) { - switch (_context6.prev = _context6.next) { - case 0: - updateSelection = _args6.length > 3 && _args6[3] !== undefined ? _args6[3] : true; - _context6.t0 = getBlocksWithDefaultStylesApplied; - _context6.t1 = Object(external_this_lodash_["castArray"])(blocks); - _context6.next = 5; - return controls_select('core/block-editor', 'getSettings'); - - case 5: - _context6.t2 = _context6.sent; - blocks = (0, _context6.t0)(_context6.t1, _context6.t2); - allowedBlocks = []; - _iteratorNormalCompletion = true; - _didIteratorError = false; - _iteratorError = undefined; - _context6.prev = 11; - _iterator = blocks[Symbol.iterator](); - - case 13: - if (_iteratorNormalCompletion = (_step = _iterator.next()).done) { - _context6.next = 22; - break; - } - - block = _step.value; - _context6.next = 17; - return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); - - case 17: - isValid = _context6.sent; - - if (isValid) { - allowedBlocks.push(block); - } - - case 19: - _iteratorNormalCompletion = true; - _context6.next = 13; - break; - - case 22: - _context6.next = 28; - break; - - case 24: - _context6.prev = 24; - _context6.t3 = _context6["catch"](11); - _didIteratorError = true; - _iteratorError = _context6.t3; - - case 28: - _context6.prev = 28; - _context6.prev = 29; - - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - - case 31: - _context6.prev = 31; - - if (!_didIteratorError) { - _context6.next = 34; - break; - } - - throw _iteratorError; - - case 34: - return _context6.finish(31); - - case 35: - return _context6.finish(28); - - case 36: - if (!allowedBlocks.length) { - _context6.next = 38; - break; - } - - return _context6.abrupt("return", { - type: 'INSERT_BLOCKS', - blocks: allowedBlocks, - index: index, - rootClientId: rootClientId, - time: Date.now(), - updateSelection: updateSelection - }); - - case 38: - case "end": - return _context6.stop(); - } - } - }, _marked6, null, [[11, 24, 28, 36], [29,, 31, 35]]); -} -/** - * Returns an action object used in signalling that the insertion point should - * be shown. - * - * @param {?string} rootClientId Optional root client ID of block list on - * which to insert. - * @param {?number} index Index at which block should be inserted. - * - * @return {Object} Action object. - */ - -function actions_showInsertionPoint(rootClientId, index) { - return { - type: 'SHOW_INSERTION_POINT', - rootClientId: rootClientId, - index: index - }; -} -/** - * Returns an action object hiding the insertion point. - * - * @return {Object} Action object. - */ - -function actions_hideInsertionPoint() { - return { - type: 'HIDE_INSERTION_POINT' - }; -} -/** - * Returns an action object resetting the template validity. - * - * @param {boolean} isValid template validity flag. - * - * @return {Object} Action object. - */ - -function setTemplateValidity(isValid) { - return { - type: 'SET_TEMPLATE_VALIDITY', - isValid: isValid - }; -} -/** - * Returns an action object synchronize the template with the list of blocks - * - * @return {Object} Action object. - */ - -function synchronizeTemplate() { - return { - type: 'SYNCHRONIZE_TEMPLATE' - }; -} -/** - * Returns an action object used in signalling that two blocks should be merged - * - * @param {string} firstBlockClientId Client ID of the first block to merge. - * @param {string} secondBlockClientId Client ID of the second block to merge. - * - * @return {Object} Action object. - */ - -function actions_mergeBlocks(firstBlockClientId, secondBlockClientId) { - return { - type: 'MERGE_BLOCKS', - blocks: [firstBlockClientId, secondBlockClientId] - }; -} -/** - * Yields action objects used in signalling that the blocks corresponding to - * the set of specified client IDs are to be removed. - * - * @param {string|string[]} clientIds Client IDs of blocks to remove. - * @param {boolean} selectPrevious True if the previous block should be - * selected when a block is removed. - */ - -function actions_removeBlocks(clientIds) { - var selectPrevious, - rootClientId, - isLocked, - _args7 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function removeBlocks$(_context7) { - while (1) { - switch (_context7.prev = _context7.next) { - case 0: - selectPrevious = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : true; - - if (!(!clientIds || !clientIds.length)) { - _context7.next = 3; - break; - } - - return _context7.abrupt("return"); - - case 3: - clientIds = Object(external_this_lodash_["castArray"])(clientIds); - _context7.next = 6; - return controls_select('core/block-editor', 'getBlockRootClientId', clientIds[0]); - - case 6: - rootClientId = _context7.sent; - _context7.next = 9; - return controls_select('core/block-editor', 'getTemplateLock', rootClientId); - - case 9: - isLocked = _context7.sent; - - if (!isLocked) { - _context7.next = 12; - break; - } - - return _context7.abrupt("return"); - - case 12: - if (!selectPrevious) { - _context7.next = 15; - break; - } - - _context7.next = 15; - return selectPreviousBlock(clientIds[0]); - - case 15: - _context7.next = 17; - return { - type: 'REMOVE_BLOCKS', - clientIds: clientIds - }; - - case 17: - return _context7.delegateYield(ensureDefaultBlock(), "t0", 18); - - case 18: - case "end": - return _context7.stop(); - } - } - }, _marked7); -} -/** - * Returns an action object used in signalling that the block with the - * specified client ID is to be removed. - * - * @param {string} clientId Client ID of block to remove. - * @param {boolean} selectPrevious True if the previous block should be - * selected when a block is removed. - * - * @return {Object} Action object. - */ - -function actions_removeBlock(clientId, selectPrevious) { - return actions_removeBlocks([clientId], selectPrevious); -} -/** - * Returns an action object used in signalling that the inner blocks with the - * specified client ID should be replaced. - * - * @param {string} rootClientId Client ID of the block whose InnerBlocks will re replaced. - * @param {Object[]} blocks Block objects to insert as new InnerBlocks - * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. - * - * @return {Object} Action object. - */ - -function actions_replaceInnerBlocks(rootClientId, blocks) { - var updateSelection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - return { - type: 'REPLACE_INNER_BLOCKS', - rootClientId: rootClientId, - blocks: blocks, - updateSelection: updateSelection, - time: Date.now() - }; -} -/** - * Returns an action object used to toggle the block editing mode between - * visual and HTML modes. - * - * @param {string} clientId Block client ID. - * - * @return {Object} Action object. - */ - -function toggleBlockMode(clientId) { - return { - type: 'TOGGLE_BLOCK_MODE', - clientId: clientId - }; -} -/** - * Returns an action object used in signalling that the user has begun to type. - * - * @return {Object} Action object. - */ - -function actions_startTyping() { - return { - type: 'START_TYPING' - }; -} -/** - * Returns an action object used in signalling that the user has stopped typing. - * - * @return {Object} Action object. - */ - -function actions_stopTyping() { - return { - type: 'STOP_TYPING' - }; -} -/** - * Returns an action object used in signalling that the user has begun to drag blocks. - * - * @return {Object} Action object. - */ - -function actions_startDraggingBlocks() { - return { - type: 'START_DRAGGING_BLOCKS' - }; -} -/** - * Returns an action object used in signalling that the user has stopped dragging blocks. - * - * @return {Object} Action object. - */ - -function actions_stopDraggingBlocks() { - return { - type: 'STOP_DRAGGING_BLOCKS' - }; -} -/** - * Returns an action object used in signalling that the caret has entered formatted text. - * - * @return {Object} Action object. - */ - -function actions_enterFormattedText() { - return { - type: 'ENTER_FORMATTED_TEXT' - }; -} -/** - * Returns an action object used in signalling that the user caret has exited formatted text. - * - * @return {Object} Action object. - */ - -function actions_exitFormattedText() { - return { - type: 'EXIT_FORMATTED_TEXT' - }; -} -/** - * Returns an action object used in signalling that the user caret has changed - * position. - * - * @param {string} clientId The selected block client ID. - * @param {string} attributeKey The selected block attribute key. - * @param {number} startOffset The start offset. - * @param {number} endOffset The end offset. - * - * @return {Object} Action object. - */ - -function actions_selectionChange(clientId, attributeKey, startOffset, endOffset) { - return { - type: 'SELECTION_CHANGE', - clientId: clientId, - attributeKey: attributeKey, - startOffset: startOffset, - endOffset: endOffset - }; -} -/** - * Returns an action object used in signalling that a new block of the default - * type should be added to the block list. - * - * @param {?Object} attributes Optional attributes of the block to assign. - * @param {?string} rootClientId Optional root client ID of block list on which - * to append. - * @param {?number} index Optional index where to insert the default block - * - * @return {Object} Action object - */ - -function actions_insertDefaultBlock(attributes, rootClientId, index) { - // Abort if there is no default block type (if it has been unregistered). - var defaultBlockName = Object(external_this_wp_blocks_["getDefaultBlockName"])(); - - if (!defaultBlockName) { - return; - } - - var block = Object(external_this_wp_blocks_["createBlock"])(defaultBlockName, attributes); - return actions_insertBlock(block, index, rootClientId); -} -/** - * Returns an action object that changes the nested settings of a given block. - * - * @param {string} clientId Client ID of the block whose nested setting are - * being received. - * @param {Object} settings Object with the new settings for the nested block. - * - * @return {Object} Action object - */ - -function updateBlockListSettings(clientId, settings) { - return { - type: 'UPDATE_BLOCK_LIST_SETTINGS', - clientId: clientId, - settings: settings - }; -} -/* - * Returns an action object used in signalling that the block editor settings have been updated. - * - * @param {Object} settings Updated settings - * - * @return {Object} Action object - */ - -function actions_updateSettings(settings) { - return { - type: 'UPDATE_SETTINGS', - settings: settings - }; -} -/** - * Returns an action object used in signalling that a temporary reusable blocks have been saved - * in order to switch its temporary id with the real id. - * - * @param {string} id Reusable block's id. - * @param {string} updatedId Updated block's id. - * - * @return {Object} Action object. - */ - -function __unstableSaveReusableBlock(id, updatedId) { - return { - type: 'SAVE_REUSABLE_BLOCK_SUCCESS', - id: id, - updatedId: updatedId - }; -} -/** - * Returns an action object used in signalling that the last block change should be marked explicitely as persistent. - * - * @return {Object} Action object. - */ - -function actions_unstableMarkLastChangeAsPersistent() { - return { - type: 'MARK_LAST_CHANGE_AS_PERSISTENT' - }; -} -/** - * Returns an action object used in signalling that the next block change should be marked explicitly as not persistent. - * - * @return {Object} Action object. - */ - -function __unstableMarkNextChangeAsNotPersistent() { - return { - type: 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT' - }; -} -/** - * Returns an action object used in signalling that the last block change is - * an automatic change, meaning it was not performed by the user, and can be - * undone using the `Escape` and `Backspace` keys. This action must be called - * after the change was made, and any actions that are a consequence of it, so - * it is recommended to be called at the next idle period to ensure all - * selection changes have been recorded. - * - * @return {Object} Action object. - */ - -function actions_unstableMarkAutomaticChange() { - return { - type: 'MARK_AUTOMATIC_CHANGE' - }; -} -/** - * Generators that triggers an action used to enable or disable the navigation mode. - * - * @param {string} isNavigationMode Enable/Disable navigation mode. - */ - -function actions_setNavigationMode() { - var isNavigationMode, - _args8 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function setNavigationMode$(_context8) { - while (1) { - switch (_context8.prev = _context8.next) { - case 0: - isNavigationMode = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : true; - _context8.next = 3; - return { - type: 'SET_NAVIGATION_MODE', - isNavigationMode: isNavigationMode - }; - - case 3: - if (isNavigationMode) { - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are currently in navigation mode. Navigate blocks using the Tab key. To exit navigation mode and edit the selected block, press Enter.')); - } else { - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are currently in edit mode. To return to the navigation mode, press Escape.')); - } - - case 4: - case "end": - return _context8.stop(); - } - } - }, _marked8); -} -/** - * Generator that triggers an action used to duplicate a list of blocks. - * - * @param {string[]} clientIds - */ - -function actions_duplicateBlocks(clientIds) { - var blocks, rootClientId, blockNames, lastSelectedIndex, clonedBlocks; - return external_this_regeneratorRuntime_default.a.wrap(function duplicateBlocks$(_context9) { - while (1) { - switch (_context9.prev = _context9.next) { - case 0: - if (!(!clientIds && !clientIds.length)) { - _context9.next = 2; - break; - } - - return _context9.abrupt("return"); - - case 2: - _context9.next = 4; - return controls_select('core/block-editor', 'getBlocksByClientId', clientIds); - - case 4: - blocks = _context9.sent; - _context9.next = 7; - return controls_select('core/block-editor', 'getBlockRootClientId', clientIds[0]); - - case 7: - rootClientId = _context9.sent; - - if (!Object(external_this_lodash_["some"])(blocks, function (block) { - return !block; - })) { - _context9.next = 10; - break; - } - - return _context9.abrupt("return"); - - case 10: - blockNames = blocks.map(function (block) { - return block.name; - }); // Return early if blocks don't support multipe usage. - - if (!Object(external_this_lodash_["some"])(blockNames, function (blockName) { - return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'multiple', true); - })) { - _context9.next = 13; - break; - } - - return _context9.abrupt("return"); - - case 13: - _context9.next = 15; - return controls_select('core/block-editor', 'getBlockIndex', Object(external_this_lodash_["last"])(Object(external_this_lodash_["castArray"])(clientIds)), rootClientId); - - case 15: - lastSelectedIndex = _context9.sent; - clonedBlocks = blocks.map(function (block) { - return Object(external_this_wp_blocks_["cloneBlock"])(block); - }); - _context9.next = 19; - return actions_insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId); - - case 19: - if (!(clonedBlocks.length > 1)) { - _context9.next = 22; - break; - } - - _context9.next = 22; - return actions_multiSelect(Object(external_this_lodash_["first"])(clonedBlocks).clientId, Object(external_this_lodash_["last"])(clonedBlocks).clientId); - - case 22: - case "end": - return _context9.stop(); - } - } - }, _marked9); -} -/** - * Generator used to insert an empty block after a given block. - * - * @param {string} clientId - */ - -function actions_insertBeforeBlock(clientId) { - var rootClientId, isLocked, firstSelectedIndex; - return external_this_regeneratorRuntime_default.a.wrap(function insertBeforeBlock$(_context10) { - while (1) { - switch (_context10.prev = _context10.next) { - case 0: - if (clientId) { - _context10.next = 2; - break; - } - - return _context10.abrupt("return"); - - case 2: - _context10.next = 4; - return controls_select('core/block-editor', 'getBlockRootClientId', clientId); - - case 4: - rootClientId = _context10.sent; - _context10.next = 7; - return controls_select('core/block-editor', 'getTemplateLock', rootClientId); - - case 7: - isLocked = _context10.sent; - - if (!isLocked) { - _context10.next = 10; - break; - } - - return _context10.abrupt("return"); - - case 10: - _context10.next = 12; - return controls_select('core/block-editor', 'getBlockIndex', clientId, rootClientId); - - case 12: - firstSelectedIndex = _context10.sent; - _context10.next = 15; - return actions_insertDefaultBlock({}, rootClientId, firstSelectedIndex); - - case 15: - case "end": - return _context10.stop(); - } - } - }, _marked10); -} -/** - * Generator used to insert an empty block before a given block. - * - * @param {string} clientId - */ - -function actions_insertAfterBlock(clientId) { - var rootClientId, isLocked, firstSelectedIndex; - return external_this_regeneratorRuntime_default.a.wrap(function insertAfterBlock$(_context11) { - while (1) { - switch (_context11.prev = _context11.next) { - case 0: - if (clientId) { - _context11.next = 2; - break; - } - - return _context11.abrupt("return"); - - case 2: - _context11.next = 4; - return controls_select('core/block-editor', 'getBlockRootClientId', clientId); - - case 4: - rootClientId = _context11.sent; - _context11.next = 7; - return controls_select('core/block-editor', 'getTemplateLock', rootClientId); - - case 7: - isLocked = _context11.sent; - - if (!isLocked) { - _context11.next = 10; - break; - } - - return _context11.abrupt("return"); - - case 10: - _context11.next = 12; - return controls_select('core/block-editor', 'getBlockIndex', clientId, rootClientId); - - case 12: - firstSelectedIndex = _context11.sent; - _context11.next = 15; - return actions_insertDefaultBlock({}, rootClientId, firstSelectedIndex + 1); - - case 15: - case "end": - return _context11.stop(); - } - } - }, _marked11); -} - -// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(40); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js - - - - -function selectors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { selectors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { selectors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * A block selection object. - * - * @typedef {Object} WPBlockSelection - * - * @property {string} clientId A block client ID. - * @property {string} attributeKey A block attribute key. - * @property {number} offset An attribute value offset, based on the rich - * text value. See `wp.richText.create`. - */ -// Module constants - -/** - * @private - */ - -var INSERTER_UTILITY_HIGH = 3; -/** - * @private - */ - -var INSERTER_UTILITY_MEDIUM = 2; -/** - * @private - */ - -var INSERTER_UTILITY_LOW = 1; -/** - * @private - */ - -var INSERTER_UTILITY_NONE = 0; -var MILLISECONDS_PER_HOUR = 3600 * 1000; -var MILLISECONDS_PER_DAY = 24 * 3600 * 1000; -var MILLISECONDS_PER_WEEK = 7 * 24 * 3600 * 1000; -var templateIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "0", - fill: "none", - width: "24", - height: "24" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z" -}))); -/** - * Shared reference to an empty array for cases where it is important to avoid - * returning a new array reference on every invocation, as in a connected or - * other pure component which performs `shouldComponentUpdate` check on props. - * This should be used as a last resort, since the normalized data should be - * maintained by the reducer result in state. - * - * @type {Array} - */ - -var EMPTY_ARRAY = []; -/** - * Returns a block's name given its client ID, or null if no block exists with - * the client ID. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {string} Block name. - */ - -function selectors_getBlockName(state, clientId) { - var block = state.blocks.byClientId[clientId]; - return block ? block.name : null; -} -/** - * Returns whether a block is valid or not. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {boolean} Is Valid. - */ - -function selectors_isBlockValid(state, clientId) { - var block = state.blocks.byClientId[clientId]; - return !!block && block.isValid; -} -/** - * Returns a block's attributes given its client ID, or null if no block exists with - * the client ID. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {Object?} Block attributes. - */ - -function getBlockAttributes(state, clientId) { - var block = state.blocks.byClientId[clientId]; - - if (!block) { - return null; - } - - return state.blocks.attributes[clientId]; -} -/** - * Returns a block given its client ID. This is a parsed copy of the block, - * containing its `blockName`, `clientId`, and current `attributes` state. This - * is not the block's registration settings, which must be retrieved from the - * blocks module registration store. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {Object} Parsed block object. - */ - -var selectors_getBlock = Object(rememo["a" /* default */])(function (state, clientId) { - var block = state.blocks.byClientId[clientId]; - - if (!block) { - return null; - } - - return selectors_objectSpread({}, block, { - attributes: getBlockAttributes(state, clientId), - innerBlocks: selectors_getBlocks(state, clientId) - }); -}, function (state, clientId) { - return [// Normally, we'd have both `getBlockAttributes` dependencies and - // `getBlocks` (children) dependancies here but for performance reasons - // we use a denormalized cache key computed in the reducer that takes both - // the attributes and inner blocks into account. The value of the cache key - // is being changed whenever one of these dependencies is out of date. - state.blocks.cache[clientId]]; -}); -var selectors_unstableGetBlockWithoutInnerBlocks = Object(rememo["a" /* default */])(function (state, clientId) { - var block = state.blocks.byClientId[clientId]; - - if (!block) { - return null; - } - - return selectors_objectSpread({}, block, { - attributes: getBlockAttributes(state, clientId) - }); -}, function (state, clientId) { - return [state.blocks.byClientId[clientId], state.blocks.attributes[clientId]]; -}); -/** - * Returns all block objects for the current post being edited as an array in - * the order they appear in the post. - * - * Note: It's important to memoize this selector to avoid return a new instance - * on each call - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {Object[]} Post blocks. - */ - -var selectors_getBlocks = Object(rememo["a" /* default */])(function (state, rootClientId) { - return Object(external_this_lodash_["map"])(selectors_getBlockOrder(state, rootClientId), function (clientId) { - return selectors_getBlock(state, clientId); - }); -}, function (state) { - return [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; -}); -/** - * Returns an array containing the clientIds of all descendants - * of the blocks given. - * - * @param {Object} state Global application state. - * @param {Array} clientIds Array of blocks to inspect. - * - * @return {Array} ids of descendants. - */ - -var selectors_getClientIdsOfDescendants = function getClientIdsOfDescendants(state, clientIds) { - return Object(external_this_lodash_["flatMap"])(clientIds, function (clientId) { - var descendants = selectors_getBlockOrder(state, clientId); - return [].concat(Object(toConsumableArray["a" /* default */])(descendants), Object(toConsumableArray["a" /* default */])(getClientIdsOfDescendants(state, descendants))); - }); -}; -/** - * Returns an array containing the clientIds of the top-level blocks - * and their descendants of any depth (for nested blocks). - * - * @param {Object} state Global application state. - * - * @return {Array} ids of top-level and descendant blocks. - */ - -var getClientIdsWithDescendants = Object(rememo["a" /* default */])(function (state) { - var topLevelIds = selectors_getBlockOrder(state); - return [].concat(Object(toConsumableArray["a" /* default */])(topLevelIds), Object(toConsumableArray["a" /* default */])(selectors_getClientIdsOfDescendants(state, topLevelIds))); -}, function (state) { - return [state.blocks.order]; -}); -/** - * Returns the total number of blocks, or the total number of blocks with a specific name in a post. - * The number returned includes nested blocks. - * - * @param {Object} state Global application state. - * @param {?string} blockName Optional block name, if specified only blocks of that type will be counted. - * - * @return {number} Number of blocks in the post, or number of blocks with name equal to blockName. - */ - -var getGlobalBlockCount = Object(rememo["a" /* default */])(function (state, blockName) { - var clientIds = getClientIdsWithDescendants(state); - - if (!blockName) { - return clientIds.length; - } - - return Object(external_this_lodash_["reduce"])(clientIds, function (accumulator, clientId) { - var block = state.blocks.byClientId[clientId]; - return block.name === blockName ? accumulator + 1 : accumulator; - }, 0); -}, function (state) { - return [state.blocks.order, state.blocks.byClientId]; -}); -/** - * Given an array of block client IDs, returns the corresponding array of block - * objects. - * - * @param {Object} state Editor state. - * @param {string[]} clientIds Client IDs for which blocks are to be returned. - * - * @return {WPBlock[]} Block objects. - */ - -var selectors_getBlocksByClientId = Object(rememo["a" /* default */])(function (state, clientIds) { - return Object(external_this_lodash_["map"])(Object(external_this_lodash_["castArray"])(clientIds), function (clientId) { - return selectors_getBlock(state, clientId); - }); -}, function (state) { - return [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; -}); -/** - * Returns the number of blocks currently present in the post. - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {number} Number of blocks in the post. - */ - -function selectors_getBlockCount(state, rootClientId) { - return selectors_getBlockOrder(state, rootClientId).length; -} -/** - * Returns the current selection start block client ID, attribute key and text - * offset. - * - * @param {Object} state Block editor state. - * - * @return {WPBlockSelection} Selection start information. - */ - -function selectors_getSelectionStart(state) { - return state.selectionStart; -} -/** - * Returns the current selection end block client ID, attribute key and text - * offset. - * - * @param {Object} state Block editor state. - * - * @return {WPBlockSelection} Selection end information. - */ - -function selectors_getSelectionEnd(state) { - return state.selectionEnd; -} -/** - * Returns the current block selection start. This value may be null, and it - * may represent either a singular block selection or multi-selection start. - * A selection is singular if its start and end match. - * - * @param {Object} state Global application state. - * - * @return {?string} Client ID of block selection start. - */ - -function getBlockSelectionStart(state) { - return state.selectionStart.clientId; -} -/** - * Returns the current block selection end. This value may be null, and it - * may represent either a singular block selection or multi-selection end. - * A selection is singular if its start and end match. - * - * @param {Object} state Global application state. - * - * @return {?string} Client ID of block selection end. - */ - -function getBlockSelectionEnd(state) { - return state.selectionEnd.clientId; -} -/** - * Returns the number of blocks currently selected in the post. - * - * @param {Object} state Global application state. - * - * @return {number} Number of blocks selected in the post. - */ - -function selectors_getSelectedBlockCount(state) { - var multiSelectedBlockCount = getMultiSelectedBlockClientIds(state).length; - - if (multiSelectedBlockCount) { - return multiSelectedBlockCount; - } - - return state.selectionStart.clientId ? 1 : 0; -} -/** - * Returns true if there is a single selected block, or false otherwise. - * - * @param {Object} state Editor state. - * - * @return {boolean} Whether a single block is selected. - */ - -function hasSelectedBlock(state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - return !!selectionStart.clientId && selectionStart.clientId === selectionEnd.clientId; -} -/** - * Returns the currently selected block client ID, or null if there is no - * selected block. - * - * @param {Object} state Editor state. - * - * @return {?string} Selected block client ID. - */ - -function selectors_getSelectedBlockClientId(state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - var clientId = selectionStart.clientId; - - if (!clientId || clientId !== selectionEnd.clientId) { - return null; - } - - return clientId; -} -/** - * Returns the currently selected block, or null if there is no selected block. - * - * @param {Object} state Global application state. - * - * @return {?Object} Selected block. - */ - -function selectors_getSelectedBlock(state) { - var clientId = selectors_getSelectedBlockClientId(state); - return clientId ? selectors_getBlock(state, clientId) : null; -} -/** - * Given a block client ID, returns the root block from which the block is - * nested, an empty string for top-level blocks, or null if the block does not - * exist. - * - * @param {Object} state Editor state. - * @param {string} clientId Block from which to find root client ID. - * - * @return {?string} Root client ID, if exists - */ - -function selectors_getBlockRootClientId(state, clientId) { - return state.blocks.parents[clientId] !== undefined ? state.blocks.parents[clientId] : null; -} -/** - * Given a block client ID, returns the list of all its parents from top to bottom. - * - * @param {Object} state Editor state. - * @param {string} clientId Block from which to find root client ID. - * @param {boolean} ascending Order results from bottom to top (true) or top to bottom (false). - * - * @return {Array} ClientIDs of the parent blocks. - */ - -var selectors_getBlockParents = Object(rememo["a" /* default */])(function (state, clientId) { - var ascending = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var parents = []; - var current = clientId; - - while (!!state.blocks.parents[current]) { - current = state.blocks.parents[current]; - parents.push(current); - } - - return ascending ? parents : parents.reverse(); -}, function (state) { - return [state.blocks.parents]; -}); -/** - * Given a block client ID and a block name, - * returns the list of all its parents from top to bottom, - * filtered by the given name. - * - * @param {Object} state Editor state. - * @param {string} clientId Block from which to find root client ID. - * @param {string} blockName Block name to filter. - * @param {boolean} ascending Order results from bottom to top (true) or top to bottom (false). - * - * @return {Array} ClientIDs of the parent blocks. - */ - -var getBlockParentsByBlockName = Object(rememo["a" /* default */])(function (state, clientId, blockName) { - var ascending = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - var parents = selectors_getBlockParents(state, clientId, ascending); - return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(Object(external_this_lodash_["map"])(parents, function (id) { - return { - id: id, - name: selectors_getBlockName(state, id) - }; - }), { - name: blockName - }), function (_ref) { - var id = _ref.id; - return id; - }); -}, function (state) { - return [state.blocks.parents]; -}); -/** - * Given a block client ID, returns the root of the hierarchy from which the block is nested, return the block itself for root level blocks. - * - * @param {Object} state Editor state. - * @param {string} clientId Block from which to find root client ID. - * - * @return {string} Root client ID - */ - -function getBlockHierarchyRootClientId(state, clientId) { - var current = clientId; - var parent; - - do { - parent = current; - current = state.blocks.parents[current]; - } while (current); - - return parent; -} -/** - * Given a block client ID, returns the lowest common ancestor with selected client ID. - * - * @param {Object} state Editor state. - * @param {string} clientId Block from which to find common ancestor client ID. - * - * @return {string} Common ancestor client ID or undefined - */ - -function getLowestCommonAncestorWithSelectedBlock(state, clientId) { - var selectedId = selectors_getSelectedBlockClientId(state); - var clientParents = [].concat(Object(toConsumableArray["a" /* default */])(selectors_getBlockParents(state, clientId)), [clientId]); - var selectedParents = [].concat(Object(toConsumableArray["a" /* default */])(selectors_getBlockParents(state, selectedId)), [selectedId]); - var lowestCommonAncestor; - var maxDepth = Math.min(clientParents.length, selectedParents.length); - - for (var index = 0; index < maxDepth; index++) { - if (clientParents[index] === selectedParents[index]) { - lowestCommonAncestor = clientParents[index]; - } else { - break; - } - } - - return lowestCommonAncestor; -} -/** - * Returns the client ID of the block adjacent one at the given reference - * startClientId and modifier directionality. Defaults start startClientId to - * the selected block, and direction as next block. Returns null if there is no - * adjacent block. - * - * @param {Object} state Editor state. - * @param {?string} startClientId Optional client ID of block from which to - * search. - * @param {?number} modifier Directionality multiplier (1 next, -1 - * previous). - * - * @return {?string} Return the client ID of the block, or null if none exists. - */ - -function getAdjacentBlockClientId(state, startClientId) { - var modifier = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - - // Default to selected block. - if (startClientId === undefined) { - startClientId = selectors_getSelectedBlockClientId(state); - } // Try multi-selection starting at extent based on modifier. - - - if (startClientId === undefined) { - if (modifier < 0) { - startClientId = selectors_getFirstMultiSelectedBlockClientId(state); - } else { - startClientId = selectors_getLastMultiSelectedBlockClientId(state); - } - } // Validate working start client ID. - - - if (!startClientId) { - return null; - } // Retrieve start block root client ID, being careful to allow the falsey - // empty string top-level root by explicitly testing against null. - - - var rootClientId = selectors_getBlockRootClientId(state, startClientId); - - if (rootClientId === null) { - return null; - } - - var order = state.blocks.order; - var orderSet = order[rootClientId]; - var index = orderSet.indexOf(startClientId); - var nextIndex = index + 1 * modifier; // Block was first in set and we're attempting to get previous. - - if (nextIndex < 0) { - return null; - } // Block was last in set and we're attempting to get next. - - - if (nextIndex === orderSet.length) { - return null; - } // Assume incremented index is within the set. - - - return orderSet[nextIndex]; -} -/** - * Returns the previous block's client ID from the given reference start ID. - * Defaults start to the selected block. Returns null if there is no previous - * block. - * - * @param {Object} state Editor state. - * @param {?string} startClientId Optional client ID of block from which to - * search. - * - * @return {?string} Adjacent block's client ID, or null if none exists. - */ - -function getPreviousBlockClientId(state, startClientId) { - return getAdjacentBlockClientId(state, startClientId, -1); -} -/** - * Returns the next block's client ID from the given reference start ID. - * Defaults start to the selected block. Returns null if there is no next - * block. - * - * @param {Object} state Editor state. - * @param {?string} startClientId Optional client ID of block from which to - * search. - * - * @return {?string} Adjacent block's client ID, or null if none exists. - */ - -function getNextBlockClientId(state, startClientId) { - return getAdjacentBlockClientId(state, startClientId, 1); -} -/** - * Returns the initial caret position for the selected block. - * This position is to used to position the caret properly when the selected block changes. - * - * @param {Object} state Global application state. - * - * @return {?Object} Selected block. - */ - -function selectors_getSelectedBlocksInitialCaretPosition(state) { - return state.initialPosition; -} -/** - * Returns the current selection set of block client IDs (multiselection or single selection). - * - * @param {Object} state Editor state. - * - * @return {Array} Multi-selected block client IDs. - */ - -var selectors_getSelectedBlockClientIds = Object(rememo["a" /* default */])(function (state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - - if (selectionStart.clientId === undefined || selectionEnd.clientId === undefined) { - return EMPTY_ARRAY; - } - - if (selectionStart.clientId === selectionEnd.clientId) { - return [selectionStart.clientId]; - } // Retrieve root client ID to aid in retrieving relevant nested block - // order, being careful to allow the falsey empty string top-level root - // by explicitly testing against null. - - - var rootClientId = selectors_getBlockRootClientId(state, selectionStart.clientId); - - if (rootClientId === null) { - return EMPTY_ARRAY; - } - - var blockOrder = selectors_getBlockOrder(state, rootClientId); - var startIndex = blockOrder.indexOf(selectionStart.clientId); - var endIndex = blockOrder.indexOf(selectionEnd.clientId); - - if (startIndex > endIndex) { - return blockOrder.slice(endIndex, startIndex + 1); - } - - return blockOrder.slice(startIndex, endIndex + 1); -}, function (state) { - return [state.blocks.order, state.selectionStart.clientId, state.selectionEnd.clientId]; -}); -/** - * Returns the current multi-selection set of block client IDs, or an empty - * array if there is no multi-selection. - * - * @param {Object} state Editor state. - * - * @return {Array} Multi-selected block client IDs. - */ - -function getMultiSelectedBlockClientIds(state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - - if (selectionStart.clientId === selectionEnd.clientId) { - return EMPTY_ARRAY; - } - - return selectors_getSelectedBlockClientIds(state); -} -/** - * Returns the current multi-selection set of blocks, or an empty array if - * there is no multi-selection. - * - * @param {Object} state Editor state. - * - * @return {Array} Multi-selected block objects. - */ - -var getMultiSelectedBlocks = Object(rememo["a" /* default */])(function (state) { - var multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(state); - - if (!multiSelectedBlockClientIds.length) { - return EMPTY_ARRAY; - } - - return multiSelectedBlockClientIds.map(function (clientId) { - return selectors_getBlock(state, clientId); - }); -}, function (state) { - return [].concat(Object(toConsumableArray["a" /* default */])(selectors_getSelectedBlockClientIds.getDependants(state)), [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]); -}); -/** - * Returns the client ID of the first block in the multi-selection set, or null - * if there is no multi-selection. - * - * @param {Object} state Editor state. - * - * @return {?string} First block client ID in the multi-selection set. - */ - -function selectors_getFirstMultiSelectedBlockClientId(state) { - return Object(external_this_lodash_["first"])(getMultiSelectedBlockClientIds(state)) || null; -} -/** - * Returns the client ID of the last block in the multi-selection set, or null - * if there is no multi-selection. - * - * @param {Object} state Editor state. - * - * @return {?string} Last block client ID in the multi-selection set. - */ - -function selectors_getLastMultiSelectedBlockClientId(state) { - return Object(external_this_lodash_["last"])(getMultiSelectedBlockClientIds(state)) || null; -} -/** - * Returns true if a multi-selection exists, and the block corresponding to the - * specified client ID is the first block of the multi-selection set, or false - * otherwise. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {boolean} Whether block is first in multi-selection. - */ - -function selectors_isFirstMultiSelectedBlock(state, clientId) { - return selectors_getFirstMultiSelectedBlockClientId(state) === clientId; -} -/** - * Returns true if the client ID occurs within the block multi-selection, or - * false otherwise. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {boolean} Whether block is in multi-selection set. - */ - -function selectors_isBlockMultiSelected(state, clientId) { - return getMultiSelectedBlockClientIds(state).indexOf(clientId) !== -1; -} -/** - * Returns true if an ancestor of the block is multi-selected, or false - * otherwise. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {boolean} Whether an ancestor of the block is in multi-selection - * set. - */ - -var selectors_isAncestorMultiSelected = Object(rememo["a" /* default */])(function (state, clientId) { - var ancestorClientId = clientId; - var isMultiSelected = false; - - while (ancestorClientId && !isMultiSelected) { - ancestorClientId = selectors_getBlockRootClientId(state, ancestorClientId); - isMultiSelected = selectors_isBlockMultiSelected(state, ancestorClientId); - } - - return isMultiSelected; -}, function (state) { - return [state.blocks.order, state.selectionStart.clientId, state.selectionEnd.clientId]; -}); -/** - * Returns the client ID of the block which begins the multi-selection set, or - * null if there is no multi-selection. - * - * This is not necessarily the first client ID in the selection. - * - * @see getFirstMultiSelectedBlockClientId - * - * @param {Object} state Editor state. - * - * @return {?string} Client ID of block beginning multi-selection. - */ - -function getMultiSelectedBlocksStartClientId(state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - - if (selectionStart.clientId === selectionEnd.clientId) { - return null; - } - - return selectionStart.clientId || null; -} -/** - * Returns the client ID of the block which ends the multi-selection set, or - * null if there is no multi-selection. - * - * This is not necessarily the last client ID in the selection. - * - * @see getLastMultiSelectedBlockClientId - * - * @param {Object} state Editor state. - * - * @return {?string} Client ID of block ending multi-selection. - */ - -function getMultiSelectedBlocksEndClientId(state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - - if (selectionStart.clientId === selectionEnd.clientId) { - return null; - } - - return selectionEnd.clientId || null; -} -/** - * Returns an array containing all block client IDs in the editor in the order - * they appear. Optionally accepts a root client ID of the block list for which - * the order should be returned, defaulting to the top-level block order. - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {Array} Ordered client IDs of editor blocks. - */ - -function selectors_getBlockOrder(state, rootClientId) { - return state.blocks.order[rootClientId || ''] || EMPTY_ARRAY; -} -/** - * Returns the index at which the block corresponding to the specified client - * ID occurs within the block order, or `-1` if the block does not exist. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {number} Index at which block exists in order. - */ - -function selectors_getBlockIndex(state, clientId, rootClientId) { - return selectors_getBlockOrder(state, rootClientId).indexOf(clientId); -} -/** - * Returns true if the block corresponding to the specified client ID is - * currently selected and no multi-selection exists, or false otherwise. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {boolean} Whether block is selected and multi-selection exists. - */ - -function selectors_isBlockSelected(state, clientId) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - - if (selectionStart.clientId !== selectionEnd.clientId) { - return false; - } - - return selectionStart.clientId === clientId; -} -/** - * Returns true if one of the block's inner blocks is selected. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * @param {boolean} deep Perform a deep check. - * - * @return {boolean} Whether the block as an inner block selected - */ - -function selectors_hasSelectedInnerBlock(state, clientId) { - var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - return Object(external_this_lodash_["some"])(selectors_getBlockOrder(state, clientId), function (innerClientId) { - return selectors_isBlockSelected(state, innerClientId) || selectors_isBlockMultiSelected(state, innerClientId) || deep && selectors_hasSelectedInnerBlock(state, innerClientId, deep); - }); -} -/** - * Returns true if the block corresponding to the specified client ID is - * currently selected but isn't the last of the selected blocks. Here "last" - * refers to the block sequence in the document, _not_ the sequence of - * multi-selection, which is why `state.selectionEnd` isn't used. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {boolean} Whether block is selected and not the last in the - * selection. - */ - -function isBlockWithinSelection(state, clientId) { - if (!clientId) { - return false; - } - - var clientIds = getMultiSelectedBlockClientIds(state); - var index = clientIds.indexOf(clientId); - return index > -1 && index < clientIds.length - 1; -} -/** - * Returns true if a multi-selection has been made, or false otherwise. - * - * @param {Object} state Editor state. - * - * @return {boolean} Whether multi-selection has been made. - */ - -function selectors_hasMultiSelection(state) { - var selectionStart = state.selectionStart, - selectionEnd = state.selectionEnd; - return selectionStart.clientId !== selectionEnd.clientId; -} -/** - * Whether in the process of multi-selecting or not. This flag is only true - * while the multi-selection is being selected (by mouse move), and is false - * once the multi-selection has been settled. - * - * @see hasMultiSelection - * - * @param {Object} state Global application state. - * - * @return {boolean} True if multi-selecting, false if not. - */ - -function selectors_isMultiSelecting(state) { - return state.isMultiSelecting; -} -/** - * Selector that returns if multi-selection is enabled or not. - * - * @param {Object} state Global application state. - * - * @return {boolean} True if it should be possible to multi-select blocks, false if multi-selection is disabled. - */ - -function selectors_isSelectionEnabled(state) { - return state.isSelectionEnabled; -} -/** - * Returns the block's editing mode, defaulting to "visual" if not explicitly - * assigned. - * - * @param {Object} state Editor state. - * @param {string} clientId Block client ID. - * - * @return {Object} Block editing mode. - */ - -function selectors_getBlockMode(state, clientId) { - return state.blocksMode[clientId] || 'visual'; -} -/** - * Returns true if the user is typing, or false otherwise. - * - * @param {Object} state Global application state. - * - * @return {boolean} Whether user is typing. - */ - -function selectors_isTyping(state) { - return state.isTyping; -} -/** - * Returns true if the user is dragging blocks, or false otherwise. - * - * @param {Object} state Global application state. - * - * @return {boolean} Whether user is dragging blocks. - */ - -function selectors_isDraggingBlocks(state) { - return state.isDraggingBlocks; -} -/** - * Returns true if the caret is within formatted text, or false otherwise. - * - * @param {Object} state Global application state. - * - * @return {boolean} Whether the caret is within formatted text. - */ - -function selectors_isCaretWithinFormattedText(state) { - return state.isCaretWithinFormattedText; -} -/** - * Returns the insertion point, the index at which the new inserted block would - * be placed. Defaults to the last index. - * - * @param {Object} state Editor state. - * - * @return {Object} Insertion point object with `rootClientId`, `index`. - */ - -function getBlockInsertionPoint(state) { - var rootClientId, index; - var insertionPoint = state.insertionPoint, - selectionEnd = state.selectionEnd; - - if (insertionPoint !== null) { - return insertionPoint; - } - - var clientId = selectionEnd.clientId; - - if (clientId) { - rootClientId = selectors_getBlockRootClientId(state, clientId) || undefined; - index = selectors_getBlockIndex(state, selectionEnd.clientId, rootClientId) + 1; - } else { - index = selectors_getBlockOrder(state).length; - } - - return { - rootClientId: rootClientId, - index: index - }; -} -/** - * Returns true if we should show the block insertion point. - * - * @param {Object} state Global application state. - * - * @return {?boolean} Whether the insertion point is visible or not. - */ - -function isBlockInsertionPointVisible(state) { - return state.insertionPoint !== null; -} -/** - * Returns whether the blocks matches the template or not. - * - * @param {boolean} state - * @return {?boolean} Whether the template is valid or not. - */ - -function isValidTemplate(state) { - return state.template.isValid; -} -/** - * Returns the defined block template - * - * @param {boolean} state - * @return {?Array} Block Template - */ - -function getTemplate(state) { - return state.settings.template; -} -/** - * Returns the defined block template lock. Optionally accepts a root block - * client ID as context, otherwise defaulting to the global context. - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional block root client ID. - * - * @return {?string} Block Template Lock - */ - -function selectors_getTemplateLock(state, rootClientId) { - if (!rootClientId) { - return state.settings.templateLock; - } - - var blockListSettings = selectors_getBlockListSettings(state, rootClientId); - - if (!blockListSettings) { - return null; - } - - return blockListSettings.templateLock; -} -/** - * Determines if the given block type is allowed to be inserted into the block list. - * This function is not exported and not memoized because using a memoized selector - * inside another memoized selector is just a waste of time. - * - * @param {Object} state Editor state. - * @param {string} blockName The name of the block type, e.g.' core/paragraph'. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {boolean} Whether the given block type is allowed to be inserted. - */ - -var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoized(state, blockName) { - var rootClientId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - var checkAllowList = function checkAllowList(list, item) { - var defaultResult = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - if (Object(external_this_lodash_["isBoolean"])(list)) { - return list; - } - - if (Object(external_this_lodash_["isArray"])(list)) { - // TODO: when there is a canonical way to detect that we are editing a post - // the following check should be changed to something like: - // if ( includes( list, 'core/post-content' ) && getEditorMode() === 'post-content' && item === null ) - if (Object(external_this_lodash_["includes"])(list, 'core/post-content') && item === null) { - return true; - } - - return Object(external_this_lodash_["includes"])(list, item); - } - - return defaultResult; - }; - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(blockName); - - if (!blockType) { - return false; - } - - var _getSettings = selectors_getSettings(state), - allowedBlockTypes = _getSettings.allowedBlockTypes; - - var isBlockAllowedInEditor = checkAllowList(allowedBlockTypes, blockName, true); - - if (!isBlockAllowedInEditor) { - return false; - } - - var isLocked = !!selectors_getTemplateLock(state, rootClientId); - - if (isLocked) { - return false; - } - - var parentBlockListSettings = selectors_getBlockListSettings(state, rootClientId); - var parentAllowedBlocks = Object(external_this_lodash_["get"])(parentBlockListSettings, ['allowedBlocks']); - var hasParentAllowedBlock = checkAllowList(parentAllowedBlocks, blockName); - var blockAllowedParentBlocks = blockType.parent; - var parentName = selectors_getBlockName(state, rootClientId); - var hasBlockAllowedParent = checkAllowList(blockAllowedParentBlocks, parentName); - - if (hasParentAllowedBlock !== null && hasBlockAllowedParent !== null) { - return hasParentAllowedBlock || hasBlockAllowedParent; - } else if (hasParentAllowedBlock !== null) { - return hasParentAllowedBlock; - } else if (hasBlockAllowedParent !== null) { - return hasBlockAllowedParent; - } - - return true; -}; -/** - * Determines if the given block type is allowed to be inserted into the block list. - * - * @param {Object} state Editor state. - * @param {string} blockName The name of the block type, e.g.' core/paragraph'. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {boolean} Whether the given block type is allowed to be inserted. - */ - - -var selectors_canInsertBlockType = Object(rememo["a" /* default */])(selectors_canInsertBlockTypeUnmemoized, function (state, blockName, rootClientId) { - return [state.blockListSettings[rootClientId], state.blocks.byClientId[rootClientId], state.settings.allowedBlockTypes, state.settings.templateLock]; -}); -/** - * Returns information about how recently and frequently a block has been inserted. - * - * @param {Object} state Global application state. - * @param {string} id A string which identifies the insert, e.g. 'core/block/12' - * - * @return {?{ time: number, count: number }} An object containing `time` which is when the last - * insert occurred as a UNIX epoch, and `count` which is - * the number of inserts that have occurred. - */ - -function getInsertUsage(state, id) { - return Object(external_this_lodash_["get"])(state.preferences.insertUsage, [id], null); -} -/** - * Returns whether we can show a block type in the inserter - * - * @param {Object} state Global State - * @param {Object} blockType BlockType - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {boolean} Whether the given block type is allowed to be shown in the inserter. - */ - - -var selectors_canIncludeBlockTypeInInserter = function canIncludeBlockTypeInInserter(state, blockType, rootClientId) { - if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'inserter', true)) { - return false; - } - - return selectors_canInsertBlockTypeUnmemoized(state, blockType.name, rootClientId); -}; -/** - * Determines the items that appear in the inserter. Includes both static - * items (e.g. a regular block type) and dynamic items (e.g. a reusable block). - * - * Each item object contains what's necessary to display a button in the - * inserter and handle its selection. - * - * The 'utility' property indicates how useful we think an item will be to the - * user. There are 4 levels of utility: - * - * 1. Blocks that are contextually useful (utility = 3) - * 2. Blocks that have been previously inserted (utility = 2) - * 3. Blocks that are in the common category (utility = 1) - * 4. All other blocks (utility = 0) - * - * The 'frecency' property is a heuristic (https://en.wikipedia.org/wiki/Frecency) - * that combines block usage frequenty and recency. - * - * Items are returned ordered descendingly by their 'utility' and 'frecency'. - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {WPEditorInserterItem[]} Items that appear in inserter. - * - * @typedef {Object} WPEditorInserterItem - * @property {string} id Unique identifier for the item. - * @property {string} name The type of block to create. - * @property {Object} initialAttributes Attributes to pass to the newly created block. - * @property {string} title Title of the item, as it appears in the inserter. - * @property {string} icon Dashicon for the item, as it appears in the inserter. - * @property {string} category Block category that the item is associated with. - * @property {string[]} keywords Keywords that can be searched to find this item. - * @property {boolean} isDisabled Whether or not the user should be prevented from inserting - * this item. - * @property {number} utility How useful we think this item is, between 0 and 3. - * @property {number} frecency Hueristic that combines frequency and recency. - */ - - -var selectors_getInserterItems = Object(rememo["a" /* default */])(function (state) { - var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - - var calculateUtility = function calculateUtility(category, count, isContextual) { - if (isContextual) { - return INSERTER_UTILITY_HIGH; - } else if (count > 0) { - return INSERTER_UTILITY_MEDIUM; - } else if (category === 'common') { - return INSERTER_UTILITY_LOW; - } - - return INSERTER_UTILITY_NONE; - }; - - var calculateFrecency = function calculateFrecency(time, count) { - if (!time) { - return count; - } // The selector is cached, which means Date.now() is the last time that the - // relevant state changed. This suits our needs. - - - var duration = Date.now() - time; - - switch (true) { - case duration < MILLISECONDS_PER_HOUR: - return count * 4; - - case duration < MILLISECONDS_PER_DAY: - return count * 2; - - case duration < MILLISECONDS_PER_WEEK: - return count / 2; - - default: - return count / 4; - } - }; - - var buildBlockTypeInserterItem = function buildBlockTypeInserterItem(blockType) { - var id = blockType.name; - var isDisabled = false; - - if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType.name, 'multiple', true)) { - isDisabled = Object(external_this_lodash_["some"])(selectors_getBlocksByClientId(state, getClientIdsWithDescendants(state)), { - name: blockType.name - }); - } - - var isContextual = Object(external_this_lodash_["isArray"])(blockType.parent); - - var _ref2 = getInsertUsage(state, id) || {}, - time = _ref2.time, - _ref2$count = _ref2.count, - count = _ref2$count === void 0 ? 0 : _ref2$count; - - var inserterVariations = blockType.variations.filter(function (_ref3) { - var scope = _ref3.scope; - return !scope || scope.includes('inserter'); - }); - return { - id: id, - name: blockType.name, - initialAttributes: {}, - title: blockType.title, - description: blockType.description, - icon: blockType.icon, - category: blockType.category, - keywords: blockType.keywords, - variations: inserterVariations, - example: blockType.example, - isDisabled: isDisabled, - utility: calculateUtility(blockType.category, count, isContextual), - frecency: calculateFrecency(time, count) - }; - }; - - var buildReusableBlockInserterItem = function buildReusableBlockInserterItem(reusableBlock) { - var id = "core/block/".concat(reusableBlock.id); - - var referencedBlocks = __experimentalGetParsedReusableBlock(state, reusableBlock.id); - - var referencedBlockType; - - if (referencedBlocks.length === 1) { - referencedBlockType = Object(external_this_wp_blocks_["getBlockType"])(referencedBlocks[0].name); - } - - var _ref4 = getInsertUsage(state, id) || {}, - time = _ref4.time, - _ref4$count = _ref4.count, - count = _ref4$count === void 0 ? 0 : _ref4$count; - - var utility = calculateUtility('reusable', count, false); - var frecency = calculateFrecency(time, count); - return { - id: id, - name: 'core/block', - initialAttributes: { - ref: reusableBlock.id - }, - title: reusableBlock.title, - icon: referencedBlockType ? referencedBlockType.icon : templateIcon, - category: 'reusable', - keywords: [], - isDisabled: false, - utility: utility, - frecency: frecency - }; - }; - - var blockTypeInserterItems = Object(external_this_wp_blocks_["getBlockTypes"])().filter(function (blockType) { - return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); - }).map(buildBlockTypeInserterItem); - var reusableBlockInserterItems = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; - return Object(external_this_lodash_["orderBy"])([].concat(Object(toConsumableArray["a" /* default */])(blockTypeInserterItems), Object(toConsumableArray["a" /* default */])(reusableBlockInserterItems)), ['utility', 'frecency'], ['desc', 'desc']); -}, function (state, rootClientId) { - return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.blocks.order, state.preferences.insertUsage, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), Object(external_this_wp_blocks_["getBlockTypes"])()]; -}); -/** - * Determines whether there are items to show in the inserter. - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {boolean} Items that appear in inserter. - */ - -var selectors_hasInserterItems = Object(rememo["a" /* default */])(function (state) { - var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - var hasBlockType = Object(external_this_lodash_["some"])(Object(external_this_wp_blocks_["getBlockTypes"])(), function (blockType) { - return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); - }); - - if (hasBlockType) { - return true; - } - - var hasReusableBlock = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) && getReusableBlocks(state).length > 0; - return hasReusableBlock; -}, function (state, rootClientId) { - return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), Object(external_this_wp_blocks_["getBlockTypes"])()]; -}); -/** - * Returns the list of allowed inserter blocks for inner blocks children - * - * @param {Object} state Editor state. - * @param {?string} rootClientId Optional root client ID of block list. - * - * @return {Array?} The list of allowed block types. - */ - -var selectors_experimentalGetAllowedBlocks = Object(rememo["a" /* default */])(function (state) { - var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - - if (!rootClientId) { - return; - } - - return Object(external_this_lodash_["filter"])(Object(external_this_wp_blocks_["getBlockTypes"])(), function (blockType) { - return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); - }); -}, function (state, rootClientId) { - return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.settings.allowedBlockTypes, state.settings.templateLock, Object(external_this_wp_blocks_["getBlockTypes"])()]; -}); -/** - * Returns the Block List settings of a block, if any exist. - * - * @param {Object} state Editor state. - * @param {?string} clientId Block client ID. - * - * @return {?Object} Block settings of the block if set. - */ - -function selectors_getBlockListSettings(state, clientId) { - return state.blockListSettings[clientId]; -} -/** - * Returns the editor settings. - * - * @param {Object} state Editor state. - * - * @return {Object} The editor settings object. - */ - -function selectors_getSettings(state) { - return state.settings; -} -/** - * Returns true if the most recent block change is be considered persistent, or - * false otherwise. A persistent change is one committed by BlockEditorProvider - * via its `onChange` callback, in addition to `onInput`. - * - * @param {Object} state Block editor state. - * - * @return {boolean} Whether the most recent block change was persistent. - */ - -function selectors_isLastBlockChangePersistent(state) { - return state.blocks.isPersistentChange; -} -/** - * Returns the Block List settings for an array of blocks, if any exist. - * - * @param {Object} state Editor state. - * @param {Array} clientIds Block client IDs. - * - * @return {Array} Block List Settings for each of the found blocks - */ - -var selectors_experimentalGetBlockListSettingsForBlocks = Object(rememo["a" /* default */])(function (state, clientIds) { - return Object(external_this_lodash_["filter"])(state.blockListSettings, function (value, key) { - return clientIds.includes(key); - }); -}, function (state) { - return [state.blockListSettings]; -}); -/** - * Returns the parsed block saved as shared block with the given ID. - * - * @param {Object} state Global application state. - * @param {number|string} ref The shared block's ID. - * - * @return {Object} The parsed block. - */ - -var __experimentalGetParsedReusableBlock = Object(rememo["a" /* default */])(function (state, ref) { - var reusableBlock = Object(external_this_lodash_["find"])(getReusableBlocks(state), function (block) { - return block.id === ref; - }); - - if (!reusableBlock) { - return null; - } - - return Object(external_this_wp_blocks_["parse"])(reusableBlock.content); -}, function (state) { - return [getReusableBlocks(state)]; -}); -/** - * Returns true if the most recent block change is be considered ignored, or - * false otherwise. An ignored change is one not to be committed by - * BlockEditorProvider, neither via `onChange` nor `onInput`. - * - * @param {Object} state Block editor state. - * - * @return {boolean} Whether the most recent block change was ignored. - */ - -function selectors_unstableIsLastBlockChangeIgnored(state) { - // TODO: Removal Plan: Changes incurred by RECEIVE_BLOCKS should not be - // ignored if in-fact they result in a change in blocks state. The current - // need to ignore changes not a result of user interaction should be - // accounted for in the refactoring of reusable blocks as occurring within - // their own separate block editor / state (#7119). - return state.blocks.isIgnoredChange; -} -/** - * Returns the block attributes changed as a result of the last dispatched - * action. - * - * @param {Object} state Block editor state. - * - * @return {Object} Subsets of block attributes changed, keyed - * by block client ID. - */ - -function __experimentalGetLastBlockAttributeChanges(state) { - return state.lastBlockAttributesChange; -} -/** - * Returns the available reusable blocks - * - * @param {Object} state Global application state. - * - * @return {Array} Reusable blocks - */ - -function getReusableBlocks(state) { - return Object(external_this_lodash_["get"])(state, ['settings', '__experimentalReusableBlocks'], EMPTY_ARRAY); -} -/** - * Returns whether the navigation mode is enabled. - * - * @param {Object} state Editor state. - * - * @return {boolean} Is navigation mode enabled. - */ - - -function selectors_isNavigationMode(state) { - return state.isNavigationMode; -} -/** - * Returns true if the last change was an automatic change, false otherwise. - * - * @param {Object} state Global application state. - * - * @return {boolean} Whether the last change was automatic. - */ - -function selectors_didAutomaticChange(state) { - return !!state.automaticChangeStatus; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/effects.js - - - - - -function effects_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function effects_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { effects_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { effects_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -/** - * Block validity is a function of blocks state (at the point of a - * reset) and the template setting. As a compromise to its placement - * across distinct parts of state, it is implemented here as a side- - * effect of the block reset action. - * - * @param {Object} action RESET_BLOCKS action. - * @param {Object} store Store instance. - * - * @return {?Object} New validity set action if validity has changed. - */ - -function validateBlocksToTemplate(action, store) { - var state = store.getState(); - var template = getTemplate(state); - var templateLock = selectors_getTemplateLock(state); // Unlocked templates are considered always valid because they act - // as default values only. - - var isBlocksValidToTemplate = !template || templateLock !== 'all' || Object(external_this_wp_blocks_["doBlocksMatchTemplate"])(action.blocks, template); // Update if validity has changed. - - if (isBlocksValidToTemplate !== isValidTemplate(state)) { - return setTemplateValidity(isBlocksValidToTemplate); - } -} -/* harmony default export */ var effects = ({ - MERGE_BLOCKS: function MERGE_BLOCKS(action, store) { - var dispatch = store.dispatch; - var state = store.getState(); - - var _action$blocks = Object(slicedToArray["a" /* default */])(action.blocks, 2), - clientIdA = _action$blocks[0], - clientIdB = _action$blocks[1]; - - var blockA = selectors_getBlock(state, clientIdA); - var blockAType = Object(external_this_wp_blocks_["getBlockType"])(blockA.name); // Only focus the previous block if it's not mergeable - - if (!blockAType.merge) { - dispatch(actions_selectBlock(blockA.clientId)); - return; - } - - var blockB = selectors_getBlock(state, clientIdB); - var blockBType = Object(external_this_wp_blocks_["getBlockType"])(blockB.name); - - var _getSelectionStart = selectors_getSelectionStart(state), - clientId = _getSelectionStart.clientId, - attributeKey = _getSelectionStart.attributeKey, - offset = _getSelectionStart.offset; - - var selectedBlockType = clientId === clientIdA ? blockAType : blockBType; - var attributeDefinition = selectedBlockType.attributes[attributeKey]; - var canRestoreTextSelection = (clientId === clientIdA || clientId === clientIdB) && attributeKey !== undefined && offset !== undefined && // We cannot restore text selection if the RichText identifier - // is not a defined block attribute key. This can be the case if the - // fallback intance ID is used to store selection (and no RichText - // identifier is set), or when the identifier is wrong. - !!attributeDefinition; - - if (!attributeDefinition) { - if (typeof attributeKey === 'number') { - window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(esm_typeof["a" /* default */])(attributeKey))); - } else { - window.console.error('The RichText identifier prop does not match any attributes defined by the block.'); - } - } // A robust way to retain selection position through various transforms - // is to insert a special character at the position and then recover it. - - - var START_OF_SELECTED_AREA = "\x86"; // Clone the blocks so we don't insert the character in a "live" block. - - var cloneA = Object(external_this_wp_blocks_["cloneBlock"])(blockA); - var cloneB = Object(external_this_wp_blocks_["cloneBlock"])(blockB); - - if (canRestoreTextSelection) { - var selectedBlock = clientId === clientIdA ? cloneA : cloneB; - var html = selectedBlock.attributes[attributeKey]; - var multilineTag = attributeDefinition.multiline, - multilineWrapperTags = attributeDefinition.__unstableMultilineWrapperTags, - preserveWhiteSpace = attributeDefinition.__unstablePreserveWhiteSpace; - var value = Object(external_this_wp_richText_["insert"])(Object(external_this_wp_richText_["create"])({ - html: html, - multilineTag: multilineTag, - multilineWrapperTags: multilineWrapperTags, - preserveWhiteSpace: preserveWhiteSpace - }), START_OF_SELECTED_AREA, offset, offset); - selectedBlock.attributes[attributeKey] = Object(external_this_wp_richText_["toHTMLString"])({ - value: value, - multilineTag: multilineTag, - preserveWhiteSpace: preserveWhiteSpace - }); - } // We can only merge blocks with similar types - // thus, we transform the block to merge first - - - var blocksWithTheSameType = blockA.name === blockB.name ? [cloneB] : Object(external_this_wp_blocks_["switchToBlockType"])(cloneB, blockA.name); // If the block types can not match, do nothing - - if (!blocksWithTheSameType || !blocksWithTheSameType.length) { - return; - } // Calling the merge to update the attributes and remove the block to be merged - - - var updatedAttributes = blockAType.merge(cloneA.attributes, blocksWithTheSameType[0].attributes); - - if (canRestoreTextSelection) { - var newAttributeKey = Object(external_this_lodash_["findKey"])(updatedAttributes, function (v) { - return typeof v === 'string' && v.indexOf(START_OF_SELECTED_AREA) !== -1; - }); - var convertedHtml = updatedAttributes[newAttributeKey]; - var _blockAType$attribute = blockAType.attributes[newAttributeKey], - _multilineTag = _blockAType$attribute.multiline, - _multilineWrapperTags = _blockAType$attribute.__unstableMultilineWrapperTags, - _preserveWhiteSpace = _blockAType$attribute.__unstablePreserveWhiteSpace; - var convertedValue = Object(external_this_wp_richText_["create"])({ - html: convertedHtml, - multilineTag: _multilineTag, - multilineWrapperTags: _multilineWrapperTags, - preserveWhiteSpace: _preserveWhiteSpace - }); - var newOffset = convertedValue.text.indexOf(START_OF_SELECTED_AREA); - var newValue = Object(external_this_wp_richText_["remove"])(convertedValue, newOffset, newOffset + 1); - var newHtml = Object(external_this_wp_richText_["toHTMLString"])({ - value: newValue, - multilineTag: _multilineTag, - preserveWhiteSpace: _preserveWhiteSpace - }); - updatedAttributes[newAttributeKey] = newHtml; - dispatch(actions_selectionChange(blockA.clientId, newAttributeKey, newOffset, newOffset)); - } - - dispatch(actions_replaceBlocks([blockA.clientId, blockB.clientId], [effects_objectSpread({}, blockA, { - attributes: effects_objectSpread({}, blockA.attributes, {}, updatedAttributes) - })].concat(Object(toConsumableArray["a" /* default */])(blocksWithTheSameType.slice(1))))); - }, - RESET_BLOCKS: [validateBlocksToTemplate], - MULTI_SELECT: function MULTI_SELECT(action, _ref) { - var getState = _ref.getState; - var blockCount = selectors_getSelectedBlockCount(getState()); - /* translators: %s: number of selected blocks */ - - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%s block selected.', '%s blocks selected.', blockCount), blockCount), 'assertive'); - }, - SYNCHRONIZE_TEMPLATE: function SYNCHRONIZE_TEMPLATE(action, _ref2) { - var getState = _ref2.getState; - var state = getState(); - var blocks = selectors_getBlocks(state); - var template = getTemplate(state); - var updatedBlockList = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(blocks, template); - return actions_resetBlocks(updatedBlockList); - }, - MARK_AUTOMATIC_CHANGE: function MARK_AUTOMATIC_CHANGE(action, store) { - var _window = window, - setTimeout = _window.setTimeout, - _window$requestIdleCa = _window.requestIdleCallback, - requestIdleCallback = _window$requestIdleCa === void 0 ? function (callback) { - return setTimeout(callback, 100); - } : _window$requestIdleCa; - requestIdleCallback(function () { - store.dispatch({ - type: 'MARK_AUTOMATIC_CHANGE_FINAL' - }); - }); - } -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/middlewares.js - - -/** - * External dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Applies the custom middlewares used specifically in the editor module. - * - * @param {Object} store Store Object. - * - * @return {Object} Update Store Object. - */ - -function applyMiddlewares(store) { - var middlewares = [refx_default()(effects), redux_multi_lib_default.a]; - - var enhancedDispatch = function enhancedDispatch() { - throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); - }; - - var chain = []; - var middlewareAPI = { - getState: store.getState, - dispatch: function dispatch() { - return enhancedDispatch.apply(void 0, arguments); - } - }; - chain = middlewares.map(function (middleware) { - return middleware(middlewareAPI); - }); - enhancedDispatch = external_this_lodash_["flowRight"].apply(void 0, Object(toConsumableArray["a" /* default */])(chain))(store.dispatch); - store.dispatch = enhancedDispatch; - return store; -} - -/* harmony default export */ var store_middlewares = (applyMiddlewares); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/index.js - - -function store_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function store_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { store_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { store_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - - - -/** - * Module Constants - */ - -var MODULE_KEY = 'core/block-editor'; -/** - * Block editor data store configuration. - * - * @see https://github.com/WordPress/gutenberg/blob/master/packages/data/README.md#registerStore - * - * @type {Object} - */ - -var storeConfig = { - reducer: store_reducer, - selectors: selectors_namespaceObject, - actions: actions_namespaceObject, - controls: store_controls -}; -var store_store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, store_objectSpread({}, storeConfig, { - persist: ['preferences'] -})); -store_middlewares(store_store); -/* harmony default export */ var build_module_store = (store_store); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/with-registry-provider.js - - - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var withRegistryProvider = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return Object(external_this_wp_data_["withRegistry"])(function (_ref) { - var _ref$useSubRegistry = _ref.useSubRegistry, - useSubRegistry = _ref$useSubRegistry === void 0 ? true : _ref$useSubRegistry, - registry = _ref.registry, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["useSubRegistry", "registry"]); - - if (!useSubRegistry) { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({ - registry: registry - }, props)); - } - - var _useState = Object(external_this_wp_element_["useState"])(null), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - subRegistry = _useState2[0], - setSubRegistry = _useState2[1]; - - Object(external_this_wp_element_["useEffect"])(function () { - var newRegistry = Object(external_this_wp_data_["createRegistry"])({}, registry); - var store = newRegistry.registerStore('core/block-editor', storeConfig); // This should be removed after the refactoring of the effects to controls. - - store_middlewares(store); - setSubRegistry(newRegistry); - }, [registry]); - - if (!subRegistry) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["RegistryProvider"], { - value: subRegistry - }, Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({ - registry: subRegistry - }, props))); - }); -}, 'withRegistryProvider'); -/* harmony default export */ var with_registry_provider = (withRegistryProvider); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/index.js - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** @typedef {import('@wordpress/data').WPDataRegistry} WPDataRegistry */ - -var provider_BlockEditorProvider = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockEditorProvider, _Component); - - function BlockEditorProvider() { - Object(classCallCheck["a" /* default */])(this, BlockEditorProvider); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockEditorProvider).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(BlockEditorProvider, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.props.updateSettings(this.props.settings); - this.props.resetBlocks(this.props.value); - this.attachChangeObserver(this.props.registry); - this.isSyncingOutcomingValue = []; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - settings = _this$props.settings, - updateSettings = _this$props.updateSettings, - value = _this$props.value, - resetBlocks = _this$props.resetBlocks, - selectionStart = _this$props.selectionStart, - selectionEnd = _this$props.selectionEnd, - resetSelection = _this$props.resetSelection, - registry = _this$props.registry; - - if (settings !== prevProps.settings) { - updateSettings(settings); - } - - if (registry !== prevProps.registry) { - this.attachChangeObserver(registry); - } - - if (this.isSyncingOutcomingValue.includes(value)) { - // Skip block reset if the value matches expected outbound sync - // triggered by this component by a preceding change detection. - // Only skip if the value matches expectation, since a reset should - // still occur if the value is modified (not equal by reference), - // to allow that the consumer may apply modifications to reflect - // back on the editor. - if (Object(external_this_lodash_["last"])(this.isSyncingOutcomingValue) === value) { - this.isSyncingOutcomingValue = []; - } - } else if (value !== prevProps.value) { - // Reset changing value in all other cases than the sync described - // above. Since this can be reached in an update following an out- - // bound sync, unset the outbound value to avoid considering it in - // subsequent renders. - this.isSyncingOutcomingValue = []; - this.isSyncingIncomingValue = value; - resetBlocks(value); - - if (selectionStart && selectionEnd) { - resetSelection(selectionStart, selectionEnd); - } - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.unsubscribe) { - this.unsubscribe(); - } - } - /** - * Given a registry object, overrides the default dispatch behavior for the - * `core/block-editor` store to interpret a state change and decide whether - * we should call `onChange` or `onInput` depending on whether the change - * is persistent or not. - * - * This needs to be done synchronously after state changes (instead of using - * `componentDidUpdate`) in order to avoid batching these changes. - * - * @param {WPDataRegistry} registry Registry from which block editor - * dispatch is to be overridden. - */ - - }, { - key: "attachChangeObserver", - value: function attachChangeObserver(registry) { - var _this = this; - - if (this.unsubscribe) { - this.unsubscribe(); - } - - var _registry$select = registry.select('core/block-editor'), - getBlocks = _registry$select.getBlocks, - getSelectionStart = _registry$select.getSelectionStart, - getSelectionEnd = _registry$select.getSelectionEnd, - isLastBlockChangePersistent = _registry$select.isLastBlockChangePersistent, - __unstableIsLastBlockChangeIgnored = _registry$select.__unstableIsLastBlockChangeIgnored; - - var blocks = getBlocks(); - var isPersistent = isLastBlockChangePersistent(); - this.unsubscribe = registry.subscribe(function () { - var _this$props2 = _this.props, - _this$props2$onChange = _this$props2.onChange, - onChange = _this$props2$onChange === void 0 ? external_this_lodash_["noop"] : _this$props2$onChange, - _this$props2$onInput = _this$props2.onInput, - onInput = _this$props2$onInput === void 0 ? external_this_lodash_["noop"] : _this$props2$onInput; - var newBlocks = getBlocks(); - var newIsPersistent = isLastBlockChangePersistent(); - - if (newBlocks !== blocks && (_this.isSyncingIncomingValue || __unstableIsLastBlockChangeIgnored())) { - _this.isSyncingIncomingValue = null; - blocks = newBlocks; - isPersistent = newIsPersistent; - return; - } - - if (newBlocks !== blocks || // This happens when a previous input is explicitely marked as persistent. - newIsPersistent && !isPersistent) { - // When knowing the blocks value is changing, assign instance - // value to skip reset in subsequent `componentDidUpdate`. - if (newBlocks !== blocks) { - _this.isSyncingOutcomingValue.push(newBlocks); - } - - blocks = newBlocks; - isPersistent = newIsPersistent; - var selectionStart = getSelectionStart(); - var selectionEnd = getSelectionEnd(); - - if (isPersistent) { - onChange(blocks, { - selectionStart: selectionStart, - selectionEnd: selectionEnd - }); - } else { - onInput(blocks, { - selectionStart: selectionStart, - selectionEnd: selectionEnd - }); - } - } - }); - } - }, { - key: "render", - value: function render() { - var children = this.props.children; - return children; - } - }]); - - return BlockEditorProvider; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var provider = (Object(external_this_wp_compose_["compose"])([with_registry_provider, Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - updateSettings = _dispatch.updateSettings, - resetBlocks = _dispatch.resetBlocks, - resetSelection = _dispatch.resetSelection; - - return { - updateSettings: updateSettings, - resetBlocks: resetBlocks, - resetSelection: resetSelection - }; -})])(provider_BlockEditorProvider)); - -// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(77); - -// EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(28); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-horizontal.js -var more_horizontal = __webpack_require__(284); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/warning/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function Warning(_ref) { - var className = _ref.className, - actions = _ref.actions, - children = _ref.children, - secondaryActions = _ref.secondaryActions; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()(className, 'block-editor-warning') - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-warning__contents" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "block-editor-warning__message" - }, children), external_this_wp_element_["Children"].count(actions) > 0 && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-warning__actions" - }, external_this_wp_element_["Children"].map(actions, function (action, i) { - return Object(external_this_wp_element_["createElement"])("span", { - key: i, - className: "block-editor-warning__action" - }, action); - }))), secondaryActions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - className: "block-editor-warning__secondary", - position: "bottom left", - renderToggle: function renderToggle(_ref2) { - var isOpen = _ref2.isOpen, - onToggle = _ref2.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: more_horizontal["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('More options'), - onClick: onToggle, - "aria-expanded": isOpen - }); - }, - renderContent: function renderContent() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, secondaryActions.map(function (item, pos) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: item.onClick, - key: pos - }, item.title); - })); - } - })); -} - -/* harmony default export */ var warning = (Warning); - -// EXTERNAL MODULE: ./node_modules/diff/dist/diff.js -var dist_diff = __webpack_require__(262); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js - - -/** - * WordPress dependencies - */ - - -var block_view_BlockView = function BlockView(_ref) { - var title = _ref.title, - rawContent = _ref.rawContent, - renderedContent = _ref.renderedContent, - action = _ref.action, - actionText = _ref.actionText, - className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-compare__content" - }, Object(external_this_wp_element_["createElement"])("h2", { - className: "block-editor-block-compare__heading" - }, title), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-compare__html" - }, rawContent), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-compare__preview edit-post-visual-editor" - }, renderedContent)), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-compare__action" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - tabIndex: "0", - onClick: action - }, actionText))); -}; - -/* harmony default export */ var block_view = (block_view_BlockView); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/index.js - - - - - - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var block_compare_BlockCompare = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockCompare, _Component); - - function BlockCompare() { - Object(classCallCheck["a" /* default */])(this, BlockCompare); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockCompare).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(BlockCompare, [{ - key: "getDifference", - value: function getDifference(originalContent, newContent) { - var difference = Object(dist_diff["diffChars"])(originalContent, newContent); - return difference.map(function (item, pos) { - var classes = classnames_default()({ - 'block-editor-block-compare__added': item.added, - 'block-editor-block-compare__removed': item.removed - }); - return Object(external_this_wp_element_["createElement"])("span", { - key: pos, - className: classes - }, item.value); - }); - } - }, { - key: "getOriginalContent", - value: function getOriginalContent(block) { - return { - rawContent: block.originalContent, - renderedContent: Object(external_this_wp_blocks_["getSaveElement"])(block.name, block.attributes) - }; - } - }, { - key: "getConvertedContent", - value: function getConvertedContent(block) { - // The convertor may return an array of items or a single item - var newBlocks = Object(external_this_lodash_["castArray"])(block); // Get converted block details - - var newContent = newBlocks.map(function (item) { - return Object(external_this_wp_blocks_["getSaveContent"])(item.name, item.attributes, item.innerBlocks); - }); - var renderedContent = newBlocks.map(function (item) { - return Object(external_this_wp_blocks_["getSaveElement"])(item.name, item.attributes, item.innerBlocks); - }); - return { - rawContent: newContent.join(''), - renderedContent: renderedContent - }; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - block = _this$props.block, - onKeep = _this$props.onKeep, - onConvert = _this$props.onConvert, - convertor = _this$props.convertor, - convertButtonText = _this$props.convertButtonText; - var original = this.getOriginalContent(block); - var converted = this.getConvertedContent(convertor(block)); - var difference = this.getDifference(original.rawContent, converted.rawContent); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-compare__wrapper" - }, Object(external_this_wp_element_["createElement"])(block_view, { - title: Object(external_this_wp_i18n_["__"])('Current'), - className: "block-editor-block-compare__current", - action: onKeep, - actionText: Object(external_this_wp_i18n_["__"])('Convert to HTML'), - rawContent: original.rawContent, - renderedContent: original.renderedContent - }), Object(external_this_wp_element_["createElement"])(block_view, { - title: Object(external_this_wp_i18n_["__"])('After Conversion'), - className: "block-editor-block-compare__converted", - action: onConvert, - actionText: convertButtonText, - rawContent: difference, - renderedContent: converted.renderedContent - })); - } - }]); - - return BlockCompare; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_compare = (block_compare_BlockCompare); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-invalid-warning.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -var block_invalid_warning_BlockInvalidWarning = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockInvalidWarning, _Component); - - function BlockInvalidWarning(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockInvalidWarning); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockInvalidWarning).call(this, props)); - _this.state = { - compare: false - }; - _this.onCompare = _this.onCompare.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onCompareClose = _this.onCompareClose.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(BlockInvalidWarning, [{ - key: "onCompare", - value: function onCompare() { - this.setState({ - compare: true - }); - } - }, { - key: "onCompareClose", - value: function onCompareClose() { - this.setState({ - compare: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - convertToHTML = _this$props.convertToHTML, - convertToBlocks = _this$props.convertToBlocks, - convertToClassic = _this$props.convertToClassic, - attemptBlockRecovery = _this$props.attemptBlockRecovery, - block = _this$props.block; - var hasHTMLBlock = !!Object(external_this_wp_blocks_["getBlockType"])('core/html'); - var compare = this.state.compare; - var hiddenActions = [{ - title: Object(external_this_wp_i18n_["__"])('Convert to Classic Block'), - onClick: convertToClassic - }, { - title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'), - onClick: attemptBlockRecovery - }]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(warning, { - actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "convert", - onClick: this.onCompare, - isSecondary: hasHTMLBlock, - isPrimary: !hasHTMLBlock - }, // translators: Button to fix block content - Object(external_this_wp_i18n_["_x"])('Resolve', 'imperative verb')), hasHTMLBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "edit", - onClick: convertToHTML, - isPrimary: true - }, Object(external_this_wp_i18n_["__"])('Convert to HTML'))], - secondaryActions: hiddenActions - }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')), compare && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { - title: // translators: Dialog title to fix block content - Object(external_this_wp_i18n_["__"])('Resolve Block'), - onRequestClose: this.onCompareClose, - className: "block-editor-block-compare" - }, Object(external_this_wp_element_["createElement"])(block_compare, { - block: block, - onKeep: convertToHTML, - onConvert: convertToBlocks, - convertor: block_invalid_warning_blockToBlocks, - convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks') - }))); - } - }]); - - return BlockInvalidWarning; -}(external_this_wp_element_["Component"]); - -var block_invalid_warning_blockToClassic = function blockToClassic(block) { - return Object(external_this_wp_blocks_["createBlock"])('core/freeform', { - content: block.originalContent - }); -}; - -var block_invalid_warning_blockToHTML = function blockToHTML(block) { - return Object(external_this_wp_blocks_["createBlock"])('core/html', { - content: block.originalContent - }); -}; - -var block_invalid_warning_blockToBlocks = function blockToBlocks(block) { - return Object(external_this_wp_blocks_["rawHandler"])({ - HTML: block.originalContent - }); -}; - -var block_invalid_warning_recoverBlock = function recoverBlock(_ref) { - var name = _ref.name, - attributes = _ref.attributes, - innerBlocks = _ref.innerBlocks; - return Object(external_this_wp_blocks_["createBlock"])(name, attributes, innerBlocks); -}; - -/* harmony default export */ var block_invalid_warning = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - return { - block: select('core/block-editor').getBlock(clientId) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var block = _ref3.block; - - var _dispatch = dispatch('core/block-editor'), - replaceBlock = _dispatch.replaceBlock; - - return { - convertToClassic: function convertToClassic() { - replaceBlock(block.clientId, block_invalid_warning_blockToClassic(block)); - }, - convertToHTML: function convertToHTML() { - replaceBlock(block.clientId, block_invalid_warning_blockToHTML(block)); - }, - convertToBlocks: function convertToBlocks() { - replaceBlock(block.clientId, block_invalid_warning_blockToBlocks(block)); - }, - attemptBlockRecovery: function attemptBlockRecovery() { - replaceBlock(block.clientId, block_invalid_warning_recoverBlock(block)); - } - }; -})])(block_invalid_warning_BlockInvalidWarning)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-warning.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var block_crash_warning_warning = Object(external_this_wp_element_["createElement"])(warning, { - className: "block-editor-block-list__block-crash-warning" -}, Object(external_this_wp_i18n_["__"])('This block has encountered an error and cannot be previewed.')); -/* harmony default export */ var block_crash_warning = (function () { - return block_crash_warning_warning; -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-boundary.js - - - - - - -/** - * WordPress dependencies - */ - - -var block_crash_boundary_BlockCrashBoundary = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockCrashBoundary, _Component); - - function BlockCrashBoundary() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockCrashBoundary); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockCrashBoundary).apply(this, arguments)); - _this.state = { - hasError: false - }; - return _this; - } - - Object(createClass["a" /* default */])(BlockCrashBoundary, [{ - key: "componentDidCatch", - value: function componentDidCatch(error) { - this.props.onError(error); - this.setState({ - hasError: true - }); - } - }, { - key: "render", - value: function render() { - if (this.state.hasError) { - return null; - } - - return this.props.children; - } - }]); - - return BlockCrashBoundary; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); - -// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js -var react_autosize_textarea_lib = __webpack_require__(72); -var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function BlockHTML(_ref) { - var clientId = _ref.clientId; - - var _useState = Object(external_this_wp_element_["useState"])(''), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - html = _useState2[0], - setHtml = _useState2[1]; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return { - block: select('core/block-editor').getBlock(clientId) - }; - }, [clientId]), - block = _useSelect.block; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - updateBlock = _useDispatch.updateBlock; - - var onChange = function onChange() { - var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); - var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(blockType, html, block.attributes); // If html is empty we reset the block to the default HTML and mark it as valid to avoid triggering an error - - var content = html ? html : Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributes); - var isValid = html ? Object(external_this_wp_blocks_["isValidBlockContent"])(blockType, attributes, content) : true; - updateBlock(clientId, { - attributes: attributes, - originalContent: content, - isValid: isValid - }); // Ensure the state is updated if we reset so it displays the default content - - if (!html) { - setHtml({ - content: content - }); - } - }; - - Object(external_this_wp_element_["useEffect"])(function () { - setHtml(Object(external_this_wp_blocks_["getBlockContent"])(block)); - }, [block]); - return Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, { - className: "block-editor-block-list__block-html-textarea", - value: html, - onBlur: onChange, - onChange: function onChange(event) { - return setHtml(event.target.value); - } - }); -} - -/* harmony default export */ var block_html = (BlockHTML); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/dom.js -/** - * Given a block client ID, returns the corresponding DOM node for the block, - * if exists. As much as possible, this helper should be avoided, and used only - * in cases where isolated behaviors need remote access to a block node. - * - * @param {string} clientId Block client ID. - * @param {Element} scope an optional DOM Element to which the selector should be scoped - * - * @return {Element} Block DOM node. - */ -function getBlockDOMNode(clientId) { - return document.getElementById('block-' + clientId); -} -function getBlockPreviewContainerDOMNode(clientId) { - var domNode = getBlockDOMNode(clientId); - - if (!domNode) { - return; - } - - return domNode.firstChild || domNode; -} -/** - * Returns true if the given HTMLElement is a block focus stop. Blocks without - * their own text fields rely on the focus stop to be keyboard navigable. - * - * @param {HTMLElement} element Element to test. - * - * @return {boolean} Whether element is a block focus stop. - */ - -function isBlockFocusStop(element) { - return element.classList.contains('block-editor-block-list__block'); -} -/** - * Returns true if two elements are contained within the same block. - * - * @param {HTMLElement} a First element. - * @param {HTMLElement} b Second element. - * - * @return {boolean} Whether elements are in the same block. - */ - -function isInSameBlock(a, b) { - return a.closest('.block-editor-block-list__block') === b.closest('.block-editor-block-list__block'); -} -/** - * Returns true if an elements is considered part of the block and not its children. - * - * @param {HTMLElement} blockElement Block container element. - * @param {HTMLElement} element Element. - * - * @return {boolean} Whether element is in the block Element but not its children. - */ - -function isInsideRootBlock(blockElement, element) { - var innerBlocksContainer = blockElement.querySelector('.block-editor-block-list__layout'); - return blockElement.contains(element) && (!innerBlocksContainer || !innerBlocksContainer.contains(element)); -} -/** - * Returns true if the given HTMLElement contains inner blocks (an InnerBlocks - * element). - * - * @param {HTMLElement} element Element to test. - * - * @return {boolean} Whether element contains inner blocks. - */ - -function hasInnerBlocksContext(element) { - return !!element.querySelector('.block-editor-block-list__layout'); -} -/** - * Finds the block client ID given any DOM node inside the block. - * - * @param {Node} node DOM node. - * - * @return {string|undefined} Client ID or undefined if the node is not part of a block. - */ - -function getBlockClientId(node) { - if (node.nodeType !== node.ELEMENT_NODE) { - node = node.parentElement; - } - - var blockNode = node.closest('.wp-block'); - - if (!blockNode) { - return; - } - - return blockNode.id.slice('block-'.length); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/moving-animation.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Simple reducer used to increment a counter. - * - * @param {number} state Previous counter value. - * @return {number} New state value. - */ - -var counterReducer = function counterReducer(state) { - return state + 1; -}; - -var getAbsolutePosition = function getAbsolutePosition(element) { - return { - top: element.offsetTop, - left: element.offsetLeft - }; -}; -/** - * Hook used to compute the styles required to move a div into a new position. - * - * The way this animation works is the following: - * - It first renders the element as if there was no animation. - * - It takes a snapshot of the position of the block to use it - * as a destination point for the animation. - * - It restores the element to the previous position using a CSS transform - * - It uses the "resetAnimation" flag to reset the animation - * from the beginning in order to animate to the new destination point. - * - * @param {Object} ref Reference to the element to animate. - * @param {boolean} isSelected Whether it's the current block or not. - * @param {boolean} adjustScrolling Adjust the scroll position to the current block. - * @param {boolean} enableAnimation Enable/Disable animation. - * @param {*} triggerAnimationOnChange Variable used to trigger the animation if it changes. - * - * @return {Object} Style object. - */ - - -function useMovingAnimation(ref, isSelected, adjustScrolling, enableAnimation, triggerAnimationOnChange) { - var prefersReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])() || !enableAnimation; - - var _useReducer = Object(external_this_wp_element_["useReducer"])(counterReducer, 0), - _useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2), - triggeredAnimation = _useReducer2[0], - triggerAnimation = _useReducer2[1]; - - var _useReducer3 = Object(external_this_wp_element_["useReducer"])(counterReducer, 0), - _useReducer4 = Object(slicedToArray["a" /* default */])(_useReducer3, 2), - finishedAnimation = _useReducer4[0], - endAnimation = _useReducer4[1]; - - var _useState = Object(external_this_wp_element_["useState"])({ - x: 0, - y: 0, - scrollTop: 0 - }), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - transform = _useState2[0], - setTransform = _useState2[1]; - - var previous = ref.current ? getAbsolutePosition(ref.current) : null; - var scrollContainer = Object(external_this_wp_element_["useMemo"])(function () { - if (!adjustScrolling) { - return false; - } - - return Object(external_this_wp_dom_["getScrollContainer"])(ref.current); - }, [adjustScrolling]); - Object(external_this_wp_element_["useLayoutEffect"])(function () { - if (triggeredAnimation) { - endAnimation(); - } - }, [triggeredAnimation]); - Object(external_this_wp_element_["useLayoutEffect"])(function () { - if (prefersReducedMotion) { - if (adjustScrolling && scrollContainer) { - // if the animation is disabled and the scroll needs to be adjusted, - // just move directly to the final scroll position - ref.current.style.transform = 'none'; - - var _destination = getAbsolutePosition(ref.current); - - scrollContainer.scrollTop = scrollContainer.scrollTop - previous.top + _destination.top; - } - - return; - } - - ref.current.style.transform = 'none'; - var destination = getAbsolutePosition(ref.current); - var newTransform = { - x: previous ? previous.left - destination.left : 0, - y: previous ? previous.top - destination.top : 0, - scrollTop: previous && scrollContainer ? scrollContainer.scrollTop - previous.top + destination.top : 0 - }; - ref.current.style.transform = newTransform.x === 0 && newTransform.y === 0 ? undefined : "translate3d(".concat(newTransform.x, "px,").concat(newTransform.y, "px,0)"); - triggerAnimation(); - setTransform(newTransform); - }, [triggerAnimationOnChange]); - var animationProps = Object(web_cjs["useSpring"])({ - from: { - x: transform.x, - y: transform.y - }, - to: { - x: 0, - y: 0 - }, - reset: triggeredAnimation !== finishedAnimation, - config: { - mass: 5, - tension: 2000, - friction: 200 - }, - immediate: prefersReducedMotion, - onFrame: function onFrame(props) { - if (adjustScrolling && scrollContainer && !prefersReducedMotion && props.y) { - scrollContainer.scrollTop = transform.scrollTop + props.y; - } - } - }); // Dismiss animations if disabled. - - return prefersReducedMotion ? {} : { - transformOrigin: 'center', - transform: Object(web_cjs["interpolate"])([animationProps.x, animationProps.y], function (x, y) { - return x === 0 && y === 0 ? undefined : "translate3d(".concat(x, "px,").concat(y, "px,0)"); - }), - zIndex: Object(web_cjs["interpolate"])([animationProps.x, animationProps.y], function (x, y) { - return !isSelected || x === 0 && y === 0 ? undefined : "1"; - }) - }; -} - -/* harmony default export */ var moving_animation = (useMovingAnimation); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-multi-selection.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** - * Returns for the deepest node at the start or end of a container node. Ignores - * any text nodes that only contain HTML formatting whitespace. - * - * @param {Element} node Container to search. - * @param {string} type 'start' or 'end'. - */ - -function getDeepestNode(node, type) { - var child = type === 'start' ? 'firstChild' : 'lastChild'; - var sibling = type === 'start' ? 'nextSibling' : 'previousSibling'; - - while (node[child]) { - node = node[child]; - - while (node.nodeType === node.TEXT_NODE && /^[ \t\n]*$/.test(node.data) && node[sibling]) { - node = node[sibling]; - } - } - - return node; -} - -function use_multi_selection_selector(select) { - var _select = select('core/block-editor'), - isSelectionEnabled = _select.isSelectionEnabled, - isMultiSelecting = _select.isMultiSelecting, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - hasMultiSelection = _select.hasMultiSelection, - getBlockParents = _select.getBlockParents, - getSelectedBlockClientId = _select.getSelectedBlockClientId; - - return { - isSelectionEnabled: isSelectionEnabled(), - isMultiSelecting: isMultiSelecting(), - multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), - hasMultiSelection: hasMultiSelection(), - getBlockParents: getBlockParents, - selectedBlockClientId: getSelectedBlockClientId() - }; -} - -function toggleRichText(container, toggle) { - Array.from(container.querySelectorAll('.rich-text')).forEach(function (node) { - if (toggle) { - node.setAttribute('contenteditable', true); - } else { - node.removeAttribute('contenteditable'); - } - }); -} - -function useMultiSelection(ref) { - var _useSelect = Object(external_this_wp_data_["useSelect"])(use_multi_selection_selector, []), - isSelectionEnabled = _useSelect.isSelectionEnabled, - isMultiSelecting = _useSelect.isMultiSelecting, - multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds, - hasMultiSelection = _useSelect.hasMultiSelection, - getBlockParents = _useSelect.getBlockParents, - selectedBlockClientId = _useSelect.selectedBlockClientId; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - startMultiSelect = _useDispatch.startMultiSelect, - stopMultiSelect = _useDispatch.stopMultiSelect, - multiSelect = _useDispatch.multiSelect, - selectBlock = _useDispatch.selectBlock; - - var rafId = Object(external_this_wp_element_["useRef"])(); - var startClientId = Object(external_this_wp_element_["useRef"])(); - var anchorElement = Object(external_this_wp_element_["useRef"])(); - /** - * When the component updates, and there is multi selection, we need to - * select the entire block contents. - */ - - Object(external_this_wp_element_["useEffect"])(function () { - if (!hasMultiSelection || isMultiSelecting) { - if (!selectedBlockClientId || isMultiSelecting) { - return; - } - - var _selection = window.getSelection(); - - if (_selection.rangeCount && !_selection.isCollapsed) { - var blockNode = getBlockDOMNode(selectedBlockClientId); - - var _selection$getRangeAt = _selection.getRangeAt(0), - startContainer = _selection$getRangeAt.startContainer, - endContainer = _selection$getRangeAt.endContainer; - - if (!!blockNode && (!blockNode.contains(startContainer) || !blockNode.contains(endContainer))) { - _selection.removeAllRanges(); - } - } - - return; - } - - var length = multiSelectedBlockClientIds.length; - - if (length < 2) { - return; - } // These must be in the right DOM order. - - - var start = multiSelectedBlockClientIds[0]; - var end = multiSelectedBlockClientIds[length - 1]; - var startNode = getBlockDOMNode(start); - var endNode = getBlockDOMNode(end); - var selection = window.getSelection(); - var range = document.createRange(); // The most stable way to select the whole block contents is to start - // and end at the deepest points. - - startNode = getDeepestNode(startNode, 'start'); - endNode = getDeepestNode(endNode, 'end'); - range.setStartBefore(startNode); - range.setEndAfter(endNode); - selection.removeAllRanges(); - selection.addRange(range); - }, [hasMultiSelection, isMultiSelecting, multiSelectedBlockClientIds, selectBlock, selectedBlockClientId]); - var onSelectionChange = Object(external_this_wp_element_["useCallback"])(function (_ref) { - var isSelectionEnd = _ref.isSelectionEnd; - var selection = window.getSelection(); // If no selection is found, end multi selection and enable all rich - // text areas. - - if (!selection.rangeCount || selection.isCollapsed) { - toggleRichText(ref.current, true); - return; - } - - var clientId = getBlockClientId(selection.focusNode); - var isSingularSelection = startClientId.current === clientId; - - if (isSingularSelection) { - selectBlock(clientId); // If the selection is complete (on mouse up), and no multiple - // blocks have been selected, set focus back to the anchor element - // if the anchor element contains the selection. Additionally, rich - // text elements that were previously disabled can now be enabled - // again. - - if (isSelectionEnd) { - toggleRichText(ref.current, true); - - if (selection.rangeCount) { - var _selection$getRangeAt2 = selection.getRangeAt(0), - commonAncestorContainer = _selection$getRangeAt2.commonAncestorContainer; - - if (anchorElement.current.contains(commonAncestorContainer)) { - anchorElement.current.focus(); - } - } - } - } else { - var startPath = [].concat(Object(toConsumableArray["a" /* default */])(getBlockParents(startClientId.current)), [startClientId.current]); - var endPath = [].concat(Object(toConsumableArray["a" /* default */])(getBlockParents(clientId)), [clientId]); - var depth = Math.min(startPath.length, endPath.length) - 1; - multiSelect(startPath[depth], endPath[depth]); - } - }, [selectBlock, getBlockParents, multiSelect]); - /** - * Handles a mouseup event to end the current mouse multi-selection. - */ - - var onSelectionEnd = Object(external_this_wp_element_["useCallback"])(function () { - document.removeEventListener('selectionchange', onSelectionChange); // Equivalent to attaching the listener once. - - window.removeEventListener('mouseup', onSelectionEnd); // The browser selection won't have updated yet at this point, so wait - // until the next animation frame to get the browser selection. - - rafId.current = window.requestAnimationFrame(function () { - onSelectionChange({ - isSelectionEnd: true - }); - stopMultiSelect(); - }); - }, [onSelectionChange, stopMultiSelect]); // Only clean up when unmounting, these are added and cleaned up elsewhere. - - Object(external_this_wp_element_["useEffect"])(function () { - return function () { - document.removeEventListener('selectionchange', onSelectionChange); - window.removeEventListener('mouseup', onSelectionEnd); - window.cancelAnimationFrame(rafId.current); - }; - }, [onSelectionChange, onSelectionEnd]); - /** - * Binds event handlers to the document for tracking a pending multi-select - * in response to a mousedown event occurring in a rendered block. - */ - - return Object(external_this_wp_element_["useCallback"])(function (clientId) { - if (!isSelectionEnabled) { - return; - } - - startClientId.current = clientId; - anchorElement.current = document.activeElement; - startMultiSelect(); // `onSelectionStart` is called after `mousedown` and `mouseleave` - // (from a block). The selection ends when `mouseup` happens anywhere - // in the window. - - document.addEventListener('selectionchange', onSelectionChange); - window.addEventListener('mouseup', onSelectionEnd); // Removing the contenteditable attributes within the block editor is - // essential for selection to work across editable areas. The edible - // hosts are removed, allowing selection to be extended outside the - // DOM element. `startMultiSelect` sets a flag in the store so the rich - // text components are updated, but the rerender may happen very slowly, - // especially in Safari for the blocks that are asynchonously rendered. - // To ensure the browser instantly removes the selection boundaries, we - // remove the contenteditable attributes manually. - - toggleRichText(ref.current, false); - }, [isSelectionEnabled, startMultiSelect, onSelectionEnd]); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/focus-capture.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Renders focus capturing areas to redirect focus to the selected block if not - * in Navigation mode. - * - * @param {string} selectedClientId Client ID of the selected block. - * @param {boolean} isReverse Set to true if the component is rendered - * after the block list, false if rendered - * before. - * @param {Object} containerRef Reference containing the element reference - * of the block list container. - * @param {boolean} noCapture Reference containing the flag for enabling - * or disabling capturing. - * - * @return {WPElement} The focus capture element. - */ - -var FocusCapture = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { - var selectedClientId = _ref.selectedClientId, - isReverse = _ref.isReverse, - containerRef = _ref.containerRef, - noCapture = _ref.noCapture, - hasMultiSelection = _ref.hasMultiSelection, - multiSelectionContainer = _ref.multiSelectionContainer; - var isNavigationMode = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').isNavigationMode(); - }); - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - setNavigationMode = _useDispatch.setNavigationMode; - - function onFocus() { - // Do not capture incoming focus if set by us in WritingFlow. - if (noCapture.current) { - noCapture.current = null; - return; - } // When focus coming in from out of the block list, and no block is - // selected, enable Navigation mode and select the first or last block - // depending on the direction. - - - if (!selectedClientId) { - if (hasMultiSelection) { - multiSelectionContainer.current.focus(); - return; - } - - setNavigationMode(true); - var tabbables = external_this_wp_dom_["focus"].tabbable.find(containerRef.current); - - if (tabbables.length) { - if (isReverse) { - Object(external_this_lodash_["last"])(tabbables).focus(); - } else { - Object(external_this_lodash_["first"])(tabbables).focus(); - } - } - - return; - } // If there is a selected block, move focus to the first or last - // tabbable element depending on the direction. - - - var wrapper = getBlockDOMNode(selectedClientId); - - if (isReverse) { - var _tabbables = external_this_wp_dom_["focus"].tabbable.find(wrapper); - - var lastTabbable = Object(external_this_lodash_["last"])(_tabbables) || wrapper; - lastTabbable.focus(); - } else { - wrapper.focus(); - } - } - - return Object(external_this_wp_element_["createElement"])("div", { - ref: ref // Don't allow tabbing to this element in Navigation mode. - , - tabIndex: !isNavigationMode ? '0' : undefined, - onFocus: onFocus // Needs to be positioned within the viewport, so focus to this - // element does not scroll the page. - , - style: { - position: 'fixed' - } - }); -}); -/* harmony default export */ var focus_capture = (FocusCapture); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -/** - * Browser constants - */ - -var writing_flow_window = window, - getSelection = writing_flow_window.getSelection, - writing_flow_getComputedStyle = writing_flow_window.getComputedStyle; -/** - * Given an element, returns true if the element is a tabbable text field, or - * false otherwise. - * - * @param {Element} element Element to test. - * - * @return {boolean} Whether element is a tabbable text field. - */ - -var isTabbableTextField = Object(external_this_lodash_["overEvery"])([external_this_wp_dom_["isTextField"], external_this_wp_dom_["focus"].tabbable.isTabbableIndex]); -/** - * Returns true if the element should consider edge navigation upon a keyboard - * event of the given directional key code, or false otherwise. - * - * @param {Element} element HTML element to test. - * @param {number} keyCode KeyboardEvent keyCode to test. - * @param {boolean} hasModifier Whether a modifier is pressed. - * - * @return {boolean} Whether element should consider edge navigation. - */ - -function isNavigationCandidate(element, keyCode, hasModifier) { - var isVertical = keyCode === external_this_wp_keycodes_["UP"] || keyCode === external_this_wp_keycodes_["DOWN"]; // Currently, all elements support unmodified vertical navigation. - - if (isVertical && !hasModifier) { - return true; - } // Native inputs should not navigate horizontally. - - - var tagName = element.tagName; - return tagName !== 'INPUT' && tagName !== 'TEXTAREA'; -} -/** - * Returns the optimal tab target from the given focused element in the - * desired direction. A preference is made toward text fields, falling back - * to the block focus stop if no other candidates exist for the block. - * - * @param {Element} target Currently focused text field. - * @param {boolean} isReverse True if considering as the first field. - * @param {Element} containerElement Element containing all blocks. - * - * @return {?Element} Optimal tab target, if one exists. - */ - -function getClosestTabbable(target, isReverse, containerElement) { - // Since the current focus target is not guaranteed to be a text field, - // find all focusables. Tabbability is considered later. - var focusableNodes = external_this_wp_dom_["focus"].focusable.find(containerElement); - - if (isReverse) { - focusableNodes = Object(external_this_lodash_["reverse"])(focusableNodes); - } // Consider as candidates those focusables after the current target. - // It's assumed this can only be reached if the target is focusable - // (on its keydown event), so no need to verify it exists in the set. - - - focusableNodes = focusableNodes.slice(focusableNodes.indexOf(target) + 1); - - function isTabCandidate(node, i, array) { - // Not a candidate if the node is not tabbable. - if (!external_this_wp_dom_["focus"].tabbable.isTabbableIndex(node)) { - return false; - } // Prefer text fields... - - - if (Object(external_this_wp_dom_["isTextField"])(node)) { - return true; - } // ...but settle for block focus stop. - - - if (!isBlockFocusStop(node)) { - return false; - } // If element contains inner blocks, stop immediately at its focus - // wrapper. - - - if (hasInnerBlocksContext(node)) { - return true; - } // If navigating out of a block (in reverse), don't consider its - // block focus stop. - - - if (node.contains(target)) { - return false; - } // In case of block focus stop, check to see if there's a better - // text field candidate within. - - - for (var offset = 1, nextNode; nextNode = array[i + offset]; offset++) { - // Abort if no longer testing descendents of focus stop. - if (!node.contains(nextNode)) { - break; - } // Apply same tests by recursion. This is important to consider - // nestable blocks where we don't want to settle for the inner - // block focus stop. - - - if (isTabCandidate(nextNode, i + offset, array)) { - return false; - } - } - - return true; - } - - return Object(external_this_lodash_["find"])(focusableNodes, isTabCandidate); -} - -function writing_flow_selector(select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getMultiSelectedBlocksStartClientId = _select.getMultiSelectedBlocksStartClientId, - getMultiSelectedBlocksEndClientId = _select.getMultiSelectedBlocksEndClientId, - getPreviousBlockClientId = _select.getPreviousBlockClientId, - getNextBlockClientId = _select.getNextBlockClientId, - getFirstMultiSelectedBlockClientId = _select.getFirstMultiSelectedBlockClientId, - getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId, - hasMultiSelection = _select.hasMultiSelection, - getBlockOrder = _select.getBlockOrder, - isNavigationMode = _select.isNavigationMode, - isSelectionEnabled = _select.isSelectionEnabled, - getBlockSelectionStart = _select.getBlockSelectionStart, - isMultiSelecting = _select.isMultiSelecting; - - var selectedBlockClientId = getSelectedBlockClientId(); - var selectionStartClientId = getMultiSelectedBlocksStartClientId(); - var selectionEndClientId = getMultiSelectedBlocksEndClientId(); - return { - selectedBlockClientId: selectedBlockClientId, - selectionStartClientId: selectionStartClientId, - selectionBeforeEndClientId: getPreviousBlockClientId(selectionEndClientId || selectedBlockClientId), - selectionAfterEndClientId: getNextBlockClientId(selectionEndClientId || selectedBlockClientId), - selectedFirstClientId: getFirstMultiSelectedBlockClientId(), - selectedLastClientId: getLastMultiSelectedBlockClientId(), - hasMultiSelection: hasMultiSelection(), - blocks: getBlockOrder(), - isNavigationMode: isNavigationMode(), - isSelectionEnabled: isSelectionEnabled(), - blockSelectionStart: getBlockSelectionStart(), - isMultiSelecting: isMultiSelecting() - }; -} -/** - * Handles selection and navigation across blocks. This component should be - * wrapped around BlockList. - */ - - -function WritingFlow(_ref) { - var children = _ref.children; - var container = Object(external_this_wp_element_["useRef"])(); - var focusCaptureBeforeRef = Object(external_this_wp_element_["useRef"])(); - var focusCaptureAfterRef = Object(external_this_wp_element_["useRef"])(); - var multiSelectionContainer = Object(external_this_wp_element_["useRef"])(); - var entirelySelected = Object(external_this_wp_element_["useRef"])(); // Reference that holds the a flag for enabling or disabling - // capturing on the focus capture elements. - - var noCapture = Object(external_this_wp_element_["useRef"])(); // Here a DOMRect is stored while moving the caret vertically so vertical - // position of the start position can be restored. This is to recreate - // browser behaviour across blocks. - - var verticalRect = Object(external_this_wp_element_["useRef"])(); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(writing_flow_selector, []), - selectedBlockClientId = _useSelect.selectedBlockClientId, - selectionStartClientId = _useSelect.selectionStartClientId, - selectionBeforeEndClientId = _useSelect.selectionBeforeEndClientId, - selectionAfterEndClientId = _useSelect.selectionAfterEndClientId, - selectedFirstClientId = _useSelect.selectedFirstClientId, - selectedLastClientId = _useSelect.selectedLastClientId, - hasMultiSelection = _useSelect.hasMultiSelection, - blocks = _useSelect.blocks, - isNavigationMode = _useSelect.isNavigationMode, - isSelectionEnabled = _useSelect.isSelectionEnabled, - blockSelectionStart = _useSelect.blockSelectionStart, - isMultiSelecting = _useSelect.isMultiSelecting; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - multiSelect = _useDispatch.multiSelect, - selectBlock = _useDispatch.selectBlock, - clearSelectedBlock = _useDispatch.clearSelectedBlock, - setNavigationMode = _useDispatch.setNavigationMode; - - function onMouseDown(event) { - verticalRect.current = null; // Clicking inside a selected block should exit navigation mode. - - if (isNavigationMode && selectedBlockClientId && isInsideRootBlock(getBlockDOMNode(selectedBlockClientId), event.target)) { - setNavigationMode(false); - } // Multi-select blocks when Shift+clicking. - - - if (isSelectionEnabled && // The main button. - // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button - event.button === 0) { - var clientId = getBlockClientId(event.target); - - if (clientId) { - if (event.shiftKey) { - if (blockSelectionStart !== clientId) { - multiSelect(blockSelectionStart, clientId); - event.preventDefault(); - } // Allow user to escape out of a multi-selection to a singular - // selection of a block via click. This is handled here since - // focus handling excludes blocks when there is multiselection, - // as focus can be incurred by starting a multiselection (focus - // moved to first block's multi-controls). - - } else if (hasMultiSelection) { - selectBlock(clientId); - } - } - } - } - - function expandSelection(isReverse) { - var nextSelectionEndClientId = isReverse ? selectionBeforeEndClientId : selectionAfterEndClientId; - - if (nextSelectionEndClientId) { - multiSelect(selectionStartClientId || selectedBlockClientId, nextSelectionEndClientId); - } - } - - function moveSelection(isReverse) { - var focusedBlockClientId = isReverse ? selectedFirstClientId : selectedLastClientId; - - if (focusedBlockClientId) { - selectBlock(focusedBlockClientId); - } - } - /** - * Returns true if the given target field is the last in its block which - * can be considered for tab transition. For example, in a block with two - * text fields, this would return true when reversing from the first of the - * two fields, but false when reversing from the second. - * - * @param {Element} target Currently focused text field. - * @param {boolean} isReverse True if considering as the first field. - * - * @return {boolean} Whether field is at edge for tab transition. - */ - - - function isTabbableEdge(target, isReverse) { - var closestTabbable = getClosestTabbable(target, isReverse, container.current); - return !closestTabbable || !isInSameBlock(target, closestTabbable); - } - - function onKeyDown(event) { - var keyCode = event.keyCode, - target = event.target; - var isUp = keyCode === external_this_wp_keycodes_["UP"]; - var isDown = keyCode === external_this_wp_keycodes_["DOWN"]; - var isLeft = keyCode === external_this_wp_keycodes_["LEFT"]; - var isRight = keyCode === external_this_wp_keycodes_["RIGHT"]; - var isTab = keyCode === external_this_wp_keycodes_["TAB"]; - var isEscape = keyCode === external_this_wp_keycodes_["ESCAPE"]; - var isReverse = isUp || isLeft; - var isHorizontal = isLeft || isRight; - var isVertical = isUp || isDown; - var isNav = isHorizontal || isVertical; - var isShift = event.shiftKey; - var hasModifier = isShift || event.ctrlKey || event.altKey || event.metaKey; - var isNavEdge = isVertical ? external_this_wp_dom_["isVerticalEdge"] : external_this_wp_dom_["isHorizontalEdge"]; // In navigation mode, tab and arrows navigate from block to block. - - if (isNavigationMode) { - var navigateUp = isTab && isShift || isUp; - var navigateDown = isTab && !isShift || isDown; - var focusedBlockUid = navigateUp ? selectionBeforeEndClientId : selectionAfterEndClientId; - - if (navigateDown || navigateUp) { - if (focusedBlockUid) { - event.preventDefault(); - selectBlock(focusedBlockUid); - } else if (isTab && selectedBlockClientId) { - var wrapper = getBlockDOMNode(selectedBlockClientId); - var nextTabbable; - - if (navigateDown) { - nextTabbable = external_this_wp_dom_["focus"].tabbable.findNext(wrapper); - } else { - nextTabbable = external_this_wp_dom_["focus"].tabbable.findPrevious(wrapper); - } - - if (nextTabbable) { - event.preventDefault(); - nextTabbable.focus(); - clearSelectedBlock(); - } - } - } - - return; - } // In Edit mode, Tab should focus the first tabbable element after the - // content, which is normally the sidebar (with block controls) and - // Shift+Tab should focus the first tabbable element before the content, - // which is normally the block toolbar. - // Arrow keys can be used, and Tab and arrow keys can be used in - // Navigation mode (press Esc), to navigate through blocks. - - - if (selectedBlockClientId) { - if (isTab) { - var _wrapper = getBlockDOMNode(selectedBlockClientId); - - if (isShift) { - if (target === _wrapper) { - // Disable focus capturing on the focus capture element, so - // it doesn't refocus this block and so it allows default - // behaviour (moving focus to the next tabbable element). - noCapture.current = true; - focusCaptureBeforeRef.current.focus(); - return; - } - } else { - var tabbables = external_this_wp_dom_["focus"].tabbable.find(_wrapper); - - var lastTabbable = Object(external_this_lodash_["last"])(tabbables) || _wrapper; - - if (target === lastTabbable) { - // See comment above. - noCapture.current = true; - focusCaptureAfterRef.current.focus(); - return; - } - } - } else if (isEscape) { - setNavigationMode(true); - } - } else if (hasMultiSelection && isTab && target === multiSelectionContainer.current) { - // See comment above. - noCapture.current = true; - - if (isShift) { - focusCaptureBeforeRef.current.focus(); - } else { - focusCaptureAfterRef.current.focus(); - } - - return; - } // When presing any key other than up or down, the initial vertical - // position must ALWAYS be reset. The vertical position is saved so it - // can be restored as well as possible on sebsequent vertical arrow key - // presses. It may not always be possible to restore the exact same - // position (such as at an empty line), so it wouldn't be good to - // compute the position right before any vertical arrow key press. - - - if (!isVertical) { - verticalRect.current = null; - } else if (!verticalRect.current) { - verticalRect.current = Object(external_this_wp_dom_["computeCaretRect"])(); - } // This logic inside this condition needs to be checked before - // the check for event.nativeEvent.defaultPrevented. - // The logic handles meta+a keypress and this event is default prevented - // by RichText. - - - if (!isNav) { - // Set immediately before the meta+a combination can be pressed. - if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event)) { - entirelySelected.current = Object(external_this_wp_dom_["isEntirelySelected"])(target); - } - - if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event, 'a')) { - // When the target is contentEditable, selection will already - // have been set by the browser earlier in this call stack. We - // need check the previous result, otherwise all blocks will be - // selected right away. - if (target.isContentEditable ? entirelySelected.current : Object(external_this_wp_dom_["isEntirelySelected"])(target)) { - multiSelect(Object(external_this_lodash_["first"])(blocks), Object(external_this_lodash_["last"])(blocks)); - event.preventDefault(); - } // After pressing primary + A we can assume isEntirelySelected is true. - // Calling right away isEntirelySelected after primary + A may still return false on some browsers. - - - entirelySelected.current = true; - } - - return; - } // Abort if navigation has already been handled (e.g. RichText inline - // boundaries). - - - if (event.nativeEvent.defaultPrevented) { - return; - } // Abort if our current target is not a candidate for navigation (e.g. - // preserve native input behaviors). - - - if (!isNavigationCandidate(target, keyCode, hasModifier)) { - return; - } // In the case of RTL scripts, right means previous and left means next, - // which is the exact reverse of LTR. - - - var _getComputedStyle = writing_flow_getComputedStyle(target), - direction = _getComputedStyle.direction; - - var isReverseDir = direction === 'rtl' ? !isReverse : isReverse; - - if (isShift) { - if ( // Ensure that there is a target block. - (isReverse && selectionBeforeEndClientId || !isReverse && selectionAfterEndClientId) && (hasMultiSelection || isTabbableEdge(target, isReverse) && isNavEdge(target, isReverse))) { - // Shift key is down, and there is multi selection or we're at - // the end of the current block. - expandSelection(isReverse); - event.preventDefault(); - } - } else if (hasMultiSelection) { - // Moving from block multi-selection to single block selection - moveSelection(isReverse); - event.preventDefault(); - } else if (isVertical && Object(external_this_wp_dom_["isVerticalEdge"])(target, isReverse)) { - var closestTabbable = getClosestTabbable(target, isReverse, container.current); - - if (closestTabbable) { - Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closestTabbable, isReverse, verticalRect.current); - event.preventDefault(); - } - } else if (isHorizontal && getSelection().isCollapsed && Object(external_this_wp_dom_["isHorizontalEdge"])(target, isReverseDir)) { - var _closestTabbable = getClosestTabbable(target, isReverseDir, container.current); - - Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(_closestTabbable, isReverseDir); - event.preventDefault(); - } - } - - function focusLastTextField() { - var focusableNodes = external_this_wp_dom_["focus"].focusable.find(container.current); - var target = Object(external_this_lodash_["findLast"])(focusableNodes, isTabbableTextField); - - if (target) { - Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, true); - } - } - - Object(external_this_wp_element_["useEffect"])(function () { - if (hasMultiSelection && !isMultiSelecting) { - multiSelectionContainer.current.focus(); - } - }, [hasMultiSelection, isMultiSelecting]); - var className = classnames_default()('block-editor-writing-flow', { - 'is-navigate-mode': isNavigationMode - }); // Disable reason: Wrapper itself is non-interactive, but must capture - // bubbling events from children to determine focus transition intents. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(focus_capture, { - ref: focusCaptureBeforeRef, - selectedClientId: selectedBlockClientId, - containerRef: container, - noCapture: noCapture, - hasMultiSelection: hasMultiSelection, - multiSelectionContainer: multiSelectionContainer - }), Object(external_this_wp_element_["createElement"])("div", { - ref: container, - onKeyDown: onKeyDown, - onMouseDown: onMouseDown - }, Object(external_this_wp_element_["createElement"])("div", { - ref: multiSelectionContainer, - tabIndex: hasMultiSelection ? '0' : undefined, - "aria-label": hasMultiSelection ? Object(external_this_wp_i18n_["__"])('Multiple selected blocks') : undefined // Needs to be positioned within the viewport, so focus to this - // element does not scroll the page. - , - style: { - position: 'fixed' - } - }), children), Object(external_this_wp_element_["createElement"])(focus_capture, { - ref: focusCaptureAfterRef, - selectedClientId: selectedBlockClientId, - containerRef: container, - noCapture: noCapture, - hasMultiSelection: hasMultiSelection, - multiSelectionContainer: multiSelectionContainer, - isReverse: true - }), Object(external_this_wp_element_["createElement"])("div", { - "aria-hidden": true, - tabIndex: -1, - onClick: focusLastTextField, - className: "block-editor-writing-flow__click-redirect" - })); - /* eslint-enable jsx-a11y/no-static-element-interactions */ -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/insertion-point.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - - - -function Indicator(_ref) { - var clientId = _ref.clientId; - var showInsertionPoint = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockIndex = _select.getBlockIndex, - getBlockInsertionPoint = _select.getBlockInsertionPoint, - isBlockInsertionPointVisible = _select.isBlockInsertionPointVisible, - getBlockRootClientId = _select.getBlockRootClientId; - - var rootClientId = getBlockRootClientId(clientId); - var blockIndex = getBlockIndex(clientId, rootClientId); - var insertionPoint = getBlockInsertionPoint(); - return isBlockInsertionPointVisible() && insertionPoint.index === blockIndex && insertionPoint.rootClientId === rootClientId; - }, [clientId]); - - if (!showInsertionPoint) { - return null; - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-list__insertion-point-indicator" - }); -} - -function InsertionPoint(_ref2) { - var className = _ref2.className, - isMultiSelecting = _ref2.isMultiSelecting, - hasMultiSelection = _ref2.hasMultiSelection, - selectedBlockClientId = _ref2.selectedBlockClientId, - children = _ref2.children, - containerRef = _ref2.containerRef; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isInserterShown = _useState2[0], - setIsInserterShown = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isInserterForced = _useState4[0], - setIsInserterForced = _useState4[1]; - - var _useState5 = Object(external_this_wp_element_["useState"])(null), - _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), - inserterElement = _useState6[0], - setInserterElement = _useState6[1]; - - var _useState7 = Object(external_this_wp_element_["useState"])(null), - _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), - inserterClientId = _useState8[0], - setInserterClientId = _useState8[1]; - - var ref = Object(external_this_wp_element_["useRef"])(); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select2 = select('core/block-editor'), - getMultiSelectedBlockClientIds = _select2.getMultiSelectedBlockClientIds; - - return { - multiSelectedBlockClientIds: getMultiSelectedBlockClientIds() - }; - }), - multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds; - - function onMouseMove(event) { - if (event.target.className !== className) { - if (isInserterShown) { - setIsInserterShown(false); - } - - return; - } - - var rect = event.target.getBoundingClientRect(); - var offset = event.clientY - rect.top; - var element = Array.from(event.target.children).find(function (blockEl) { - return blockEl.offsetTop > offset; - }); - - if (!element) { - return; - } - - var clientId = element.id.slice('block-'.length); - - if (!clientId) { - return; - } - - var elementRect = element.getBoundingClientRect(); - - if (event.clientX > elementRect.right || event.clientX < elementRect.left) { - if (isInserterShown) { - setIsInserterShown(false); - } - - return; - } - - setIsInserterShown(true); - setInserterElement(element); - setInserterClientId(clientId); - } - - function focusClosestTabbable(event) { - var clientX = event.clientX, - clientY = event.clientY, - target = event.target; // Only handle click on the wrapper specifically, and not an event - // bubbled from the inserter itself. - - if (target !== ref.current) { - return; - } - - var targetRect = target.getBoundingClientRect(); - var isReverse = clientY < targetRect.top + targetRect.height / 2; - var blockNode = getBlockDOMNode(inserterClientId); - var container = isReverse ? containerRef.current : blockNode; - var closest = getClosestTabbable(blockNode, true, container); - var rect = new window.DOMRect(clientX, clientY, 0, 16); - - if (closest) { - Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closest, isReverse, rect, false); - } - } // Hide the inserter above the selected block and during multi-selection. - - - var isInserterHidden = hasMultiSelection ? multiSelectedBlockClientIds.includes(inserterClientId) : inserterClientId === selectedBlockClientId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isMultiSelecting && (isInserterShown || isInserterForced) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - noArrow: true, - animate: false, - anchorRef: inserterElement, - position: "top right left", - focusOnMount: false, - className: "block-editor-block-list__insertion-point-popover", - __unstableSlotName: "block-toolbar", - __unstableFixedPosition: false - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-list__insertion-point", - style: { - width: inserterElement.offsetWidth - } - }, Object(external_this_wp_element_["createElement"])(Indicator, { - clientId: inserterClientId - }), Object(external_this_wp_element_["createElement"])("div", { - ref: ref, - onFocus: function onFocus() { - return setIsInserterForced(true); - }, - onBlur: function onBlur() { - return setIsInserterForced(false); - }, - onClick: focusClosestTabbable // While ideally it would be enough to capture the - // bubbling focus event from the Inserter, due to the - // characteristics of click focusing of `button`s in - // Firefox and Safari, it is not reliable. - // - // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - , - tabIndex: -1, - className: classnames_default()('block-editor-block-list__insertion-point-inserter', { - 'is-inserter-hidden': isInserterHidden - }) - }, Object(external_this_wp_element_["createElement"])(inserter, { - clientId: inserterClientId - })))), Object(external_this_wp_element_["createElement"])("div", { - onMouseMove: !isInserterForced && !isMultiSelecting ? onMouseMove : undefined - }, children)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/breadcrumb.js - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/** - * Block breadcrumb component, displaying the label of the block. If the block - * descends from a root block, a button is displayed enabling the user to select - * the root block. - * - * @param {string} props Component props. - * @param {string} props.clientId Client ID of block. - * - * @return {WPComponent} The component to be rendered. - */ - -function breadcrumb_BlockBreadcrumb(_ref) { - var clientId = _ref.clientId, - rootClientId = _ref.rootClientId, - moverDirection = _ref.moverDirection, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["clientId", "rootClientId", "moverDirection"]); - - var selected = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks, - getBlockIndex = _select.getBlockIndex; - - var index = getBlockIndex(clientId, rootClientId); - - var _unstableGetBlockWit = __unstableGetBlockWithoutInnerBlocks(clientId), - name = _unstableGetBlockWit.name, - attributes = _unstableGetBlockWit.attributes; - - return { - index: index, - name: name, - attributes: attributes - }; - }, [clientId, rootClientId]); - var index = selected.index, - name = selected.name, - attributes = selected.attributes; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - setNavigationMode = _useDispatch.setNavigationMode, - removeBlock = _useDispatch.removeBlock; - - var ref = Object(external_this_wp_element_["useRef"])(); // Focus the breadcrumb in navigation mode. - - Object(external_this_wp_element_["useEffect"])(function () { - ref.current.focus(); - }); - - function onKeyDown(event) { - var keyCode = event.keyCode; - - if (keyCode === external_this_wp_keycodes_["BACKSPACE"] || keyCode === external_this_wp_keycodes_["DELETE"]) { - removeBlock(clientId); - event.preventDefault(); - } - } - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); - var label = Object(external_this_wp_blocks_["__experimentalGetAccessibleBlockLabel"])(blockType, attributes, index + 1, moverDirection); - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - className: "block-editor-block-list__breadcrumb" - }, props), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - ref: ref, - onClick: function onClick() { - return setNavigationMode(false); - }, - onKeyDown: onKeyDown, - label: label - }, Object(external_this_wp_element_["createElement"])(block_title, { - clientId: clientId - })))); -} - -/* harmony default export */ var breadcrumb = (breadcrumb_BlockBreadcrumb); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/navigable-toolbar/index.js - - - - -/** - * WordPress dependencies - */ - - - - - -function NavigableToolbar(_ref) { - var children = _ref.children, - focusOnMount = _ref.focusOnMount, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "focusOnMount"]); - - var wrapper = Object(external_this_wp_element_["useRef"])(); - var focusToolbar = Object(external_this_wp_element_["useCallback"])(function () { - var tabbables = external_this_wp_dom_["focus"].tabbable.find(wrapper.current); - - if (tabbables.length) { - tabbables[0].focus(); - } - }, []); - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/focus-toolbar', focusToolbar, { - bindGlobal: true, - eventName: 'keydown' - }); - Object(external_this_wp_element_["useEffect"])(function () { - if (focusOnMount) { - focusToolbar(); - } - }, []); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], Object(esm_extends["a" /* default */])({ - orientation: "horizontal", - role: "toolbar", - ref: wrapper - }, props), children); -} - -/* harmony default export */ var navigable_toolbar = (NavigableToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-contextual-toolbar.js - - - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -function BlockContextualToolbar(_ref) { - var focusOnMount = _ref.focusOnMount, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["focusOnMount"]); - - return Object(external_this_wp_element_["createElement"])(navigable_toolbar, Object(esm_extends["a" /* default */])({ - focusOnMount: focusOnMount, - className: "block-editor-block-contextual-toolbar" - /* translators: accessibility text for the block toolbar */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Block tools') - }, props), Object(external_this_wp_element_["createElement"])(BlockToolbar, null)); -} - -/* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-popover.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - - - - -function block_popover_selector(select) { - var _select = select('core/block-editor'), - isNavigationMode = _select.isNavigationMode, - isMultiSelecting = _select.isMultiSelecting, - hasMultiSelection = _select.hasMultiSelection, - isTyping = _select.isTyping, - isCaretWithinFormattedText = _select.isCaretWithinFormattedText, - getSettings = _select.getSettings, - getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId; - - return { - isNavigationMode: isNavigationMode(), - isMultiSelecting: isMultiSelecting(), - isTyping: isTyping(), - isCaretWithinFormattedText: isCaretWithinFormattedText(), - hasMultiSelection: hasMultiSelection(), - hasFixedToolbar: getSettings().hasFixedToolbar, - lastClientId: getLastMultiSelectedBlockClientId() - }; -} - -function BlockPopover(_ref) { - var clientId = _ref.clientId, - rootClientId = _ref.rootClientId, - name = _ref.name, - align = _ref.align, - isValid = _ref.isValid, - moverDirection = _ref.moverDirection, - isEmptyDefaultBlock = _ref.isEmptyDefaultBlock, - capturingClientId = _ref.capturingClientId; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(block_popover_selector, []), - isNavigationMode = _useSelect.isNavigationMode, - isMultiSelecting = _useSelect.isMultiSelecting, - isTyping = _useSelect.isTyping, - isCaretWithinFormattedText = _useSelect.isCaretWithinFormattedText, - hasMultiSelection = _useSelect.hasMultiSelection, - hasFixedToolbar = _useSelect.hasFixedToolbar, - lastClientId = _useSelect.lastClientId; - - var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium'); - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isToolbarForced = _useState2[0], - setIsToolbarForced = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isInserterShown = _useState4[0], - setIsInserterShown = _useState4[1]; - - var _useContext = Object(external_this_wp_element_["useContext"])(BlockNodes), - _useContext2 = Object(slicedToArray["a" /* default */])(_useContext, 1), - blockNodes = _useContext2[0]; - - var showEmptyBlockSideInserter = !isNavigationMode && isEmptyDefaultBlock && isValid; - var shouldShowBreadcrumb = isNavigationMode; - var shouldShowContextualToolbar = !isNavigationMode && !hasFixedToolbar && isLargeViewport && !showEmptyBlockSideInserter && !isMultiSelecting && (!isTyping || isCaretWithinFormattedText); - var canFocusHiddenToolbar = !isNavigationMode && !shouldShowContextualToolbar && !hasFixedToolbar && !isEmptyDefaultBlock; - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/focus-toolbar', Object(external_this_wp_element_["useCallback"])(function () { - return setIsToolbarForced(true); - }, []), { - bindGlobal: true, - eventName: 'keydown', - isDisabled: !canFocusHiddenToolbar - }); - - if (!shouldShowBreadcrumb && !shouldShowContextualToolbar && !isToolbarForced && !showEmptyBlockSideInserter) { - return null; - } - - var node = blockNodes[clientId]; - - if (capturingClientId) { - node = document.getElementById('block-' + capturingClientId); - } - - if (!node) { - return null; - } // A block may specify a different target element for the toolbar. - - - if (node.classList.contains('is-block-collapsed')) { - node = node.querySelector('.is-block-content') || node; - } - - var anchorRef = node; - - if (hasMultiSelection) { - var bottomNode = blockNodes[lastClientId]; // Wait to render the popover until the bottom reference is available - // as well. - - if (!bottomNode) { - return null; - } - - anchorRef = { - top: node, - bottom: bottomNode - }; - } - - function onFocus() { - setIsInserterShown(true); - } - - function onBlur() { - setIsInserterShown(false); - } // Position above the anchor, pop out towards the right, and position in the - // left corner. For the side inserter, pop out towards the left, and - // position in the right corner. - // To do: refactor `Popover` to make this prop clearer. - - - var popoverPosition = showEmptyBlockSideInserter ? 'top left right' : 'top right left'; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - noArrow: true, - animate: false, - position: popoverPosition, - focusOnMount: false, - anchorRef: anchorRef, - className: "block-editor-block-list__block-popover", - __unstableSticky: !showEmptyBlockSideInserter, - __unstableSlotName: "block-toolbar" // Allow subpixel positioning for the block movement animation. - , - __unstableAllowVerticalSubpixelPosition: moverDirection !== 'horizontal' && node, - __unstableAllowHorizontalSubpixelPosition: moverDirection === 'horizontal' && node, - onBlur: function onBlur() { - return setIsToolbarForced(false); - }, - shouldAnchorIncludePadding: true - }, (shouldShowContextualToolbar || isToolbarForced) && Object(external_this_wp_element_["createElement"])("div", { - onFocus: onFocus, - onBlur: onBlur // While ideally it would be enough to capture the - // bubbling focus event from the Inserter, due to the - // characteristics of click focusing of `button`s in - // Firefox and Safari, it is not reliable. - // - // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - , - tabIndex: -1, - className: classnames_default()('block-editor-block-list__block-popover-inserter', { - 'is-visible': isInserterShown - }) - }, Object(external_this_wp_element_["createElement"])(inserter, { - clientId: clientId, - rootClientId: rootClientId - })), (shouldShowContextualToolbar || isToolbarForced) && Object(external_this_wp_element_["createElement"])(block_contextual_toolbar // If the toolbar is being shown because of being forced - // it should focus the toolbar right after the mount. - , { - focusOnMount: isToolbarForced, - "data-type": name, - "data-align": align - }), shouldShowBreadcrumb && Object(external_this_wp_element_["createElement"])(breadcrumb, { - clientId: clientId, - rootClientId: rootClientId, - moverDirection: moverDirection, - "data-align": align - }), showEmptyBlockSideInserter && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-list__empty-block-inserter" - }, Object(external_this_wp_element_["createElement"])(inserter, { - position: "top right", - rootClientId: rootClientId, - clientId: clientId - }))); -} - -function wrapperSelector(select) { - var _select2 = select('core/block-editor'), - getSelectedBlockClientId = _select2.getSelectedBlockClientId, - getFirstMultiSelectedBlockClientId = _select2.getFirstMultiSelectedBlockClientId, - getBlockRootClientId = _select2.getBlockRootClientId, - __unstableGetBlockWithoutInnerBlocks = _select2.__unstableGetBlockWithoutInnerBlocks, - getBlockParents = _select2.getBlockParents, - getBlockListSettings = _select2.getBlockListSettings, - __experimentalGetBlockListSettingsForBlocks = _select2.__experimentalGetBlockListSettingsForBlocks; - - var clientId = getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId(); - - if (!clientId) { - return; - } - - var rootClientId = getBlockRootClientId(clientId); - - var _ref2 = __unstableGetBlockWithoutInnerBlocks(clientId) || {}, - name = _ref2.name, - _ref2$attributes = _ref2.attributes, - attributes = _ref2$attributes === void 0 ? {} : _ref2$attributes, - isValid = _ref2.isValid; - - var blockParentsClientIds = getBlockParents(clientId); - - var _ref3 = getBlockListSettings(rootClientId) || {}, - __experimentalMoverDirection = _ref3.__experimentalMoverDirection; // Get Block List Settings for all ancestors of the current Block clientId - - - var ancestorBlockListSettings = __experimentalGetBlockListSettingsForBlocks(blockParentsClientIds); // Find the index of the first Block with the `captureDescendantsToolbars` prop defined - // This will be the top most ancestor because getBlockParents() returns tree from top -> bottom - - - var topmostAncestorWithCaptureDescendantsToolbarsIndex = Object(external_this_lodash_["findIndex"])(ancestorBlockListSettings, ['__experimentalCaptureToolbars', true]); - var capturingClientId; - - if (topmostAncestorWithCaptureDescendantsToolbarsIndex !== -1) { - capturingClientId = blockParentsClientIds[topmostAncestorWithCaptureDescendantsToolbarsIndex]; - } - - return { - clientId: clientId, - rootClientId: getBlockRootClientId(clientId), - name: name, - align: attributes.align, - isValid: isValid, - moverDirection: __experimentalMoverDirection, - isEmptyDefaultBlock: name && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])({ - name: name, - attributes: attributes - }), - capturingClientId: capturingClientId - }; -} - -function WrappedBlockPopover() { - var selected = Object(external_this_wp_data_["useSelect"])(wrapperSelector, []); - - if (!selected) { - return null; - } - - var clientId = selected.clientId, - rootClientId = selected.rootClientId, - name = selected.name, - align = selected.align, - isValid = selected.isValid, - moverDirection = selected.moverDirection, - isEmptyDefaultBlock = selected.isEmptyDefaultBlock, - capturingClientId = selected.capturingClientId; - - if (!name) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(BlockPopover, { - clientId: clientId, - rootClientId: rootClientId, - name: name, - align: align, - isValid: isValid, - moverDirection: moverDirection, - isEmptyDefaultBlock: isEmptyDefaultBlock, - capturingClientId: capturingClientId - }); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/root-container.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -/** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ - -var root_container_Context = Object(external_this_wp_element_["createContext"])(); -var BlockNodes = Object(external_this_wp_element_["createContext"])(); - -function root_container_selector(select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - hasMultiSelection = _select.hasMultiSelection, - isMultiSelecting = _select.isMultiSelecting; - - return { - selectedBlockClientId: getSelectedBlockClientId(), - hasMultiSelection: hasMultiSelection(), - isMultiSelecting: isMultiSelecting() - }; -} -/** - * Prevents default dragging behavior within a block. - * To do: we must handle this in the future and clean up the drag target. - * Previously dragging was prevented for multi-selected, but this is no longer - * needed. - * - * @param {WPSyntheticEvent} event Synthetic drag event. - */ - - -function onDragStart(event) { - // Ensure we target block content, not block controls. - if (getBlockClientId(event.target)) { - event.preventDefault(); - } -} - -function RootContainer(_ref, ref) { - var children = _ref.children, - className = _ref.className, - _ref$hasPopover = _ref.hasPopover, - hasPopover = _ref$hasPopover === void 0 ? true : _ref$hasPopover; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(root_container_selector, []), - selectedBlockClientId = _useSelect.selectedBlockClientId, - hasMultiSelection = _useSelect.hasMultiSelection, - isMultiSelecting = _useSelect.isMultiSelecting; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - selectBlock = _useDispatch.selectBlock; - - var onSelectionStart = useMultiSelection(ref); - /** - * Marks the block as selected when focused and not already selected. This - * specifically handles the case where block does not set focus on its own - * (via `setFocus`), typically if there is no focusable input in the block. - * - * @param {WPSyntheticEvent} event - */ - - function onFocus(event) { - if (hasMultiSelection) { - return; - } - - var clientId = getBlockClientId(event.target); - - if (clientId && clientId !== selectedBlockClientId) { - selectBlock(clientId); - } - } - - return Object(external_this_wp_element_["createElement"])(InsertionPoint, { - className: className, - isMultiSelecting: isMultiSelecting, - hasMultiSelection: hasMultiSelection, - selectedBlockClientId: selectedBlockClientId, - containerRef: ref - }, Object(external_this_wp_element_["createElement"])(BlockNodes.Provider, { - value: Object(external_this_wp_element_["useState"])({}) - }, hasPopover ? Object(external_this_wp_element_["createElement"])(WrappedBlockPopover, null) : null, Object(external_this_wp_element_["createElement"])("div", { - ref: ref, - className: className, - onFocus: onFocus, - onDragStart: onDragStart - }, Object(external_this_wp_element_["createElement"])(root_container_Context.Provider, { - value: onSelectionStart - }, children)))); -} - -/* harmony default export */ var root_container = (Object(external_this_wp_element_["forwardRef"])(RootContainer)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block.js - - - - - -function block_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function block_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - - - - - -/** - * Internal dependencies - */ - - - - - - - - - - -function block_BlockListBlock(_ref) { - var mode = _ref.mode, - isFocusMode = _ref.isFocusMode, - isLocked = _ref.isLocked, - clientId = _ref.clientId, - isSelected = _ref.isSelected, - isMultiSelected = _ref.isMultiSelected, - isPartOfMultiSelection = _ref.isPartOfMultiSelection, - isFirstMultiSelected = _ref.isFirstMultiSelected, - isLastMultiSelected = _ref.isLastMultiSelected, - isTypingWithinBlock = _ref.isTypingWithinBlock, - isEmptyDefaultBlock = _ref.isEmptyDefaultBlock, - isAncestorOfSelectedBlock = _ref.isAncestorOfSelectedBlock, - isSelectionEnabled = _ref.isSelectionEnabled, - className = _ref.className, - name = _ref.name, - isValid = _ref.isValid, - attributes = _ref.attributes, - initialPosition = _ref.initialPosition, - wrapperProps = _ref.wrapperProps, - setAttributes = _ref.setAttributes, - onReplace = _ref.onReplace, - onInsertBlocksAfter = _ref.onInsertBlocksAfter, - onMerge = _ref.onMerge, - onRemove = _ref.onRemove, - onInsertDefaultBlockAfter = _ref.onInsertDefaultBlockAfter, - toggleSelection = _ref.toggleSelection, - animateOnChange = _ref.animateOnChange, - enableAnimation = _ref.enableAnimation, - isNavigationMode = _ref.isNavigationMode, - isMultiSelecting = _ref.isMultiSelecting, - _ref$hasSelectedUI = _ref.hasSelectedUI, - hasSelectedUI = _ref$hasSelectedUI === void 0 ? true : _ref$hasSelectedUI; - var onSelectionStart = Object(external_this_wp_element_["useContext"])(root_container_Context); - - var _useContext = Object(external_this_wp_element_["useContext"])(BlockNodes), - _useContext2 = Object(slicedToArray["a" /* default */])(_useContext, 2), - setBlockNodes = _useContext2[1]; // In addition to withSelect, we should favor using useSelect in this component going forward - // to avoid leaking new props to the public API (editor.BlockListBlock filter) - - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return { - isDraggingBlocks: select('core/block-editor').isDraggingBlocks() - }; - }, []), - isDraggingBlocks = _useSelect.isDraggingBlocks; // Reference of the wrapper - - - var wrapper = Object(external_this_wp_element_["useRef"])(null); // Provide the selected node, or the first and last nodes of a multi- - // selection, so it can be used to position the contextual block toolbar. - // We only provide what is necessary, and remove the nodes again when they - // are no longer selected. - - Object(external_this_wp_element_["useLayoutEffect"])(function () { - if (isSelected || isFirstMultiSelected || isLastMultiSelected) { - var node = wrapper.current; - setBlockNodes(function (nodes) { - return block_objectSpread({}, nodes, Object(defineProperty["a" /* default */])({}, clientId, node)); - }); - return function () { - setBlockNodes(function (nodes) { - return Object(external_this_lodash_["omit"])(nodes, clientId); - }); - }; - } - }, [isSelected, isFirstMultiSelected, isLastMultiSelected]); // Handling the error state - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - hasError = _useState2[0], - setErrorState = _useState2[1]; - - var onBlockError = function onBlockError() { - return setErrorState(true); - }; - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); // translators: %s: Type of block (i.e. Text, Image etc) - - var blockLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block: %s'), blockType.title); // Handing the focus of the block on creation and update - - /** - * When a block becomes selected, transition focus to an inner tabbable. - * - * @param {boolean} ignoreInnerBlocks Should not focus inner blocks. - */ - - var focusTabbable = function focusTabbable(ignoreInnerBlocks) { - // Focus is captured by the wrapper node, so while focus transition - // should only consider tabbables within editable display, since it - // may be the wrapper itself or a side control which triggered the - // focus event, don't unnecessary transition to an inner tabbable. - if (wrapper.current.contains(document.activeElement)) { - return; - } // Find all tabbables within node. - - - var textInputs = external_this_wp_dom_["focus"].tabbable.find(wrapper.current).filter(external_this_wp_dom_["isTextField"]) // Exclude inner blocks - .filter(function (node) { - return !ignoreInnerBlocks || isInsideRootBlock(wrapper.current, node); - }); // If reversed (e.g. merge via backspace), use the last in the set of - // tabbables. - - var isReverse = -1 === initialPosition; - var target = (isReverse ? external_this_lodash_["last"] : external_this_lodash_["first"])(textInputs); - - if (!target) { - wrapper.current.focus(); - return; - } - - Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, isReverse); - }; // Focus the selected block's wrapper or inner input on mount and update - - - var isMounting = Object(external_this_wp_element_["useRef"])(true); - Object(external_this_wp_element_["useEffect"])(function () { - if (!isMultiSelecting && !isNavigationMode && isSelected) { - focusTabbable(!isMounting.current); - } - - isMounting.current = false; - }, [isSelected, isMultiSelecting, isNavigationMode]); // Block Reordering animation - - var animationStyle = moving_animation(wrapper, isSelected || isPartOfMultiSelection, isSelected || isFirstMultiSelected, enableAnimation, animateOnChange); // Other event handlers - - /** - * Interprets keydown event intent to remove or insert after block if key - * event occurs on wrapper node. This can occur when the block has no text - * fields of its own, particularly after initial insertion, to allow for - * easy deletion and continuous writing flow to add additional content. - * - * @param {KeyboardEvent} event Keydown event. - */ - - var onKeyDown = function onKeyDown(event) { - var keyCode = event.keyCode, - target = event.target; - - switch (keyCode) { - case external_this_wp_keycodes_["ENTER"]: - if (target === wrapper.current) { - // Insert default block after current block if enter and event - // not already handled by descendant. - onInsertDefaultBlockAfter(); - event.preventDefault(); - } - - break; - - case external_this_wp_keycodes_["BACKSPACE"]: - case external_this_wp_keycodes_["DELETE"]: - if (target === wrapper.current) { - // Remove block on backspace. - onRemove(clientId); - event.preventDefault(); - } - - break; - } - }; - - var onMouseLeave = function onMouseLeave(_ref2) { - var which = _ref2.which, - buttons = _ref2.buttons; - - // The primary button must be pressed to initiate selection. Fall back - // to `which` if the standard `buttons` property is falsy. There are - // cases where Firefox might always set `buttons` to `0`. - // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons - // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which - if ((buttons || which) === 1) { - onSelectionStart(clientId); - } - }; - - var isUnregisteredBlock = name === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); // If the block is selected and we're typing the block should not appear. - // Empty paragraph blocks should always show up as unselected. - - var showEmptyBlockSideInserter = !isNavigationMode && isSelected && isEmptyDefaultBlock && isValid; - var shouldAppearSelected = !isFocusMode && !showEmptyBlockSideInserter && isSelected && !isTypingWithinBlock; - var isDragging = isDraggingBlocks && (isSelected || isPartOfMultiSelection); // Determine whether the block has props to apply to the wrapper. - - if (blockType.getEditWrapperProps) { - wrapperProps = block_objectSpread({}, wrapperProps, {}, blockType.getEditWrapperProps(attributes)); - } - - var isAligned = wrapperProps && wrapperProps['data-align']; // The wp-block className is important for editor styles. - // Generate the wrapper class names handling the different states of the block. - - var wrapperClassName = classnames_default()('wp-block block-editor-block-list__block', { - 'has-selected-ui': hasSelectedUI, - 'has-warning': !isValid || !!hasError || isUnregisteredBlock, - 'is-selected': shouldAppearSelected && hasSelectedUI, - 'is-multi-selected': isMultiSelected, - 'is-reusable': Object(external_this_wp_blocks_["isReusableBlock"])(blockType), - 'is-dragging': isDragging, - 'is-typing': isTypingWithinBlock, - 'is-focused': isFocusMode && (isSelected || isAncestorOfSelectedBlock), - 'is-focus-mode': isFocusMode, - 'has-child-selected': isAncestorOfSelectedBlock, - 'is-block-collapsed': isAligned - }, className); - var blockElementId = "block-".concat(clientId); // We wrap the BlockEdit component in a div that hides it when editing in - // HTML mode. This allows us to render all of the ancillary pieces - // (InspectorControls, etc.) which are inside `BlockEdit` but not - // `BlockHTML`, even in HTML mode. - - var blockEdit = Object(external_this_wp_element_["createElement"])(block_edit, { - name: name, - isSelected: isSelected, - attributes: attributes, - setAttributes: setAttributes, - insertBlocksAfter: isLocked ? undefined : onInsertBlocksAfter, - onReplace: isLocked ? undefined : onReplace, - mergeBlocks: isLocked ? undefined : onMerge, - clientId: clientId, - isSelectionEnabled: isSelectionEnabled, - toggleSelection: toggleSelection - }); // For aligned blocks, provide a wrapper element so the block can be - // positioned relative to the block column. This is enabled with the - // .is-block-content className. - - if (isAligned) { - blockEdit = Object(external_this_wp_element_["createElement"])("div", { - className: "is-block-content" - }, blockEdit); - } - - if (mode !== 'visual') { - blockEdit = Object(external_this_wp_element_["createElement"])("div", { - style: { - display: 'none' - } - }, blockEdit); - } - - return Object(external_this_wp_element_["createElement"])(web_cjs["animated"].div, Object(esm_extends["a" /* default */])({ - id: blockElementId, - ref: wrapper, - className: wrapperClassName, - "data-block": clientId, - "data-type": name // Only allow shortcuts when a blocks is selected and not locked. - , - onKeyDown: isSelected && !isLocked ? onKeyDown : undefined // Only allow selection to be started from a selected block. - , - onMouseLeave: isSelected ? onMouseLeave : undefined, - tabIndex: "0", - "aria-label": blockLabel, - role: "group" - }, wrapperProps, { - style: wrapperProps && wrapperProps.style ? block_objectSpread({}, wrapperProps.style, {}, animationStyle) : animationStyle - }), Object(external_this_wp_element_["createElement"])(block_crash_boundary, { - onError: onBlockError - }, isValid && blockEdit, isValid && mode === 'html' && Object(external_this_wp_element_["createElement"])(block_html, { - clientId: clientId - }), !isValid && [Object(external_this_wp_element_["createElement"])(block_invalid_warning, { - key: "invalid-warning", - clientId: clientId - }), Object(external_this_wp_element_["createElement"])("div", { - key: "invalid-preview" - }, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes))]), !!hasError && Object(external_this_wp_element_["createElement"])(block_crash_warning, null)); -} - -var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var clientId = _ref3.clientId, - rootClientId = _ref3.rootClientId, - isLargeViewport = _ref3.isLargeViewport; - - var _select = select('core/block-editor'), - isBlockSelected = _select.isBlockSelected, - isAncestorMultiSelected = _select.isAncestorMultiSelected, - isBlockMultiSelected = _select.isBlockMultiSelected, - isFirstMultiSelectedBlock = _select.isFirstMultiSelectedBlock, - getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId, - isTyping = _select.isTyping, - getBlockMode = _select.getBlockMode, - isSelectionEnabled = _select.isSelectionEnabled, - getSelectedBlocksInitialCaretPosition = _select.getSelectedBlocksInitialCaretPosition, - getSettings = _select.getSettings, - hasSelectedInnerBlock = _select.hasSelectedInnerBlock, - getTemplateLock = _select.getTemplateLock, - __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks, - isNavigationMode = _select.isNavigationMode; - - var block = __unstableGetBlockWithoutInnerBlocks(clientId); - - var isSelected = isBlockSelected(clientId); - - var _getSettings = getSettings(), - focusMode = _getSettings.focusMode, - isRTL = _getSettings.isRTL; - - var templateLock = getTemplateLock(rootClientId); - var checkDeep = true; // "ancestor" is the more appropriate label due to "deep" check - - var isAncestorOfSelectedBlock = hasSelectedInnerBlock(clientId, checkDeep); // The fallback to `{}` is a temporary fix. - // This function should never be called when a block is not present in the state. - // It happens now because the order in withSelect rendering is not correct. - - var _ref4 = block || {}, - name = _ref4.name, - attributes = _ref4.attributes, - isValid = _ref4.isValid; - - return { - isMultiSelected: isBlockMultiSelected(clientId), - isPartOfMultiSelection: isBlockMultiSelected(clientId) || isAncestorMultiSelected(clientId), - isFirstMultiSelected: isFirstMultiSelectedBlock(clientId), - isLastMultiSelected: getLastMultiSelectedBlockClientId() === clientId, - // We only care about this prop when the block is selected - // Thus to avoid unnecessary rerenders we avoid updating the prop if the block is not selected. - isTypingWithinBlock: (isSelected || isAncestorOfSelectedBlock) && isTyping(), - mode: getBlockMode(clientId), - isSelectionEnabled: isSelectionEnabled(), - initialPosition: isSelected ? getSelectedBlocksInitialCaretPosition() : null, - isEmptyDefaultBlock: name && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])({ - name: name, - attributes: attributes - }), - isLocked: !!templateLock, - isFocusMode: focusMode && isLargeViewport, - isNavigationMode: isNavigationMode(), - isRTL: isRTL, - // Users of the editor.BlockListBlock filter used to be able to access the block prop - // Ideally these blocks would rely on the clientId prop only. - // This is kept for backward compatibility reasons. - block: block, - name: name, - attributes: attributes, - isValid: isValid, - isSelected: isSelected, - isAncestorOfSelectedBlock: isAncestorOfSelectedBlock - }; -}); -var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref5) { - var select = _ref5.select; - - var _dispatch = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch.updateBlockAttributes, - insertBlocks = _dispatch.insertBlocks, - insertDefaultBlock = _dispatch.insertDefaultBlock, - removeBlock = _dispatch.removeBlock, - mergeBlocks = _dispatch.mergeBlocks, - replaceBlocks = _dispatch.replaceBlocks, - _toggleSelection = _dispatch.toggleSelection, - __unstableMarkLastChangeAsPersistent = _dispatch.__unstableMarkLastChangeAsPersistent; - - return { - setAttributes: function setAttributes(newAttributes) { - var clientId = ownProps.clientId; - updateBlockAttributes(clientId, newAttributes); - }, - onInsertBlocks: function onInsertBlocks(blocks, index) { - var rootClientId = ownProps.rootClientId; - insertBlocks(blocks, index, rootClientId); - }, - onInsertDefaultBlockAfter: function onInsertDefaultBlockAfter() { - var clientId = ownProps.clientId, - rootClientId = ownProps.rootClientId; - - var _select2 = select('core/block-editor'), - getBlockIndex = _select2.getBlockIndex; - - var index = getBlockIndex(clientId, rootClientId); - insertDefaultBlock({}, rootClientId, index + 1); - }, - onInsertBlocksAfter: function onInsertBlocksAfter(blocks) { - var clientId = ownProps.clientId, - rootClientId = ownProps.rootClientId; - - var _select3 = select('core/block-editor'), - getBlockIndex = _select3.getBlockIndex; - - var index = getBlockIndex(clientId, rootClientId); - insertBlocks(blocks, index + 1, rootClientId); - }, - onRemove: function onRemove(clientId) { - removeBlock(clientId); - }, - onMerge: function onMerge(forward) { - var clientId = ownProps.clientId; - - var _select4 = select('core/block-editor'), - getPreviousBlockClientId = _select4.getPreviousBlockClientId, - getNextBlockClientId = _select4.getNextBlockClientId; - - if (forward) { - var nextBlockClientId = getNextBlockClientId(clientId); - - if (nextBlockClientId) { - mergeBlocks(clientId, nextBlockClientId); - } - } else { - var previousBlockClientId = getPreviousBlockClientId(clientId); - - if (previousBlockClientId) { - mergeBlocks(previousBlockClientId, clientId); - } - } - }, - onReplace: function onReplace(blocks, indexToSelect) { - if (blocks.length && !Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(blocks[blocks.length - 1])) { - __unstableMarkLastChangeAsPersistent(); - } - - replaceBlocks([ownProps.clientId], blocks, indexToSelect); - }, - toggleSelection: function toggleSelection(selectionEnabled) { - _toggleSelection(selectionEnabled); - } - }; -}); -/* harmony default export */ var block_list_block = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), applyWithSelect, applyWithDispatch, // block is sometimes not mounted at the right time, causing it be undefined -// see issue for more info https://github.com/WordPress/gutenberg/issues/17013 -Object(external_this_wp_compose_["ifCondition"])(function (_ref6) { - var block = _ref6.block; - return !!block; -}), Object(external_this_wp_components_["withFilters"])('editor.BlockListBlock'))(block_BlockListBlock)); - -// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(58); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -function default_block_appender_DefaultBlockAppender(_ref) { - var isLocked = _ref.isLocked, - isVisible = _ref.isVisible, - onAppend = _ref.onAppend, - showPrompt = _ref.showPrompt, - placeholder = _ref.placeholder, - rootClientId = _ref.rootClientId; - - if (isLocked || !isVisible) { - return null; - } - - var value = Object(external_this_wp_htmlEntities_["decodeEntities"])(placeholder) || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'); // The appender "button" is in-fact a text field so as to support - // transitions by WritingFlow occurring by arrow key press. WritingFlow - // only supports tab transitions into text fields and to the block focus - // boundary. - // - // See: https://github.com/WordPress/gutenberg/issues/4829#issuecomment-374213658 - // - // If it were ever to be made to be a proper `button` element, it is - // important to note that `onFocus` alone would not be sufficient to - // capture click events, notably in Firefox. - // - // See: https://gist.github.com/cvrebert/68659d0333a578d75372 - // The wp-block className is important for editor styles. - - - return Object(external_this_wp_element_["createElement"])("div", { - "data-root-client-id": rootClientId || '', - className: "wp-block block-editor-default-block-appender" - }, Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, { - role: "button", - "aria-label": Object(external_this_wp_i18n_["__"])('Add block'), - className: "block-editor-default-block-appender__content", - readOnly: true, - onFocus: onAppend, - value: showPrompt ? value : '' - }), Object(external_this_wp_element_["createElement"])(inserter, { - rootClientId: rootClientId, - position: "top right", - isAppender: true - })); -} -/* harmony default export */ var default_block_appender = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - getBlockCount = _select.getBlockCount, - getBlockName = _select.getBlockName, - isBlockValid = _select.isBlockValid, - getSettings = _select.getSettings, - getTemplateLock = _select.getTemplateLock; - - var isEmpty = !getBlockCount(ownProps.rootClientId); - var isLastBlockDefault = getBlockName(ownProps.lastBlockClientId) === Object(external_this_wp_blocks_["getDefaultBlockName"])(); - var isLastBlockValid = isBlockValid(ownProps.lastBlockClientId); - - var _getSettings = getSettings(), - bodyPlaceholder = _getSettings.bodyPlaceholder; - - return { - isVisible: isEmpty || !isLastBlockDefault || !isLastBlockValid, - showPrompt: isEmpty, - isLocked: !!getTemplateLock(ownProps.rootClientId), - placeholder: bodyPlaceholder - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/block-editor'), - insertDefaultBlock = _dispatch.insertDefaultBlock, - startTyping = _dispatch.startTyping; - - return { - onAppend: function onAppend() { - var rootClientId = ownProps.rootClientId; - insertDefaultBlock(undefined, rootClientId); - startTyping(); - } - }; -}))(default_block_appender_DefaultBlockAppender)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list-appender/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - -function block_list_appender_stopPropagation(event) { - event.stopPropagation(); -} - -function BlockListAppender(_ref) { - var blockClientIds = _ref.blockClientIds, - rootClientId = _ref.rootClientId, - canInsertDefaultBlock = _ref.canInsertDefaultBlock, - isLocked = _ref.isLocked, - CustomAppender = _ref.renderAppender, - className = _ref.className; - - if (isLocked || CustomAppender === false) { - return null; - } - - var appender; - - if (CustomAppender) { - // Prefer custom render prop if provided. - appender = Object(external_this_wp_element_["createElement"])(CustomAppender, null); - } else if (canInsertDefaultBlock) { - // Render the default block appender when renderAppender has not been - // provided and the context supports use of the default appender. - appender = Object(external_this_wp_element_["createElement"])(default_block_appender, { - rootClientId: rootClientId, - lastBlockClientId: Object(external_this_lodash_["last"])(blockClientIds) - }); - } else { - // Fallback in the case no renderAppender has been provided and the - // default block can't be inserted. - appender = Object(external_this_wp_element_["createElement"])(button_block_appender, { - rootClientId: rootClientId, - className: "block-list-appender__toggle" - }); - } - - return Object(external_this_wp_element_["createElement"])("div", { - // A `tabIndex` is used on the wrapping `div` element in order to - // force a focus event to occur when an appender `button` element - // is clicked. In some browsers (Firefox, Safari), button clicks do - // not emit a focus event, which could cause this event to propagate - // unexpectedly. The `tabIndex` ensures that the interaction is - // captured as a focus, without also adding an extra tab stop. - // - // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - tabIndex: -1 // Prevent the block from being selected when the appender is - // clicked. - , - onFocus: block_list_appender_stopPropagation, - className: classnames_default()('block-list-appender', className) - }, appender); -} - -/* harmony default export */ var block_list_appender = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var rootClientId = _ref2.rootClientId; - - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder, - canInsertBlockType = _select.canInsertBlockType, - getTemplateLock = _select.getTemplateLock; - - return { - isLocked: !!getTemplateLock(rootClientId), - blockClientIds: getBlockOrder(rootClientId), - canInsertDefaultBlock: canInsertBlockType(Object(external_this_wp_blocks_["getDefaultBlockName"])(), rootClientId) - }; -})(BlockListAppender)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list-footer/index.js -/** - * WordPress dependencies - */ - - -var block_list_footer_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('__experimentalBlockListFooter'), - __experimentalBlockListFooter = block_list_footer_createSlotFill.Fill, - block_list_footer_Slot = block_list_footer_createSlotFill.Slot; - -__experimentalBlockListFooter.Slot = block_list_footer_Slot; -/* harmony default export */ var block_list_footer = (__experimentalBlockListFooter); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-drop-zone/index.js - - -/** - * WordPress dependencies - */ - - - - - -var parseDropEvent = function parseDropEvent(event) { - var result = { - srcRootClientId: null, - srcClientId: null, - srcIndex: null, - type: null - }; - - if (!event.dataTransfer) { - return result; - } - - try { - result = Object.assign(result, JSON.parse(event.dataTransfer.getData('text'))); - } catch (err) { - return result; - } - - return result; -}; - -function useBlockDropZone(_ref) { - var element = _ref.element, - rootClientId = _ref.rootClientId; - - var _useState = Object(external_this_wp_element_["useState"])(null), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - clientId = _useState2[0], - setClientId = _useState2[1]; - - function selector(select) { - var _select = select('core/block-editor'), - getBlockIndex = _select.getBlockIndex, - getClientIdsOfDescendants = _select.getClientIdsOfDescendants, - getSettings = _select.getSettings, - getTemplateLock = _select.getTemplateLock; - - return { - getBlockIndex: getBlockIndex, - blockIndex: getBlockIndex(clientId, rootClientId), - getClientIdsOfDescendants: getClientIdsOfDescendants, - hasUploadPermissions: !!getSettings().mediaUpload, - isLockedAll: getTemplateLock(rootClientId) === 'all' - }; - } - - var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, [rootClientId, clientId]), - getBlockIndex = _useSelect.getBlockIndex, - blockIndex = _useSelect.blockIndex, - getClientIdsOfDescendants = _useSelect.getClientIdsOfDescendants, - hasUploadPermissions = _useSelect.hasUploadPermissions, - isLockedAll = _useSelect.isLockedAll; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - insertBlocks = _useDispatch.insertBlocks, - updateBlockAttributes = _useDispatch.updateBlockAttributes, - moveBlockToPosition = _useDispatch.moveBlockToPosition; - - var onFilesDrop = Object(external_this_wp_element_["useCallback"])(function (files) { - if (!hasUploadPermissions) { - return; - } - - var transformation = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('from'), function (transform) { - return transform.type === 'files' && transform.isMatch(files); - }); - - if (transformation) { - var blocks = transformation.transform(files, updateBlockAttributes); - insertBlocks(blocks, blockIndex, rootClientId); - } - }, [hasUploadPermissions, updateBlockAttributes, insertBlocks, blockIndex, rootClientId]); - var onHTMLDrop = Object(external_this_wp_element_["useCallback"])(function (HTML) { - var blocks = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: HTML, - mode: 'BLOCKS' - }); - - if (blocks.length) { - insertBlocks(blocks, blockIndex, rootClientId); - } - }, [insertBlocks, blockIndex, rootClientId]); - var onDrop = Object(external_this_wp_element_["useCallback"])(function (event) { - var _parseDropEvent = parseDropEvent(event), - srcRootClientId = _parseDropEvent.srcRootClientId, - srcClientId = _parseDropEvent.srcClientId, - srcIndex = _parseDropEvent.srcIndex, - type = _parseDropEvent.type; - - var isBlockDropType = function isBlockDropType(dropType) { - return dropType === 'block'; - }; - - var isSameLevel = function isSameLevel(srcRoot, dstRoot) { - // Note that rootClientId of top-level blocks will be undefined OR a void string, - // so we also need to account for that case separately. - return srcRoot === dstRoot || !srcRoot === true && !dstRoot === true; - }; - - var isSameBlock = function isSameBlock(src, dst) { - return src === dst; - }; - - var isSrcBlockAnAncestorOfDstBlock = function isSrcBlockAnAncestorOfDstBlock(src, dst) { - return getClientIdsOfDescendants([src]).some(function (id) { - return id === dst; - }); - }; - - if (!isBlockDropType(type) || isSameBlock(srcClientId, clientId) || isSrcBlockAnAncestorOfDstBlock(srcClientId, clientId || rootClientId)) { - return; - } - - var dstIndex = clientId ? getBlockIndex(clientId, rootClientId) : undefined; - var positionIndex = blockIndex; // If the block is kept at the same level and moved downwards, - // subtract to account for blocks shifting upward to occupy its old position. - - var insertIndex = dstIndex && srcIndex < dstIndex && isSameLevel(srcRootClientId, rootClientId) ? positionIndex - 1 : positionIndex; - moveBlockToPosition(srcClientId, srcRootClientId, rootClientId, insertIndex); - }, [getClientIdsOfDescendants, getBlockIndex, clientId, blockIndex, moveBlockToPosition, rootClientId]); - - var _useDropZone = Object(external_this_wp_components_["__unstableUseDropZone"])({ - element: element, - onFilesDrop: onFilesDrop, - onHTMLDrop: onHTMLDrop, - onDrop: onDrop, - isDisabled: isLockedAll, - withPosition: true - }), - position = _useDropZone.position; - - Object(external_this_wp_element_["useEffect"])(function () { - if (position) { - var y = position.y; - var rect = element.current.getBoundingClientRect(); - var offset = y - rect.top; - var target = Array.from(element.current.children).find(function (blockEl) { - return blockEl.offsetTop + blockEl.offsetHeight / 2 > offset; - }); - - if (!target) { - return; - } - - var targetClientId = target.id.slice('block-'.length); - - if (!targetClientId) { - return; - } - - setClientId(targetClientId); - } - }, [position]); - - if (position) { - return clientId; - } -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - - - -/** - * If the block count exceeds the threshold, we disable the reordering animation - * to avoid laginess. - */ - -var BLOCK_ANIMATION_THRESHOLD = 200; - -var block_list_forceSyncUpdates = function forceSyncUpdates(WrappedComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { - value: false - }, Object(external_this_wp_element_["createElement"])(WrappedComponent, props)); - }; -}; - -function BlockList(_ref) { - var className = _ref.className, - rootClientId = _ref.rootClientId, - isDraggable = _ref.isDraggable, - renderAppender = _ref.renderAppender, - _ref$__experimentalUI = _ref.__experimentalUIParts, - __experimentalUIParts = _ref$__experimentalUI === void 0 ? {} : _ref$__experimentalUI; - - function selector(select) { - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder, - isMultiSelecting = _select.isMultiSelecting, - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - hasMultiSelection = _select.hasMultiSelection, - getGlobalBlockCount = _select.getGlobalBlockCount, - isTyping = _select.isTyping; - - return { - blockClientIds: getBlockOrder(rootClientId), - isMultiSelecting: isMultiSelecting(), - selectedBlockClientId: getSelectedBlockClientId(), - multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), - hasMultiSelection: hasMultiSelection(), - enableAnimation: !isTyping() && getGlobalBlockCount() <= BLOCK_ANIMATION_THRESHOLD - }; - } - - var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, [rootClientId]), - blockClientIds = _useSelect.blockClientIds, - isMultiSelecting = _useSelect.isMultiSelecting, - selectedBlockClientId = _useSelect.selectedBlockClientId, - multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds, - hasMultiSelection = _useSelect.hasMultiSelection, - enableAnimation = _useSelect.enableAnimation; - - var Container = rootClientId ? 'div' : root_container; - var ref = Object(external_this_wp_element_["useRef"])(); - var targetClientId = useBlockDropZone({ - element: ref, - rootClientId: rootClientId - }); - - var __experimentalContainerProps = rootClientId ? {} : { - hasPopover: __experimentalUIParts.hasPopover - }; - - return Object(external_this_wp_element_["createElement"])(Container, Object(esm_extends["a" /* default */])({ - ref: ref, - className: classnames_default()('block-editor-block-list__layout', className) - }, __experimentalContainerProps), blockClientIds.map(function (clientId, index) { - var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { - key: clientId, - value: !isBlockInSelection - }, Object(external_this_wp_element_["createElement"])(block_list_block, { - rootClientId: rootClientId, - clientId: clientId, - isDraggable: isDraggable, - isMultiSelecting: isMultiSelecting // This prop is explicitely computed and passed down - // to avoid being impacted by the async mode - // otherwise there might be a small delay to trigger the animation. - , - animateOnChange: index, - enableAnimation: enableAnimation, - hasSelectedUI: __experimentalUIParts.hasSelectedUI, - className: clientId === targetClientId ? 'is-drop-target' : undefined - })); - }), Object(external_this_wp_element_["createElement"])(block_list_appender, { - rootClientId: rootClientId, - renderAppender: renderAppender, - className: targetClientId === null ? 'is-drop-target' : undefined - }), Object(external_this_wp_element_["createElement"])(block_list_footer.Slot, null)); -} // This component needs to always be synchronous -// as it's the one changing the async mode -// depending on the block selection. - - -/* harmony default export */ var block_list = (block_list_forceSyncUpdates(BlockList)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/index.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - -function ScaledBlockPreview(_ref) { - var blocks = _ref.blocks, - viewportWidth = _ref.viewportWidth, - _ref$padding = _ref.padding, - padding = _ref$padding === void 0 ? 0 : _ref$padding; - var previewRef = Object(external_this_wp_element_["useRef"])(null); - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isReady = _useState2[0], - setIsReady = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(1), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - previewScale = _useState4[0], - setPreviewScale = _useState4[1]; - - var _useState5 = Object(external_this_wp_element_["useState"])({ - x: 0, - y: 0 - }), - _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), - _useState6$ = _useState6[0], - x = _useState6$.x, - y = _useState6$.y, - setPosition = _useState6[1]; // Dynamically calculate the scale factor - - - Object(external_this_wp_element_["useLayoutEffect"])(function () { - // Timer - required to account for async render of `BlockEditorProvider` - var timerId = setTimeout(function () { - var containerElement = previewRef.current; - - if (!containerElement) { - return; - } // If we're previewing a single block, scale the preview to fit it. - - - if (blocks.length === 1) { - var block = blocks[0]; - var previewElement = getBlockPreviewContainerDOMNode(block.clientId); - - if (!previewElement) { - return; - } - - var containerElementRect = containerElement.getBoundingClientRect(); - containerElementRect = { - width: containerElementRect.width - padding * 2, - height: containerElementRect.height - padding * 2, - left: containerElementRect.left, - top: containerElementRect.top - }; - var scaledElementRect = previewElement.getBoundingClientRect(); - var scale = containerElementRect.width / scaledElementRect.width || 1; - var offsetX = -(scaledElementRect.left - containerElementRect.left) * scale + padding; - var offsetY = containerElementRect.height > scaledElementRect.height * scale ? (containerElementRect.height - scaledElementRect.height * scale) / 2 + padding : 0; - setPreviewScale(scale); - setPosition({ - x: offsetX, - y: offsetY - }); // Hack: we need to reset the scaled elements margins - - previewElement.style.marginTop = '0'; - } else { - var _containerElementRect = containerElement.getBoundingClientRect(); - - setPreviewScale(_containerElementRect.width / viewportWidth); - } - - setIsReady(true); - }, 100); // Cleanup - - return function () { - if (timerId) { - window.clearTimeout(timerId); - } - }; - }, []); - - if (!blocks || blocks.length === 0) { - return null; - } - - var previewStyles = { - transform: "scale(".concat(previewScale, ")"), - visibility: isReady ? 'visible' : 'hidden', - left: x, - top: y, - width: viewportWidth - }; - return Object(external_this_wp_element_["createElement"])("div", { - ref: previewRef, - className: classnames_default()('block-editor-block-preview__container editor-styles-wrapper', { - 'is-ready': isReady - }), - "aria-hidden": true - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], { - style: previewStyles, - className: "block-editor-block-preview__content" - }, Object(external_this_wp_element_["createElement"])(block_list, null))); -} - -function BlockPreview(_ref2) { - var blocks = _ref2.blocks, - _ref2$viewportWidth = _ref2.viewportWidth, - viewportWidth = _ref2$viewportWidth === void 0 ? 700 : _ref2$viewportWidth, - padding = _ref2.padding, - settings = _ref2.settings; - var renderedBlocks = Object(external_this_wp_element_["useMemo"])(function () { - return Object(external_this_lodash_["castArray"])(blocks); - }, [blocks]); - - var _useReducer = Object(external_this_wp_element_["useReducer"])(function (state) { - return state + 1; - }, 0), - _useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2), - recompute = _useReducer2[0], - triggerRecompute = _useReducer2[1]; - - Object(external_this_wp_element_["useLayoutEffect"])(triggerRecompute, [blocks]); - return Object(external_this_wp_element_["createElement"])(provider, { - value: renderedBlocks, - settings: settings - }, Object(external_this_wp_element_["createElement"])(ScaledBlockPreview, { - key: recompute, - blocks: renderedBlocks, - viewportWidth: viewportWidth, - padding: padding - })); -} -/** - * BlockPreview renders a preview of a block or array of blocks. - * - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/block-preview/README.md - * - * @param {Array|Object} blocks A block instance (object) or an array of blocks to be previewed. - * @param {number} viewportWidth Width of the preview container in pixels. Controls at what size the blocks will be rendered inside the preview. Default: 700. - * @return {WPComponent} The component to be rendered. - */ - -/* harmony default export */ var block_preview = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - settings: select('core/block-editor').getSettings() - }; -})(BlockPreview)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -function InserterListItem(_ref) { - var icon = _ref.icon, - _onClick = _ref.onClick, - isDisabled = _ref.isDisabled, - title = _ref.title, - className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["icon", "onClick", "isDisabled", "title", "className"]); - - var itemIconStyle = icon ? { - backgroundColor: icon.background, - color: icon.foreground - } : {}; - return Object(external_this_wp_element_["createElement"])("li", { - className: "block-editor-block-types-list__list-item" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({ - className: classnames_default()('block-editor-block-types-list__item', className), - onClick: function onClick(event) { - event.preventDefault(); - - _onClick(); - }, - disabled: isDisabled - }, props), Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-block-types-list__item-icon", - style: itemIconStyle - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - })), Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-block-types-list__item-title" - }, title))); -} - -/* harmony default export */ var inserter_list_item = (InserterListItem); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-types-list/index.js - - - -function block_types_list_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function block_types_list_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_types_list_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_types_list_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -function BlockTypesList(_ref) { - var _ref$items = _ref.items, - items = _ref$items === void 0 ? [] : _ref$items, - onSelect = _ref.onSelect, - _ref$onHover = _ref.onHover, - onHover = _ref$onHover === void 0 ? function () {} : _ref$onHover, - children = _ref.children; - var normalizedItems = items.reduce(function (result, item) { - var _item$variations = item.variations, - variations = _item$variations === void 0 ? [] : _item$variations; - var hasDefaultVariation = variations.some(function (_ref2) { - var isDefault = _ref2.isDefault; - return isDefault; - }); // If there is no default inserter variation provided, - // then default block type is displayed. - - if (!hasDefaultVariation) { - result.push(item); - } - - if (variations.length) { - result = result.concat(variations.map(function (variation) { - return block_types_list_objectSpread({}, item, { - id: "".concat(item.id, "-").concat(variation.name), - icon: variation.icon || item.icon, - title: variation.title || item.title, - description: variation.description || item.description, - // If `example` is explicitly undefined for the variation, the preview will not be shown. - example: variation.hasOwnProperty('example') ? variation.example : item.example, - initialAttributes: block_types_list_objectSpread({}, item.initialAttributes, {}, variation.attributes), - innerBlocks: variation.innerBlocks - }); - })); - } - - return result; - }, []); - return ( - /* - * Disable reason: The `list` ARIA role is redundant but - * Safari+VoiceOver won't announce the list otherwise. - */ - - /* eslint-disable jsx-a11y/no-redundant-roles */ - Object(external_this_wp_element_["createElement"])("ul", { - role: "list", - className: "block-editor-block-types-list" - }, normalizedItems.map(function (item) { - return Object(external_this_wp_element_["createElement"])(inserter_list_item, { - key: item.id, - className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(item.id), - icon: item.icon, - onClick: function onClick() { - onSelect(item); - onHover(null); - }, - onFocus: function onFocus() { - return onHover(item); - }, - onMouseEnter: function onMouseEnter() { - return onHover(item); - }, - onMouseLeave: function onMouseLeave() { - return onHover(null); - }, - onBlur: function onBlur() { - return onHover(null); - }, - isDisabled: item.isDisabled, - title: item.title - }); - }), children) - /* eslint-enable jsx-a11y/no-redundant-roles */ - - ); -} - -/* harmony default export */ var block_types_list = (BlockTypesList); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-card/index.js - - -/** - * Internal dependencies - */ - - -function BlockCard(_ref) { - var blockType = _ref.blockType; - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-card" - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: blockType.icon, - showColors: true - }), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-card__content" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-card__title" - }, blockType.title), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-card__description" - }, blockType.description))); -} - -/* harmony default export */ var block_card = (BlockCard); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/child-blocks.js - - - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - -function ChildBlocks(_ref) { - var rootBlockIcon = _ref.rootBlockIcon, - rootBlockTitle = _ref.rootBlockTitle, - items = _ref.items, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["rootBlockIcon", "rootBlockTitle", "items"]); - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__child-blocks" - }, (rootBlockIcon || rootBlockTitle) && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__parent-block-header" - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: rootBlockIcon, - showColors: true - }), rootBlockTitle && Object(external_this_wp_element_["createElement"])("h2", null, rootBlockTitle)), Object(external_this_wp_element_["createElement"])(block_types_list, Object(esm_extends["a" /* default */])({ - items: items - }, props))); -} - -/* harmony default export */ var child_blocks = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { - var items = _ref2.items; - return items && items.length > 0; -}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var rootClientId = _ref3.rootClientId; - - var _select = select('core/blocks'), - getBlockType = _select.getBlockType; - - var _select2 = select('core/block-editor'), - getBlockName = _select2.getBlockName; - - var rootBlockName = getBlockName(rootClientId); - var rootBlockType = getBlockType(rootBlockName); - return { - rootBlockTitle: rootBlockType && rootBlockType.title, - rootBlockIcon: rootBlockType && rootBlockType.icon - }; -}))(ChildBlocks)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-menu-extension/index.js -/** - * WordPress dependencies - */ - - -var inserter_menu_extension_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('__experimentalInserterMenuExtension'), - __experimentalInserterMenuExtension = inserter_menu_extension_createSlotFill.Fill, - inserter_menu_extension_Slot = inserter_menu_extension_createSlotFill.Slot; - -__experimentalInserterMenuExtension.Slot = inserter_menu_extension_Slot; -/* harmony default export */ var inserter_menu_extension = (__experimentalInserterMenuExtension); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-items.js - - -function search_items_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function search_items_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { search_items_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { search_items_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * Converts the search term into a list of normalized terms. - * - * @param {string} term The search term to normalize. - * - * @return {string[]} The normalized list of search terms. - */ - -var search_items_normalizeSearchTerm = function normalizeSearchTerm() { - var term = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - // Disregard diacritics. - // Input: "média" - term = Object(external_this_lodash_["deburr"])(term); // Accommodate leading slash, matching autocomplete expectations. - // Input: "/media" - - term = term.replace(/^\//, ''); // Lowercase. - // Input: "MEDIA" - - term = term.toLowerCase(); // Extract words. - - return Object(external_this_lodash_["words"])(term); -}; - -var search_items_removeMatchingTerms = function removeMatchingTerms(unmatchedTerms, unprocessedTerms) { - return Object(external_this_lodash_["differenceWith"])(unmatchedTerms, search_items_normalizeSearchTerm(unprocessedTerms), function (unmatchedTerm, unprocessedTerm) { - return unprocessedTerm.includes(unmatchedTerm); - }); -}; -/** - * Filters an item list given a search term. - * - * @param {Array} items Item list - * @param {Array} categories Available categories. - * @param {Array} collections Available collections. - * @param {string} searchTerm Search term. - * - * @return {Array} Filtered item list. - */ - - -var search_items_searchItems = function searchItems(items, categories, collections, searchTerm) { - var normalizedSearchTerms = search_items_normalizeSearchTerm(searchTerm); - - if (normalizedSearchTerms.length === 0) { - return items; - } - - return items.filter(function (_ref) { - var name = _ref.name, - title = _ref.title, - category = _ref.category, - _ref$keywords = _ref.keywords, - keywords = _ref$keywords === void 0 ? [] : _ref$keywords, - _ref$variations = _ref.variations, - variations = _ref$variations === void 0 ? [] : _ref$variations; - var unmatchedTerms = search_items_removeMatchingTerms(normalizedSearchTerms, title); - - if (unmatchedTerms.length === 0) { - return true; - } - - unmatchedTerms = search_items_removeMatchingTerms(unmatchedTerms, keywords.join(' ')); - - if (unmatchedTerms.length === 0) { - return true; - } - - unmatchedTerms = search_items_removeMatchingTerms(unmatchedTerms, Object(external_this_lodash_["get"])(Object(external_this_lodash_["find"])(categories, { - slug: category - }), ['title'])); - var itemCollection = collections[name.split('/')[0]]; - - if (itemCollection) { - unmatchedTerms = search_items_removeMatchingTerms(unmatchedTerms, itemCollection.title); - } - - if (unmatchedTerms.length === 0) { - return true; - } - - unmatchedTerms = search_items_removeMatchingTerms(unmatchedTerms, variations.map(function (variation) { - return variation.title; - }).join(' ')); - return unmatchedTerms.length === 0; - }).map(function (item) { - if (Object(external_this_lodash_["isEmpty"])(item.variations)) { - return item; - } - - var matchedVariations = item.variations.filter(function (variation) { - return Object(external_this_lodash_["intersectionWith"])(normalizedSearchTerms, search_items_normalizeSearchTerm(variation.title), function (termToMatch, labelTerm) { - return labelTerm.includes(termToMatch); - }).length > 0; - }); // When no partterns matched, fallback to all variations. - - if (Object(external_this_lodash_["isEmpty"])(matchedVariations)) { - return item; - } - - return search_items_objectSpread({}, item, { - variations: matchedVariations - }); - }); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/menu.js - - - - - - - - - - - -function menu_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function menu_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { menu_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { menu_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - - - - - -/** - * Internal dependencies - */ - - - - - - - -var MAX_SUGGESTED_ITEMS = 9; - -var stopKeyPropagation = function stopKeyPropagation(event) { - return event.stopPropagation(); -}; - -var getBlockNamespace = function getBlockNamespace(item) { - return item.name.split('/')[0]; -}; // Copied over from the Columns block. It seems like it should become part of public API. - - -var menu_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlocksTemplate(innerBlocksTemplate) { - return Object(external_this_lodash_["map"])(innerBlocksTemplate, function (_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 3), - name = _ref2[0], - attributes = _ref2[1], - _ref2$ = _ref2[2], - innerBlocks = _ref2$ === void 0 ? [] : _ref2$; - - return Object(external_this_wp_blocks_["createBlock"])(name, attributes, createBlocksFromInnerBlocksTemplate(innerBlocks)); - }); -}; - -var menu_InserterMenu = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(InserterMenu, _Component); - - function InserterMenu() { - var _this; - - Object(classCallCheck["a" /* default */])(this, InserterMenu); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InserterMenu).apply(this, arguments)); - _this.state = { - childItems: [], - filterValue: '', - hoveredItem: null, - suggestedItems: [], - reusableItems: [], - itemsPerCategory: {}, - itemsPerCollection: {}, - openPanels: ['suggested'] - }; - _this.onChangeSearchInput = _this.onChangeSearchInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onHover = _this.onHover.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.panels = {}; - _this.inserterResults = Object(external_this_wp_element_["createRef"])(); - return _this; - } - - Object(createClass["a" /* default */])(InserterMenu, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.fetchReusableBlocks) { - this.props.fetchReusableBlocks(); - } - - this.filter(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.items !== this.props.items) { - this.filter(this.state.filterValue); - } - } - }, { - key: "onChangeSearchInput", - value: function onChangeSearchInput(event) { - this.filter(event.target.value); - } - }, { - key: "onHover", - value: function onHover(item) { - this.setState({ - hoveredItem: item - }); - var _this$props = this.props, - showInsertionPoint = _this$props.showInsertionPoint, - hideInsertionPoint = _this$props.hideInsertionPoint; - - if (item) { - showInsertionPoint(); - } else { - hideInsertionPoint(); - } - } - }, { - key: "bindPanel", - value: function bindPanel(name) { - var _this2 = this; - - return function (ref) { - _this2.panels[name] = ref; - }; - } - }, { - key: "onTogglePanel", - value: function onTogglePanel(panel) { - var _this3 = this; - - return function () { - var isOpened = _this3.state.openPanels.indexOf(panel) !== -1; - - if (isOpened) { - _this3.setState({ - openPanels: Object(external_this_lodash_["without"])(_this3.state.openPanels, panel) - }); - } else { - _this3.setState({ - openPanels: [].concat(Object(toConsumableArray["a" /* default */])(_this3.state.openPanels), [panel]) - }); - - _this3.props.setTimeout(function () { - // We need a generic way to access the panel's container - lib_default()(_this3.panels[panel], _this3.inserterResults.current, { - alignWithTop: true - }); - }); - } - }; - } - }, { - key: "filterOpenPanels", - value: function filterOpenPanels(filterValue, itemsPerCategory, itemsPerCollection, filteredItems, reusableItems) { - if (filterValue === this.state.filterValue) { - return this.state.openPanels; - } - - if (!filterValue) { - return ['suggested']; - } - - var openPanels = []; - - if (reusableItems.length > 0) { - openPanels.push('reusable'); - } - - if (filteredItems.length > 0) { - openPanels = openPanels.concat(Object.keys(itemsPerCategory), Object.keys(itemsPerCollection)); - } - - return openPanels; - } - }, { - key: "filter", - value: function filter() { - var filterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var _this$props2 = this.props, - categories = _this$props2.categories, - collections = _this$props2.collections, - debouncedSpeak = _this$props2.debouncedSpeak, - items = _this$props2.items, - rootChildBlocks = _this$props2.rootChildBlocks; - var filteredItems = search_items_searchItems(items, categories, collections, filterValue); - - var childItems = Object(external_this_lodash_["filter"])(filteredItems, function (_ref3) { - var name = _ref3.name; - return Object(external_this_lodash_["includes"])(rootChildBlocks, name); - }); - - var suggestedItems = []; - - if (!filterValue) { - var maxSuggestedItems = this.props.maxSuggestedItems || MAX_SUGGESTED_ITEMS; - suggestedItems = Object(external_this_lodash_["filter"])(items, function (item) { - return item.utility > 0; - }).slice(0, maxSuggestedItems); - } - - var reusableItems = Object(external_this_lodash_["filter"])(filteredItems, { - category: 'reusable' - }); - - var getCategoryIndex = function getCategoryIndex(item) { - return Object(external_this_lodash_["findIndex"])(categories, function (category) { - return category.slug === item.category; - }); - }; - - var itemsPerCategory = Object(external_this_lodash_["flow"])(function (itemList) { - return Object(external_this_lodash_["filter"])(itemList, function (item) { - return item.category !== 'reusable'; - }); - }, function (itemList) { - return Object(external_this_lodash_["sortBy"])(itemList, getCategoryIndex); - }, function (itemList) { - return Object(external_this_lodash_["groupBy"])(itemList, 'category'); - })(filteredItems); // Create a new Object to avoid mutating this.props.collection - - var itemsPerCollection = menu_objectSpread({}, collections); - - Object.keys(collections).forEach(function (namespace) { - itemsPerCollection[namespace] = filteredItems.filter(function (item) { - return getBlockNamespace(item) === namespace; - }); - - if (itemsPerCollection[namespace].length === 0) { - delete itemsPerCollection[namespace]; - } - }); - this.setState({ - hoveredItem: null, - childItems: childItems, - filterValue: filterValue, - suggestedItems: suggestedItems, - reusableItems: reusableItems, - itemsPerCategory: itemsPerCategory, - itemsPerCollection: itemsPerCollection, - openPanels: this.filterOpenPanels(filterValue, itemsPerCategory, itemsPerCollection, filteredItems, reusableItems) - }); - var resultCount = Object.keys(itemsPerCategory).reduce(function (accumulator, currentCategorySlug) { - return accumulator + itemsPerCategory[currentCategorySlug].length; - }, 0); - var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found.', '%d results found.', resultCount), resultCount); - debouncedSpeak(resultsFoundMessage); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - if (Object(external_this_lodash_["includes"])([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]], event.keyCode)) { - // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. - event.stopPropagation(); - } - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props3 = this.props, - categories = _this$props3.categories, - collections = _this$props3.collections, - instanceId = _this$props3.instanceId, - onSelect = _this$props3.onSelect, - rootClientId = _this$props3.rootClientId, - showInserterHelpPanel = _this$props3.showInserterHelpPanel; - var _this$state = this.state, - childItems = _this$state.childItems, - hoveredItem = _this$state.hoveredItem, - itemsPerCategory = _this$state.itemsPerCategory, - itemsPerCollection = _this$state.itemsPerCollection, - openPanels = _this$state.openPanels, - reusableItems = _this$state.reusableItems, - suggestedItems = _this$state.suggestedItems, - filterValue = _this$state.filterValue; - - var isPanelOpen = function isPanelOpen(panel) { - return openPanels.indexOf(panel) !== -1; - }; - - var hasItems = !Object(external_this_lodash_["isEmpty"])(suggestedItems) || !Object(external_this_lodash_["isEmpty"])(reusableItems) || !Object(external_this_lodash_["isEmpty"])(itemsPerCategory) || !Object(external_this_lodash_["isEmpty"])(itemsPerCollection); - var hoveredItemBlockType = hoveredItem ? Object(external_this_wp_blocks_["getBlockType"])(hoveredItem.name) : null; - var hasHelpPanel = hasItems && showInserterHelpPanel; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which - // is always visible, and one which already incurs this behavior of autoFocus via - // Popover's focusOnMount. - // Disable reason (no-static-element-interactions): Navigational key-presses within - // the menu are prevented from triggering WritingFlow and ObserveTyping interactions. - - /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('block-editor-inserter__menu', { - 'has-help-panel': hasHelpPanel - }), - onKeyPress: stopKeyPropagation, - onKeyDown: this.onKeyDown - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__main-area" - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: "block-editor-inserter__search-".concat(instanceId), - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('Search for a block')), Object(external_this_wp_element_["createElement"])("input", { - id: "block-editor-inserter__search-".concat(instanceId), - type: "search", - placeholder: Object(external_this_wp_i18n_["__"])('Search for a block'), - className: "block-editor-inserter__search", - autoFocus: true, - onChange: this.onChangeSearchInput - }), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__results", - ref: this.inserterResults, - tabIndex: "0", - role: "region", - "aria-label": Object(external_this_wp_i18n_["__"])('Available block types') - }, Object(external_this_wp_element_["createElement"])(child_blocks, { - rootClientId: rootClientId, - items: childItems, - onSelect: onSelect, - onHover: this.onHover - }), !!suggestedItems.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["_x"])('Most used', 'blocks'), - opened: isPanelOpen('suggested'), - onToggle: this.onTogglePanel('suggested'), - ref: this.bindPanel('suggested') - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: suggestedItems, - onSelect: onSelect, - onHover: this.onHover - })), Object(external_this_lodash_["map"])(categories, function (category) { - var categoryItems = itemsPerCategory[category.slug]; - - if (!categoryItems || !categoryItems.length) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - key: category.slug, - title: category.title, - icon: category.icon, - opened: isPanelOpen(category.slug), - onToggle: _this4.onTogglePanel(category.slug), - ref: _this4.bindPanel(category.slug) - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: categoryItems, - onSelect: onSelect, - onHover: _this4.onHover - })); - }), Object(external_this_lodash_["map"])(collections, function (collection, namespace) { - var collectionItems = itemsPerCollection[namespace]; - - if (!collectionItems || !collectionItems.length) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - key: namespace, - title: collection.title, - icon: collection.icon, - opened: isPanelOpen(namespace), - onToggle: _this4.onTogglePanel(namespace), - ref: _this4.bindPanel(namespace) - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: collectionItems, - onSelect: onSelect, - onHover: _this4.onHover - })); - }), !!reusableItems.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - className: "block-editor-inserter__reusable-blocks-panel", - title: Object(external_this_wp_i18n_["__"])('Reusable'), - opened: isPanelOpen('reusable'), - onToggle: this.onTogglePanel('reusable'), - icon: "controls-repeat", - ref: this.bindPanel('reusable') - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: reusableItems, - onSelect: onSelect, - onHover: this.onHover - }), Object(external_this_wp_element_["createElement"])("a", { - className: "block-editor-inserter__manage-reusable-blocks", - href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { - post_type: 'wp_block' - }) - }, Object(external_this_wp_i18n_["__"])('Manage all reusable blocks'))), Object(external_this_wp_element_["createElement"])(inserter_menu_extension.Slot, { - fillProps: { - onSelect: onSelect, - onHover: this.onHover, - filterValue: filterValue, - hasItems: hasItems - } - }, function (fills) { - if (fills.length) { - return fills; - } - - if (!hasItems) { - return Object(external_this_wp_element_["createElement"])("p", { - className: "block-editor-inserter__no-results" - }, Object(external_this_wp_i18n_["__"])('No blocks found.')); - } - - return null; - }))), hasHelpPanel && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__menu-help-panel" - }, hoveredItem && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) && Object(external_this_wp_element_["createElement"])(block_card, { - blockType: hoveredItem - }), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__preview" - }, Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) || hoveredItemBlockType.example ? Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__preview-content" - }, Object(external_this_wp_element_["createElement"])(block_preview, { - padding: 10, - viewportWidth: 500, - blocks: hoveredItemBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(hoveredItem.name, { - attributes: menu_objectSpread({}, hoveredItemBlockType.example.attributes, {}, hoveredItem.initialAttributes), - innerBlocks: hoveredItemBlockType.example.innerBlocks - }) : Object(external_this_wp_blocks_["createBlock"])(hoveredItem.name, hoveredItem.initialAttributes) - })) : Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__preview-content-missing" - }, Object(external_this_wp_i18n_["__"])('No Preview Available.')))), !hoveredItem && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__menu-help-panel-no-block" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__menu-help-panel-no-block-text" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-inserter__menu-help-panel-title" - }, Object(external_this_wp_i18n_["__"])('Content blocks')), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.')), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.')), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Browse through the library to learn more about what each block does.'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tip"], null, Object(external_this_wp_element_["__experimentalCreateInterpolateElement"])(Object(external_this_wp_i18n_["__"])('While writing, you can press / to quickly insert new blocks.'), { - kbd: Object(external_this_wp_element_["createElement"])("kbd", null) - }))))); - /* eslint-enable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ - } - }]); - - return InserterMenu; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var menu = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { - var clientId = _ref4.clientId, - isAppender = _ref4.isAppender, - rootClientId = _ref4.rootClientId, - showInserterHelpPanel = _ref4.showInserterHelpPanel; - - var _select = select('core/block-editor'), - getInserterItems = _select.getInserterItems, - getBlockName = _select.getBlockName, - getBlockRootClientId = _select.getBlockRootClientId, - getBlockSelectionEnd = _select.getBlockSelectionEnd, - getSettings = _select.getSettings; - - var _select2 = select('core/blocks'), - getCategories = _select2.getCategories, - getCollections = _select2.getCollections, - getChildBlockNames = _select2.getChildBlockNames; - - var destinationRootClientId = rootClientId; - - if (!destinationRootClientId && !clientId && !isAppender) { - var end = getBlockSelectionEnd(); - - if (end) { - destinationRootClientId = getBlockRootClientId(end) || undefined; - } - } - - var destinationRootBlockName = getBlockName(destinationRootClientId); - - var _getSettings = getSettings(), - showInserterHelpPanelSetting = _getSettings.showInserterHelpPanel, - fetchReusableBlocks = _getSettings.__experimentalFetchReusableBlocks; - - return { - categories: getCategories(), - collections: getCollections(), - rootChildBlocks: getChildBlockNames(destinationRootBlockName), - items: getInserterItems(destinationRootClientId), - showInserterHelpPanel: showInserterHelpPanel && showInserterHelpPanelSetting, - destinationRootClientId: destinationRootClientId, - fetchReusableBlocks: fetchReusableBlocks - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref5) { - var select = _ref5.select; - - var _dispatch = dispatch('core/block-editor'), - _showInsertionPoint = _dispatch.showInsertionPoint, - hideInsertionPoint = _dispatch.hideInsertionPoint; // To avoid duplication, getInsertionIndex is extracted and used in two event handlers - // This breaks the withDispatch not containing any logic rule. - // Since it's a function only called when the event handlers are called, - // it's fine to extract it. - // eslint-disable-next-line no-restricted-syntax - - - function getInsertionIndex() { - var _select3 = select('core/block-editor'), - getBlockIndex = _select3.getBlockIndex, - getBlockSelectionEnd = _select3.getBlockSelectionEnd, - getBlockOrder = _select3.getBlockOrder; - - var clientId = ownProps.clientId, - destinationRootClientId = ownProps.destinationRootClientId, - isAppender = ownProps.isAppender; // If the clientId is defined, we insert at the position of the block. - - if (clientId) { - return getBlockIndex(clientId, destinationRootClientId); - } // If there a selected block, we insert after the selected block. - - - var end = getBlockSelectionEnd(); - - if (!isAppender && end) { - return getBlockIndex(end, destinationRootClientId) + 1; - } // Otherwise, we insert at the end of the current rootClientId - - - return getBlockOrder(destinationRootClientId).length; - } - - return { - showInsertionPoint: function showInsertionPoint() { - var index = getInsertionIndex(); - - _showInsertionPoint(ownProps.destinationRootClientId, index); - }, - hideInsertionPoint: hideInsertionPoint, - onSelect: function onSelect(item) { - var _dispatch2 = dispatch('core/block-editor'), - replaceBlocks = _dispatch2.replaceBlocks, - insertBlock = _dispatch2.insertBlock; - - var _select4 = select('core/block-editor'), - getSelectedBlock = _select4.getSelectedBlock; - - var isAppender = ownProps.isAppender, - onSelect = ownProps.onSelect, - selectBlockOnInsert = ownProps.__experimentalSelectBlockOnInsert; - var name = item.name, - title = item.title, - initialAttributes = item.initialAttributes, - innerBlocks = item.innerBlocks; - var selectedBlock = getSelectedBlock(); - var insertedBlock = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes, menu_createBlocksFromInnerBlocksTemplate(innerBlocks)); - - if (!isAppender && selectedBlock && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(selectedBlock)) { - replaceBlocks(selectedBlock.clientId, insertedBlock); - } else { - insertBlock(insertedBlock, getInsertionIndex(), ownProps.destinationRootClientId, selectBlockOnInsert); - - if (!selectBlockOnInsert) { - // translators: %s: the name of the block that has been added - var message = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s block added'), title); - Object(external_this_wp_a11y_["speak"])(message); - } - } - - onSelect(); - return insertedBlock; - } - }; -}), external_this_wp_components_["withSpokenMessages"], external_this_wp_compose_["withInstanceId"], external_this_wp_compose_["withSafeTimeout"])(menu_InserterMenu)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/index.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - - -/** - * Internal dependencies - */ - - - -var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) { - var onToggle = _ref.onToggle, - disabled = _ref.disabled, - isOpen = _ref.isOpen, - blockTitle = _ref.blockTitle, - hasSingleBlockType = _ref.hasSingleBlockType; - var label; - - if (hasSingleBlockType) { - // translators: %s: the name of the block when there is only one - label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_x"])('Add %s', 'directly add the only allowed block'), blockTitle); - } else { - label = Object(external_this_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button'); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: plus_circle["a" /* default */], - label: label, - tooltipPosition: "bottom", - onClick: onToggle, - className: "block-editor-inserter__toggle", - "aria-haspopup": !hasSingleBlockType ? 'true' : false, - "aria-expanded": !hasSingleBlockType ? isOpen : false, - disabled: disabled - }); -}; - -var inserter_Inserter = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(Inserter, _Component); - - function Inserter() { - var _this; - - Object(classCallCheck["a" /* default */])(this, Inserter); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Inserter).apply(this, arguments)); - _this.onToggle = _this.onToggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.renderToggle = _this.renderToggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.renderContent = _this.renderContent.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(Inserter, [{ - key: "onToggle", - value: function onToggle(isOpen) { - var onToggle = this.props.onToggle; // Surface toggle callback to parent component - - if (onToggle) { - onToggle(isOpen); - } - } - /** - * Render callback to display Dropdown toggle element. - * - * @param {Object} options - * @param {Function} options.onToggle Callback to invoke when toggle is - * pressed. - * @param {boolean} options.isOpen Whether dropdown is currently open. - * - * @return {WPElement} Dropdown toggle element. - */ - - }, { - key: "renderToggle", - value: function renderToggle(_ref2) { - var onToggle = _ref2.onToggle, - isOpen = _ref2.isOpen; - var _this$props = this.props, - disabled = _this$props.disabled, - blockTitle = _this$props.blockTitle, - hasSingleBlockType = _this$props.hasSingleBlockType, - _this$props$renderTog = _this$props.renderToggle, - renderToggle = _this$props$renderTog === void 0 ? inserter_defaultRenderToggle : _this$props$renderTog; - return renderToggle({ - onToggle: onToggle, - isOpen: isOpen, - disabled: disabled, - blockTitle: blockTitle, - hasSingleBlockType: hasSingleBlockType - }); - } - /** - * Render callback to display Dropdown content element. - * - * @param {Object} options - * @param {Function} options.onClose Callback to invoke when dropdown is - * closed. - * - * @return {WPElement} Dropdown content element. - */ - - }, { - key: "renderContent", - value: function renderContent(_ref3) { - var onClose = _ref3.onClose; - var _this$props2 = this.props, - rootClientId = _this$props2.rootClientId, - clientId = _this$props2.clientId, - isAppender = _this$props2.isAppender, - showInserterHelpPanel = _this$props2.showInserterHelpPanel, - selectBlockOnInsert = _this$props2.__experimentalSelectBlockOnInsert; - return Object(external_this_wp_element_["createElement"])(menu, { - onSelect: onClose, - rootClientId: rootClientId, - clientId: clientId, - isAppender: isAppender, - showInserterHelpPanel: showInserterHelpPanel, - __experimentalSelectBlockOnInsert: selectBlockOnInsert - }); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - position = _this$props3.position, - hasSingleBlockType = _this$props3.hasSingleBlockType, - insertOnlyAllowedBlock = _this$props3.insertOnlyAllowedBlock; - - if (hasSingleBlockType) { - return this.renderToggle({ - onToggle: insertOnlyAllowedBlock - }); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - className: "block-editor-inserter", - contentClassName: "block-editor-inserter__popover", - position: position, - onToggle: this.onToggle, - expandOnMobile: true, - headerTitle: Object(external_this_wp_i18n_["__"])('Add a block'), - renderToggle: this.renderToggle, - renderContent: this.renderContent - }); - } - }]); - - return Inserter; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var inserter = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { - var clientId = _ref4.clientId, - rootClientId = _ref4.rootClientId; - - var _select = select('core/block-editor'), - getBlockRootClientId = _select.getBlockRootClientId, - hasInserterItems = _select.hasInserterItems, - __experimentalGetAllowedBlocks = _select.__experimentalGetAllowedBlocks; - - var _select2 = select('core/blocks'), - getBlockVariations = _select2.getBlockVariations; - - rootClientId = rootClientId || getBlockRootClientId(clientId) || undefined; - - var allowedBlocks = __experimentalGetAllowedBlocks(rootClientId); - - var hasSingleBlockType = Object(external_this_lodash_["size"])(allowedBlocks) === 1 && Object(external_this_lodash_["size"])(getBlockVariations(allowedBlocks[0].name, 'inserter')) === 0; - var allowedBlockType = false; - - if (hasSingleBlockType) { - allowedBlockType = allowedBlocks[0]; - } - - return { - hasItems: hasInserterItems(rootClientId), - hasSingleBlockType: hasSingleBlockType, - blockTitle: allowedBlockType ? allowedBlockType.title : '', - allowedBlockType: allowedBlockType, - rootClientId: rootClientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref5) { - var select = _ref5.select; - return { - insertOnlyAllowedBlock: function insertOnlyAllowedBlock() { - var rootClientId = ownProps.rootClientId, - clientId = ownProps.clientId, - isAppender = ownProps.isAppender; - var hasSingleBlockType = ownProps.hasSingleBlockType, - allowedBlockType = ownProps.allowedBlockType, - selectBlockOnInsert = ownProps.__experimentalSelectBlockOnInsert; - - if (!hasSingleBlockType) { - return; - } - - function getInsertionIndex() { - var _select3 = select('core/block-editor'), - getBlockIndex = _select3.getBlockIndex, - getBlockSelectionEnd = _select3.getBlockSelectionEnd, - getBlockOrder = _select3.getBlockOrder; // If the clientId is defined, we insert at the position of the block. - - - if (clientId) { - return getBlockIndex(clientId, rootClientId); - } // If there a selected block, we insert after the selected block. - - - var end = getBlockSelectionEnd(); - - if (!isAppender && end) { - return getBlockIndex(end, rootClientId) + 1; - } // Otherwise, we insert at the end of the current rootClientId - - - return getBlockOrder(rootClientId).length; - } - - var _dispatch = dispatch('core/block-editor'), - insertBlock = _dispatch.insertBlock; - - var blockToInsert = Object(external_this_wp_blocks_["createBlock"])(allowedBlockType.name); - insertBlock(blockToInsert, getInsertionIndex(), rootClientId, selectBlockOnInsert); - - if (!selectBlockOnInsert) { - // translators: %s: the name of the block that has been added - var message = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s block added'), allowedBlockType.title); - Object(external_this_wp_a11y_["speak"])(message); - } - } - }; -}), Object(external_this_wp_compose_["ifCondition"])(function (_ref6) { - var hasItems = _ref6.hasItems; - return hasItems; -})])(inserter_Inserter)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/button-block-appender/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -function button_block_appender_ButtonBlockAppender(_ref) { - var rootClientId = _ref.rootClientId, - className = _ref.className, - selectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert; - return Object(external_this_wp_element_["createElement"])(inserter, { - rootClientId: rootClientId, - __experimentalSelectBlockOnInsert: selectBlockOnInsert, - renderToggle: function renderToggle(_ref2) { - var onToggle = _ref2.onToggle, - disabled = _ref2.disabled, - isOpen = _ref2.isOpen, - blockTitle = _ref2.blockTitle, - hasSingleBlockType = _ref2.hasSingleBlockType; - var label; - - if (hasSingleBlockType) { - // translators: %s: the name of the block when there is only one - label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_x"])('Add %s', 'directly add the only allowed block'), blockTitle); - } else { - label = Object(external_this_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button'); - } - - var isToggleButton = !hasSingleBlockType; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tooltip"], { - text: label - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: classnames_default()(className, 'block-editor-button-block-appender'), - onClick: onToggle, - "aria-haspopup": isToggleButton ? 'true' : undefined, - "aria-expanded": isToggleButton ? isOpen : undefined, - disabled: disabled, - label: label - }, Object(external_this_wp_element_["createElement"])("span", { - className: "screen-reader-text" - }, label), Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { - icon: plus_circle["a" /* default */] - }))); - }, - isAppender: true - }); -} -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/button-block-appender/README.md - */ - - -/* harmony default export */ var button_block_appender = (button_block_appender_ButtonBlockAppender); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/list.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -function BlockNavigationList(_ref) { - var blocks = _ref.blocks, - selectedBlockClientId = _ref.selectedBlockClientId, - selectBlock = _ref.selectBlock, - showAppender = _ref.showAppender, - showNestedBlocks = _ref.showNestedBlocks, - parentBlockClientId = _ref.parentBlockClientId; - var shouldShowAppender = showAppender && !!parentBlockClientId; - return ( - /* - * Disable reason: The `list` ARIA role is redundant but - * Safari+VoiceOver won't announce the list otherwise. - */ - - /* eslint-disable jsx-a11y/no-redundant-roles */ - Object(external_this_wp_element_["createElement"])("ul", { - className: "block-editor-block-navigation__list", - role: "list" - }, Object(external_this_lodash_["map"])(Object(external_this_lodash_["omitBy"])(blocks, external_this_lodash_["isNil"]), function (block) { - var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); - var isSelected = block.clientId === selectedBlockClientId; - return Object(external_this_wp_element_["createElement"])("li", { - key: block.clientId - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-navigation__item" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: classnames_default()('block-editor-block-navigation__item-button', { - 'is-selected': isSelected - }), - onClick: function onClick() { - return selectBlock(block.clientId); - } - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: blockType.icon, - showColors: true - }), Object(external_this_wp_blocks_["__experimentalGetBlockLabel"])(blockType, block.attributes), isSelected && Object(external_this_wp_element_["createElement"])("span", { - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('(selected block)')))), showNestedBlocks && !!block.innerBlocks && !!block.innerBlocks.length && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { - blocks: block.innerBlocks, - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock, - parentBlockClientId: block.clientId, - showAppender: showAppender, - showNestedBlocks: true - })); - }), shouldShowAppender && Object(external_this_wp_element_["createElement"])("li", null, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-navigation__item" - }, Object(external_this_wp_element_["createElement"])(button_block_appender, { - rootClientId: parentBlockClientId, - __experimentalSelectBlockOnInsert: false - })))) - /* eslint-enable jsx-a11y/no-redundant-roles */ - - ); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -function BlockNavigation(_ref) { - var rootBlock = _ref.rootBlock, - rootBlocks = _ref.rootBlocks, - selectedBlockClientId = _ref.selectedBlockClientId, - selectBlock = _ref.selectBlock; - - if (!rootBlocks || rootBlocks.length === 0) { - return null; - } - - var hasHierarchy = rootBlock && (rootBlock.clientId !== selectedBlockClientId || rootBlock.innerBlocks && rootBlock.innerBlocks.length !== 0); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { - role: "presentation", - className: "block-editor-block-navigation__container" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "block-editor-block-navigation__label" - }, Object(external_this_wp_i18n_["__"])('Block navigation')), hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { - blocks: [rootBlock], - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock, - showNestedBlocks: true - }), !hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { - blocks: rootBlocks, - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock - })); -} - -/* harmony default export */ var block_navigation = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getBlockHierarchyRootClientId = _select.getBlockHierarchyRootClientId, - getBlock = _select.getBlock, - getBlocks = _select.getBlocks; - - var selectedBlockClientId = getSelectedBlockClientId(); - return { - rootBlocks: getBlocks(), - rootBlock: selectedBlockClientId ? getBlock(getBlockHierarchyRootClientId(selectedBlockClientId)) : null, - selectedBlockClientId: selectedBlockClientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var _ref2$onSelect = _ref2.onSelect, - onSelect = _ref2$onSelect === void 0 ? external_this_lodash_["noop"] : _ref2$onSelect; - return { - selectBlock: function selectBlock(clientId) { - dispatch('core/block-editor').selectBlock(clientId); - onSelect(clientId); - } - }; -}))(BlockNavigation)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/dropdown.js - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var MenuIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24", - width: "20", - height: "20" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z" -})); - -function BlockNavigationDropdownToggle(_ref) { - var isEnabled = _ref.isEnabled, - onToggle = _ref.onToggle, - isOpen = _ref.isOpen; - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/edit-post/toggle-block-navigation', Object(external_this_wp_element_["useCallback"])(onToggle, [onToggle]), { - bindGlobal: true, - isDisabled: !isEnabled - }); - var shortcut = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/keyboard-shortcuts').getShortcutRepresentation('core/edit-post/toggle-block-navigation'); - }, []); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: MenuIcon, - "aria-expanded": isOpen, - onClick: isEnabled ? onToggle : undefined, - label: Object(external_this_wp_i18n_["__"])('Block navigation'), - className: "block-editor-block-navigation", - shortcut: shortcut, - "aria-disabled": !isEnabled - }); -} - -function BlockNavigationDropdown(_ref2) { - var isDisabled = _ref2.isDisabled; - var hasBlocks = Object(external_this_wp_data_["useSelect"])(function (select) { - return !!select('core/block-editor').getBlockCount(); - }, []); - var isEnabled = hasBlocks && !isDisabled; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - contentClassName: "block-editor-block-navigation__popover", - renderToggle: function renderToggle(toggleProps) { - return Object(external_this_wp_element_["createElement"])(BlockNavigationDropdownToggle, Object(esm_extends["a" /* default */])({}, toggleProps, { - isEnabled: isEnabled - })); - }, - renderContent: function renderContent(_ref3) { - var onClose = _ref3.onClose; - return Object(external_this_wp_element_["createElement"])(block_navigation, { - onSelect: onClose - }); - } - }); -} - -/* harmony default export */ var dropdown = (BlockNavigationDropdown); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-picker/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -function BlockVariationPicker(_ref) { - var _ref$icon = _ref.icon, - icon = _ref$icon === void 0 ? 'layout' : _ref$icon, - _ref$label = _ref.label, - label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Choose variation') : _ref$label, - _ref$instructions = _ref.instructions, - instructions = _ref$instructions === void 0 ? Object(external_this_wp_i18n_["__"])('Select a variation to start with.') : _ref$instructions, - variations = _ref.variations, - onSelect = _ref.onSelect, - allowSkip = _ref.allowSkip; - var classes = classnames_default()('block-editor-block-variation-picker', { - 'has-many-variations': variations.length > 4 - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: icon, - label: label, - instructions: instructions, - className: classes - }, Object(external_this_wp_element_["createElement"])("ul", { - className: "block-editor-block-variation-picker__variations", - role: "list" - }, variations.map(function (variation) { - return Object(external_this_wp_element_["createElement"])("li", { - key: variation.name - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - icon: variation.icon, - iconSize: 48, - onClick: function onClick() { - return onSelect(variation); - }, - className: "block-editor-block-variation-picker__variation", - label: variation.title - })); - })), allowSkip && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-variation-picker__skip" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLink: true, - onClick: function onClick() { - return onSelect(); - } - }, Object(external_this_wp_i18n_["__"])('Skip')))); -} - -/* harmony default export */ var block_variation_picker = (BlockVariationPicker); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-toolbar/icons.js - - -/** - * WordPress dependencies - */ - -var alignBottom = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - width: "20", - height: "20", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z" -})); -var alignCenter = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - width: "20", - height: "20", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z" -})); -var alignTop = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - width: "20", - height: "20", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z" -})); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-toolbar/index.js - - - -function block_vertical_alignment_toolbar_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function block_vertical_alignment_toolbar_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_vertical_alignment_toolbar_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_vertical_alignment_toolbar_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS = { - top: { - icon: alignTop, - title: Object(external_this_wp_i18n_["_x"])('Vertically Align Top', 'Block vertical alignment setting') - }, - center: { - icon: alignCenter, - title: Object(external_this_wp_i18n_["_x"])('Vertically Align Middle', 'Block vertical alignment setting') - }, - bottom: { - icon: alignBottom, - title: Object(external_this_wp_i18n_["_x"])('Vertically Align Bottom', 'Block vertical alignment setting') - } -}; -var block_vertical_alignment_toolbar_DEFAULT_CONTROLS = ['top', 'center', 'bottom']; -var block_vertical_alignment_toolbar_DEFAULT_CONTROL = 'top'; -function BlockVerticalAlignmentToolbar(_ref) { - var value = _ref.value, - onChange = _ref.onChange, - _ref$controls = _ref.controls, - controls = _ref$controls === void 0 ? block_vertical_alignment_toolbar_DEFAULT_CONTROLS : _ref$controls, - _ref$isCollapsed = _ref.isCollapsed, - isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed; - - function applyOrUnset(align) { - return function () { - return onChange(value === align ? undefined : align); - }; - } - - var activeAlignment = block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[value]; - var defaultAlignmentControl = block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[block_vertical_alignment_toolbar_DEFAULT_CONTROL]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - isCollapsed: isCollapsed, - icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon, - label: Object(external_this_wp_i18n_["_x"])('Change vertical alignment', 'Block vertical alignment setting label'), - controls: controls.map(function (control) { - return block_vertical_alignment_toolbar_objectSpread({}, block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[control], { - isActive: value === control, - role: isCollapsed ? 'menuitemradio' : undefined, - onClick: applyOrUnset(control) - }); - }) - }); -} -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/block-vertical-alignment-toolbar/README.md - */ - -/* harmony default export */ var block_vertical_alignment_toolbar = (BlockVerticalAlignmentToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/with-color-context.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/* harmony default export */ var with_color_context = (Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var settings = select('core/block-editor').getSettings(); - var colors = ownProps.colors === undefined ? settings.colors : ownProps.colors; - var disableCustomColors = ownProps.disableCustomColors === undefined ? settings.disableCustomColors : ownProps.disableCustomColors; - return { - colors: colors, - disableCustomColors: disableCustomColors, - hasColorsToChoose: !Object(external_this_lodash_["isEmpty"])(colors) || !disableCustomColors - }; -}), 'withColorContext')); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -/* harmony default export */ var color_palette = (with_color_context(external_this_wp_components_["ColorPalette"])); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/control.js - - - - -/** - * Internal dependencies - */ - -function ColorPaletteControl(_ref) { - var onChange = _ref.onChange, - value = _ref.value, - otherProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "value"]); - - return Object(external_this_wp_element_["createElement"])(control, Object(esm_extends["a" /* default */])({}, otherProps, { - onColorChange: onChange, - colorValue: value, - gradients: [], - disableCustomGradients: true - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editor-skeleton/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function useHTMLClass(className) { - Object(external_this_wp_element_["useEffect"])(function () { - var element = document && document.querySelector("html:not(.".concat(className, ")")); - - if (!element) { - return; - } - - element.classList.toggle(className); - return function () { - element.classList.toggle(className); - }; - }, [className]); -} - -function EditorSkeleton(_ref) { - var footer = _ref.footer, - header = _ref.header, - sidebar = _ref.sidebar, - content = _ref.content, - publish = _ref.publish, - className = _ref.className; - useHTMLClass('block-editor-editor-skeleton__html-container'); - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()(className, 'block-editor-editor-skeleton') - }, !!header && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-editor-skeleton__header", - role: "region" - /* translators: accessibility text for the top bar landmark region. */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Editor top bar'), - tabIndex: "-1" - }, header), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-editor-skeleton__body" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-editor-skeleton__content", - role: "region" - /* translators: accessibility text for the content landmark region. */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Editor content'), - tabIndex: "-1" - }, content), !!sidebar && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-editor-skeleton__sidebar", - role: "region" - /* translators: accessibility text for the settings landmark region. */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Editor settings'), - tabIndex: "-1" - }, sidebar), !!publish && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-editor-skeleton__publish", - role: "region" - /* translators: accessibility text for the publish landmark region. */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Editor publish'), - tabIndex: "-1" - }, publish)), !!footer && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-editor-skeleton__footer", - role: "region" - /* translators: accessibility text for the footer landmark region. */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Editor footer'), - tabIndex: "-1" - }, footer)); -} - -/* harmony default export */ var editor_skeleton = (Object(external_this_wp_components_["navigateRegions"])(EditorSkeleton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradient-picker/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -function GradientPickerWithGradients(props) { - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return Object(external_this_lodash_["pick"])(select('core/block-editor').getSettings(), ['gradients', 'disableCustomGradients']); - }, []), - gradients = _useSelect.gradients, - disableCustomGradients = _useSelect.disableCustomGradients; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalGradientPicker"], Object(esm_extends["a" /* default */])({ - gradients: props.gradients !== undefined ? props.gradient : gradients, - disableCustomGradients: props.disableCustomGradients !== undefined ? props.disableCustomGradients : disableCustomGradients - }, props)); -} - -/* harmony default export */ var gradient_picker = (function (props) { - var ComponentToUse = props.gradients !== undefined && props.disableCustomGradients !== undefined ? external_this_wp_components_["__experimentalGradientPicker"] : GradientPickerWithGradients; - return Object(external_this_wp_element_["createElement"])(ComponentToUse, props); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradient-picker/control.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var gradient_picker_control = (function (_ref) { - var className = _ref.className, - value = _ref.value, - onChange = _ref.onChange, - _ref$label = _ref.label, - label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Gradient Presets') : _ref$label, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "value", "onChange", "label"]); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return Object(external_this_lodash_["pick"])(select('core/block-editor').getSettings(), ['gradients', 'disableCustomGradients']); - }, []), - _useSelect$gradients = _useSelect.gradients, - gradients = _useSelect$gradients === void 0 ? [] : _useSelect$gradients, - disableCustomGradients = _useSelect.disableCustomGradients; - - if (Object(external_this_lodash_["isEmpty"])(gradients) && disableCustomGradients) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: classnames_default()('block-editor-gradient-picker-control', className) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, label), Object(external_this_wp_element_["createElement"])(gradient_picker, Object(esm_extends["a" /* default */])({ - value: value, - onChange: onChange, - className: "block-editor-gradient-picker-control__gradient-picker-presets", - gradients: gradients, - disableCustomGradients: disableCustomGradients - }, props))); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradient-picker/panel.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -function GradientPanel(props) { - var gradients = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings().gradients; - }, []); - - if (Object(external_this_lodash_["isEmpty"])(gradients)) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Gradient') - }, Object(external_this_wp_element_["createElement"])(gradient_picker_control, props)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-size-control/index.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var image_size_control_ImageSizeControl = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageSizeControl, _Component); - - /** - * Run additional operations during component initialization. - * - * @param {Object} props - */ - function ImageSizeControl(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, ImageSizeControl); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSizeControl).call(this, props)); - _this.updateDimensions = _this.updateDimensions.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ImageSizeControl, [{ - key: "updateDimensions", - value: function updateDimensions() { - var _this2 = this; - - var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; - var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - return function () { - _this2.props.onChange({ - width: width, - height: height - }); - }; - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props = this.props, - imageWidth = _this$props.imageWidth, - imageHeight = _this$props.imageHeight, - _this$props$imageSize = _this$props.imageSizeOptions, - imageSizeOptions = _this$props$imageSize === void 0 ? [] : _this$props$imageSize, - _this$props$isResizab = _this$props.isResizable, - isResizable = _this$props$isResizab === void 0 ? true : _this$props$isResizab, - slug = _this$props.slug, - width = _this$props.width, - height = _this$props.height, - _onChange = _this$props.onChange, - _this$props$onChangeI = _this$props.onChangeImage, - onChangeImage = _this$props$onChangeI === void 0 ? external_this_lodash_["noop"] : _this$props$onChangeI; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !Object(external_this_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Image size'), - value: slug, - options: imageSizeOptions, - onChange: onChangeImage - }), isResizable && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-image-size-control" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "block-editor-image-size-control__row" - }, Object(external_this_wp_i18n_["__"])('Image dimensions')), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-image-size-control__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - className: "block-editor-image-size-control__width", - label: Object(external_this_wp_i18n_["__"])('Width'), - value: width || imageWidth || '', - min: 1, - onChange: function onChange(value) { - return _onChange({ - width: parseInt(value, 10) - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - className: "block-editor-image-size-control__height", - label: Object(external_this_wp_i18n_["__"])('Height'), - value: height || imageHeight || '', - min: 1, - onChange: function onChange(value) { - return _onChange({ - height: parseInt(value, 10) - }); - } - })), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-image-size-control__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { - "aria-label": Object(external_this_wp_i18n_["__"])('Image Size') - }, [25, 50, 75, 100].map(function (scale) { - var scaledWidth = Math.round(imageWidth * (scale / 100)); - var scaledHeight = Math.round(imageHeight * (scale / 100)); - var isCurrent = width === scaledWidth && height === scaledHeight; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: scale, - isSmall: true, - isPrimary: isCurrent, - isPressed: isCurrent, - onClick: _this3.updateDimensions(scaledWidth, scaledHeight) - }, scale, "%"); - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSmall: true, - onClick: this.updateDimensions() - }, Object(external_this_wp_i18n_["__"])('Reset'))))); - } - }]); - - return ImageSizeControl; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var image_size_control = (image_size_control_ImageSizeControl); - -// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(51); -var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/with-client-id.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var withClientId = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return context_withBlockEditContext(function (context) { - return Object(external_this_lodash_["pick"])(context, ['clientId']); - })(WrappedComponent); -}, 'withClientId'); -/* harmony default export */ var with_client_id = (withClientId); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/button-block-appender.js - - -/** - * Internal dependencies - */ - - -var inner_blocks_button_block_appender_ButtonBlockAppender = function ButtonBlockAppender(_ref) { - var clientId = _ref.clientId, - showSeparator = _ref.showSeparator; - return Object(external_this_wp_element_["createElement"])(button_block_appender, { - rootClientId: clientId, - showSeparator: showSeparator - }); -}; -/* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(inner_blocks_button_block_appender_ButtonBlockAppender)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/default-block-appender.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var inner_blocks_default_block_appender_DefaultBlockAppender = function DefaultBlockAppender(_ref) { - var clientId = _ref.clientId, - lastBlockClientId = _ref.lastBlockClientId; - return Object(external_this_wp_element_["createElement"])(default_block_appender, { - rootClientId: clientId, - lastBlockClientId: lastBlockClientId - }); -}; -/* harmony default export */ var inner_blocks_default_block_appender = (Object(external_this_wp_compose_["compose"])([with_client_id, Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder; - - var blockClientIds = getBlockOrder(clientId); - return { - lastBlockClientId: Object(external_this_lodash_["last"])(blockClientIds) - }; -})])(inner_blocks_default_block_appender_DefaultBlockAppender)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/index.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - -/** - * Internal dependencies - */ - - - - -var inner_blocks_InnerBlocks = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(InnerBlocks, _Component); - - function InnerBlocks() { - var _this; - - Object(classCallCheck["a" /* default */])(this, InnerBlocks); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InnerBlocks).apply(this, arguments)); - _this.state = { - templateInProcess: !!_this.props.template - }; - - _this.updateNestedSettings(); - - return _this; - } - - Object(createClass["a" /* default */])(InnerBlocks, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this$props = this.props, - block = _this$props.block, - templateLock = _this$props.templateLock, - __experimentalBlocks = _this$props.__experimentalBlocks, - replaceInnerBlocks = _this$props.replaceInnerBlocks, - __unstableMarkNextChangeAsNotPersistent = _this$props.__unstableMarkNextChangeAsNotPersistent; - var innerBlocks = block.innerBlocks; // Only synchronize innerBlocks with template if innerBlocks are empty or a locking all exists directly on the block. - - if (innerBlocks.length === 0 || templateLock === 'all') { - this.synchronizeBlocksWithTemplate(); - } - - if (this.state.templateInProcess) { - this.setState({ - templateInProcess: false - }); - } // Set controlled blocks value from parent, if any. - - - if (__experimentalBlocks) { - __unstableMarkNextChangeAsNotPersistent(); - - replaceInnerBlocks(__experimentalBlocks); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props2 = this.props, - block = _this$props2.block, - templateLock = _this$props2.templateLock, - template = _this$props2.template, - isLastBlockChangePersistent = _this$props2.isLastBlockChangePersistent, - onInput = _this$props2.onInput, - onChange = _this$props2.onChange; - var innerBlocks = block.innerBlocks; - this.updateNestedSettings(); // Only synchronize innerBlocks with template if innerBlocks are empty or a locking all exists directly on the block. - - if (innerBlocks.length === 0 || templateLock === 'all') { - var hasTemplateChanged = !Object(external_this_lodash_["isEqual"])(template, prevProps.template); - - if (hasTemplateChanged) { - this.synchronizeBlocksWithTemplate(); - } - } // Sync with controlled blocks value from parent, if possible. - - - if (prevProps.block.innerBlocks !== innerBlocks) { - var resetFunc = isLastBlockChangePersistent ? onChange : onInput; - - if (resetFunc) { - resetFunc(innerBlocks); - } - } - } - /** - * Called on mount or when a mismatch exists between the templates and - * inner blocks, synchronizes inner blocks with the template, replacing - * current blocks. - */ - - }, { - key: "synchronizeBlocksWithTemplate", - value: function synchronizeBlocksWithTemplate() { - var _this$props3 = this.props, - template = _this$props3.template, - block = _this$props3.block, - replaceInnerBlocks = _this$props3.replaceInnerBlocks; - var innerBlocks = block.innerBlocks; // Synchronize with templates. If the next set differs, replace. - - var nextBlocks = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(innerBlocks, template); - - if (!Object(external_this_lodash_["isEqual"])(nextBlocks, innerBlocks)) { - replaceInnerBlocks(nextBlocks); - } - } - }, { - key: "updateNestedSettings", - value: function updateNestedSettings() { - var _this$props4 = this.props, - blockListSettings = _this$props4.blockListSettings, - allowedBlocks = _this$props4.allowedBlocks, - updateNestedSettings = _this$props4.updateNestedSettings, - templateLock = _this$props4.templateLock, - parentLock = _this$props4.parentLock, - __experimentalCaptureToolbars = _this$props4.__experimentalCaptureToolbars, - __experimentalMoverDirection = _this$props4.__experimentalMoverDirection, - __experimentalUIParts = _this$props4.__experimentalUIParts; - var newSettings = { - allowedBlocks: allowedBlocks, - templateLock: templateLock === undefined ? parentLock : templateLock, - __experimentalCaptureToolbars: __experimentalCaptureToolbars || false, - __experimentalMoverDirection: __experimentalMoverDirection, - __experimentalUIParts: __experimentalUIParts - }; - - if (!external_this_wp_isShallowEqual_default()(blockListSettings, newSettings)) { - updateNestedSettings(newSettings); - } - } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - enableClickThrough = _this$props5.enableClickThrough, - clientId = _this$props5.clientId, - hasOverlay = _this$props5.hasOverlay, - captureToolbars = _this$props5.__experimentalCaptureToolbars, - props = Object(objectWithoutProperties["a" /* default */])(_this$props5, ["enableClickThrough", "clientId", "hasOverlay", "__experimentalCaptureToolbars"]); - - var templateInProcess = this.state.templateInProcess; - var classes = classnames_default()('block-editor-inner-blocks', { - 'has-overlay': enableClickThrough && hasOverlay, - 'is-capturing-toolbar': captureToolbars - }); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, !templateInProcess && Object(external_this_wp_element_["createElement"])(block_list, Object(esm_extends["a" /* default */])({ - rootClientId: clientId - }, props))); - } - }]); - - return InnerBlocks; -}(external_this_wp_element_["Component"]); - -inner_blocks_InnerBlocks = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_viewport_["withViewportMatch"])({ - isSmallScreen: '< medium' -}), context_withBlockEditContext(function (context) { - return Object(external_this_lodash_["pick"])(context, ['clientId']); -}), Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - isBlockSelected = _select.isBlockSelected, - hasSelectedInnerBlock = _select.hasSelectedInnerBlock, - getBlock = _select.getBlock, - getBlockListSettings = _select.getBlockListSettings, - getBlockRootClientId = _select.getBlockRootClientId, - getTemplateLock = _select.getTemplateLock, - isNavigationMode = _select.isNavigationMode, - isLastBlockChangePersistent = _select.isLastBlockChangePersistent; - - var clientId = ownProps.clientId, - isSmallScreen = ownProps.isSmallScreen; - var block = getBlock(clientId); - var rootClientId = getBlockRootClientId(clientId); - return { - block: block, - blockListSettings: getBlockListSettings(clientId), - hasOverlay: block.name !== 'core/template' && !isBlockSelected(clientId) && !hasSelectedInnerBlock(clientId, true), - parentLock: getTemplateLock(rootClientId), - enableClickThrough: isNavigationMode() || isSmallScreen, - isLastBlockChangePersistent: isLastBlockChangePersistent() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/block-editor'), - _replaceInnerBlocks = _dispatch.replaceInnerBlocks, - __unstableMarkNextChangeAsNotPersistent = _dispatch.__unstableMarkNextChangeAsNotPersistent, - updateBlockListSettings = _dispatch.updateBlockListSettings; - - var block = ownProps.block, - clientId = ownProps.clientId, - _ownProps$templateIns = ownProps.templateInsertUpdatesSelection, - templateInsertUpdatesSelection = _ownProps$templateIns === void 0 ? true : _ownProps$templateIns; - return { - replaceInnerBlocks: function replaceInnerBlocks(blocks) { - _replaceInnerBlocks(clientId, blocks, block.innerBlocks.length === 0 && templateInsertUpdatesSelection && blocks.length !== 0); - }, - __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent, - updateNestedSettings: function updateNestedSettings(settings) { - dispatch(updateBlockListSettings(clientId, settings)); - } - }; -})])(inner_blocks_InnerBlocks); // Expose default appender placeholders as components. - -inner_blocks_InnerBlocks.DefaultBlockAppender = inner_blocks_default_block_appender; -inner_blocks_InnerBlocks.ButtonBlockAppender = inner_blocks_button_block_appender; -inner_blocks_InnerBlocks.Content = Object(external_this_wp_blocks_["withBlockContentContext"])(function (_ref) { - var BlockContent = _ref.BlockContent; - return Object(external_this_wp_element_["createElement"])(BlockContent, null); -}); -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/inner-blocks/README.md - */ - -/* harmony default export */ var inner_blocks = (inner_blocks_InnerBlocks); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-advanced-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var inspector_advanced_controls_name = 'InspectorAdvancedControls'; - -var inspector_advanced_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])(inspector_advanced_controls_name), - inspector_advanced_controls_Fill = inspector_advanced_controls_createSlotFill.Fill, - inspector_advanced_controls_Slot = inspector_advanced_controls_createSlotFill.Slot; - -var InspectorAdvancedControls = ifBlockEditSelected(inspector_advanced_controls_Fill); -InspectorAdvancedControls.slotName = inspector_advanced_controls_name; -InspectorAdvancedControls.Slot = inspector_advanced_controls_Slot; -/* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(49); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js - - - -function settings_drawer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function settings_drawer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { settings_drawer_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { settings_drawer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var defaultSettings = [{ - id: 'opensInNewTab', - title: Object(external_this_wp_i18n_["__"])('Open in new tab') -}]; - -var settings_drawer_LinkControlSettingsDrawer = function LinkControlSettingsDrawer(_ref) { - var value = _ref.value, - _ref$onChange = _ref.onChange, - onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, - _ref$settings = _ref.settings, - settings = _ref$settings === void 0 ? defaultSettings : _ref$settings; - - if (!settings || !settings.length) { - return null; - } - - var handleSettingChange = function handleSettingChange(setting) { - return function (newValue) { - onChange(settings_drawer_objectSpread({}, value, Object(defineProperty["a" /* default */])({}, setting.id, newValue))); - }; - }; - - var theSettings = settings.map(function (setting) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - className: "block-editor-link-control__setting", - key: setting.id, - label: setting.title, - onChange: handleSettingChange(setting), - checked: value ? !!value[setting.id] : false - }); - }); - return Object(external_this_wp_element_["createElement"])("fieldset", { - className: "block-editor-link-control__settings" - }, Object(external_this_wp_element_["createElement"])("legend", { - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('Currently selected link settings')), theSettings); -}; - -/* harmony default export */ var settings_drawer = (settings_drawer_LinkControlSettingsDrawer); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var search_item_LinkControlSearchItem = function LinkControlSearchItem(_ref) { - var itemProps = _ref.itemProps, - suggestion = _ref.suggestion, - _ref$isSelected = _ref.isSelected, - isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected, - onClick = _ref.onClick, - _ref$isURL = _ref.isURL, - isURL = _ref$isURL === void 0 ? false : _ref$isURL, - _ref$searchTerm = _ref.searchTerm, - searchTerm = _ref$searchTerm === void 0 ? '' : _ref$searchTerm; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, itemProps, { - onClick: onClick, - className: classnames_default()('block-editor-link-control__search-item', { - 'is-selected': isSelected, - 'is-url': isURL, - 'is-entity': !isURL - }) - }), isURL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { - className: "block-editor-link-control__search-item-icon", - icon: "admin-site-alt3" - }), Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-header" - }, Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-title" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextHighlight"], { - text: suggestion.title, - highlight: searchTerm - })), Object(external_this_wp_element_["createElement"])("span", { - "aria-hidden": !isURL, - className: "block-editor-link-control__search-item-info" - }, !isURL && (Object(external_this_wp_url_["safeDecodeURI"])(suggestion.url) || ''), isURL && Object(external_this_wp_i18n_["__"])('Press ENTER to add this link'))), suggestion.type && Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-type" - }, suggestion.type)); -}; -/* harmony default export */ var search_item = (search_item_LinkControlSearchItem); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var search_input_handleLinkControlOnKeyDown = function handleLinkControlOnKeyDown(event) { - var keyCode = event.keyCode; - - if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(keyCode) > -1) { - // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. - event.stopPropagation(); - } -}; - -var search_input_handleLinkControlOnKeyPress = function handleLinkControlOnKeyPress(event) { - var keyCode = event.keyCode; - event.stopPropagation(); - - if (keyCode === external_this_wp_keycodes_["ENTER"]) {} -}; - -var search_input_LinkControlSearchInput = function LinkControlSearchInput(_ref) { - var value = _ref.value, - onChange = _ref.onChange, - onSelect = _ref.onSelect, - renderSuggestions = _ref.renderSuggestions, - fetchSuggestions = _ref.fetchSuggestions, - showInitialSuggestions = _ref.showInitialSuggestions; - - var _useState = Object(external_this_wp_element_["useState"])(), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - selectedSuggestion = _useState2[0], - setSelectedSuggestion = _useState2[1]; - - var selectItemHandler = function selectItemHandler(selection, suggestion) { - onChange(selection); - setSelectedSuggestion(suggestion); - }; - - function selectSuggestionOrCurrentInputValue(event) { - // Avoid default forms behavior, since it's being handled custom here. - event.preventDefault(); // Interpret the selected value as either the selected suggestion, if - // exists, or otherwise the current input value as entered. - - onSelect(selectedSuggestion || { - url: value - }); - } - - return Object(external_this_wp_element_["createElement"])("form", { - onSubmit: selectSuggestionOrCurrentInputValue - }, Object(external_this_wp_element_["createElement"])(url_input, { - className: "block-editor-link-control__search-input", - value: value, - onChange: selectItemHandler, - onKeyDown: function onKeyDown(event) { - if (event.keyCode === external_this_wp_keycodes_["ENTER"]) { - return; - } - - search_input_handleLinkControlOnKeyDown(event); - }, - onKeyPress: search_input_handleLinkControlOnKeyPress, - placeholder: Object(external_this_wp_i18n_["__"])('Search or type url'), - __experimentalRenderSuggestions: renderSuggestions, - __experimentalFetchLinkSuggestions: fetchSuggestions, - __experimentalHandleURLSuggestions: true, - __experimentalShowInitialSuggestions: showInitialSuggestions - }), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-link-control__search-actions" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - type: "submit", - label: Object(external_this_wp_i18n_["__"])('Submit'), - icon: "editor-break", - className: "block-editor-link-control__search-submit" - }))); -}; - -/* harmony default export */ var search_input = (search_input_LinkControlSearchInput); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/index.js - - - - - - - -function link_control_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function link_control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { link_control_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { link_control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - -/** - * Default properties associated with a link control value. - * - * @typedef WPLinkControlDefaultValue - * - * @property {string} url Link URL. - * @property {string=} title Link title. - * @property {boolean=} opensInNewTab Whether link should open in a new browser - * tab. This value is only assigned if not - * providing a custom `settings` prop. - */ - -/** - * Custom settings values associated with a link. - * - * @typedef {{[setting:string]:any}} WPLinkControlSettingsValue - */ - -/** - * Custom settings values associated with a link. - * - * @typedef WPLinkControlSetting - * - * @property {string} id Identifier to use as property for setting value. - * @property {string} title Human-readable label to show in user interface. - */ - -/** - * Properties associated with a link control value, composed as a union of the - * default properties and any custom settings values. - * - * @typedef {WPLinkControlDefaultValue&WPLinkControlSettingsValue} WPLinkControlValue - */ - -/** @typedef {(nextValue:WPLinkControlValue)=>void} WPLinkControlOnChangeProp */ - -/** - * @typedef WPLinkControlProps - * - * @property {(WPLinkControlSetting[])=} settings An array of settings objects. Each object will used to - * render a `ToggleControl` for that setting. - * @property {boolean=} forceIsEditingLink If passed as either `true` or `false`, controls the - * internal editing state of the component to respective - * show or not show the URL input field. - * @property {WPLinkControlValue=} value Current link value. - * @property {WPLinkControlOnChangeProp=} onChange Value change handler, called with the updated value if - * the user selects a new link or updates settings. - * @property {boolean=} showInitialSuggestions Whether to present initial suggestions immediately. - */ - -/** - * Renders a link control. A link control is a controlled input which maintains - * a value associated with a link (HTML anchor element) and relevant settings - * for how that link is expected to behave. - * - * @param {WPLinkControlProps} props Component props. - */ - -function LinkControl(_ref) { - var value = _ref.value, - settings = _ref.settings, - _ref$onChange = _ref.onChange, - onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, - showInitialSuggestions = _ref.showInitialSuggestions, - forceIsEditingLink = _ref.forceIsEditingLink; - var wrapperNode = Object(external_this_wp_element_["useRef"])(); - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(LinkControl); - - var _useState = Object(external_this_wp_element_["useState"])(value && value.url || ''), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - inputValue = _useState2[0], - setInputValue = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(forceIsEditingLink !== undefined ? forceIsEditingLink : !value || !value.url), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isEditingLink = _useState4[0], - setIsEditingLink = _useState4[1]; - - var isEndingEditWithFocus = Object(external_this_wp_element_["useRef"])(false); - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - fetchSearchSuggestions: getSettings().__experimentalFetchLinkSuggestions - }; - }, []), - fetchSearchSuggestions = _useSelect.fetchSearchSuggestions; - - var displayURL = value && Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(value.url)) || ''; - Object(external_this_wp_element_["useEffect"])(function () { - if (forceIsEditingLink !== undefined && forceIsEditingLink !== isEditingLink) { - setIsEditingLink(forceIsEditingLink); - } - }, [forceIsEditingLink]); - Object(external_this_wp_element_["useEffect"])(function () { - // When `isEditingLink` is set to `false`, a focus loss could occur - // since the link input may be removed from the DOM. To avoid this, - // reinstate focus to a suitable target if focus has in-fact been lost. - // Note that the check is necessary because while typically unsetting - // edit mode would render the read-only mode's link element, it isn't - // guaranteed. The link input may continue to be shown if the next value - // is still unassigned after calling `onChange`. - var hadFocusLoss = isEndingEditWithFocus.current && wrapperNode.current && !wrapperNode.current.contains(document.activeElement); - - if (hadFocusLoss) { - // Prefer to focus a natural focusable descendent of the wrapper, - // but settle for the wrapper if there are no other options. - var nextFocusTarget = external_this_wp_dom_["focus"].focusable.find(wrapperNode.current)[0] || wrapperNode.current; - nextFocusTarget.focus(); - } - - isEndingEditWithFocus.current = false; - }, [isEditingLink]); - /** - * onChange LinkControlSearchInput event handler - * - * @param {string} val Current value returned by the search. - */ - - var onInputChange = function onInputChange() { - var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - setInputValue(val); - }; - - var handleDirectEntry = function handleDirectEntry(val) { - var type = 'URL'; - var protocol = Object(external_this_wp_url_["getProtocol"])(val) || ''; - - if (protocol.includes('mailto')) { - type = 'mailto'; - } - - if (protocol.includes('tel')) { - type = 'tel'; - } - - if (Object(external_this_lodash_["startsWith"])(val, '#')) { - type = 'internal'; - } - - return Promise.resolve([{ - id: '-1', - title: val, - url: type === 'URL' ? Object(external_this_wp_url_["prependHTTP"])(val) : val, - type: type - }]); - }; - - var handleEntitySearch = - /*#__PURE__*/ - function () { - var _ref2 = Object(asyncToGenerator["a" /* default */])( - /*#__PURE__*/ - external_this_regeneratorRuntime_default.a.mark(function _callee(val, args) { - var results, couldBeURL; - return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return Promise.all([fetchSearchSuggestions(val, link_control_objectSpread({}, args.isInitialSuggestions ? { - perPage: 3 - } : {})), handleDirectEntry(val)]); - - case 2: - results = _context.sent; - couldBeURL = !val.includes(' '); // If it's potentially a URL search then concat on a URL search suggestion - // just for good measure. That way once the actual results run out we always - // have a URL option to fallback on. - - return _context.abrupt("return", couldBeURL && !args.isInitialSuggestions ? results[0].concat(results[1]) : results[0]); - - case 5: - case "end": - return _context.stop(); - } - } - }, _callee); - })); - - return function handleEntitySearch(_x, _x2) { - return _ref2.apply(this, arguments); - }; - }(); - /** - * Cancels editing state and marks that focus may need to be restored after - * the next render, if focus was within the wrapper when editing finished. - */ - - - function stopEditing() { - isEndingEditWithFocus.current = !!wrapperNode.current && wrapperNode.current.contains(document.activeElement); - setIsEditingLink(false); - } // Effects - - - var getSearchHandler = Object(external_this_wp_element_["useCallback"])(function (val, args) { - var isInternal = Object(external_this_lodash_["startsWith"])(val, '#'); - var handleManualEntry = isInternal || Object(external_this_wp_url_["isURL"])(val) || val && val.includes('www.'); - return handleManualEntry ? handleDirectEntry(val, args) : handleEntitySearch(val, args); - }, [handleDirectEntry, fetchSearchSuggestions]); // Render Components - - var renderSearchResults = function renderSearchResults(_ref3) { - var suggestionsListProps = _ref3.suggestionsListProps, - buildSuggestionItemProps = _ref3.buildSuggestionItemProps, - suggestions = _ref3.suggestions, - selectedSuggestion = _ref3.selectedSuggestion, - isLoading = _ref3.isLoading, - isInitialSuggestions = _ref3.isInitialSuggestions; - var resultsListClasses = classnames_default()('block-editor-link-control__search-results', { - 'is-loading': isLoading - }); - var manualLinkEntryTypes = ['url', 'mailto', 'tel', 'internal']; - var searchResultsLabelId = isInitialSuggestions ? "block-editor-link-control-search-results-label-".concat(instanceId) : undefined; - var labelText = isInitialSuggestions ? Object(external_this_wp_i18n_["__"])('Recently updated') : Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Search results for %s'), inputValue); // According to guidelines aria-label should be added if the label - // itself is not visible. - // See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role - - var ariaLabel = isInitialSuggestions ? undefined : labelText; - var SearchResultsLabel = Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-results-label", - id: searchResultsLabelId, - "aria-label": ariaLabel - }, labelText); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-link-control__search-results-wrapper" - }, isInitialSuggestions ? SearchResultsLabel : Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], null, SearchResultsLabel), Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { - className: resultsListClasses, - "aria-labelledby": searchResultsLabelId - }), suggestions.map(function (suggestion, index) { - return Object(external_this_wp_element_["createElement"])(search_item, { - key: "".concat(suggestion.id, "-").concat(suggestion.type), - itemProps: buildSuggestionItemProps(suggestion, index), - suggestion: suggestion, - onClick: function onClick() { - onChange(link_control_objectSpread({}, value, {}, suggestion)); - stopEditing(); - }, - isSelected: index === selectedSuggestion, - isURL: manualLinkEntryTypes.includes(suggestion.type.toLowerCase()), - searchTerm: inputValue - }); - }))); - }; - - return Object(external_this_wp_element_["createElement"])("div", { - tabIndex: -1, - ref: wrapperNode, - className: "block-editor-link-control" - }, isEditingLink || !value ? Object(external_this_wp_element_["createElement"])(search_input, { - value: inputValue, - onChange: onInputChange, - onSelect: function onSelect(suggestion) { - onChange(link_control_objectSpread({}, value, {}, suggestion)); - stopEditing(); - }, - renderSuggestions: renderSearchResults, - fetchSuggestions: getSearchHandler, - showInitialSuggestions: showInitialSuggestions - }) : Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { - className: "screen-reader-text", - id: "current-link-label-".concat(instanceId) - }, Object(external_this_wp_i18n_["__"])('Currently selected'), ":"), Object(external_this_wp_element_["createElement"])("div", { - "aria-labelledby": "current-link-label-".concat(instanceId), - "aria-selected": "true", - className: classnames_default()('block-editor-link-control__search-item', { - 'is-current': true - }) - }, Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-header" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - className: "block-editor-link-control__search-item-title", - href: value.url - }, value && value.title || displayURL), value && value.title && Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-link-control__search-item-info" - }, displayURL)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - onClick: function onClick() { - return setIsEditingLink(true); - }, - className: "block-editor-link-control__search-item-action" - }, Object(external_this_wp_i18n_["__"])('Edit')))), Object(external_this_wp_element_["createElement"])(settings_drawer, { - value: value, - settings: settings, - onChange: onChange - })); -} - -/* harmony default export */ var link_control = (LinkControl); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(287); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(159); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js -/** - * WordPress dependencies - */ - -/** - * This is a placeholder for the media upload component necessary to make it possible to provide - * an integration with the core blocks that handle media files. By default it renders nothing but - * it provides a way to have it overridden with the `editor.MediaUpload` filter. - * - * @return {WPComponent} The component to be rendered. - */ - -var MediaUpload = function MediaUpload() { - return null; -}; -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-upload/README.md - */ - - -/* harmony default export */ var media_upload = (Object(external_this_wp_components_["withFilters"])('editor.MediaUpload')(MediaUpload)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/check.js -/** - * WordPress dependencies - */ - -function MediaUploadCheck(_ref) { - var hasUploadPermissions = _ref.hasUploadPermissions, - _ref$fallback = _ref.fallback, - fallback = _ref$fallback === void 0 ? null : _ref$fallback, - children = _ref.children; - return hasUploadPermissions ? children : fallback; -} -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-upload/README.md - */ - -/* harmony default export */ var check = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - hasUploadPermissions: !!getSettings().mediaUpload - }; -})(MediaUploadCheck)); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(192); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/index.js - - - - - - - - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - - - // Since URLInput is rendered in the context of other inputs, but should be -// considered a separate modal node, prevent keyboard events from propagating -// as being considered from the input. - -var stopEventPropagation = function stopEventPropagation(event) { - return event.stopPropagation(); -}; - -var url_input_URLInput = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(URLInput, _Component); - - function URLInput(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, URLInput); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLInput).call(this, props)); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.selectLink = _this.selectLink.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleOnClick = _this.handleOnClick.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.bindSuggestionNode = _this.bindSuggestionNode.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.autocompleteRef = props.autocompleteRef || Object(external_this_wp_element_["createRef"])(); - _this.inputRef = Object(external_this_wp_element_["createRef"])(); - _this.updateSuggestions = Object(external_this_lodash_["throttle"])(_this.updateSuggestions.bind(Object(assertThisInitialized["a" /* default */])(_this)), 200); - _this.suggestionNodes = []; - _this.isUpdatingSuggestions = false; - _this.state = { - suggestions: [], - showSuggestions: false, - selectedSuggestion: null - }; - return _this; - } - - Object(createClass["a" /* default */])(URLInput, [{ - key: "componentDidUpdate", - value: function componentDidUpdate() { - var _this2 = this; - - var _this$state = this.state, - showSuggestions = _this$state.showSuggestions, - selectedSuggestion = _this$state.selectedSuggestion; // only have to worry about scrolling selected suggestion into view - // when already expanded - - if (showSuggestions && selectedSuggestion !== null && !this.scrollingIntoView) { - this.scrollingIntoView = true; - lib_default()(this.suggestionNodes[selectedSuggestion], this.autocompleteRef.current, { - onlyScrollIfNeeded: true - }); - this.props.setTimeout(function () { - _this2.scrollingIntoView = false; - }, 100); - } - - if (this.shouldShowInitialSuggestions()) { - this.updateSuggestions(); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (this.shouldShowInitialSuggestions()) { - this.updateSuggestions(); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - delete this.suggestionsRequest; - } - }, { - key: "bindSuggestionNode", - value: function bindSuggestionNode(index) { - var _this3 = this; - - return function (ref) { - _this3.suggestionNodes[index] = ref; - }; - } - }, { - key: "shouldShowInitialSuggestions", - value: function shouldShowInitialSuggestions() { - var suggestions = this.state.suggestions; - - var _this$props = this.props, - _this$props$__experim = _this$props.__experimentalShowInitialSuggestions, - __experimentalShowInitialSuggestions = _this$props$__experim === void 0 ? false : _this$props$__experim, - value = _this$props.value; - - return !this.isUpdatingSuggestions && __experimentalShowInitialSuggestions && !(value && value.length) && !(suggestions && suggestions.length); - } - }, { - key: "updateSuggestions", - value: function updateSuggestions() { - var _this4 = this; - - var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var _this$props2 = this.props, - fetchLinkSuggestions = _this$props2.__experimentalFetchLinkSuggestions, - handleURLSuggestions = _this$props2.__experimentalHandleURLSuggestions; - - if (!fetchLinkSuggestions) { - return; - } - - var isInitialSuggestions = !(value && value.length); // Allow a suggestions request if: - // - there are at least 2 characters in the search input (except manual searches where - // search input length is not required to trigger a fetch) - // - this is a direct entry (eg: a URL) - - if (!isInitialSuggestions && (value.length < 2 || !handleURLSuggestions && Object(external_this_wp_url_["isURL"])(value))) { - this.setState({ - showSuggestions: false, - selectedSuggestion: null, - loading: false - }); - return; - } - - this.isUpdatingSuggestions = true; - this.setState({ - showSuggestions: true, - selectedSuggestion: null, - loading: true - }); - var request = fetchLinkSuggestions(value, { - isInitialSuggestions: isInitialSuggestions - }); - request.then(function (suggestions) { - // A fetch Promise doesn't have an abort option. It's mimicked by - // comparing the request reference in on the instance, which is - // reset or deleted on subsequent requests or unmounting. - if (_this4.suggestionsRequest !== request) { - return; - } - - _this4.setState({ - suggestions: suggestions, - loading: false - }); - - if (!!suggestions.length) { - _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', suggestions.length), suggestions.length), 'assertive'); - } else { - _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); - } - - _this4.isUpdatingSuggestions = false; - }).catch(function () { - if (_this4.suggestionsRequest === request) { - _this4.setState({ - loading: false - }); - - _this4.isUpdatingSuggestions = false; - } - }); // Note that this assignment is handled *before* the async search request - // as a Promise always resolves on the next tick of the event loop. - - this.suggestionsRequest = request; - } - }, { - key: "onChange", - value: function onChange(event) { - var inputValue = event.target.value; - this.props.onChange(inputValue); - - if (!this.props.disableSuggestions) { - this.updateSuggestions(inputValue); - } - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var _this$state2 = this.state, - showSuggestions = _this$state2.showSuggestions, - selectedSuggestion = _this$state2.selectedSuggestion, - suggestions = _this$state2.suggestions, - loading = _this$state2.loading; // If the suggestions are not shown or loading, we shouldn't handle the arrow keys - // We shouldn't preventDefault to allow block arrow keys navigation - - if (!showSuggestions || !suggestions.length || loading) { - // In the Windows version of Firefox the up and down arrows don't move the caret - // within an input field like they do for Mac Firefox/Chrome/Safari. This causes - // a form of focus trapping that is disruptive to the user experience. This disruption - // only happens if the caret is not in the first or last position in the text input. - // See: https://github.com/WordPress/gutenberg/issues/5693#issuecomment-436684747 - switch (event.keyCode) { - // When UP is pressed, if the caret is at the start of the text, move it to the 0 - // position. - case external_this_wp_keycodes_["UP"]: - { - if (0 !== event.target.selectionStart) { - event.stopPropagation(); - event.preventDefault(); // Set the input caret to position 0 - - event.target.setSelectionRange(0, 0); - } - - break; - } - // When DOWN is pressed, if the caret is not at the end of the text, move it to the - // last position. - - case external_this_wp_keycodes_["DOWN"]: - { - if (this.props.value.length !== event.target.selectionStart) { - event.stopPropagation(); - event.preventDefault(); // Set the input caret to the last position - - event.target.setSelectionRange(this.props.value.length, this.props.value.length); - } - - break; - } - } - - return; - } - - var suggestion = this.state.suggestions[this.state.selectedSuggestion]; - - switch (event.keyCode) { - case external_this_wp_keycodes_["UP"]: - { - event.stopPropagation(); - event.preventDefault(); - var previousIndex = !selectedSuggestion ? suggestions.length - 1 : selectedSuggestion - 1; - this.setState({ - selectedSuggestion: previousIndex - }); - break; - } - - case external_this_wp_keycodes_["DOWN"]: - { - event.stopPropagation(); - event.preventDefault(); - var nextIndex = selectedSuggestion === null || selectedSuggestion === suggestions.length - 1 ? 0 : selectedSuggestion + 1; - this.setState({ - selectedSuggestion: nextIndex - }); - break; - } - - case external_this_wp_keycodes_["TAB"]: - { - if (this.state.selectedSuggestion !== null) { - this.selectLink(suggestion); // Announce a link has been selected when tabbing away from the input field. - - this.props.speak(Object(external_this_wp_i18n_["__"])('Link selected.')); - } - - break; - } - - case external_this_wp_keycodes_["ENTER"]: - { - if (this.state.selectedSuggestion !== null) { - event.stopPropagation(); - this.selectLink(suggestion); - } - - break; - } - } - } - }, { - key: "selectLink", - value: function selectLink(suggestion) { - this.props.onChange(suggestion.url, suggestion); - this.setState({ - selectedSuggestion: null, - showSuggestions: false - }); - } - }, { - key: "handleOnClick", - value: function handleOnClick(suggestion) { - this.selectLink(suggestion); // Move focus to the input field when a link suggestion is clicked. - - this.inputRef.current.focus(); - } - }, { - key: "render", - value: function render() { - var _this5 = this; - - var _this$props3 = this.props, - label = _this$props3.label, - instanceId = _this$props3.instanceId, - className = _this$props3.className, - isFullWidth = _this$props3.isFullWidth, - hasBorder = _this$props3.hasBorder, - renderSuggestions = _this$props3.__experimentalRenderSuggestions, - _this$props3$placehol = _this$props3.placeholder, - placeholder = _this$props3$placehol === void 0 ? Object(external_this_wp_i18n_["__"])('Paste URL or type to search') : _this$props3$placehol, - _this$props3$value = _this$props3.value, - value = _this$props3$value === void 0 ? '' : _this$props3$value, - _this$props3$autoFocu = _this$props3.autoFocus, - autoFocus = _this$props3$autoFocu === void 0 ? true : _this$props3$autoFocu, - _this$props3$__experi = _this$props3.__experimentalShowInitialSuggestions, - __experimentalShowInitialSuggestions = _this$props3$__experi === void 0 ? false : _this$props3$__experi; - - var _this$state3 = this.state, - showSuggestions = _this$state3.showSuggestions, - suggestions = _this$state3.suggestions, - selectedSuggestion = _this$state3.selectedSuggestion, - loading = _this$state3.loading; - var id = "url-input-control-".concat(instanceId); - var suggestionsListboxId = "block-editor-url-input-suggestions-".concat(instanceId); - var suggestionOptionIdPrefix = "block-editor-url-input-suggestion-".concat(instanceId); - var suggestionsListProps = { - id: suggestionsListboxId, - ref: this.autocompleteRef, - role: 'listbox' - }; - - var buildSuggestionItemProps = function buildSuggestionItemProps(suggestion, index) { - return { - role: 'option', - tabIndex: '-1', - id: "".concat(suggestionOptionIdPrefix, "-").concat(index), - ref: _this5.bindSuggestionNode(index), - 'aria-selected': index === selectedSuggestion - }; - }; - /* eslint-disable jsx-a11y/no-autofocus */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: label, - id: id, - className: classnames_default()('block-editor-url-input', className, { - 'is-full-width': isFullWidth, - 'has-border': hasBorder - }) - }, Object(external_this_wp_element_["createElement"])("input", { - autoFocus: autoFocus, - type: "text", - "aria-label": Object(external_this_wp_i18n_["__"])('URL'), - required: true, - value: value, - onChange: this.onChange, - onInput: stopEventPropagation, - placeholder: placeholder, - onKeyDown: this.onKeyDown, - role: "combobox", - "aria-expanded": showSuggestions, - "aria-autocomplete": "list", - "aria-owns": suggestionsListboxId, - "aria-activedescendant": selectedSuggestion !== null ? "".concat(suggestionOptionIdPrefix, "-").concat(selectedSuggestion) : undefined, - ref: this.inputRef - }), loading && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length && renderSuggestions({ - suggestions: suggestions, - selectedSuggestion: selectedSuggestion, - suggestionsListProps: suggestionsListProps, - buildSuggestionItemProps: buildSuggestionItemProps, - isLoading: loading, - handleSuggestionClick: this.handleOnClick, - isInitialSuggestions: __experimentalShowInitialSuggestions && !(value && value.length) - }), !Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - position: "bottom", - noArrow: true, - focusOnMount: false - }, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { - className: classnames_default()('block-editor-url-input__suggestions', "".concat(className, "__suggestions")) - }), suggestions.map(function (suggestion, index) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, buildSuggestionItemProps(suggestion, index), { - key: suggestion.id, - className: classnames_default()('block-editor-url-input__suggestion', { - 'is-selected': index === selectedSuggestion - }), - onClick: function onClick() { - return _this5.handleOnClick(suggestion); - } - }), suggestion.title); - })))); - /* eslint-enable jsx-a11y/no-autofocus */ - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(_ref, _ref2) { - var value = _ref.value, - disableSuggestions = _ref.disableSuggestions, - _ref$__experimentalSh = _ref.__experimentalShowInitialSuggestions, - __experimentalShowInitialSuggestions = _ref$__experimentalSh === void 0 ? false : _ref$__experimentalSh; - - var showSuggestions = _ref2.showSuggestions; - var shouldShowSuggestions = showSuggestions; - var hasValue = value && value.length; - - if (!__experimentalShowInitialSuggestions && !hasValue) { - shouldShowSuggestions = false; - } - - if (disableSuggestions === true) { - shouldShowSuggestions = false; - } - - return { - showSuggestions: shouldShowSuggestions - }; - } - }]); - - return URLInput; -}(external_this_wp_element_["Component"]); -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-input/README.md - */ - - -/* harmony default export */ var url_input = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["withSafeTimeout"], external_this_wp_components_["withSpokenMessages"], external_this_wp_compose_["withInstanceId"], Object(external_this_wp_data_["withSelect"])(function (select, props) { - // If a link suggestions handler is already provided then - // bail - if (Object(external_this_lodash_["isFunction"])(props.__experimentalFetchLinkSuggestions)) { - return; - } - - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - __experimentalFetchLinkSuggestions: getSettings().__experimentalFetchLinkSuggestions - }; -}))(url_input_URLInput)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-editor.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -function LinkEditor(_ref) { - var autocompleteRef = _ref.autocompleteRef, - className = _ref.className, - onChangeInputValue = _ref.onChangeInputValue, - value = _ref.value, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["autocompleteRef", "className", "onChangeInputValue", "value"]); - - return Object(external_this_wp_element_["createElement"])("form", Object(esm_extends["a" /* default */])({ - className: classnames_default()('block-editor-url-popover__link-editor', className) - }, props), Object(external_this_wp_element_["createElement"])(url_input, { - value: value, - onChange: onChangeInputValue, - autocompleteRef: autocompleteRef - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: keyboard_return["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Apply'), - type: "submit" - })); -} - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js -var pencil = __webpack_require__(286); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function LinkViewerUrl(_ref) { - var url = _ref.url, - urlLabel = _ref.urlLabel, - className = _ref.className; - var linkClassName = classnames_default()(className, 'block-editor-url-popover__link-viewer-url'); - - if (!url) { - return Object(external_this_wp_element_["createElement"])("span", { - className: linkClassName - }); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - className: linkClassName, - href: url - }, urlLabel || Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(url))); -} - -function LinkViewer(_ref2) { - var className = _ref2.className, - linkClassName = _ref2.linkClassName, - onEditLinkClick = _ref2.onEditLinkClick, - url = _ref2.url, - urlLabel = _ref2.urlLabel, - props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["className", "linkClassName", "onEditLinkClick", "url", "urlLabel"]); - - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - className: classnames_default()('block-editor-url-popover__link-viewer', className) - }, props), Object(external_this_wp_element_["createElement"])(LinkViewerUrl, { - url: url, - urlLabel: urlLabel, - className: linkClassName - }), onEditLinkClick && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: pencil["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Edit'), - onClick: onEditLinkClick - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-replace-flow/index.js - - - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - - - -var media_replace_flow_MediaReplaceFlow = function MediaReplaceFlow(_ref) { - var mediaURL = _ref.mediaURL, - mediaId = _ref.mediaId, - allowedTypes = _ref.allowedTypes, - accept = _ref.accept, - onSelect = _ref.onSelect, - onSelectURL = _ref.onSelectURL, - onError = _ref.onError, - _ref$name = _ref.name, - name = _ref$name === void 0 ? Object(external_this_wp_i18n_["__"])('Replace') : _ref$name; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - showURLInput = _useState2[0], - setShowURLInput = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - showEditURLInput = _useState4[0], - setShowEditURLInput = _useState4[1]; - - var _useState5 = Object(external_this_wp_element_["useState"])(mediaURL), - _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), - mediaURLValue = _useState6[0], - setMediaURLValue = _useState6[1]; - - var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').getSettings().mediaUpload; - }, []); - var editMediaButtonRef = Object(external_this_wp_element_["createRef"])(); - - var stopPropagation = function stopPropagation(event) { - event.stopPropagation(); - }; - - var stopPropagationRelevantKeys = function stopPropagationRelevantKeys(event) { - if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) { - // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. - event.stopPropagation(); - } - }; - - var selectMedia = function selectMedia(media) { - onSelect(media); - setMediaURLValue(media.url); - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('The media file has been replaced')); - }; - - var selectURL = function selectURL(newURL) { - onSelectURL(newURL); - setShowEditURLInput(false); - }; - - var uploadFiles = function uploadFiles(event, closeDropdown) { - var files = event.target.files; - - var setMedia = function setMedia(_ref2) { - var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), - media = _ref3[0]; - - selectMedia(media); - closeDropdown(); - }; - - mediaUpload({ - allowedTypes: allowedTypes, - filesList: files, - onFileChange: setMedia, - onError: onError - }); - }; - - var openOnArrowDown = function openOnArrowDown(event) { - if (event.keyCode === external_this_wp_keycodes_["DOWN"]) { - event.preventDefault(); - event.stopPropagation(); - event.target.click(); - } - }; - - var urlInputUIContent; - - if (showEditURLInput) { - urlInputUIContent = Object(external_this_wp_element_["createElement"])(LinkEditor, { - onKeyDown: stopPropagationRelevantKeys, - onKeyPress: stopPropagation, - value: mediaURLValue, - isFullWidthInput: true, - hasInputBorder: true, - onChangeInputValue: function onChangeInputValue(url) { - return setMediaURLValue(url); - }, - onSubmit: function onSubmit(event) { - event.preventDefault(); - selectURL(mediaURLValue); - editMediaButtonRef.current.focus(); - } - }); - } else { - urlInputUIContent = Object(external_this_wp_element_["createElement"])(LinkViewer, { - isFullWidth: true, - className: "block-editor-media-replace-flow__link-viewer", - url: mediaURLValue, - onEditLinkClick: function onEditLinkClick() { - return setShowEditURLInput(!showEditURLInput); - } - }); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - contentClassName: "block-editor-media-replace-flow__options", - renderToggle: function renderToggle(_ref4) { - var isOpen = _ref4.isOpen, - onToggle = _ref4.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - className: "media-replace-flow" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - ref: editMediaButtonRef, - "aria-expanded": isOpen, - onClick: onToggle, - onKeyDown: openOnArrowDown - }, name, Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-media-replace-flow__indicator" - }))); - }, - renderContent: function renderContent(_ref5) { - var onClose = _ref5.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_wp_element_["createElement"])(media_upload, { - value: mediaId, - onSelect: function onSelect(media) { - return selectMedia(media); - }, - allowedTypes: allowedTypes, - render: function render(_ref6) { - var open = _ref6.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: "admin-media", - onClick: open - }, Object(external_this_wp_i18n_["__"])('Open Media Library')); - } - }), Object(external_this_wp_element_["createElement"])(check, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - onChange: function onChange(event) { - uploadFiles(event, onClose); - }, - accept: accept, - render: function render(_ref7) { - var openFileDialog = _ref7.openFileDialog; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: upload["a" /* default */], - onClick: function onClick() { - openFileDialog(); - } - }, Object(external_this_wp_i18n_["__"])('Upload')); - } - })), onSelectURL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: library_link["a" /* default */], - onClick: function onClick() { - return setShowURLInput(!showURLInput); - }, - "aria-expanded": showURLInput - }, Object(external_this_wp_element_["createElement"])("div", null, " ", Object(external_this_wp_i18n_["__"])('Insert from URL'), " "))), showURLInput && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-media-flow__url-input" - }, urlInputUIContent)); - } - }); -}; - -/* harmony default export */ var media_replace_flow = (Object(external_this_wp_compose_["compose"])(external_this_wp_components_["withNotices"])(media_replace_flow_MediaReplaceFlow)); - -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(288); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/index.js - - - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - -var url_popover_URLPopover = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(URLPopover, _Component); - - function URLPopover() { - var _this; - - Object(classCallCheck["a" /* default */])(this, URLPopover); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLPopover).apply(this, arguments)); - _this.toggleSettingsVisibility = _this.toggleSettingsVisibility.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - isSettingsExpanded: false - }; - return _this; - } - - Object(createClass["a" /* default */])(URLPopover, [{ - key: "toggleSettingsVisibility", - value: function toggleSettingsVisibility() { - this.setState({ - isSettingsExpanded: !this.state.isSettingsExpanded - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - additionalControls = _this$props.additionalControls, - children = _this$props.children, - renderSettings = _this$props.renderSettings, - _this$props$position = _this$props.position, - position = _this$props$position === void 0 ? 'bottom center' : _this$props$position, - _this$props$focusOnMo = _this$props.focusOnMount, - focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo, - popoverProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["additionalControls", "children", "renderSettings", "position", "focusOnMount"]); - - var isSettingsExpanded = this.state.isSettingsExpanded; - var showSettings = !!renderSettings && isSettingsExpanded; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], Object(esm_extends["a" /* default */])({ - className: "block-editor-url-popover", - focusOnMount: focusOnMount, - position: position - }, popoverProps), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__input-container" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__row" - }, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-url-popover__settings-toggle", - icon: chevron_down["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Link settings'), - onClick: this.toggleSettingsVisibility, - "aria-expanded": isSettingsExpanded - })), showSettings && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__row block-editor-url-popover__settings" - }, renderSettings())), additionalControls && !showSettings && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-popover__additional-controls" - }, additionalControls)); - } - }]); - - return URLPopover; -}(external_this_wp_element_["Component"]); - -url_popover_URLPopover.LinkEditor = LinkEditor; -url_popover_URLPopover.LinkViewer = LinkViewer; -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-popover/README.md - */ - -/* harmony default export */ var url_popover = (url_popover_URLPopover); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-placeholder/index.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - - -var media_placeholder_InsertFromURLPopover = function InsertFromURLPopover(_ref) { - var src = _ref.src, - onChange = _ref.onChange, - onSubmit = _ref.onSubmit, - onClose = _ref.onClose; - return Object(external_this_wp_element_["createElement"])(url_popover, { - onClose: onClose - }, Object(external_this_wp_element_["createElement"])("form", { - className: "block-editor-media-placeholder__url-input-form", - onSubmit: onSubmit - }, Object(external_this_wp_element_["createElement"])("input", { - className: "block-editor-media-placeholder__url-input-field", - type: "url", - "aria-label": Object(external_this_wp_i18n_["__"])('URL'), - placeholder: Object(external_this_wp_i18n_["__"])('Paste or type URL'), - onChange: onChange, - value: src - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-media-placeholder__url-input-submit-button", - icon: keyboard_return["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Apply'), - type: "submit" - }))); -}; - -var media_placeholder_MediaPlaceholder = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaPlaceholder, _Component); - - function MediaPlaceholder() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MediaPlaceholder); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaPlaceholder).apply(this, arguments)); - _this.state = { - src: '', - isURLInputVisible: false - }; - _this.onChangeSrc = _this.onChangeSrc.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSubmitSrc = _this.onSubmitSrc.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUpload = _this.onUpload.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onFilesUpload = _this.onFilesUpload.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.openURLInput = _this.openURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.closeURLInput = _this.closeURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(MediaPlaceholder, [{ - key: "onlyAllowsImages", - value: function onlyAllowsImages() { - var allowedTypes = this.props.allowedTypes; - - if (!allowedTypes) { - return false; - } - - return Object(external_this_lodash_["every"])(allowedTypes, function (allowedType) { - return allowedType === 'image' || Object(external_this_lodash_["startsWith"])(allowedType, 'image/'); - }); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.setState({ - src: Object(external_this_lodash_["get"])(this.props.value, ['src'], '') - }); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (Object(external_this_lodash_["get"])(prevProps.value, ['src'], '') !== Object(external_this_lodash_["get"])(this.props.value, ['src'], '')) { - this.setState({ - src: Object(external_this_lodash_["get"])(this.props.value, ['src'], '') - }); - } - } - }, { - key: "onChangeSrc", - value: function onChangeSrc(event) { - this.setState({ - src: event.target.value - }); - } - }, { - key: "onSubmitSrc", - value: function onSubmitSrc(event) { - event.preventDefault(); - - if (this.state.src && this.props.onSelectURL) { - this.props.onSelectURL(this.state.src); - this.closeURLInput(); - } - } - }, { - key: "onUpload", - value: function onUpload(event) { - this.onFilesUpload(event.target.files); - } - }, { - key: "onFilesUpload", - value: function onFilesUpload(files) { - var _this$props = this.props, - addToGallery = _this$props.addToGallery, - allowedTypes = _this$props.allowedTypes, - mediaUpload = _this$props.mediaUpload, - multiple = _this$props.multiple, - onError = _this$props.onError, - onSelect = _this$props.onSelect, - _this$props$value = _this$props.value, - value = _this$props$value === void 0 ? [] : _this$props$value; - var setMedia; - - if (multiple) { - if (addToGallery) { - var currentValue = value; - - setMedia = function setMedia(newMedia) { - onSelect(currentValue.concat(newMedia)); - }; - } else { - setMedia = onSelect; - } - } else { - setMedia = function setMedia(_ref2) { - var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), - media = _ref3[0]; - - return onSelect(media); - }; - } - - mediaUpload({ - allowedTypes: allowedTypes, - filesList: files, - onFileChange: setMedia, - onError: onError - }); - } - }, { - key: "openURLInput", - value: function openURLInput() { - this.setState({ - isURLInputVisible: true - }); - } - }, { - key: "closeURLInput", - value: function closeURLInput() { - this.setState({ - isURLInputVisible: false - }); - } - }, { - key: "renderPlaceholder", - value: function renderPlaceholder(content, onClick) { - var _this$props2 = this.props, - _this$props2$allowedT = _this$props2.allowedTypes, - allowedTypes = _this$props2$allowedT === void 0 ? [] : _this$props2$allowedT, - className = _this$props2.className, - icon = _this$props2.icon, - isAppender = _this$props2.isAppender, - _this$props2$labels = _this$props2.labels, - labels = _this$props2$labels === void 0 ? {} : _this$props2$labels, - onDoubleClick = _this$props2.onDoubleClick, - mediaPreview = _this$props2.mediaPreview, - notices = _this$props2.notices, - onSelectURL = _this$props2.onSelectURL, - mediaUpload = _this$props2.mediaUpload, - children = _this$props2.children; - var instructions = labels.instructions; - var title = labels.title; - - if (!mediaUpload && !onSelectURL) { - instructions = Object(external_this_wp_i18n_["__"])('To edit this block, you need permission to upload media.'); - } - - if (instructions === undefined || title === undefined) { - var isOneType = 1 === allowedTypes.length; - var isAudio = isOneType && 'audio' === allowedTypes[0]; - var isImage = isOneType && 'image' === allowedTypes[0]; - var isVideo = isOneType && 'video' === allowedTypes[0]; - - if (instructions === undefined && mediaUpload) { - instructions = Object(external_this_wp_i18n_["__"])('Upload a media file or pick one from your media library.'); - - if (isAudio) { - instructions = Object(external_this_wp_i18n_["__"])('Upload an audio file, pick one from your media library, or add one with a URL.'); - } else if (isImage) { - instructions = Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.'); - } else if (isVideo) { - instructions = Object(external_this_wp_i18n_["__"])('Upload a video file, pick one from your media library, or add one with a URL.'); - } - } - - if (title === undefined) { - title = Object(external_this_wp_i18n_["__"])('Media'); - - if (isAudio) { - title = Object(external_this_wp_i18n_["__"])('Audio'); - } else if (isImage) { - title = Object(external_this_wp_i18n_["__"])('Image'); - } else if (isVideo) { - title = Object(external_this_wp_i18n_["__"])('Video'); - } - } - } - - var placeholderClassName = classnames_default()('block-editor-media-placeholder', className, { - 'is-appender': isAppender - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: icon, - label: title, - instructions: instructions, - className: placeholderClassName, - notices: notices, - onClick: onClick, - onDoubleClick: onDoubleClick, - preview: mediaPreview - }, content, children); - } - }, { - key: "renderDropZone", - value: function renderDropZone() { - var _this$props3 = this.props, - disableDropZone = _this$props3.disableDropZone, - _this$props3$onHTMLDr = _this$props3.onHTMLDrop, - onHTMLDrop = _this$props3$onHTMLDr === void 0 ? external_this_lodash_["noop"] : _this$props3$onHTMLDr; - - if (disableDropZone) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { - onFilesDrop: this.onFilesUpload, - onHTMLDrop: onHTMLDrop - }); - } - }, { - key: "renderCancelLink", - value: function renderCancelLink() { - var onCancel = this.props.onCancel; - return onCancel && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-media-placeholder__cancel-button", - title: Object(external_this_wp_i18n_["__"])('Cancel'), - isLink: true, - onClick: onCancel - }, Object(external_this_wp_i18n_["__"])('Cancel')); - } - }, { - key: "renderUrlSelectionUI", - value: function renderUrlSelectionUI() { - var onSelectURL = this.props.onSelectURL; - - if (!onSelectURL) { - return null; - } - - var _this$state = this.state, - isURLInputVisible = _this$state.isURLInputVisible, - src = _this$state.src; - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-media-placeholder__url-input-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-media-placeholder__button", - onClick: this.openURLInput, - isPressed: isURLInputVisible, - isSecondary: true - }, Object(external_this_wp_i18n_["__"])('Insert from URL')), isURLInputVisible && Object(external_this_wp_element_["createElement"])(media_placeholder_InsertFromURLPopover, { - src: src, - onChange: this.onChangeSrc, - onSubmit: this.onSubmitSrc, - onClose: this.closeURLInput - })); - } - }, { - key: "renderMediaUploadChecked", - value: function renderMediaUploadChecked() { - var _this2 = this; - - var _this$props4 = this.props, - accept = _this$props4.accept, - addToGallery = _this$props4.addToGallery, - _this$props4$allowedT = _this$props4.allowedTypes, - allowedTypes = _this$props4$allowedT === void 0 ? [] : _this$props4$allowedT, - isAppender = _this$props4.isAppender, - mediaUpload = _this$props4.mediaUpload, - _this$props4$multiple = _this$props4.multiple, - multiple = _this$props4$multiple === void 0 ? false : _this$props4$multiple, - onSelect = _this$props4.onSelect, - _this$props4$value = _this$props4.value, - value = _this$props4$value === void 0 ? {} : _this$props4$value; - var mediaLibraryButton = Object(external_this_wp_element_["createElement"])(media_upload, { - addToGallery: addToGallery, - gallery: multiple && this.onlyAllowsImages(), - multiple: multiple, - onSelect: onSelect, - allowedTypes: allowedTypes, - value: Object(external_this_lodash_["isArray"])(value) ? value.map(function (_ref4) { - var id = _ref4.id; - return id; - }) : value.id, - render: function render(_ref5) { - var open = _ref5.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - onClick: function onClick(event) { - event.stopPropagation(); - open(); - } - }, Object(external_this_wp_i18n_["__"])('Media Library')); - } - }); - - if (mediaUpload && isAppender) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - onChange: this.onUpload, - accept: accept, - multiple: multiple, - render: function render(_ref6) { - var openFileDialog = _ref6.openFileDialog; - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button') - }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, _this2.renderUrlSelectionUI(), _this2.renderCancelLink()); - return _this2.renderPlaceholder(content, openFileDialog); - } - })); - } - - if (mediaUpload) { - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - isSecondary: true, - className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'), - onChange: this.onUpload, - accept: accept, - multiple: multiple - }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, this.renderUrlSelectionUI(), this.renderCancelLink()); - return this.renderPlaceholder(content); - } - - return this.renderPlaceholder(mediaLibraryButton); - } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - disableMediaButtons = _this$props5.disableMediaButtons, - dropZoneUIOnly = _this$props5.dropZoneUIOnly; - - if (dropZoneUIOnly || disableMediaButtons) { - if (dropZoneUIOnly) { - external_this_wp_deprecated_default()('wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop', { - alternative: 'disableMediaButtons' - }); - } - - return Object(external_this_wp_element_["createElement"])(check, null, this.renderDropZone()); - } - - return Object(external_this_wp_element_["createElement"])(check, { - fallback: this.renderPlaceholder(this.renderUrlSelectionUI()) - }, this.renderMediaUploadChecked()); - } - }]); - - return MediaPlaceholder; -}(external_this_wp_element_["Component"]); -var media_placeholder_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - mediaUpload: getSettings().mediaUpload - }; -}); -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-placeholder/README.md - */ - -/* harmony default export */ var media_placeholder = (Object(external_this_wp_compose_["compose"])(media_placeholder_applyWithSelect, Object(external_this_wp_components_["withFilters"])('editor.MediaPlaceholder'))(media_placeholder_MediaPlaceholder)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/plain-text/index.js - - - - -/** - * WordPress dependencies - */ - -/** - * External dependencies - */ - - - -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/plain-text/README.md - */ - -var PlainText = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { - var _onChange = _ref.onChange, - className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "className"]); - - return Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, Object(esm_extends["a" /* default */])({ - ref: ref, - className: classnames_default()('block-editor-plain-text', className), - onChange: function onChange(event) { - return _onChange(event.target.value); - } - }, props)); -}); -/* harmony default export */ var plain_text = (PlainText); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/label.js - - -/** - * WordPress dependencies - */ - - - -function ResponsiveBlockControlLabel(_ref) { - var property = _ref.property, - viewport = _ref.viewport, - desc = _ref.desc; - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(ResponsiveBlockControlLabel); - var accessibleLabel = desc || Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_x"])('Controls the %1$s property for %2$s viewports.', 'Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size.'), property, viewport.label); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("span", { - "aria-describedby": "rbc-desc-".concat(instanceId) - }, viewport.label), Object(external_this_wp_element_["createElement"])("span", { - className: "screen-reader-text", - id: "rbc-desc-".concat(instanceId) - }, accessibleLabel)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -function ResponsiveBlockControl(props) { - var title = props.title, - property = props.property, - toggleLabel = props.toggleLabel, - onIsResponsiveChange = props.onIsResponsiveChange, - renderDefaultControl = props.renderDefaultControl, - renderResponsiveControls = props.renderResponsiveControls, - _props$isResponsive = props.isResponsive, - isResponsive = _props$isResponsive === void 0 ? false : _props$isResponsive, - _props$defaultLabel = props.defaultLabel, - defaultLabel = _props$defaultLabel === void 0 ? { - id: 'all', - label: Object(external_this_wp_i18n_["__"])('All') - /* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */ - - } : _props$defaultLabel, - _props$viewports = props.viewports, - viewports = _props$viewports === void 0 ? [{ - id: 'small', - label: Object(external_this_wp_i18n_["__"])('Small screens') - }, { - id: 'medium', - label: Object(external_this_wp_i18n_["__"])('Medium screens') - }, { - id: 'large', - label: Object(external_this_wp_i18n_["__"])('Large screens') - }] : _props$viewports; - - if (!title || !property || !renderDefaultControl) { - return null; - } - /* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */ - - - var toggleControlLabel = toggleLabel || Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Use the same %s on all screensizes.'), property); - /* translators: 'Help text for the responsive mode toggle control.' */ - - var toggleHelpText = Object(external_this_wp_i18n_["__"])('Toggle between using the same value for all screen sizes or using a unique value per screen size.'); - - var defaultControl = renderDefaultControl(Object(external_this_wp_element_["createElement"])(ResponsiveBlockControlLabel, { - property: property, - viewport: defaultLabel - }), defaultLabel); - - var defaultResponsiveControls = function defaultResponsiveControls() { - return viewports.map(function (viewport) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], { - key: viewport.id - }, renderDefaultControl(Object(external_this_wp_element_["createElement"])(ResponsiveBlockControlLabel, { - property: property, - viewport: viewport - }), viewport)); - }); - }; - - return Object(external_this_wp_element_["createElement"])("fieldset", { - className: "block-editor-responsive-block-control" - }, Object(external_this_wp_element_["createElement"])("legend", { - className: "block-editor-responsive-block-control__title" - }, title), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-responsive-block-control__inner" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - className: "block-editor-responsive-block-control__toggle", - label: toggleControlLabel, - checked: !isResponsive, - onChange: onIsResponsiveChange, - help: toggleHelpText - }), Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('block-editor-responsive-block-control__group', { - 'is-responsive': isResponsive - }) - }, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls())))); -} - -/* harmony default export */ var responsive_block_control = (ResponsiveBlockControl); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/remove-browser-shortcuts.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Set of keyboard shortcuts handled internally by RichText. - * - * @type {Array} - */ - -var HANDLED_SHORTCUTS = [external_this_wp_keycodes_["rawShortcut"].primary('z'), external_this_wp_keycodes_["rawShortcut"].primaryShift('z'), external_this_wp_keycodes_["rawShortcut"].primary('y')]; -/** - * An instance of a KeyboardShortcuts element pre-bound for the handled - * shortcuts. Since shortcuts never change, the element can be considered - * static, and can be skipped in reconciliation. - * - * @type {WPElement} - */ - -var SHORTCUTS_ELEMENT = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - shortcuts: Object(external_this_lodash_["fromPairs"])(HANDLED_SHORTCUTS.map(function (shortcut) { - return [shortcut, function (event) { - return event.preventDefault(); - }]; - })) -}); -/** - * Component which registered keyboard event handlers to prevent default - * behaviors for key combinations otherwise handled internally by RichText. - * - * @return {WPComponent} The component to be rendered. - */ - -var RemoveBrowserShortcuts = function RemoveBrowserShortcuts() { - return SHORTCUTS_ELEMENT; -}; - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(41); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/file-paste-handler.js -/** - * WordPress dependencies - */ - -function filePasteHandler(files) { - return files.filter(function (_ref) { - var type = _ref.type; - return /^image\/(?:jpe?g|png|gif)$/.test(type); - }).map(function (file) { - return ""); - }).join(''); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var POPOVER_PROPS = { - position: 'bottom left' -}; - -var format_toolbar_FormatToolbar = function FormatToolbar() { - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-format-toolbar" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, ['bold', 'italic', 'link', 'text-color'].map(function (format) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { - name: "RichText.ToolbarControls.".concat(format), - key: format - }); - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { - name: "RichText.ToolbarControls" - }, function (fills) { - return fills.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { - icon: false, - label: Object(external_this_wp_i18n_["__"])('More rich text controls'), - controls: Object(external_this_lodash_["orderBy"])(fills.map(function (_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - props = _ref2[0].props; - - return props; - }), 'title'), - popoverProps: POPOVER_PROPS - }); - }))); -}; - -/* harmony default export */ var format_toolbar = (format_toolbar_FormatToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar-container.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var format_toolbar_container_FormatToolbarContainer = function FormatToolbarContainer(_ref) { - var inline = _ref.inline, - anchorRef = _ref.anchorRef; - - if (inline) { - // Render in popover - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - noArrow: true, - position: "top center", - focusOnMount: false, - anchorRef: anchorRef, - className: "block-editor-rich-text__inline-format-toolbar" - }, Object(external_this_wp_element_["createElement"])(format_toolbar, null)); - } // Render regular toolbar - - - return Object(external_this_wp_element_["createElement"])(block_format_controls, null, Object(external_this_wp_element_["createElement"])(format_toolbar, null)); -}; - -/* harmony default export */ var format_toolbar_container = (format_toolbar_container_FormatToolbarContainer); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/shortcut.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - -var shortcut_RichTextShortcut = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(RichTextShortcut, _Component); - - function RichTextShortcut() { - var _this; - - Object(classCallCheck["a" /* default */])(this, RichTextShortcut); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RichTextShortcut).apply(this, arguments)); - _this.onUse = _this.onUse.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(RichTextShortcut, [{ - key: "onUse", - value: function onUse() { - this.props.onUse(); - return false; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - character = _this$props.character, - type = _this$props.type; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"][type](character), this.onUse) - }); - } - }]); - - return RichTextShortcut; -}(external_this_wp_element_["Component"]); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/toolbar-button.js - - - - -/** - * WordPress dependencies - */ - - -function RichTextToolbarButton(_ref) { - var name = _ref.name, - shortcutType = _ref.shortcutType, - shortcutCharacter = _ref.shortcutCharacter, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["name", "shortcutType", "shortcutCharacter"]); - - var shortcut; - var fillName = 'RichText.ToolbarControls'; - - if (name) { - fillName += ".".concat(name); - } - - if (shortcutType && shortcutCharacter) { - shortcut = external_this_wp_keycodes_["displayShortcut"][shortcutType](shortcutCharacter); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Fill"], { - name: fillName - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], Object(esm_extends["a" /* default */])({}, props, { - shortcut: shortcut - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/input-event.js - - - - - - - -/** - * WordPress dependencies - */ - -var input_event_unstableRichTextInputEvent = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(__unstableRichTextInputEvent, _Component); - - function __unstableRichTextInputEvent() { - var _this; - - Object(classCallCheck["a" /* default */])(this, __unstableRichTextInputEvent); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(__unstableRichTextInputEvent).apply(this, arguments)); - _this.onInput = _this.onInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(__unstableRichTextInputEvent, [{ - key: "onInput", - value: function onInput(event) { - if (event.inputType === this.props.inputType) { - this.props.onInput(); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - document.addEventListener('input', this.onInput, true); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - document.removeEventListener('input', this.onInput, true); - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return __unstableRichTextInputEvent; -}(external_this_wp_element_["Component"]); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/index.js - - - - - - - -function rich_text_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function rich_text_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { rich_text_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { rich_text_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - - - -var wrapperClasses = 'block-editor-rich-text'; -var rich_text_classes = 'block-editor-rich-text__editable'; -/** - * Get the multiline tag based on the multiline prop. - * - * @param {?(string|boolean)} multiline The multiline prop. - * - * @return {?string} The multiline tag. - */ - -function getMultilineTag(multiline) { - if (multiline !== true && multiline !== 'p' && multiline !== 'li') { - return; - } - - return multiline === true ? 'p' : multiline; -} - -function getAllowedFormats(_ref) { - var allowedFormats = _ref.allowedFormats, - formattingControls = _ref.formattingControls; - - if (!allowedFormats && !formattingControls) { - return; - } - - if (allowedFormats) { - return allowedFormats; - } - - external_this_wp_deprecated_default()('wp.blockEditor.RichText formattingControls prop', { - alternative: 'allowedFormats' - }); - return formattingControls.map(function (name) { - return "core/".concat(name); - }); -} - -function RichTextWrapper(_ref2, forwardedRef) { - var children = _ref2.children, - tagName = _ref2.tagName, - originalValue = _ref2.value, - originalOnChange = _ref2.onChange, - originalIsSelected = _ref2.isSelected, - multiline = _ref2.multiline, - inlineToolbar = _ref2.inlineToolbar, - wrapperClassName = _ref2.wrapperClassName, - className = _ref2.className, - autocompleters = _ref2.autocompleters, - onReplace = _ref2.onReplace, - placeholder = _ref2.placeholder, - keepPlaceholderOnFocus = _ref2.keepPlaceholderOnFocus, - allowedFormats = _ref2.allowedFormats, - formattingControls = _ref2.formattingControls, - withoutInteractiveFormatting = _ref2.withoutInteractiveFormatting, - onRemove = _ref2.onRemove, - onMerge = _ref2.onMerge, - onSplit = _ref2.onSplit, - onSplitMiddle = _ref2.__unstableOnSplitMiddle, - identifier = _ref2.identifier, - startAttr = _ref2.start, - reversed = _ref2.reversed, - style = _ref2.style, - preserveWhiteSpace = _ref2.preserveWhiteSpace, - __unstableEmbedURLOnPaste = _ref2.__unstableEmbedURLOnPaste, - props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "className", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitMiddle", "identifier", "start", "reversed", "style", "preserveWhiteSpace", "__unstableEmbedURLOnPaste"]); - - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(RichTextWrapper); - identifier = identifier || instanceId; - var fallbackRef = Object(external_this_wp_element_["useRef"])(); - var ref = forwardedRef || fallbackRef; - - var _useBlockEditContext = useBlockEditContext(), - clientId = _useBlockEditContext.clientId, - onCaretVerticalPositionChange = _useBlockEditContext.onCaretVerticalPositionChange, - blockIsSelected = _useBlockEditContext.isSelected; - - var selector = function selector(select) { - var _select = select('core/block-editor'), - isCaretWithinFormattedText = _select.isCaretWithinFormattedText, - getSelectionStart = _select.getSelectionStart, - getSelectionEnd = _select.getSelectionEnd, - getSettings = _select.getSettings, - didAutomaticChange = _select.didAutomaticChange, - __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks, - isMultiSelecting = _select.isMultiSelecting, - hasMultiSelection = _select.hasMultiSelection; - - var selectionStart = getSelectionStart(); - var selectionEnd = getSelectionEnd(); - - var _getSettings = getSettings(), - __experimentalCanUserUseUnfilteredHTML = _getSettings.__experimentalCanUserUseUnfilteredHTML, - undo = _getSettings.__experimentalUndo; - - var isSelected; - - if (originalIsSelected === undefined) { - isSelected = selectionStart.clientId === clientId && selectionStart.attributeKey === identifier; - } else if (originalIsSelected) { - isSelected = selectionStart.clientId === clientId; - } - - var extraProps = {}; - - if (external_this_wp_element_["Platform"].OS === 'native') { - // If the block of this RichText is unmodified then it's a candidate for replacing when adding a new block. - // In order to fix https://github.com/wordpress-mobile/gutenberg-mobile/issues/1126, let's blur on unmount in that case. - // This apparently assumes functionality the BlockHlder actually - var block = clientId && __unstableGetBlockWithoutInnerBlocks(clientId); - - var _shouldBlurOnUnmount = block && isSelected && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(block); - - extraProps = { - shouldBlurOnUnmount: _shouldBlurOnUnmount - }; - } - - return rich_text_objectSpread({ - canUserUseUnfilteredHTML: __experimentalCanUserUseUnfilteredHTML, - isCaretWithinFormattedText: isCaretWithinFormattedText(), - selectionStart: isSelected ? selectionStart.offset : undefined, - selectionEnd: isSelected ? selectionEnd.offset : undefined, - isSelected: isSelected, - didAutomaticChange: didAutomaticChange(), - disabled: isMultiSelecting() || hasMultiSelection(), - undo: undo - }, extraProps); - }; // This selector must run on every render so the right selection state is - // retreived from the store on merge. - // To do: fix this somehow. - - - var _useSelect = Object(external_this_wp_data_["useSelect"])(selector), - canUserUseUnfilteredHTML = _useSelect.canUserUseUnfilteredHTML, - isCaretWithinFormattedText = _useSelect.isCaretWithinFormattedText, - selectionStart = _useSelect.selectionStart, - selectionEnd = _useSelect.selectionEnd, - isSelected = _useSelect.isSelected, - didAutomaticChange = _useSelect.didAutomaticChange, - disabled = _useSelect.disabled, - undo = _useSelect.undo, - shouldBlurOnUnmount = _useSelect.shouldBlurOnUnmount; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - __unstableMarkLastChangeAsPersistent = _useDispatch.__unstableMarkLastChangeAsPersistent, - enterFormattedText = _useDispatch.enterFormattedText, - exitFormattedText = _useDispatch.exitFormattedText, - selectionChange = _useDispatch.selectionChange, - __unstableMarkAutomaticChange = _useDispatch.__unstableMarkAutomaticChange; - - var multilineTag = getMultilineTag(multiline); - var adjustedAllowedFormats = getAllowedFormats({ - allowedFormats: allowedFormats, - formattingControls: formattingControls - }); - var hasFormats = !adjustedAllowedFormats || adjustedAllowedFormats.length > 0; - var adjustedValue = originalValue; - var adjustedOnChange = originalOnChange; // Handle deprecated format. - - if (Array.isArray(originalValue)) { - adjustedValue = external_this_wp_blocks_["children"].toHTML(originalValue); - - adjustedOnChange = function adjustedOnChange(newValue) { - return originalOnChange(external_this_wp_blocks_["children"].fromDOM(Object(external_this_wp_richText_["__unstableCreateElement"])(document, newValue).childNodes)); - }; - } - - var onSelectionChange = Object(external_this_wp_element_["useCallback"])(function (start, end) { - selectionChange(clientId, identifier, start, end); - }, [clientId, identifier]); - var onDelete = Object(external_this_wp_element_["useCallback"])(function (_ref3) { - var value = _ref3.value, - isReverse = _ref3.isReverse; - - if (onMerge) { - onMerge(!isReverse); - } // Only handle remove on Backspace. This serves dual-purpose of being - // an intentional user interaction distinguishing between Backspace and - // Delete to remove the empty field, but also to avoid merge & remove - // causing destruction of two fields (merge, then removed merged). - - - if (onRemove && Object(external_this_wp_richText_["isEmpty"])(value) && isReverse) { - onRemove(!isReverse); - } - }, [onMerge, onRemove]); - /** - * Signals to the RichText owner that the block can be replaced with two - * blocks as a result of splitting the block by pressing enter, or with - * blocks as a result of splitting the block by pasting block content in the - * instance. - * - * @param {Object} record The rich text value to split. - * @param {Array} pastedBlocks The pasted blocks to insert, if any. - */ - - var splitValue = Object(external_this_wp_element_["useCallback"])(function (record) { - var pastedBlocks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - - if (!onReplace || !onSplit) { - return; - } - - var blocks = []; - - var _split = Object(external_this_wp_richText_["split"])(record), - _split2 = Object(slicedToArray["a" /* default */])(_split, 2), - before = _split2[0], - after = _split2[1]; - - var hasPastedBlocks = pastedBlocks.length > 0; // Create a block with the content before the caret if there's no pasted - // blocks, or if there are pasted blocks and the value is not empty. - // We do not want a leading empty block on paste, but we do if split - // with e.g. the enter key. - - if (!hasPastedBlocks || !Object(external_this_wp_richText_["isEmpty"])(before)) { - blocks.push(onSplit(Object(external_this_wp_richText_["toHTMLString"])({ - value: before, - multilineTag: multilineTag - }))); - } - - if (hasPastedBlocks) { - blocks.push.apply(blocks, Object(toConsumableArray["a" /* default */])(pastedBlocks)); - } else if (onSplitMiddle) { - blocks.push(onSplitMiddle()); - } // If there's pasted blocks, append a block with the content after the - // caret. Otherwise, do append and empty block if there is no - // `onSplitMiddle` prop, but if there is and the content is empty, the - // middle block is enough to set focus in. - - - if (hasPastedBlocks || !onSplitMiddle || !Object(external_this_wp_richText_["isEmpty"])(after)) { - blocks.push(onSplit(Object(external_this_wp_richText_["toHTMLString"])({ - value: after, - multilineTag: multilineTag - }))); - } // If there are pasted blocks, set the selection to the last one. - // Otherwise, set the selection to the second block. - - - var indexToSelect = hasPastedBlocks ? blocks.length - 1 : 1; - onReplace(blocks, indexToSelect); - }, [onReplace, onSplit, multilineTag, onSplitMiddle]); - var onEnter = Object(external_this_wp_element_["useCallback"])(function (_ref4) { - var value = _ref4.value, - onChange = _ref4.onChange, - shiftKey = _ref4.shiftKey; - var canSplit = onReplace && onSplit; - - if (onReplace) { - var transforms = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref5) { - var type = _ref5.type; - return type === 'enter'; - }); - var transformation = Object(external_this_wp_blocks_["findTransform"])(transforms, function (item) { - return item.regExp.test(value.text); - }); - - if (transformation) { - onReplace([transformation.transform({ - content: value.text - })]); - - __unstableMarkAutomaticChange(); - } - } - - if (multiline) { - if (shiftKey) { - onChange(Object(external_this_wp_richText_["insert"])(value, '\n')); - } else if (canSplit && Object(external_this_wp_richText_["__unstableIsEmptyLine"])(value)) { - splitValue(value); - } else { - onChange(Object(external_this_wp_richText_["__unstableInsertLineSeparator"])(value)); - } - } else if (shiftKey || !canSplit) { - onChange(Object(external_this_wp_richText_["insert"])(value, '\n')); - } else { - splitValue(value); - } - }, [onReplace, onSplit, __unstableMarkAutomaticChange, multiline, splitValue]); - var onPaste = Object(external_this_wp_element_["useCallback"])(function (_ref6) { - var value = _ref6.value, - onChange = _ref6.onChange, - html = _ref6.html, - plainText = _ref6.plainText, - files = _ref6.files, - activeFormats = _ref6.activeFormats; - - // Only process file if no HTML is present. - // Note: a pasted file may have the URL as plain text. - if (files && files.length && !html) { - var _content = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: filePasteHandler(files), - mode: 'BLOCKS', - tagName: tagName - }); // Allows us to ask for this information when we get a report. - // eslint-disable-next-line no-console - - - window.console.log('Received items:\n\n', files); - - if (onReplace && Object(external_this_wp_richText_["isEmpty"])(value)) { - onReplace(_content); - } else { - splitValue(value, _content); - } - - return; - } - - var mode = onReplace && onSplit ? 'AUTO' : 'INLINE'; - - if (__unstableEmbedURLOnPaste && Object(external_this_wp_richText_["isEmpty"])(value) && Object(external_this_wp_url_["isURL"])(plainText.trim())) { - mode = 'BLOCKS'; - } - - var content = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: html, - plainText: plainText, - mode: mode, - tagName: tagName, - canUserUseUnfilteredHTML: canUserUseUnfilteredHTML - }); - - if (typeof content === 'string') { - var valueToInsert = Object(external_this_wp_richText_["create"])({ - html: content - }); // If there are active formats, merge them with the pasted formats. - - if (activeFormats.length) { - var index = valueToInsert.formats.length; - - while (index--) { - valueToInsert.formats[index] = [].concat(Object(toConsumableArray["a" /* default */])(activeFormats), Object(toConsumableArray["a" /* default */])(valueToInsert.formats[index] || [])); - } - } // If the content should be multiline, we should process text - // separated by a line break as separate lines. - - - if (multiline) { - valueToInsert = Object(external_this_wp_richText_["replace"])(valueToInsert, /\n+/g, external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]); - } - - onChange(Object(external_this_wp_richText_["insert"])(value, valueToInsert)); - } else if (content.length > 0) { - if (onReplace && Object(external_this_wp_richText_["isEmpty"])(value)) { - onReplace(content); - } else { - splitValue(value, content); - } - } - }, [tagName, onReplace, onSplit, splitValue, __unstableEmbedURLOnPaste, canUserUseUnfilteredHTML, multiline]); - var inputRule = Object(external_this_wp_element_["useCallback"])(function (value, valueToFormat) { - if (!onReplace) { - return; - } - - var start = value.start, - text = value.text; - var characterBefore = text.slice(start - 1, start); // The character right before the caret must be a plain space. - - if (characterBefore !== ' ') { - return; - } - - var trimmedTextBefore = text.slice(0, start).trim(); - var prefixTransforms = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref7) { - var type = _ref7.type; - return type === 'prefix'; - }); - var transformation = Object(external_this_wp_blocks_["findTransform"])(prefixTransforms, function (_ref8) { - var prefix = _ref8.prefix; - return trimmedTextBefore === prefix; - }); - - if (!transformation) { - return; - } - - var content = valueToFormat(Object(external_this_wp_richText_["slice"])(value, start, text.length)); - var block = transformation.transform(content); - onReplace([block]); - - __unstableMarkAutomaticChange(); - }, [onReplace, __unstableMarkAutomaticChange]); - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_richText_["__experimentalRichText"], Object(esm_extends["a" /* default */])({}, props, { - clientId: clientId, - identifier: identifier, - ref: ref, - value: adjustedValue, - onChange: adjustedOnChange, - selectionStart: selectionStart, - selectionEnd: selectionEnd, - onSelectionChange: onSelectionChange, - tagName: tagName, - className: classnames_default()(rich_text_classes, className, { - 'keep-placeholder-on-focus': keepPlaceholderOnFocus - }), - placeholder: placeholder, - allowedFormats: adjustedAllowedFormats, - withoutInteractiveFormatting: withoutInteractiveFormatting, - onEnter: onEnter, - onDelete: onDelete, - onPaste: onPaste, - __unstableIsSelected: isSelected, - __unstableInputRule: inputRule, - __unstableMultilineTag: multilineTag, - __unstableIsCaretWithinFormattedText: isCaretWithinFormattedText, - __unstableOnEnterFormattedText: enterFormattedText, - __unstableOnExitFormattedText: exitFormattedText, - __unstableOnCreateUndoLevel: __unstableMarkLastChangeAsPersistent, - __unstableMarkAutomaticChange: __unstableMarkAutomaticChange, - __unstableDidAutomaticChange: didAutomaticChange, - __unstableUndo: undo, - style: style, - preserveWhiteSpace: preserveWhiteSpace, - disabled: disabled, - start: startAttr, - reversed: reversed // Native props. - , - onCaretVerticalPositionChange: onCaretVerticalPositionChange, - blockIsSelected: originalIsSelected !== undefined ? originalIsSelected : blockIsSelected, - shouldBlurOnUnmount: shouldBlurOnUnmount - }), function (_ref9) { - var nestedIsSelected = _ref9.isSelected, - value = _ref9.value, - onChange = _ref9.onChange, - onFocus = _ref9.onFocus, - Editable = _ref9.Editable; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children && children({ - value: value, - onChange: onChange, - onFocus: onFocus - }), nestedIsSelected && hasFormats && Object(external_this_wp_element_["createElement"])(format_toolbar_container, { - inline: inlineToolbar, - anchorRef: ref.current - }), nestedIsSelected && Object(external_this_wp_element_["createElement"])(RemoveBrowserShortcuts, null), Object(external_this_wp_element_["createElement"])(autocomplete, { - onReplace: onReplace, - completers: autocompleters, - record: value, - onChange: onChange, - isSelected: nestedIsSelected - }, function (_ref10) { - var listBoxId = _ref10.listBoxId, - activeId = _ref10.activeId, - onKeyDown = _ref10.onKeyDown; - return Object(external_this_wp_element_["createElement"])(Editable, { - "aria-autocomplete": listBoxId ? 'list' : undefined, - "aria-owns": listBoxId, - "aria-activedescendant": activeId, - start: startAttr, - reversed: reversed, - onKeyDown: onKeyDown - }); - })); - }); - - if (!wrapperClassName) { - return content; - } - - external_this_wp_deprecated_default()('wp.blockEditor.RichText wrapperClassName prop', { - alternative: 'className prop or create your own wrapper div' - }); - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()(wrapperClasses, wrapperClassName) - }, content); -} - -var ForwardedRichTextContainer = Object(external_this_wp_element_["forwardRef"])(RichTextWrapper); - -ForwardedRichTextContainer.Content = function (_ref11) { - var value = _ref11.value, - Tag = _ref11.tagName, - multiline = _ref11.multiline, - props = Object(objectWithoutProperties["a" /* default */])(_ref11, ["value", "tagName", "multiline"]); - - // Handle deprecated `children` and `node` sources. - if (Array.isArray(value)) { - value = external_this_wp_blocks_["children"].toHTML(value); - } - - var MultilineTag = getMultilineTag(multiline); - - if (!value && MultilineTag) { - value = "<".concat(MultilineTag, ">"); - } - - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, value); - - if (Tag) { - return Object(external_this_wp_element_["createElement"])(Tag, Object(external_this_lodash_["omit"])(props, ['format']), content); - } - - return content; -}; - -ForwardedRichTextContainer.isEmpty = function (value) { - return !value || value.length === 0; -}; - -ForwardedRichTextContainer.Content.defaultProps = { - format: 'string', - value: '' -}; -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/rich-text/README.md - */ - -/* harmony default export */ var rich_text = (ForwardedRichTextContainer); - - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/tool-selector/index.js - - -/** - * WordPress dependencies - */ - - - - -var editIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - width: "20", - height: "20", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z" -})); -var selectIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - width: "20", - height: "20", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M6.5 1v21.5l6-6.5H21L6.5 1zm5.1 13l-3.1 3.4V5.9l7.8 8.1h-4.7z" -})); - -function ToolSelector() { - var isNavigationTool = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').isNavigationMode(); - }, []); - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - setNavigationMode = _useDispatch.setNavigationMode; - - var isMediumViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium'); - - if (!isMediumViewport) { - return null; - } - - var onSwitchMode = function onSwitchMode(mode) { - setNavigationMode(mode === 'edit' ? false : true); - }; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - renderToggle: function renderToggle(_ref) { - var isOpen = _ref.isOpen, - onToggle = _ref.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: isNavigationTool ? selectIcon : editIcon, - "aria-expanded": isOpen, - onClick: onToggle, - label: Object(external_this_wp_i18n_["__"])('Tools') - }); - }, - renderContent: function renderContent() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { - role: "menu", - "aria-label": Object(external_this_wp_i18n_["__"])('Tools') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItemsChoice"], { - value: isNavigationTool ? 'select' : 'edit', - onSelect: onSwitchMode, - choices: [{ - value: 'edit', - label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, editIcon, Object(external_this_wp_i18n_["__"])('Edit')) - }, { - value: 'select', - label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, selectIcon, Object(external_this_wp_i18n_["__"])('Select')) - }] - })), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-tool-selector__help" - }, Object(external_this_wp_i18n_["__"])('Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.'))); - } - }); -} - -/* harmony default export */ var tool_selector = (ToolSelector); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js - - -/** - * WordPress dependencies - */ - -var arrowLeft = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z" -})); -/* harmony default export */ var arrow_left = (arrowLeft); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/button.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var button_URLInputButton = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(URLInputButton, _Component); - - function URLInputButton() { - var _this; - - Object(classCallCheck["a" /* default */])(this, URLInputButton); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLInputButton).apply(this, arguments)); - _this.toggle = _this.toggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.submitLink = _this.submitLink.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - expanded: false - }; - return _this; - } - - Object(createClass["a" /* default */])(URLInputButton, [{ - key: "toggle", - value: function toggle() { - this.setState({ - expanded: !this.state.expanded - }); - } - }, { - key: "submitLink", - value: function submitLink(event) { - event.preventDefault(); - this.toggle(); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - url = _this$props.url, - onChange = _this$props.onChange; - var expanded = this.state.expanded; - var buttonLabel = url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-input__button" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: library_link["a" /* default */], - label: buttonLabel, - onClick: this.toggle, - className: "components-toolbar__control", - isPressed: !!url - }), expanded && Object(external_this_wp_element_["createElement"])("form", { - className: "block-editor-url-input__button-modal", - onSubmit: this.submitLink - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-url-input__button-modal-line" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-url-input__back", - icon: arrow_left, - label: Object(external_this_wp_i18n_["__"])('Close'), - onClick: this.toggle - }), Object(external_this_wp_element_["createElement"])(url_input, { - value: url || '', - onChange: onChange - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: keyboard_return["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Submit'), - type: "submit" - })))); - } - }]); - - return URLInputButton; -}(external_this_wp_element_["Component"]); -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-input/README.md - */ - - -/* harmony default export */ var url_input_button = (button_URLInputButton); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(120); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/image-url-input-ui.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -var LINK_DESTINATION_NONE = 'none'; -var LINK_DESTINATION_CUSTOM = 'custom'; -var LINK_DESTINATION_MEDIA = 'media'; -var LINK_DESTINATION_ATTACHMENT = 'attachment'; -var NEW_TAB_REL = ['noreferrer', 'noopener']; -var image_url_input_ui_icon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" -})); - -var image_url_input_ui_ImageURLInputUI = function ImageURLInputUI(_ref) { - var linkDestination = _ref.linkDestination, - onChangeUrl = _ref.onChangeUrl, - url = _ref.url, - _ref$mediaType = _ref.mediaType, - mediaType = _ref$mediaType === void 0 ? 'image' : _ref$mediaType, - mediaUrl = _ref.mediaUrl, - mediaLink = _ref.mediaLink, - linkTarget = _ref.linkTarget, - linkClass = _ref.linkClass, - rel = _ref.rel; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isOpen = _useState2[0], - setIsOpen = _useState2[1]; - - var openLinkUI = Object(external_this_wp_element_["useCallback"])(function () { - setIsOpen(true); - }); - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isEditingLink = _useState4[0], - setIsEditingLink = _useState4[1]; - - var _useState5 = Object(external_this_wp_element_["useState"])(null), - _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), - urlInput = _useState6[0], - setUrlInput = _useState6[1]; - - var autocompleteRef = Object(external_this_wp_element_["useRef"])(null); - - var stopPropagation = function stopPropagation(event) { - event.stopPropagation(); - }; - - var stopPropagationRelevantKeys = function stopPropagationRelevantKeys(event) { - if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) { - // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. - event.stopPropagation(); - } - }; - - var startEditLink = Object(external_this_wp_element_["useCallback"])(function () { - if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) { - setUrlInput(''); - } - - setIsEditingLink(true); - }); - var stopEditLink = Object(external_this_wp_element_["useCallback"])(function () { - setIsEditingLink(false); - }); - var closeLinkUI = Object(external_this_wp_element_["useCallback"])(function () { - setUrlInput(null); - stopEditLink(); - setIsOpen(false); - }); - - var removeNewTabRel = function removeNewTabRel(currentRel) { - var newRel = currentRel; - - if (currentRel !== undefined && !Object(external_this_lodash_["isEmpty"])(newRel)) { - if (!Object(external_this_lodash_["isEmpty"])(newRel)) { - Object(external_this_lodash_["each"])(NEW_TAB_REL, function (relVal) { - var regExp = new RegExp('\\b' + relVal + '\\b', 'gi'); - newRel = newRel.replace(regExp, ''); - }); // Only trim if NEW_TAB_REL values was replaced. - - if (newRel !== currentRel) { - newRel = newRel.trim(); - } - - if (Object(external_this_lodash_["isEmpty"])(newRel)) { - newRel = undefined; - } - } - } - - return newRel; - }; - - var getUpdatedLinkTargetSettings = function getUpdatedLinkTargetSettings(value) { - var newLinkTarget = value ? '_blank' : undefined; - var updatedRel; - - if (!newLinkTarget && !rel) { - updatedRel = undefined; - } else { - updatedRel = removeNewTabRel(rel); - } - - return { - linkTarget: newLinkTarget, - rel: updatedRel - }; - }; - - var onFocusOutside = Object(external_this_wp_element_["useCallback"])(function () { - return function (event) { - // The autocomplete suggestions list renders in a separate popover (in a portal), - // so onFocusOutside fails to detect that a click on a suggestion occurred in the - // LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and - // return to avoid the popover being closed. - var autocompleteElement = autocompleteRef.current; - - if (autocompleteElement && autocompleteElement.contains(event.target)) { - return; - } - - setIsOpen(false); - setUrlInput(null); - stopEditLink(); - }; - }); - var onSubmitLinkChange = Object(external_this_wp_element_["useCallback"])(function () { - return function (event) { - if (urlInput) { - onChangeUrl({ - href: urlInput - }); - } - - stopEditLink(); - setUrlInput(null); - event.preventDefault(); - }; - }); - var onLinkRemove = Object(external_this_wp_element_["useCallback"])(function () { - onChangeUrl({ - linkDestination: LINK_DESTINATION_NONE, - href: '' - }); - }); - - var getLinkDestinations = function getLinkDestinations() { - return [{ - linkDestination: LINK_DESTINATION_MEDIA, - title: Object(external_this_wp_i18n_["__"])('Media File'), - url: mediaType === 'image' ? mediaUrl : undefined, - icon: image_url_input_ui_icon - }, { - linkDestination: LINK_DESTINATION_ATTACHMENT, - title: Object(external_this_wp_i18n_["__"])('Attachment Page'), - url: mediaType === 'image' ? mediaLink : undefined, - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0 0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" - })) - }]; - }; - - var onSetHref = function onSetHref(value) { - var linkDestinations = getLinkDestinations(); - var linkDestinationInput; - - if (!value) { - linkDestinationInput = LINK_DESTINATION_NONE; - } else { - linkDestinationInput = (Object(external_this_lodash_["find"])(linkDestinations, function (destination) { - return destination.url === value; - }) || { - linkDestination: LINK_DESTINATION_CUSTOM - }).linkDestination; - } - - onChangeUrl({ - linkDestination: linkDestinationInput, - href: value - }); - }; - - var onSetNewTab = function onSetNewTab(value) { - var updatedLinkTarget = getUpdatedLinkTargetSettings(value); - onChangeUrl(updatedLinkTarget); - }; - - var onSetLinkRel = function onSetLinkRel(value) { - onChangeUrl({ - rel: value - }); - }; - - var onSetLinkClass = function onSetLinkClass(value) { - onChangeUrl({ - linkClass: value - }); - }; - - var advancedOptions = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Open in new tab'), - onChange: onSetNewTab, - checked: linkTarget === '_blank' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link Rel'), - value: removeNewTabRel(rel) || '', - onChange: onSetLinkRel, - onKeyPress: stopPropagation, - onKeyDown: stopPropagationRelevantKeys - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link CSS Class'), - value: linkClass || '', - onKeyPress: stopPropagation, - onKeyDown: stopPropagationRelevantKeys, - onChange: onSetLinkClass - })); - var linkEditorValue = urlInput !== null ? urlInput : url; - var urlLabel = (Object(external_this_lodash_["find"])(getLinkDestinations(), ['linkDestination', linkDestination]) || {}).title; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: library_link["a" /* default */], - className: "components-toolbar__control", - label: url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'), - "aria-expanded": isOpen, - onClick: openLinkUI - }), isOpen && Object(external_this_wp_element_["createElement"])(url_popover, { - onFocusOutside: onFocusOutside(), - onClose: closeLinkUI, - renderSettings: function renderSettings() { - return advancedOptions; - }, - additionalControls: !linkEditorValue && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_lodash_["map"])(getLinkDestinations(), function (link) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - key: link.linkDestination, - icon: link.icon, - onClick: function onClick() { - setUrlInput(null); - onSetHref(link.url); - stopEditLink(); - } - }, link.title); - })) - }, (!url || isEditingLink) && Object(external_this_wp_element_["createElement"])(url_popover.LinkEditor, { - className: "block-editor-format-toolbar__link-container-content", - value: linkEditorValue, - onChangeInputValue: setUrlInput, - onKeyDown: stopPropagationRelevantKeys, - onKeyPress: stopPropagation, - onSubmit: onSubmitLinkChange(), - autocompleteRef: autocompleteRef - }), url && !isEditingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(url_popover.LinkViewer, { - className: "block-editor-format-toolbar__link-container-content", - onKeyPress: stopPropagation, - url: url, - onEditLinkClick: startEditLink, - urlLabel: urlLabel - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: library_close["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('Remove link'), - onClick: onLinkRemove - })))); -}; - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js -/** - * WordPress dependencies - */ - - -var block_settings_menu_first_item_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('__experimentalBlockSettingsMenuFirstItem'), - __experimentalBlockSettingsMenuFirstItem = block_settings_menu_first_item_createSlotFill.Fill, - block_settings_menu_first_item_Slot = block_settings_menu_first_item_createSlotFill.Slot; - -__experimentalBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot; -/* harmony default export */ var block_settings_menu_first_item = (__experimentalBlockSettingsMenuFirstItem); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-menu-plugins-extension.js -/** - * WordPress dependencies - */ - - -var block_settings_menu_plugins_extension_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('__experimentalBlockSettingsMenuPluginsExtension'), - __experimentalBlockSettingsMenuPluginsExtension = block_settings_menu_plugins_extension_createSlotFill.Fill, - block_settings_menu_plugins_extension_Slot = block_settings_menu_plugins_extension_createSlotFill.Slot; - -__experimentalBlockSettingsMenuPluginsExtension.Slot = block_settings_menu_plugins_extension_Slot; -/* harmony default export */ var block_settings_menu_plugins_extension = (__experimentalBlockSettingsMenuPluginsExtension); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/button.js - - -/** - * WordPress dependencies - */ - - -var button_PickerButton = function PickerButton(props) { - var icon = props.icon, - label = props.label, - onPress = props.onPress; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - onClick: onPress - }, icon, " ", label); -}; - -/* harmony default export */ var page_template_picker_button = (button_PickerButton); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/container.js - - -/** - * Internal dependencies - */ - - -var container_Container = function Container(_ref) { - var children = _ref.children; - return Object(external_this_wp_element_["createElement"])(block_list_footer, null, children); -}; - -/* harmony default export */ var page_template_picker_container = (container_Container); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/default-templates.js - - -function default_templates_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function default_templates_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { default_templates_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { default_templates_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * External dependencies - */ - - -var defaultTemplates = [{ - name: 'About', - icon: '👋', - content: "\n\t\t\t\n\t\t\t

    Visitors will want to know who is on the other side of the page. Use this space to write about yourself, your site, your business, or anything you want. Use the testimonials below to quote others, talking about the same thing \u2013 in their own words.

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    This is sample content, included with the template to illustrate its features. Remove or replace it with your own words and media.

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    What People Say

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    The way to get started is to quit talking and begin doing.

    Walt Disney
    \n\t\t\t\n\n\t\t\t\n\t\t\t

    It is our choices, Harry, that show what we truly are, far more than our abilities.

    J. K. Rowling
    \n\t\t\t\n\n\t\t\t\n\t\t\t

    Don't cry because it's over, smile because it happened.

    Dr. Seuss
    \n\t\t\t\n\n\t\t\t\n\t\t\t
    \n\t\t\t\n\n\t\t\t\n\t\t\t

    Let\u2019s build something together.

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    Get in touch!

    \n\t\t\t\n\n\t\t\t\n\t\t\t
    \n\t\t\t\n\t\t" -}, { - name: 'Contact', - icon: '✉️', - content: "\n\t\t\t\n\t\t\t

    Let's talk \uD83D\uDC4B Don't hesitate to reach out with the contact information below, or send a message using the form.

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    Get in Touch

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    10 Street Road

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    City, 10100

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    USA

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    mail@example.com

    \n\t\t\t\n\n\t\t\t\n\t\t\t

    (555) 555 1234

    \n\t\t\t\n\t\t" -}]; -var parsedTemplates = memize_default()(function () { - return defaultTemplates.map(function (template) { - return default_templates_objectSpread({}, template, { - blocks: Object(external_this_wp_blocks_["parse"])(template.content) - }); - }); -}); -/* harmony default export */ var default_templates = (parsedTemplates); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/preview.js -// Placeholder, only native variant implemented yet -var Preview = function Preview() { - return null; -}; - -/* harmony default export */ var preview = (Preview); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/picker.js - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - - - -var picker_experimentalPageTemplatePicker = function __experimentalPageTemplatePicker(_ref) { - var _ref$templates = _ref.templates, - templates = _ref$templates === void 0 ? default_templates() : _ref$templates; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/editor'), - editPost = _useDispatch.editPost; - - var _useState = Object(external_this_wp_element_["useState"])(), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - templatePreview = _useState2[0], - setTemplatePreview = _useState2[1]; - - var onApply = function onApply() { - editPost({ - title: templatePreview.name, - blocks: Object(external_this_wp_blocks_["parse"])(templatePreview.content) - }); - setTemplatePreview(undefined); - }; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(page_template_picker_container, null, templates.map(function (template) { - return Object(external_this_wp_element_["createElement"])(page_template_picker_button, { - key: template.name, - icon: template.icon, - label: template.name, - onPress: function onPress() { - return setTemplatePreview(template); - } - }); - })), Object(external_this_wp_element_["createElement"])(preview, { - template: templatePreview, - onDismiss: function onDismiss() { - return setTemplatePreview(undefined); - }, - onApply: onApply - })); -}; - -/* harmony default export */ var picker = (picker_experimentalPageTemplatePicker); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/use-page-template-picker-visible.js -/** - * WordPress dependencies - */ - - - -var use_page_template_picker_visible_experimentalUsePageTemplatePickerVisible = function __experimentalUsePageTemplatePickerVisible() { - return Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/editor'), - getCurrentPostType = _select.getCurrentPostType; - - var _select2 = select('core/block-editor'), - getBlockOrder = _select2.getBlockOrder, - getBlock = _select2.getBlock, - getSettings = _select2.getSettings; - - var isPageTemplatesEnabled = getSettings().__experimentalEnablePageTemplates; - - var blocks = getBlockOrder(); - var isEmptyBlockList = blocks.length === 0; - var firstBlock = !isEmptyBlockList && getBlock(blocks[0]); - var isOnlyUnmodifiedDefault = blocks.length === 1 && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(firstBlock); - var isEmptyContent = isEmptyBlockList || isOnlyUnmodifiedDefault; - var isPage = getCurrentPostType() === 'page'; - return isPageTemplatesEnabled && isEmptyContent && isPage; - }, []); -}; - -/* harmony default export */ var use_page_template_picker_visible = (use_page_template_picker_visible_experimentalUsePageTemplatePickerVisible); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/with-page-template-picker-visible.js - - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var __experimentalWithPageTemplatePickerVisible = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return function (props) { - var showPageTemplatePicker = use_page_template_picker_visible(); - - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { - showPageTemplatePicker: showPageTemplatePicker - })); - }; -}, '__experimentalWithPageTemplatePickerVisible'); - -/* harmony default export */ var with_page_template_picker_visible = (__experimentalWithPageTemplatePickerVisible); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/page-template-picker/index.js -/** - * Internal dependencies - */ - - - - - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/skip-to-selected-block/index.js - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_ref) { - var selectedBlockClientId = _ref.selectedBlockClientId; - - var onClick = function onClick() { - var selectedBlockElement = getBlockDOMNode(selectedBlockClientId); - selectedBlockElement.focus(); - }; - - return selectedBlockClientId && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - className: "block-editor-skip-to-selected-block", - onClick: onClick - }, Object(external_this_wp_i18n_["__"])('Skip to the selected block')); -}; - -/* harmony default export */ var skip_to_selected_block = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - selectedBlockClientId: select('core/block-editor').getBlockSelectionStart() - }; -})(skip_to_selected_block_SkipToSelectedBlock)); - -// EXTERNAL MODULE: external {"this":["wp","tokenList"]} -var external_this_wp_tokenList_ = __webpack_require__(184); -var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js - - - - -function block_styles_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function block_styles_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_styles_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_styles_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -/** - * Returns the active style from the given className. - * - * @param {Array} styles Block style variations. - * @param {string} className Class name - * - * @return {Object?} The active style. - */ - -function getActiveStyle(styles, className) { - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = new external_this_wp_tokenList_default.a(className).values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var style = _step.value; - - if (style.indexOf('is-style-') === -1) { - continue; - } - - var potentialStyleName = style.substring(9); - var activeStyle = Object(external_this_lodash_["find"])(styles, { - name: potentialStyleName - }); - - if (activeStyle) { - return activeStyle; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - return Object(external_this_lodash_["find"])(styles, 'isDefault'); -} -/** - * Replaces the active style in the block's className. - * - * @param {string} className Class name. - * @param {Object?} activeStyle The replaced style. - * @param {Object} newStyle The replacing style. - * - * @return {string} The updated className. - */ - -function replaceActiveStyle(className, activeStyle, newStyle) { - var list = new external_this_wp_tokenList_default.a(className); - - if (activeStyle) { - list.remove('is-style-' + activeStyle.name); - } - - list.add('is-style-' + newStyle.name); - return list.value; -} - -function BlockStyles(_ref) { - var styles = _ref.styles, - className = _ref.className, - onChangeClassName = _ref.onChangeClassName, - type = _ref.type, - block = _ref.block, - _ref$onSwitch = _ref.onSwitch, - onSwitch = _ref$onSwitch === void 0 ? external_this_lodash_["noop"] : _ref$onSwitch, - _ref$onHoverClassName = _ref.onHoverClassName, - onHoverClassName = _ref$onHoverClassName === void 0 ? external_this_lodash_["noop"] : _ref$onHoverClassName; - - if (!styles || styles.length === 0) { - return null; - } - - if (!type.styles && !Object(external_this_lodash_["find"])(styles, 'isDefault')) { - styles = [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }].concat(Object(toConsumableArray["a" /* default */])(styles)); - } - - var activeStyle = getActiveStyle(styles, className); - - function updateClassName(style) { - var updatedClassName = replaceActiveStyle(className, activeStyle, style); - onChangeClassName(updatedClassName); - onHoverClassName(null); - onSwitch(); - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-styles" - }, styles.map(function (style) { - var styleClassName = replaceActiveStyle(className, activeStyle, style); - return Object(external_this_wp_element_["createElement"])("div", { - key: style.name, - className: classnames_default()('block-editor-block-styles__item', { - 'is-active': activeStyle === style - }), - onClick: function onClick() { - return updateClassName(style); - }, - onKeyDown: function onKeyDown(event) { - if (external_this_wp_keycodes_["ENTER"] === event.keyCode || external_this_wp_keycodes_["SPACE"] === event.keyCode) { - event.preventDefault(); - updateClassName(style); - } - }, - onMouseEnter: function onMouseEnter() { - return onHoverClassName(styleClassName); - }, - onMouseLeave: function onMouseLeave() { - return onHoverClassName(null); - }, - role: "button", - tabIndex: "0", - "aria-label": style.label || style.name - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-styles__item-preview" - }, Object(external_this_wp_element_["createElement"])(block_preview, { - viewportWidth: 500, - blocks: type.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(block.name, { - attributes: block_styles_objectSpread({}, type.example.attributes, { - className: styleClassName - }), - innerBlocks: type.example.innerBlocks - }) : Object(external_this_wp_blocks_["cloneBlock"])(block, { - className: styleClassName - }) - })), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-styles__item-label" - }, style.label || style.name)); - })); -} - -/* harmony default export */ var block_styles = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock; - - var _select2 = select('core/blocks'), - getBlockStyles = _select2.getBlockStyles; - - var block = getBlock(clientId); - var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); - return { - block: block, - className: block.attributes.className || '', - styles: getBlockStyles(block.name), - type: blockType - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var clientId = _ref3.clientId; - return { - onChangeClassName: function onChangeClassName(newClassName) { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - className: newClassName - }); - } - }; -})])(BlockStyles)); - -// EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(128); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -function MultiSelectionInspector(_ref) { - var blocks = _ref.blocks; - var words = Object(external_this_wp_wordcount_["count"])(Object(external_this_wp_blocks_["serialize"])(blocks), 'words'); - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-multi-selection-inspector__card" - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" - })), - showColors: true - }), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-multi-selection-inspector__card-content" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-multi-selection-inspector__card-title" - }, - /* translators: %d: number of blocks */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d block', '%d blocks', blocks.length), blocks.length)), Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-multi-selection-inspector__card-description" - }, - /* translators: %d: number of words */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d word', '%d words', words), words)))); -} - -/* harmony default export */ var multi_selection_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getMultiSelectedBlocks = _select.getMultiSelectedBlocks; - - return { - blocks: getMultiSelectedBlocks() - }; -})(MultiSelectionInspector)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-style-picker/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function DefaultStylePicker(_ref) { - var blockName = _ref.blockName; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - var preferredStyleVariations = settings.__experimentalPreferredStyleVariations; - return { - preferredStyle: Object(external_this_lodash_["get"])(preferredStyleVariations, ['value', blockName]), - onUpdatePreferredStyleVariations: Object(external_this_lodash_["get"])(preferredStyleVariations, ['onChange'], null), - styles: select('core/blocks').getBlockStyles(blockName) - }; - }, [blockName]), - preferredStyle = _useSelect.preferredStyle, - onUpdatePreferredStyleVariations = _useSelect.onUpdatePreferredStyleVariations, - styles = _useSelect.styles; - - var selectOptions = Object(external_this_wp_element_["useMemo"])(function () { - return [{ - label: Object(external_this_wp_i18n_["__"])('Not set'), - value: '' - }].concat(Object(toConsumableArray["a" /* default */])(styles.map(function (_ref2) { - var label = _ref2.label, - name = _ref2.name; - return { - label: label, - value: name - }; - }))); - }, [styles]); - var selectOnChange = Object(external_this_wp_element_["useCallback"])(function (blockStyle) { - onUpdatePreferredStyleVariations(blockName, blockStyle); - }, [blockName, onUpdatePreferredStyleVariations]); - return onUpdatePreferredStyleVariations && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - options: selectOptions, - value: preferredStyle || '', - label: Object(external_this_wp_i18n_["__"])('Default Style'), - onChange: selectOnChange - }); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-inspector/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - - - - - -var block_inspector_BlockInspector = function BlockInspector(_ref) { - var blockType = _ref.blockType, - count = _ref.count, - hasBlockStyles = _ref.hasBlockStyles, - selectedBlockClientId = _ref.selectedBlockClientId, - selectedBlockName = _ref.selectedBlockName, - _ref$showNoBlockSelec = _ref.showNoBlockSelectedMessage, - showNoBlockSelectedMessage = _ref$showNoBlockSelec === void 0 ? true : _ref$showNoBlockSelec; - var slot = Object(external_this_wp_components_["__experimentalUseSlot"])(inspector_advanced_controls.slotName); - var hasFills = Boolean(slot.fills && slot.fills.length); - - if (count > 1) { - return Object(external_this_wp_element_["createElement"])(multi_selection_inspector, null); - } - - var isSelectedBlockUnregistered = selectedBlockName === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); - /* - * If the selected block is of an unregistered type, avoid showing it as an actual selection - * because we want the user to focus on the unregistered block warning, not block settings. - */ - - if (!blockType || !selectedBlockClientId || isSelectedBlockUnregistered) { - if (showNoBlockSelectedMessage) { - return Object(external_this_wp_element_["createElement"])("span", { - className: "block-editor-block-inspector__no-blocks" - }, Object(external_this_wp_i18n_["__"])('No block selected.')); - } - - return null; - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-inspector" - }, Object(external_this_wp_element_["createElement"])(block_card, { - blockType: blockType - }), hasBlockStyles && Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Styles'), - initialOpen: false - }, Object(external_this_wp_element_["createElement"])(block_styles, { - clientId: selectedBlockClientId - }), Object(external_this_wp_element_["createElement"])(DefaultStylePicker, { - blockName: blockType.name - }))), Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, { - bubblesVirtually: true - }), Object(external_this_wp_element_["createElement"])("div", null, hasFills && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - className: "block-editor-block-inspector__advanced", - title: Object(external_this_wp_i18n_["__"])('Advanced'), - initialOpen: false - }, Object(external_this_wp_element_["createElement"])(inspector_advanced_controls.Slot, { - bubblesVirtually: true - }))), Object(external_this_wp_element_["createElement"])(skip_to_selected_block, { - key: "back" - })); -}; - -/* harmony default export */ var block_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getSelectedBlockCount = _select.getSelectedBlockCount, - getBlockName = _select.getBlockName; - - var _select2 = select('core/blocks'), - getBlockStyles = _select2.getBlockStyles; - - var selectedBlockClientId = getSelectedBlockClientId(); - var selectedBlockName = selectedBlockClientId && getBlockName(selectedBlockClientId); - var blockType = selectedBlockClientId && Object(external_this_wp_blocks_["getBlockType"])(selectedBlockName); - var blockStyles = selectedBlockClientId && getBlockStyles(selectedBlockName); - return { - count: getSelectedBlockCount(), - hasBlockStyles: blockStyles && blockStyles.length > 0, - selectedBlockName: selectedBlockName, - selectedBlockClientId: selectedBlockClientId, - blockType: blockType - }; -})(block_inspector_BlockInspector)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js -/** - * WordPress dependencies - */ - -/** - * Return a label for the block movement controls depending on block position. - * - * @param {number} selectedCount Number of blocks selected. - * @param {string} type Block type - in the case of a single block, should - * define its 'type'. I.e. 'Text', 'Heading', 'Image' etc. - * @param {number} firstIndex The index (position - 1) of the first block selected. - * @param {boolean} isFirst This is the first block. - * @param {boolean} isLast This is the last block. - * @param {number} dir Direction of movement (> 0 is considered to be going - * down, < 0 is up). - * @param {string} orientation The orientation of the block movers, vertical or - * horizontal. - * @param {boolean} isRTL True if current writing system is right to left. - * - * @return {string} Label for the block movement controls. - */ - -function getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir, orientation, isRTL) { - var position = firstIndex + 1; - - var getMovementDirection = function getMovementDirection(moveDirection) { - if (moveDirection === 'up') { - if (orientation === 'horizontal') { - return isRTL ? 'right' : 'left'; - } - - return 'up'; - } else if (moveDirection === 'down') { - if (orientation === 'horizontal') { - return isRTL ? 'left' : 'right'; - } - - return 'down'; - } - - return null; - }; - - if (selectedCount > 1) { - return getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir); - } - - if (isFirst && isLast) { - // translators: %s: Type of block (i.e. Text, Image etc) - return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is the only block, and cannot be moved'), type); - } - - if (dir > 0 && !isLast) { - // moving down - var movementDirection = getMovementDirection('down'); - - if (movementDirection === 'down') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d down to position %3$d'), type, position, position + 1); - } - - if (movementDirection === 'left') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d left to position %3$d'), type, position, position + 1); - } - - if (movementDirection === 'right') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d right to position %3$d'), type, position, position + 1); - } - } - - if (dir > 0 && isLast) { - // moving down, and is the last item - var _movementDirection = getMovementDirection('down'); - - if (_movementDirection === 'down') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) - Object(external_this_wp_i18n_["__"])('Block %1$s is at the end of the content and can’t be moved down'), type); - } - - if (_movementDirection === 'left') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) - Object(external_this_wp_i18n_["__"])('Block %1$s is at the end of the content and can’t be moved left'), type); - } - - if (_movementDirection === 'right') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) - Object(external_this_wp_i18n_["__"])('Block %1$s is at the end of the content and can’t be moved right'), type); - } - } - - if (dir < 0 && !isFirst) { - // moving up - var _movementDirection2 = getMovementDirection('up'); - - if (_movementDirection2 === 'up') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d up to position %3$d'), type, position, position - 1); - } - - if (_movementDirection2 === 'left') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d left to position %3$d'), type, position, position - 1); - } - - if (_movementDirection2 === 'right') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d right to position %3$d'), type, position, position - 1); - } - } - - if (dir < 0 && isFirst) { - // moving up, and is the first item - var _movementDirection3 = getMovementDirection('up'); - - if (_movementDirection3 === 'up') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) - Object(external_this_wp_i18n_["__"])('Block %1$s is at the beginning of the content and can’t be moved up'), type); - } - - if (_movementDirection3 === 'left') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) - Object(external_this_wp_i18n_["__"])('Block %1$s is at the beginning of the content and can’t be moved left'), type); - } - - if (_movementDirection3 === 'right') { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) - Object(external_this_wp_i18n_["__"])('Block %1$s is at the beginning of the content and can’t be moved right'), type); - } - } -} -/** - * Return a label for the block movement controls depending on block position. - * - * @param {number} selectedCount Number of blocks selected. - * @param {number} firstIndex The index (position - 1) of the first block selected. - * @param {boolean} isFirst This is the first block. - * @param {boolean} isLast This is the last block. - * @param {number} dir Direction of movement (> 0 is considered to be going - * down, < 0 is up). - * - * @return {string} Label for the block movement controls. - */ - -function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir) { - var position = firstIndex + 1; - - if (dir < 0 && isFirst) { - return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved up as they are already at the top'); - } - - if (dir > 0 && isLast) { - return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved down as they are already at the bottom'); - } - - if (dir < 0 && !isFirst) { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks - Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d up by one place', 'Move %1$d blocks from position %2$d up by one place', selectedCount), selectedCount, position); - } - - if (dir > 0 && !isLast) { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks - Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d down by one place', 'Move %1$d blocks from position %2$d down by one place', selectedCount), selectedCount, position); - } -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/icons.js - - -/** - * WordPress dependencies - */ - -var leftArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - viewBox: "0 0 18 18", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4.5 9l5.6-5.7 1.4 1.5L7.3 9l4.2 4.2-1.4 1.5L4.5 9z" -})); -var rightArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - viewBox: "0 0 18 18", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13.5 9L7.9 3.3 6.5 4.8 10.7 9l-4.2 4.2 1.4 1.5L13.5 9z" -})); -var dragHandle = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 18 18" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z" -})); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(289); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var block_draggable_BlockDraggable = function BlockDraggable(_ref) { - var children = _ref.children, - clientIds = _ref.clientIds; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockIndex = _select.getBlockIndex, - getBlockRootClientId = _select.getBlockRootClientId, - getTemplateLock = _select.getTemplateLock; - - var normalizedClientIds = Object(external_this_lodash_["castArray"])(clientIds); - var rootClientId = normalizedClientIds.length === 1 ? getBlockRootClientId(normalizedClientIds[0]) : null; - var templateLock = rootClientId ? getTemplateLock(rootClientId) : null; - return { - index: getBlockIndex(normalizedClientIds[0], rootClientId), - srcRootClientId: rootClientId, - isDraggable: normalizedClientIds.length === 1 && 'all' !== templateLock - }; - }, [clientIds]), - srcRootClientId = _useSelect.srcRootClientId, - index = _useSelect.index, - isDraggable = _useSelect.isDraggable; - - var isDragging = Object(external_this_wp_element_["useRef"])(false); - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - startDraggingBlocks = _useDispatch.startDraggingBlocks, - stopDraggingBlocks = _useDispatch.stopDraggingBlocks; // Stop dragging blocks if the block draggable is unmounted - - - Object(external_this_wp_element_["useEffect"])(function () { - return function () { - if (isDragging.current) { - stopDraggingBlocks(); - } - }; - }, []); - - if (!isDraggable) { - return null; - } - - var normalizedClientIds = Object(external_this_lodash_["castArray"])(clientIds); - var blockElementId = "block-".concat(normalizedClientIds[0]); - var transferData = { - type: 'block', - srcIndex: index, - srcClientId: normalizedClientIds[0], - srcRootClientId: srcRootClientId - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Draggable"], { - elementId: blockElementId, - transferData: transferData, - onDragStart: function onDragStart() { - startDraggingBlocks(); - isDragging.current = true; - }, - onDragEnd: function onDragEnd() { - stopDraggingBlocks(); - isDragging.current = false; - } - }, function (_ref2) { - var onDraggableStart = _ref2.onDraggableStart, - onDraggableEnd = _ref2.onDraggableEnd; - return children({ - onDraggableStart: onDraggableStart, - onDraggableEnd: onDraggableEnd - }); - }); -}; - -/* harmony default export */ var block_draggable = (block_draggable_BlockDraggable); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - - - -var block_mover_BlockMover = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockMover, _Component); - - function BlockMover() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockMover); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockMover).apply(this, arguments)); - _this.state = { - isFocused: false - }; - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(BlockMover, [{ - key: "onFocus", - value: function onFocus() { - this.setState({ - isFocused: true - }); - } - }, { - key: "onBlur", - value: function onBlur() { - this.setState({ - isFocused: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - onMoveUp = _this$props.onMoveUp, - onMoveDown = _this$props.onMoveDown, - orientation = _this$props.__experimentalOrientation, - isRTL = _this$props.isRTL, - isFirst = _this$props.isFirst, - isLast = _this$props.isLast, - clientIds = _this$props.clientIds, - blockType = _this$props.blockType, - firstIndex = _this$props.firstIndex, - isLocked = _this$props.isLocked, - instanceId = _this$props.instanceId, - isHidden = _this$props.isHidden, - rootClientId = _this$props.rootClientId, - hideDragHandle = _this$props.hideDragHandle; - var isFocused = this.state.isFocused; - var blocksCount = Object(external_this_lodash_["castArray"])(clientIds).length; - - if (isLocked || isFirst && isLast && !rootClientId) { - return null; - } - - var getArrowIcon = function getArrowIcon(moveDirection) { - if (moveDirection === 'up') { - if (orientation === 'horizontal') { - return isRTL ? rightArrow : leftArrow; - } - - return chevron_up["a" /* default */]; - } else if (moveDirection === 'down') { - if (orientation === 'horizontal') { - return isRTL ? leftArrow : rightArrow; - } - - return chevron_down["a" /* default */]; - } - - return null; - }; - - var getMovementDirectionLabel = function getMovementDirectionLabel(moveDirection) { - if (moveDirection === 'up') { - if (orientation === 'horizontal') { - return isRTL ? Object(external_this_wp_i18n_["__"])('Move right') : Object(external_this_wp_i18n_["__"])('Move left'); - } - - return Object(external_this_wp_i18n_["__"])('Move up'); - } else if (moveDirection === 'down') { - if (orientation === 'horizontal') { - return isRTL ? Object(external_this_wp_i18n_["__"])('Move left') : Object(external_this_wp_i18n_["__"])('Move right'); - } - - return Object(external_this_wp_i18n_["__"])('Move down'); - } - - return null; - }; // We emulate a disabled state because forcefully applying the `disabled` - // attribute on the button while it has focus causes the screen to change - // to an unfocused state (body as active element) without firing blur on, - // the rendering parent, leaving it unable to react to focus out. - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - className: classnames_default()('block-editor-block-mover', { - 'is-visible': isFocused || !isHidden, - 'is-horizontal': orientation === 'horizontal' - }) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-block-mover__control", - onClick: isFirst ? null : onMoveUp, - icon: getArrowIcon('up'), - label: getMovementDirectionLabel('up'), - "aria-describedby": "block-editor-block-mover__up-description-".concat(instanceId), - "aria-disabled": isFirst, - onFocus: this.onFocus, - onBlur: this.onBlur - }), !hideDragHandle && Object(external_this_wp_element_["createElement"])(block_draggable, { - clientIds: clientIds - }, function (_ref) { - var onDraggableStart = _ref.onDraggableStart, - onDraggableEnd = _ref.onDraggableEnd; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: dragHandle, - className: "block-editor-block-mover__control-drag-handle block-editor-block-mover__control", - "aria-hidden": "true" // Should not be able to tab to drag handle as this - // button can only be used with a pointer device. - , - tabIndex: "-1", - onDragStart: onDraggableStart, - onDragEnd: onDraggableEnd, - draggable: true - }); - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-block-mover__control", - onClick: isLast ? null : onMoveDown, - icon: getArrowIcon('down'), - label: getMovementDirectionLabel('down'), - "aria-describedby": "block-editor-block-mover__down-description-".concat(instanceId), - "aria-disabled": isLast, - onFocus: this.onFocus, - onBlur: this.onBlur - }), Object(external_this_wp_element_["createElement"])("span", { - id: "block-editor-block-mover__up-description-".concat(instanceId), - className: "block-editor-block-mover__description" - }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, -1, orientation, isRTL)), Object(external_this_wp_element_["createElement"])("span", { - id: "block-editor-block-mover__down-description-".concat(instanceId), - className: "block-editor-block-mover__description" - }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, 1, orientation, isRTL))); - } - }]); - - return BlockMover; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var block_mover = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientIds = _ref2.clientIds; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock, - getBlockIndex = _select.getBlockIndex, - getTemplateLock = _select.getTemplateLock, - getBlockRootClientId = _select.getBlockRootClientId, - getBlockOrder = _select.getBlockOrder; - - var normalizedClientIds = Object(external_this_lodash_["castArray"])(clientIds); - var firstClientId = Object(external_this_lodash_["first"])(normalizedClientIds); - var block = getBlock(firstClientId); - var rootClientId = getBlockRootClientId(Object(external_this_lodash_["first"])(normalizedClientIds)); - var blockOrder = getBlockOrder(rootClientId); - var firstIndex = getBlockIndex(firstClientId, rootClientId); - var lastIndex = getBlockIndex(Object(external_this_lodash_["last"])(normalizedClientIds), rootClientId); - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var _getSettings = getSettings(), - isRTL = _getSettings.isRTL; - - return { - blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, - isLocked: getTemplateLock(rootClientId) === 'all', - rootClientId: rootClientId, - firstIndex: firstIndex, - isRTL: isRTL, - isFirst: firstIndex === 0, - isLast: lastIndex === blockOrder.length - 1 - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var clientIds = _ref3.clientIds, - rootClientId = _ref3.rootClientId; - - var _dispatch = dispatch('core/block-editor'), - moveBlocksDown = _dispatch.moveBlocksDown, - moveBlocksUp = _dispatch.moveBlocksUp; - - return { - onMoveDown: Object(external_this_lodash_["partial"])(moveBlocksDown, clientIds, rootClientId), - onMoveUp: Object(external_this_lodash_["partial"])(moveBlocksUp, clientIds, rootClientId) - }; -}), external_this_wp_compose_["withInstanceId"])(block_mover_BlockMover)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-selection-clearer/index.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var block_selection_clearer_BlockSelectionClearer = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockSelectionClearer, _Component); - - function BlockSelectionClearer() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockSelectionClearer); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockSelectionClearer).apply(this, arguments)); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.clearSelectionIfFocusTarget = _this.clearSelectionIfFocusTarget.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(BlockSelectionClearer, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - /** - * Clears the selected block on focus if the container is the target of the - * focus. This assumes no other descendents have received focus until event - * has bubbled to the container. - * - * @param {FocusEvent} event Focus event. - */ - - }, { - key: "clearSelectionIfFocusTarget", - value: function clearSelectionIfFocusTarget(event) { - var _this$props = this.props, - hasSelectedBlock = _this$props.hasSelectedBlock, - hasMultiSelection = _this$props.hasMultiSelection, - clearSelectedBlock = _this$props.clearSelectedBlock; - var hasSelection = hasSelectedBlock || hasMultiSelection; - - if (event.target === this.container && hasSelection) { - clearSelectedBlock(); - } - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - tabIndex: -1, - onFocus: this.clearSelectionIfFocusTarget, - ref: this.bindContainer - }, Object(external_this_lodash_["omit"])(this.props, ['clearSelectedBlock', 'hasSelectedBlock', 'hasMultiSelection']))); - } - }]); - - return BlockSelectionClearer; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_selection_clearer = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - hasSelectedBlock = _select.hasSelectedBlock, - hasMultiSelection = _select.hasMultiSelection; - - return { - hasSelectedBlock: hasSelectedBlock(), - hasMultiSelection: hasMultiSelection() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - clearSelectedBlock = _dispatch.clearSelectedBlock; - - return { - clearSelectedBlock: clearSelectedBlock - }; -})])(block_selection_clearer_BlockSelectionClearer)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/trash.js - - -/** - * WordPress dependencies - */ - -var trash = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z" -})); -/* harmony default export */ var library_trash = (trash); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-actions/index.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function BlockActions(_ref) { - var canDuplicate = _ref.canDuplicate, - canInsertDefaultBlock = _ref.canInsertDefaultBlock, - children = _ref.children, - isLocked = _ref.isLocked, - onDuplicate = _ref.onDuplicate, - onGroup = _ref.onGroup, - onInsertAfter = _ref.onInsertAfter, - onInsertBefore = _ref.onInsertBefore, - onRemove = _ref.onRemove, - onUngroup = _ref.onUngroup; - return children({ - canDuplicate: canDuplicate, - canInsertDefaultBlock: canInsertDefaultBlock, - isLocked: isLocked, - onDuplicate: onDuplicate, - onGroup: onGroup, - onInsertAfter: onInsertAfter, - onInsertBefore: onInsertBefore, - onRemove: onRemove, - onUngroup: onUngroup - }); -} - -/* harmony default export */ var block_actions = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core/block-editor'), - canInsertBlockType = _select.canInsertBlockType, - getBlockRootClientId = _select.getBlockRootClientId, - getBlocksByClientId = _select.getBlocksByClientId, - getTemplateLock = _select.getTemplateLock; - - var _select2 = select('core/blocks'), - getDefaultBlockName = _select2.getDefaultBlockName; - - var blocks = getBlocksByClientId(props.clientIds); - var rootClientId = getBlockRootClientId(props.clientIds[0]); - var canDuplicate = Object(external_this_lodash_["every"])(blocks, function (block) { - return !!block && Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId); - }); - var canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId); - return { - blocks: blocks, - canDuplicate: canDuplicate, - canInsertDefaultBlock: canInsertDefaultBlock, - extraProps: props, - isLocked: !!getTemplateLock(rootClientId), - rootClientId: rootClientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, props, _ref2) { - var select = _ref2.select; - var clientIds = props.clientIds, - blocks = props.blocks; - - var _dispatch = dispatch('core/block-editor'), - removeBlocks = _dispatch.removeBlocks, - replaceBlocks = _dispatch.replaceBlocks, - duplicateBlocks = _dispatch.duplicateBlocks, - insertAfterBlock = _dispatch.insertAfterBlock, - insertBeforeBlock = _dispatch.insertBeforeBlock; - - return { - onDuplicate: function onDuplicate() { - return duplicateBlocks(clientIds); - }, - onRemove: function onRemove() { - removeBlocks(clientIds); - }, - onInsertBefore: function onInsertBefore() { - insertBeforeBlock(Object(external_this_lodash_["first"])(Object(external_this_lodash_["castArray"])(clientIds))); - }, - onInsertAfter: function onInsertAfter() { - insertAfterBlock(Object(external_this_lodash_["last"])(Object(external_this_lodash_["castArray"])(clientIds))); - }, - onGroup: function onGroup() { - if (!blocks.length) { - return; - } - - var _select3 = select('core/blocks'), - getGroupingBlockName = _select3.getGroupingBlockName; - - var groupingBlockName = getGroupingBlockName(); // Activate the `transform` on `core/group` which does the conversion - - var newBlocks = Object(external_this_wp_blocks_["switchToBlockType"])(blocks, groupingBlockName); - - if (!newBlocks) { - return; - } - - replaceBlocks(clientIds, newBlocks); - }, - onUngroup: function onUngroup() { - if (!blocks.length) { - return; - } - - var innerBlocks = blocks[0].innerBlocks; - - if (!innerBlocks.length) { - return; - } - - replaceBlocks(clientIds, innerBlocks); - } - }; -})])(BlockActions)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function BlockModeToggle(_ref) { - var blockType = _ref.blockType, - mode = _ref.mode, - onToggleMode = _ref.onToggleMode, - _ref$small = _ref.small, - small = _ref$small === void 0 ? false : _ref$small, - _ref$isCodeEditingEna = _ref.isCodeEditingEnabled, - isCodeEditingEnabled = _ref$isCodeEditingEna === void 0 ? true : _ref$isCodeEditingEna; - - if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'html', true) || !isCodeEditingEnabled) { - return null; - } - - var label = mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Edit as HTML') : Object(external_this_wp_i18n_["__"])('Edit visually'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: onToggleMode, - icon: "html" - }, !small && label); -} -/* harmony default export */ var block_mode_toggle = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock, - getBlockMode = _select.getBlockMode, - getSettings = _select.getSettings; - - var block = getBlock(clientId); - var isCodeEditingEnabled = getSettings().codeEditingEnabled; - return { - mode: getBlockMode(clientId), - blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, - isCodeEditingEnabled: isCodeEditingEnabled - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var _ref3$onToggle = _ref3.onToggle, - onToggle = _ref3$onToggle === void 0 ? external_this_lodash_["noop"] : _ref3$onToggle, - clientId = _ref3.clientId; - return { - onToggleMode: function onToggleMode() { - dispatch('core/block-editor').toggleBlockMode(clientId); - onToggle(); - } - }; -})])(BlockModeToggle)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-convert-button.js - - -/** - * WordPress dependencies - */ - - -function BlockConvertButton(_ref) { - var shouldRender = _ref.shouldRender, - onClick = _ref.onClick, - small = _ref.small; - - if (!shouldRender) { - return null; - } - - var label = Object(external_this_wp_i18n_["__"])('Convert to Blocks'); - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: onClick, - icon: "screenoptions" - }, !small && label); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-html-convert-button.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var block_html_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientId = _ref.clientId; - var block = select('core/block-editor').getBlock(clientId); - return { - block: block, - shouldRender: block && block.name === 'core/html' - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var block = _ref2.block; - return { - onClick: function onClick() { - return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ - HTML: Object(external_this_wp_blocks_["getBlockContent"])(block) - })); - } - }; -}))(BlockConvertButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-unknown-convert-button.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var block_unknown_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientId = _ref.clientId; - var block = select('core/block-editor').getBlock(clientId); - return { - block: block, - shouldRender: block && block.name === Object(external_this_wp_blocks_["getFreeformContentHandlerName"])() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var block = _ref2.block; - return { - onClick: function onClick() { - return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ - HTML: Object(external_this_wp_blocks_["serialize"])(block) - })); - } - }; -}))(BlockConvertButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - - - - - -var block_settings_menu_POPOVER_PROPS = { - className: 'block-editor-block-settings-menu__popover', - position: 'bottom right' -}; -function BlockSettingsMenu(_ref) { - var clientIds = _ref.clientIds; - var blockClientIds = Object(external_this_lodash_["castArray"])(clientIds); - var count = blockClientIds.length; - var firstBlockClientId = blockClientIds[0]; - var shortcuts = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/keyboard-shortcuts'), - getShortcutRepresentation = _select.getShortcutRepresentation; - - return { - duplicate: getShortcutRepresentation('core/block-editor/duplicate'), - remove: getShortcutRepresentation('core/block-editor/remove'), - insertAfter: getShortcutRepresentation('core/block-editor/insert-after'), - insertBefore: getShortcutRepresentation('core/block-editor/insert-before') - }; - }, []); - return Object(external_this_wp_element_["createElement"])(block_actions, { - clientIds: clientIds - }, function (_ref2) { - var canDuplicate = _ref2.canDuplicate, - canInsertDefaultBlock = _ref2.canInsertDefaultBlock, - isLocked = _ref2.isLocked, - onDuplicate = _ref2.onDuplicate, - onInsertAfter = _ref2.onInsertAfter, - onInsertBefore = _ref2.onInsertBefore, - onRemove = _ref2.onRemove; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { - icon: more_horizontal["a" /* default */], - label: Object(external_this_wp_i18n_["__"])('More options'), - className: "block-editor-block-settings-menu", - popoverProps: block_settings_menu_POPOVER_PROPS - }, function (_ref3) { - var onClose = _ref3.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(block_settings_menu_first_item.Slot, { - fillProps: { - onClose: onClose - } - }), count === 1 && Object(external_this_wp_element_["createElement"])(block_unknown_convert_button, { - clientId: firstBlockClientId - }), count === 1 && Object(external_this_wp_element_["createElement"])(block_html_convert_button, { - clientId: firstBlockClientId - }), canDuplicate && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: Object(external_this_lodash_["flow"])(onClose, onDuplicate), - icon: "admin-page", - shortcut: shortcuts.duplicate - }, Object(external_this_wp_i18n_["__"])('Duplicate')), canInsertDefaultBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: Object(external_this_lodash_["flow"])(onClose, onInsertBefore), - icon: "insert-before", - shortcut: shortcuts.insertBefore - }, Object(external_this_wp_i18n_["__"])('Insert Before')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: Object(external_this_lodash_["flow"])(onClose, onInsertAfter), - icon: "insert-after", - shortcut: shortcuts.insertAfter - }, Object(external_this_wp_i18n_["__"])('Insert After'))), count === 1 && Object(external_this_wp_element_["createElement"])(block_mode_toggle, { - clientId: firstBlockClientId, - onToggle: onClose - }), Object(external_this_wp_element_["createElement"])(block_settings_menu_plugins_extension.Slot, { - fillProps: { - clientIds: clientIds, - onClose: onClose - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: Object(external_this_lodash_["flow"])(onClose, onRemove), - icon: library_trash, - shortcut: shortcuts.remove - }, Object(external_this_wp_i18n_["_n"])('Remove Block', 'Remove Blocks', count)))); - })); - }); -} -/* harmony default export */ var block_settings_menu = (BlockSettingsMenu); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/index.js - - - - - - - - - -function block_switcher_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function block_switcher_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_switcher_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_switcher_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - - -var block_switcher_BlockSwitcher = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockSwitcher, _Component); - - function BlockSwitcher() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockSwitcher); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockSwitcher).apply(this, arguments)); - _this.state = { - hoveredClassName: null - }; - _this.onHoverClassName = _this.onHoverClassName.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(BlockSwitcher, [{ - key: "onHoverClassName", - value: function onHoverClassName(className) { - this.setState({ - hoveredClassName: className - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - blocks = _this$props.blocks, - onTransform = _this$props.onTransform, - inserterItems = _this$props.inserterItems, - hasBlockStyles = _this$props.hasBlockStyles; - var hoveredClassName = this.state.hoveredClassName; - - if (!blocks || !blocks.length) { - return null; - } - - var hoveredBlock = hoveredClassName ? blocks[0] : null; - var hoveredBlockType = hoveredClassName ? Object(external_this_wp_blocks_["getBlockType"])(hoveredBlock.name) : null; - var itemsByName = Object(external_this_lodash_["mapKeys"])(inserterItems, function (_ref) { - var name = _ref.name; - return name; - }); - var possibleBlockTransformations = Object(external_this_lodash_["orderBy"])(Object(external_this_lodash_["filter"])(Object(external_this_wp_blocks_["getPossibleBlockTransformations"])(blocks), function (block) { - return block && !!itemsByName[block.name]; - }), function (block) { - return itemsByName[block.name].frecency; - }, 'desc'); // When selection consists of blocks of multiple types, display an - // appropriate icon to communicate the non-uniformity. - - var isSelectionOfSameType = Object(external_this_lodash_["uniq"])(Object(external_this_lodash_["map"])(blocks, 'name')).length === 1; - var icon; - - if (isSelectionOfSameType) { - var sourceBlockName = blocks[0].name; - var blockType = Object(external_this_wp_blocks_["getBlockType"])(sourceBlockName); - icon = blockType.icon; - } else { - icon = 'layout'; - } - - if (!hasBlockStyles && !possibleBlockTransformations.length) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - disabled: true, - className: "block-editor-block-switcher__no-switcher-icon", - label: Object(external_this_wp_i18n_["__"])('Block icon'), - icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - }) - })); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - position: "bottom right", - className: "block-editor-block-switcher", - contentClassName: "block-editor-block-switcher__popover", - renderToggle: function renderToggle(_ref2) { - var onToggle = _ref2.onToggle, - isOpen = _ref2.isOpen; - - var openOnArrowDown = function openOnArrowDown(event) { - if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { - event.preventDefault(); - event.stopPropagation(); - onToggle(); - } - }; - - var label = 1 === blocks.length ? Object(external_this_wp_i18n_["__"])('Change block type or style') : Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('Change type of %d block', 'Change type of %d blocks', blocks.length), blocks.length); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "block-editor-block-switcher__toggle", - onClick: onToggle, - "aria-haspopup": "true", - "aria-expanded": isOpen, - label: label, - onKeyDown: openOnArrowDown, - showTooltip: true, - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - className: "block-editor-block-switcher__transform", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z" - }))) - })); - }, - renderContent: function renderContent(_ref3) { - var onClose = _ref3.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, (hasBlockStyles || possibleBlockTransformations.length !== 0) && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-switcher__container" - }, hasBlockStyles && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Block Styles'), - initialOpen: true - }, Object(external_this_wp_element_["createElement"])(block_styles, { - clientId: blocks[0].clientId, - onSwitch: onClose, - onHoverClassName: _this2.onHoverClassName - })), possibleBlockTransformations.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Transform To:'), - initialOpen: true - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: possibleBlockTransformations.map(function (destinationBlockType) { - return { - id: destinationBlockType.name, - icon: destinationBlockType.icon, - title: destinationBlockType.title - }; - }), - onSelect: function onSelect(item) { - onTransform(blocks, item.id); - onClose(); - } - }))), hoveredClassName !== null && Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-switcher__preview" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-switcher__preview-title" - }, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(block_preview, { - viewportWidth: 500, - blocks: hoveredBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(hoveredBlock.name, { - attributes: block_switcher_objectSpread({}, hoveredBlockType.example.attributes, { - className: hoveredClassName - }), - innerBlocks: hoveredBlockType.example.innerBlocks - }) : Object(external_this_wp_blocks_["cloneBlock"])(hoveredBlock, { - className: hoveredClassName - }) - }))); - } - }); - } - }]); - - return BlockSwitcher; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var block_switcher = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { - var clientIds = _ref4.clientIds; - - var _select = select('core/block-editor'), - getBlocksByClientId = _select.getBlocksByClientId, - getBlockRootClientId = _select.getBlockRootClientId, - getInserterItems = _select.getInserterItems; - - var _select2 = select('core/blocks'), - getBlockStyles = _select2.getBlockStyles; - - var rootClientId = getBlockRootClientId(Object(external_this_lodash_["first"])(Object(external_this_lodash_["castArray"])(clientIds))); - var blocks = getBlocksByClientId(clientIds); - var firstBlock = blocks && blocks.length === 1 ? blocks[0] : null; - var styles = firstBlock && getBlockStyles(firstBlock.name); - return { - blocks: blocks, - inserterItems: getInserterItems(rootClientId), - hasBlockStyles: styles && styles.length > 0 - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - return { - onTransform: function onTransform(blocks, name) { - dispatch('core/block-editor').replaceBlocks(ownProps.clientIds, Object(external_this_wp_blocks_["switchToBlockType"])(blocks, name)); - } - }; -}))(block_switcher_BlockSwitcher)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/multi-blocks-switcher.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -function MultiBlocksSwitcher(_ref) { - var isMultiBlockSelection = _ref.isMultiBlockSelection, - selectedBlockClientIds = _ref.selectedBlockClientIds; - - if (!isMultiBlockSelection) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(block_switcher, { - key: "switcher", - clientIds: selectedBlockClientIds - }); -} -/* harmony default export */ var multi_blocks_switcher = (Object(external_this_wp_data_["withSelect"])(function (select) { - var selectedBlockClientIds = select('core/block-editor').getMultiSelectedBlockClientIds(); - return { - isMultiBlockSelection: selectedBlockClientIds.length > 1, - selectedBlockClientIds: selectedBlockClientIds - }; -})(MultiBlocksSwitcher)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - - - - -function BlockToolbar(_ref) { - var hideDragHandle = _ref.hideDragHandle; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockMode = _select.getBlockMode, - getSelectedBlockClientIds = _select.getSelectedBlockClientIds, - isBlockValid = _select.isBlockValid, - getBlockRootClientId = _select.getBlockRootClientId, - getBlockListSettings = _select.getBlockListSettings; - - var selectedBlockClientIds = getSelectedBlockClientIds(); - var blockRootClientId = getBlockRootClientId(selectedBlockClientIds[0]); - - var _ref2 = getBlockListSettings(blockRootClientId) || {}, - __experimentalMoverDirection = _ref2.__experimentalMoverDirection, - _ref2$__experimentalU = _ref2.__experimentalUIParts, - __experimentalUIParts = _ref2$__experimentalU === void 0 ? {} : _ref2$__experimentalU; - - return { - blockClientIds: selectedBlockClientIds, - rootClientId: blockRootClientId, - isValid: selectedBlockClientIds.length === 1 ? isBlockValid(selectedBlockClientIds[0]) : null, - mode: selectedBlockClientIds.length === 1 ? getBlockMode(selectedBlockClientIds[0]) : null, - moverDirection: __experimentalMoverDirection, - hasMovers: __experimentalUIParts.hasMovers - }; - }, []), - blockClientIds = _useSelect.blockClientIds, - isValid = _useSelect.isValid, - mode = _useSelect.mode, - moverDirection = _useSelect.moverDirection, - _useSelect$hasMovers = _useSelect.hasMovers, - hasMovers = _useSelect$hasMovers === void 0 ? true : _useSelect$hasMovers; - - if (blockClientIds.length === 0) { - return null; - } - - if (blockClientIds.length > 1) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-toolbar" - }, hasMovers && Object(external_this_wp_element_["createElement"])(block_mover, { - clientIds: blockClientIds, - __experimentalOrientation: moverDirection, - hideDragHandle: hideDragHandle - }), Object(external_this_wp_element_["createElement"])(multi_blocks_switcher, null), Object(external_this_wp_element_["createElement"])(block_settings_menu, { - clientIds: blockClientIds - })); - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-editor-block-toolbar" - }, hasMovers && Object(external_this_wp_element_["createElement"])(block_mover, { - clientIds: blockClientIds, - __experimentalOrientation: moverDirection, - hideDragHandle: hideDragHandle - }), mode === 'visual' && isValid && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_switcher, { - clientIds: blockClientIds - }), Object(external_this_wp_element_["createElement"])(block_controls.Slot, { - bubblesVirtually: true, - className: "block-editor-block-toolbar__slot" - }), Object(external_this_wp_element_["createElement"])(block_format_controls.Slot, { - bubblesVirtually: true, - className: "block-editor-block-toolbar__slot" - })), Object(external_this_wp_element_["createElement"])(block_settings_menu, { - clientIds: blockClientIds - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-paste-event-data.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function getPasteEventData(_ref) { - var clipboardData = _ref.clipboardData; - var items = clipboardData.items, - files = clipboardData.files; // In Edge these properties can be null instead of undefined, so a more - // rigorous test is required over using default values. - - items = Object(external_this_lodash_["isNil"])(items) ? [] : items; - files = Object(external_this_lodash_["isNil"])(files) ? [] : files; - var plainText = ''; - var html = ''; // IE11 only supports `Text` as an argument for `getData` and will - // otherwise throw an invalid argument error, so we try the standard - // arguments first, then fallback to `Text` if they fail. - - try { - plainText = clipboardData.getData('text/plain'); - html = clipboardData.getData('text/html'); - } catch (error1) { - try { - html = clipboardData.getData('Text'); - } catch (error2) { - // Some browsers like UC Browser paste plain text by default and - // don't support clipboardData at all, so allow default - // behaviour. - return; - } - } - - files = Array.from(files); - Array.from(items).forEach(function (item) { - if (!item.getAsFile) { - return; - } - - var file = item.getAsFile(); - - if (!file) { - return; - } - - var name = file.name, - type = file.type, - size = file.size; - - if (!Object(external_this_lodash_["find"])(files, { - name: name, - type: type, - size: size - })) { - files.push(file); - } - }); - files = files.filter(function (_ref2) { - var type = _ref2.type; - return /^image\/(?:jpe?g|png|gif)$/.test(type); - }); // Only process files if no HTML is present. - // A pasted file may have the URL as plain text. - - if (files.length && !html) { - html = files.map(function (file) { - return ""); - }).join(''); - plainText = ''; - } - - return { - html: html, - plainText: plainText - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/copy-handler/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -function CopyHandler(_ref) { - var children = _ref.children, - handler = _ref.handler; - return Object(external_this_wp_element_["createElement"])("div", { - onCopy: handler, - onCut: handler, - onPaste: handler - }, children); -} - -/* harmony default export */ var copy_handler = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref2) { - var select = _ref2.select; - - var _select = select('core/block-editor'), - getBlocksByClientId = _select.getBlocksByClientId, - getSelectedBlockClientIds = _select.getSelectedBlockClientIds, - hasMultiSelection = _select.hasMultiSelection, - getSettings = _select.getSettings; - - var _dispatch = dispatch('core/block-editor'), - removeBlocks = _dispatch.removeBlocks, - replaceBlocks = _dispatch.replaceBlocks; - - var _getSettings = getSettings(), - canUserUseUnfilteredHTML = _getSettings.__experimentalCanUserUseUnfilteredHTML; - - return { - handler: function handler(event) { - var selectedBlockClientIds = getSelectedBlockClientIds(); - - if (selectedBlockClientIds.length === 0) { - return; - } // Always handle multiple selected blocks. - // Let native copy behaviour take over in input fields. - - - if (!hasMultiSelection() && Object(external_this_wp_dom_["documentHasSelection"])()) { - return; - } - - event.preventDefault(); - - if (event.type === 'copy' || event.type === 'cut') { - var blocks = getBlocksByClientId(selectedBlockClientIds); - var serialized = Object(external_this_wp_blocks_["serialize"])(blocks); - event.clipboardData.setData('text/plain', serialized); - event.clipboardData.setData('text/html', serialized); - } - - if (event.type === 'cut') { - removeBlocks(selectedBlockClientIds); - } else if (event.type === 'paste') { - var _getPasteEventData = getPasteEventData(event), - plainText = _getPasteEventData.plainText, - html = _getPasteEventData.html; - - var _blocks = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: html, - plainText: plainText, - mode: 'BLOCKS', - canUserUseUnfilteredHTML: canUserUseUnfilteredHTML - }); - - replaceBlocks(selectedBlockClientIds, _blocks); - } - } - }; -})])(CopyHandler)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/keyboard-shortcuts/index.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function KeyboardShortcuts() { - // Shortcuts Logic - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientIds = _select.getSelectedBlockClientIds, - getBlockOrder = _select.getBlockOrder; - - return { - clientIds: getSelectedBlockClientIds(), - rootBlocksClientIds: getBlockOrder() - }; - }, []), - clientIds = _useSelect.clientIds, - rootBlocksClientIds = _useSelect.rootBlocksClientIds; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - duplicateBlocks = _useDispatch.duplicateBlocks, - removeBlocks = _useDispatch.removeBlocks, - insertAfterBlock = _useDispatch.insertAfterBlock, - insertBeforeBlock = _useDispatch.insertBeforeBlock, - multiSelect = _useDispatch.multiSelect, - clearSelectedBlock = _useDispatch.clearSelectedBlock; // Prevents bookmark all Tabs shortcut in Chrome when devtools are closed. - // Prevents reposition Chrome devtools pane shortcut when devtools are open. - - - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/duplicate', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - duplicateBlocks(clientIds); - }, [clientIds, duplicateBlocks]), { - bindGlobal: true, - isDisabled: clientIds.length === 0 - }); // Does not clash with any known browser/native shortcuts, but preventDefault - // is used to prevent any obscure unknown shortcuts from triggering. - - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/remove', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - removeBlocks(clientIds); - }, [clientIds, removeBlocks]), { - bindGlobal: true, - isDisabled: clientIds.length === 0 - }); // Does not clash with any known browser/native shortcuts, but preventDefault - // is used to prevent any obscure unknown shortcuts from triggering. - - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/insert-after', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - insertAfterBlock(Object(external_this_lodash_["last"])(clientIds)); - }, [clientIds, insertAfterBlock]), { - bindGlobal: true, - isDisabled: clientIds.length === 0 - }); // Prevent 'view recently closed tabs' in Opera using preventDefault. - - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/insert-before', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - insertBeforeBlock(Object(external_this_lodash_["first"])(clientIds)); - }, [clientIds, insertBeforeBlock]), { - bindGlobal: true, - isDisabled: clientIds.length === 0 - }); - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/delete-multi-selection', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - removeBlocks(clientIds); - }, [clientIds, removeBlocks]), { - isDisabled: clientIds.length < 1 - }); - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/select-all', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - multiSelect(Object(external_this_lodash_["first"])(rootBlocksClientIds), Object(external_this_lodash_["last"])(rootBlocksClientIds)); - }, [rootBlocksClientIds, multiSelect])); - Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/unselect', Object(external_this_wp_element_["useCallback"])(function (event) { - event.preventDefault(); - clearSelectedBlock(); - window.getSelection().removeAllRanges(); - }, [clientIds, clearSelectedBlock]), { - isDisabled: clientIds.length < 2 - }); - return null; -} - -function KeyboardShortcutsRegister() { - // Registering the shortcuts - var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/keyboard-shortcuts'), - registerShortcut = _useDispatch2.registerShortcut; - - Object(external_this_wp_element_["useEffect"])(function () { - registerShortcut({ - name: 'core/block-editor/duplicate', - category: 'block', - description: Object(external_this_wp_i18n_["__"])('Duplicate the selected block(s).'), - keyCombination: { - modifier: 'primaryShift', - character: 'd' - } - }); - registerShortcut({ - name: 'core/block-editor/remove', - category: 'block', - description: Object(external_this_wp_i18n_["__"])('Remove the selected block(s).'), - keyCombination: { - modifier: 'access', - character: 'z' - } - }); - registerShortcut({ - name: 'core/block-editor/insert-before', - category: 'block', - description: Object(external_this_wp_i18n_["__"])('Insert a new block before the selected block(s).'), - keyCombination: { - modifier: 'primaryAlt', - character: 't' - } - }); - registerShortcut({ - name: 'core/block-editor/insert-after', - category: 'block', - description: Object(external_this_wp_i18n_["__"])('Insert a new block after the selected block(s).'), - keyCombination: { - modifier: 'primaryAlt', - character: 'y' - } - }); - registerShortcut({ - name: 'core/block-editor/delete-multi-selection', - category: 'block', - description: Object(external_this_wp_i18n_["__"])('Remove multiple selected blocks.'), - keyCombination: { - character: 'del' - }, - aliases: [{ - character: 'backspace' - }] - }); - registerShortcut({ - name: 'core/block-editor/select-all', - category: 'selection', - description: Object(external_this_wp_i18n_["__"])('Select all text when typing. Press again to select all blocks.'), - keyCombination: { - modifier: 'primary', - character: 'a' - } - }); - registerShortcut({ - name: 'core/block-editor/unselect', - category: 'selection', - description: Object(external_this_wp_i18n_["__"])('Clear selection.'), - keyCombination: { - character: 'escape' - } - }); - registerShortcut({ - name: 'core/block-editor/focus-toolbar', - category: 'global', - description: Object(external_this_wp_i18n_["__"])('Navigate to the nearest toolbar.'), - keyCombination: { - modifier: 'alt', - character: 'F10' - } - }); - }, [registerShortcut]); - return null; -} - -KeyboardShortcuts.Register = KeyboardShortcutsRegister; -/* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-select-scroll-into-view/index.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Scrolls the multi block selection end into view if not in view already. This - * is important to do after selection by keyboard. - */ - -function MultiSelectScrollIntoView() { - var selector = function selector(select) { - var _select = select('core/block-editor'), - getBlockSelectionEnd = _select.getBlockSelectionEnd, - hasMultiSelection = _select.hasMultiSelection, - isMultiSelecting = _select.isMultiSelecting; - - return { - selectionEnd: getBlockSelectionEnd(), - isMultiSelection: hasMultiSelection(), - isMultiSelecting: isMultiSelecting() - }; - }; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, []), - isMultiSelection = _useSelect.isMultiSelection, - selectionEnd = _useSelect.selectionEnd, - isMultiSelecting = _useSelect.isMultiSelecting; - - Object(external_this_wp_element_["useEffect"])(function () { - if (!selectionEnd || isMultiSelecting || !isMultiSelection) { - return; - } - - var extentNode = getBlockDOMNode(selectionEnd); - - if (!extentNode) { - return; - } - - var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(extentNode); // If there's no scroll container, it follows that there's no scrollbar - // and thus there's no need to try to scroll into view. - - if (!scrollContainer) { - return; - } - - lib_default()(extentNode, scrollContainer, { - onlyScrollIfNeeded: true - }); - }, [isMultiSelection, selectionEnd, isMultiSelecting]); - return null; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/observe-typing/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Set of key codes upon which typing is to be initiated on a keydown event. - * - * @type {number[]} - */ - -var KEY_DOWN_ELIGIBLE_KEY_CODES = [external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["ENTER"], external_this_wp_keycodes_["BACKSPACE"]]; -/** - * Returns true if a given keydown event can be inferred as intent to start - * typing, or false otherwise. A keydown is considered eligible if it is a - * text navigation without shift active. - * - * @param {KeyboardEvent} event Keydown event to test. - * - * @return {boolean} Whether event is eligible to start typing. - */ - -function isKeyDownEligibleForStartTyping(event) { - var keyCode = event.keyCode, - shiftKey = event.shiftKey; - return !shiftKey && Object(external_this_lodash_["includes"])(KEY_DOWN_ELIGIBLE_KEY_CODES, keyCode); -} - -function ObserveTyping(_ref) { - var children = _ref.children, - setSafeTimeout = _ref.setTimeout; - var typingContainer = Object(external_this_wp_element_["useRef"])(); - var lastMouseMove = Object(external_this_wp_element_["useRef"])(); - var isTyping = Object(external_this_wp_data_["useSelect"])(function (select) { - return select('core/block-editor').isTyping(); - }); - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - startTyping = _useDispatch.startTyping, - stopTyping = _useDispatch.stopTyping; - - Object(external_this_wp_element_["useEffect"])(function () { - toggleEventBindings(isTyping); - return function () { - return toggleEventBindings(false); - }; - }, [isTyping]); - /** - * Bind or unbind events to the document when typing has started or stopped - * respectively, or when component has become unmounted. - * - * @param {boolean} isBound Whether event bindings should be applied. - */ - - function toggleEventBindings(isBound) { - var bindFn = isBound ? 'addEventListener' : 'removeEventListener'; - document[bindFn]('selectionchange', stopTypingOnSelectionUncollapse); - document[bindFn]('mousemove', stopTypingOnMouseMove); - } - /** - * On mouse move, unset typing flag if user has moved cursor. - * - * @param {MouseEvent} event Mousemove event. - */ - - - function stopTypingOnMouseMove(event) { - var clientX = event.clientX, - clientY = event.clientY; // We need to check that the mouse really moved because Safari triggers - // mousemove events when shift or ctrl are pressed. - - if (lastMouseMove.current) { - var _lastMouseMove$curren = lastMouseMove.current, - lastClientX = _lastMouseMove$curren.clientX, - lastClientY = _lastMouseMove$curren.clientY; - - if (lastClientX !== clientX || lastClientY !== clientY) { - stopTyping(); - } - } - - lastMouseMove.current = { - clientX: clientX, - clientY: clientY - }; - } - /** - * On selection change, unset typing flag if user has made an uncollapsed - * (shift) selection. - */ - - - function stopTypingOnSelectionUncollapse() { - var selection = window.getSelection(); - var isCollapsed = selection.rangeCount > 0 && selection.getRangeAt(0).collapsed; - - if (!isCollapsed) { - stopTyping(); - } - } - /** - * Unsets typing flag if user presses Escape while typing flag is active. - * - * @param {KeyboardEvent} event Keypress or keydown event to interpret. - */ - - - function stopTypingOnEscapeKey(event) { - if (isTyping && event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { - stopTyping(); - } - } - /** - * Handles a keypress or keydown event to infer intention to start typing. - * - * @param {KeyboardEvent} event Keypress or keydown event to interpret. - */ - - - function startTypingInTextField(event) { - var type = event.type, - target = event.target; // Abort early if already typing, or key press is incurred outside a - // text field (e.g. arrow-ing through toolbar buttons). - // Ignore typing if outside the current DOM container - - if (isTyping || !Object(external_this_wp_dom_["isTextField"])(target) || !typingContainer.current.contains(target)) { - return; - } // Special-case keydown because certain keys do not emit a keypress - // event. Conversely avoid keydown as the canonical event since there - // are many keydown which are explicitly not targeted for typing. - - - if (type === 'keydown' && !isKeyDownEligibleForStartTyping(event)) { - return; - } - - startTyping(); - } - /** - * Stops typing when focus transitions to a non-text field element. - * - * @param {FocusEvent} event Focus event. - */ - - - function stopTypingOnNonTextField(event) { - var target = event.target; // Since focus to a non-text field via arrow key will trigger before - // the keydown event, wait until after current stack before evaluating - // whether typing is to be stopped. Otherwise, typing will re-start. - - setSafeTimeout(function () { - if (isTyping && !Object(external_this_wp_dom_["isTextField"])(target)) { - stopTyping(); - } - }); - } // Disable reason: This component is responsible for capturing bubbled - // keyboard events which are interpreted as typing intent. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - - return Object(external_this_wp_element_["createElement"])("div", { - ref: typingContainer, - onFocus: stopTypingOnNonTextField, - onKeyPress: startTypingInTextField, - onKeyDown: Object(external_this_lodash_["over"])([startTypingInTextField, stopTypingOnEscapeKey]) - }, children); - /* eslint-enable jsx-a11y/no-static-element-interactions */ -} -/** - * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/observe-typing/README.md - */ - - -/* harmony default export */ var observe_typing = (Object(external_this_wp_compose_["withSafeTimeout"])(ObserveTyping)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preserve-scroll-in-reorder/index.js -/** - * WordPress dependencies - */ - -function PreserveScrollInReorder() { - external_this_wp_deprecated_default()('PreserveScrollInReorder component', { - hint: 'This behavior is now built-in the block list' - }); - return null; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/typewriter/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ - -var isIE = window.navigator.userAgent.indexOf('Trident') !== -1; -var arrowKeyCodes = new Set([external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["RIGHT"]]); -var initialTriggerPercentage = 0.75; - -var typewriter_Typewriter = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(Typewriter, _Component); - - function Typewriter() { - var _this; - - Object(classCallCheck["a" /* default */])(this, Typewriter); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Typewriter).apply(this, arguments)); - _this.ref = Object(external_this_wp_element_["createRef"])(); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.addSelectionChangeListener = _this.addSelectionChangeListener.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.computeCaretRectOnSelectionChange = _this.computeCaretRectOnSelectionChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.maintainCaretPosition = _this.maintainCaretPosition.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.computeCaretRect = _this.computeCaretRect.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onScrollResize = _this.onScrollResize.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.isSelectionEligibleForScroll = _this.isSelectionEligibleForScroll.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(Typewriter, [{ - key: "componentDidMount", - value: function componentDidMount() { - // When the user scrolls or resizes, the scroll position should be - // reset. - window.addEventListener('scroll', this.onScrollResize, true); - window.addEventListener('resize', this.onScrollResize, true); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('scroll', this.onScrollResize, true); - window.removeEventListener('resize', this.onScrollResize, true); - document.removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); - - if (this.onScrollResize.rafId) { - window.cancelAnimationFrame(this.onScrollResize.rafId); - } - - if (this.onKeyDown.rafId) { - window.cancelAnimationFrame(this.onKeyDown.rafId); - } - } - /** - * Resets the scroll position to be maintained. - */ - - }, { - key: "computeCaretRect", - value: function computeCaretRect() { - if (this.isSelectionEligibleForScroll()) { - this.caretRect = Object(external_this_wp_dom_["computeCaretRect"])(); - } - } - /** - * Resets the scroll position to be maintained during a `selectionchange` - * event. Also removes the listener, so it acts as a one-time listener. - */ - - }, { - key: "computeCaretRectOnSelectionChange", - value: function computeCaretRectOnSelectionChange() { - document.removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); - this.computeCaretRect(); - } - }, { - key: "onScrollResize", - value: function onScrollResize() { - var _this2 = this; - - if (this.onScrollResize.rafId) { - return; - } - - this.onScrollResize.rafId = window.requestAnimationFrame(function () { - _this2.computeCaretRect(); - - delete _this2.onScrollResize.rafId; - }); - } - /** - * Checks if the current situation is elegible for scroll: - * - There should be one and only one block selected. - * - The component must contain the selection. - * - The active element must be contenteditable. - */ - - }, { - key: "isSelectionEligibleForScroll", - value: function isSelectionEligibleForScroll() { - return this.props.selectedBlockClientId && this.ref.current.contains(document.activeElement) && document.activeElement.isContentEditable; - } - }, { - key: "isLastEditableNode", - value: function isLastEditableNode() { - var editableNodes = this.ref.current.querySelectorAll('[contenteditable="true"]'); - var lastEditableNode = editableNodes[editableNodes.length - 1]; - return lastEditableNode === document.activeElement; - } - /** - * Maintains the scroll position after a selection change caused by a - * keyboard event. - * - * @param {WPSyntheticEvent} event Synthetic keyboard event. - */ - - }, { - key: "maintainCaretPosition", - value: function maintainCaretPosition(_ref) { - var keyCode = _ref.keyCode; - - if (!this.isSelectionEligibleForScroll()) { - return; - } - - var currentCaretRect = Object(external_this_wp_dom_["computeCaretRect"])(); - - if (!currentCaretRect) { - return; - } // If for some reason there is no position set to be scrolled to, let - // this be the position to be scrolled to in the future. - - - if (!this.caretRect) { - this.caretRect = currentCaretRect; - return; - } // Even though enabling the typewriter effect for arrow keys results in - // a pleasant experience, it may not be the case for everyone, so, for - // now, let's disable it. - - - if (arrowKeyCodes.has(keyCode)) { - // Reset the caret position to maintain. - this.caretRect = currentCaretRect; - return; - } - - var diff = currentCaretRect.top - this.caretRect.top; - - if (diff === 0) { - return; - } - - var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(this.ref.current); // The page must be scrollable. - - if (!scrollContainer) { - return; - } - - var windowScroll = scrollContainer === document.body; - var scrollY = windowScroll ? window.scrollY : scrollContainer.scrollTop; - var scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().top; - var relativeScrollPosition = windowScroll ? this.caretRect.top / window.innerHeight : (this.caretRect.top - scrollContainerY) / (window.innerHeight - scrollContainerY); // If the scroll position is at the start, the active editable element - // is the last one, and the caret is positioned within the initial - // trigger percentage of the page, do not scroll the page. - // The typewriter effect should not kick in until an empty page has been - // filled with the initial trigger percentage or the user scrolls - // intentionally down. - - if (scrollY === 0 && relativeScrollPosition < initialTriggerPercentage && this.isLastEditableNode()) { - // Reset the caret position to maintain. - this.caretRect = currentCaretRect; - return; - } - - var scrollContainerHeight = windowScroll ? window.innerHeight : scrollContainer.clientHeight; // Abort if the target scroll position would scroll the caret out of - // view. - - if ( // The caret is under the lower fold. - this.caretRect.top + this.caretRect.height > scrollContainerY + scrollContainerHeight || // The caret is above the upper fold. - this.caretRect.top < scrollContainerY) { - // Reset the caret position to maintain. - this.caretRect = currentCaretRect; - return; - } - - if (windowScroll) { - window.scrollBy(0, diff); - } else { - scrollContainer.scrollTop += diff; - } - } - /** - * Adds a `selectionchange` listener to reset the scroll position to be - * maintained. - */ - - }, { - key: "addSelectionChangeListener", - value: function addSelectionChangeListener() { - document.addEventListener('selectionchange', this.computeCaretRectOnSelectionChange); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var _this3 = this; - - event.persist(); // Ensure the any remaining request is cancelled. - - if (this.onKeyDown.rafId) { - window.cancelAnimationFrame(this.onKeyDown.rafId); - } // Use an animation frame for a smooth result. - - - this.onKeyDown.rafId = window.requestAnimationFrame(function () { - _this3.maintainCaretPosition(event); - - delete _this3.onKeyDown.rafId; - }); - } - }, { - key: "render", - value: function render() { - // Disable reason: Wrapper itself is non-interactive, but must capture - // bubbling events from children to determine focus transition intents. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - return Object(external_this_wp_element_["createElement"])("div", { - ref: this.ref, - onKeyDown: this.onKeyDown, - onKeyUp: this.maintainCaretPosition, - onMouseDown: this.addSelectionChangeListener, - onTouchStart: this.addSelectionChangeListener, - className: "block-editor__typewriter" - }, this.props.children); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return Typewriter; -}(external_this_wp_element_["Component"]); -/** - * The exported component. The implementation of Typewriter faced technical - * challenges in Internet Explorer, and is simply skipped, rendering the given - * props children instead. - * - * @type {WPComponent} - */ - - -var TypewriterOrIEBypass = isIE ? function (props) { - return props.children; -} : Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId; - - return { - selectedBlockClientId: getSelectedBlockClientId() - }; -})(typewriter_Typewriter); -/** - * Ensures that the text selection keeps the same vertical distance from the - * viewport during keyboard events within this component. The vertical distance - * can vary. It is the last clicked or scrolled to position. - */ - -/* harmony default export */ var typewriter = (TypewriterOrIEBypass); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/index.js -/* - * Block Creation Components - */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* - * Content Related Components - */ - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* - * State Related Components - */ - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/align.js - - - - -function align_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function align_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { align_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { align_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -/** - * An array which includes all possible valid alignments, - * used to validate if an alignment is valid or not. - * - * @constant - * @type {string[]} - */ - -var ALL_ALIGNMENTS = ['left', 'center', 'right', 'wide', 'full']; -/** - * An array which includes all wide alignments. - * In order for this alignments to be valid they need to be supported by the block, - * and by the theme. - * - * @constant - * @type {string[]} - */ - -var WIDE_ALIGNMENTS = ['wide', 'full']; -/** - * Returns the valid alignments. - * Takes into consideration the aligns supported by a block, if the block supports wide controls or not and if theme supports wide controls or not. - * Exported just for testing purposes, not exported outside the module. - * - * @param {?boolean|string[]} blockAlign Aligns supported by the block. - * @param {?boolean} hasWideBlockSupport True if block supports wide alignments. And False otherwise. - * @param {?boolean} hasWideEnabled True if theme supports wide alignments. And False otherwise. - * - * @return {string[]} Valid alignments. - */ - -function getValidAlignments(blockAlign) { - var hasWideBlockSupport = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var hasWideEnabled = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var validAlignments; - - if (Array.isArray(blockAlign)) { - validAlignments = blockAlign; - } else if (blockAlign === true) { - // `true` includes all alignments... - validAlignments = ALL_ALIGNMENTS; - } else { - validAlignments = []; - } - - if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) { - return external_this_lodash_["without"].apply(void 0, [validAlignments].concat(WIDE_ALIGNMENTS)); - } - - return validAlignments; -} -/** - * Filters registered block settings, extending attributes to include `align`. - * - * @param {Object} settings Original block settings - * @return {Object} Filtered block settings - */ - -function addAttribute(settings) { - // allow blocks to specify their own attribute definition with default values if needed. - if (Object(external_this_lodash_["has"])(settings.attributes, ['align', 'type'])) { - return settings; - } - - if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'align')) { - // Use Lodash's assign to gracefully handle if attributes are undefined - settings.attributes = Object(external_this_lodash_["assign"])(settings.attributes, { - align: { - type: 'string' - } - }); - } - - return settings; -} -var AlignmentHookSettings = Object(external_this_wp_element_["createContext"])({}); -/** - * Allows to pass additional settings to the alignment hook. - */ - -var AlignmentHookSettingsProvider = AlignmentHookSettings.Provider; -/** - * Override the default edit UI to include new toolbar controls for block - * alignment, if block defines support. - * - * @param {Function} BlockEdit Original component - * @return {Function} Wrapped component - */ - -var withToolbarControls = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return function (props) { - var _useContext = Object(external_this_wp_element_["useContext"])(AlignmentHookSettings), - isEmbedButton = _useContext.isEmbedButton; - - var blockName = props.name; // Compute valid alignments without taking into account, - // if the theme supports wide alignments or not. - // BlockAlignmentToolbar takes into account the theme support. - - var validAlignments = isEmbedButton ? [] : getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(blockName, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'alignWide', true)); - - var updateAlignment = function updateAlignment(nextAlign) { - if (!nextAlign) { - var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); - var blockDefaultAlign = Object(external_this_lodash_["get"])(blockType, ['attributes', 'align', 'default']); - - if (blockDefaultAlign) { - nextAlign = ''; - } - } - - props.setAttributes({ - align: nextAlign - }); - }; - - return [validAlignments.length > 0 && props.isSelected && Object(external_this_wp_element_["createElement"])(block_controls, { - key: "align-controls" - }, Object(external_this_wp_element_["createElement"])(block_alignment_toolbar, { - value: props.attributes.align, - onChange: updateAlignment, - controls: validAlignments - })), Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ - key: "edit" - }, props))]; - }; -}, 'withToolbarControls'); -/** - * Override the default block element to add alignment wrapper props. - * - * @param {Function} BlockListBlock Original component - * @return {Function} Wrapped component - */ - -var withDataAlign = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockListBlock) { - return function (props) { - var name = props.name, - attributes = props.attributes; - var align = attributes.align; - var hasWideEnabled = Object(external_this_wp_data_["useSelect"])(function (select) { - return !!select('core/block-editor').getSettings().alignWide; - }, []); // If an alignment is not assigned, there's no need to go through the - // effort to validate or assign its value. - - if (align === undefined) { - return Object(external_this_wp_element_["createElement"])(BlockListBlock, props); - } - - var validAlignments = getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(name, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(name, 'alignWide', true), hasWideEnabled); - var wrapperProps = props.wrapperProps; - - if (Object(external_this_lodash_["includes"])(validAlignments, align)) { - wrapperProps = align_objectSpread({}, wrapperProps, { - 'data-align': align - }); - } - - return Object(external_this_wp_element_["createElement"])(BlockListBlock, Object(esm_extends["a" /* default */])({}, props, { - wrapperProps: wrapperProps - })); - }; -}); -/** - * Override props assigned to save component to inject alignment class name if - * block supports it. - * - * @param {Object} props Additional props applied to save element - * @param {Object} blockType Block type - * @param {Object} attributes Block attributes - * @return {Object} Filtered props applied to save element - */ - -function addAssignedAlign(props, blockType, attributes) { - var align = attributes.align; - var blockAlign = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, 'align'); - var hasWideBlockSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'alignWide', true); - var isAlignValid = Object(external_this_lodash_["includes"])( // Compute valid alignments without taking into account, - // if the theme supports wide alignments or not. - // This way changing themes does not impacts the block save. - getValidAlignments(blockAlign, hasWideBlockSupport), align); - - if (isAlignValid) { - props.className = classnames_default()("align".concat(align), props.className); - } - - return props; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/align/addAttribute', addAttribute); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/editor/align/with-data-align', withDataAlign); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls); -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -/** - * Regular expression matching invalid anchor characters for replacement. - * - * @type {RegExp} - */ - -var ANCHOR_REGEX = /[\s#]/g; -/** - * Filters registered block settings, extending attributes with anchor using ID - * of the first node. - * - * @param {Object} settings Original block settings. - * - * @return {Object} Filtered block settings. - */ - -function anchor_addAttribute(settings) { - // allow blocks to specify their own attribute definition with default values if needed. - if (Object(external_this_lodash_["has"])(settings.attributes, ['anchor', 'type'])) { - return settings; - } - - if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'anchor')) { - // Use Lodash's assign to gracefully handle if attributes are undefined - settings.attributes = Object(external_this_lodash_["assign"])(settings.attributes, { - anchor: { - type: 'string', - source: 'attribute', - attribute: 'id', - selector: '*' - } - }); - } - - return settings; -} -/** - * Override the default edit UI to include a new block inspector control for - * assigning the anchor ID, if block supports anchor. - * - * @param {WPComponent} BlockEdit Original component. - * - * @return {WPComponent} Wrapped component. - */ - -var withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return function (props) { - var hasAnchor = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'anchor'); - - if (hasAnchor && props.isSelected) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - className: "html-anchor-control", - label: Object(external_this_wp_i18n_["__"])('HTML anchor'), - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: 'https://wordpress.org/support/article/page-jumps/' - }, Object(external_this_wp_i18n_["__"])('Learn more about anchors'))), - value: props.attributes.anchor || '', - onChange: function onChange(nextValue) { - nextValue = nextValue.replace(ANCHOR_REGEX, '-'); - props.setAttributes({ - anchor: nextValue - }); - } - }))); - } - - return Object(external_this_wp_element_["createElement"])(BlockEdit, props); - }; -}, 'withInspectorControl'); -/** - * Override props assigned to save component to inject anchor ID, if block - * supports anchor. This is only applied if the block's save result is an - * element and not a markup string. - * - * @param {Object} extraProps Additional props applied to save element. - * @param {Object} blockType Block type. - * @param {Object} attributes Current block attributes. - * - * @return {Object} Filtered props applied to save element. - */ - -function addSaveProps(extraProps, blockType, attributes) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'anchor')) { - extraProps.id = attributes.anchor === '' ? null : attributes.anchor; - } - - return extraProps; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/anchor/with-inspector-control', withInspectorControl); -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/custom-class-name.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -/** - * Filters registered block settings, extending attributes with anchor using ID - * of the first node. - * - * @param {Object} settings Original block settings. - * - * @return {Object} Filtered block settings. - */ - -function custom_class_name_addAttribute(settings) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'customClassName', true)) { - // Use Lodash's assign to gracefully handle if attributes are undefined - settings.attributes = Object(external_this_lodash_["assign"])(settings.attributes, { - className: { - type: 'string' - } - }); - } - - return settings; -} -/** - * Override the default edit UI to include a new block inspector control for - * assigning the custom class name, if block supports custom class name. - * - * @param {WPComponent} BlockEdit Original component. - * - * @return {WPComponent} Wrapped component. - */ - -var custom_class_name_withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return function (props) { - var hasCustomClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'customClassName', true); - - if (hasCustomClassName && props.isSelected) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Additional CSS class(es)'), - value: props.attributes.className || '', - onChange: function onChange(nextValue) { - props.setAttributes({ - className: nextValue !== '' ? nextValue : undefined - }); - }, - help: Object(external_this_wp_i18n_["__"])('Separate multiple classes with spaces.') - }))); - } - - return Object(external_this_wp_element_["createElement"])(BlockEdit, props); - }; -}, 'withInspectorControl'); -/** - * Override props assigned to save component to inject anchor ID, if block - * supports anchor. This is only applied if the block's save result is an - * element and not a markup string. - * - * @param {Object} extraProps Additional props applied to save element. - * @param {Object} blockType Block type. - * @param {Object} attributes Current block attributes. - * - * @return {Object} Filtered props applied to save element. - */ - -function custom_class_name_addSaveProps(extraProps, blockType, attributes) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true) && attributes.className) { - extraProps.className = classnames_default()(extraProps.className, attributes.className); - } - - return extraProps; -} -/** - * Given an HTML string, returns an array of class names assigned to the root - * element in the markup. - * - * @param {string} innerHTML Markup string from which to extract classes. - * - * @return {string[]} Array of class names assigned to the root element. - */ - -function getHTMLRootElementClasses(innerHTML) { - innerHTML = "
    ".concat(innerHTML, "
    "); - var parsed = Object(external_this_wp_blocks_["parseWithAttributeSchema"])(innerHTML, { - type: 'string', - source: 'attribute', - selector: '[data-custom-class-name] > *', - attribute: 'class' - }); - return parsed ? parsed.trim().split(/\s+/) : []; -} -/** - * Given a parsed set of block attributes, if the block supports custom class - * names and an unknown class (per the block's serialization behavior) is - * found, the unknown classes are treated as custom classes. This prevents the - * block from being considered as invalid. - * - * @param {Object} blockAttributes Original block attributes. - * @param {Object} blockType Block type settings. - * @param {string} innerHTML Original block markup. - * - * @return {Object} Filtered block attributes. - */ - -function addParsedDifference(blockAttributes, blockType, innerHTML) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true)) { - // To determine difference, serialize block given the known set of - // attributes, with the exception of `className`. This will determine - // the default set of classes. From there, any difference in innerHTML - // can be considered as custom classes. - var attributesSansClassName = Object(external_this_lodash_["omit"])(blockAttributes, ['className']); - var serialized = Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributesSansClassName); - var defaultClasses = getHTMLRootElementClasses(serialized); - var actualClasses = getHTMLRootElementClasses(innerHTML); - var customClasses = Object(external_this_lodash_["difference"])(actualClasses, defaultClasses); - - if (customClasses.length) { - blockAttributes.className = customClasses.join(' '); - } else if (serialized) { - delete blockAttributes.className; - } - } - - return blockAttributes; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/custom-class-name/attribute', custom_class_name_addAttribute); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/custom-class-name/with-inspector-control', custom_class_name_withInspectorControl); -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/custom-class-name/save-props', custom_class_name_addSaveProps); -Object(external_this_wp_hooks_["addFilter"])('blocks.getBlockAttributes', 'core/custom-class-name/addParsedDifference', addParsedDifference); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Override props assigned to save component to inject generated className if - * block supports it. This is only applied if the block's save result is an - * element and not a markup string. - * - * @param {Object} extraProps Additional props applied to save element. - * @param {Object} blockType Block type. - * - * @return {Object} Filtered props applied to save element. - */ - -function addGeneratedClassName(extraProps, blockType) { - // Adding the generated className - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true)) { - if (typeof extraProps.className === 'string') { - // We have some extra classes and want to add the default classname - // We use uniq to prevent duplicate classnames - extraProps.className = Object(external_this_lodash_["uniq"])([Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name)].concat(Object(toConsumableArray["a" /* default */])(extraProps.className.split(' ')))).join(' ').trim(); - } else { - // There is no string in the className variable, - // so we just dump the default name in there - extraProps.className = Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name); - } - } - - return extraProps; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/index.js -/** - * Internal dependencies - */ - - - - - - -// EXTERNAL MODULE: ./node_modules/traverse/index.js -var traverse = __webpack_require__(263); -var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/parse.js - - -/* eslint-disable @wordpress/no-unused-vars-before-return */ -// Adapted from https://github.com/reworkcss/css -// because we needed to remove source map support. -// http://www.w3.org/TR/CSS21/grammar.htm -// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027 -var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g; -/* harmony default export */ var parse = (function (css, options) { - options = options || {}; - /** - * Positional. - */ - - var lineno = 1; - var column = 1; - /** - * Update lineno and column based on `str`. - */ - - function updatePosition(str) { - var lines = str.match(/\n/g); - - if (lines) { - lineno += lines.length; - } - - var i = str.lastIndexOf('\n'); // eslint-disable-next-line no-bitwise - - column = ~i ? str.length - i : column + str.length; - } - /** - * Mark position and patch `node.position`. - */ - - - function position() { - var start = { - line: lineno, - column: column - }; - return function (node) { - node.position = new Position(start); - whitespace(); - return node; - }; - } - /** - * Store position information for a node - */ - - - function Position(start) { - this.start = start; - this.end = { - line: lineno, - column: column - }; - this.source = options.source; - } - /** - * Non-enumerable source string - */ - - - Position.prototype.content = css; - /** - * Error `msg`. - */ - - var errorsList = []; - - function error(msg) { - var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg); - err.reason = msg; - err.filename = options.source; - err.line = lineno; - err.column = column; - err.source = css; - - if (options.silent) { - errorsList.push(err); - } else { - throw err; - } - } - /** - * Parse stylesheet. - */ - - - function stylesheet() { - var rulesList = rules(); - return { - type: 'stylesheet', - stylesheet: { - source: options.source, - rules: rulesList, - parsingErrors: errorsList - } - }; - } - /** - * Opening brace. - */ - - - function open() { - return match(/^{\s*/); - } - /** - * Closing brace. - */ - - - function close() { - return match(/^}/); - } - /** - * Parse ruleset. - */ - - - function rules() { - var node; - var accumulator = []; - whitespace(); - comments(accumulator); - - while (css.length && css.charAt(0) !== '}' && (node = atrule() || rule())) { - if (node !== false) { - accumulator.push(node); - comments(accumulator); - } - } - - return accumulator; - } - /** - * Match `re` and return captures. - */ - - - function match(re) { - var m = re.exec(css); - - if (!m) { - return; - } - - var str = m[0]; - updatePosition(str); - css = css.slice(str.length); - return m; - } - /** - * Parse whitespace. - */ - - - function whitespace() { - match(/^\s*/); - } - /** - * Parse comments; - */ - - - function comments(accumulator) { - var c; - accumulator = accumulator || []; // eslint-disable-next-line no-cond-assign - - while (c = comment()) { - if (c !== false) { - accumulator.push(c); - } - } - - return accumulator; - } - /** - * Parse comment. - */ - - - function comment() { - var pos = position(); - - if ('/' !== css.charAt(0) || '*' !== css.charAt(1)) { - return; - } - - var i = 2; - - while ('' !== css.charAt(i) && ('*' !== css.charAt(i) || '/' !== css.charAt(i + 1))) { - ++i; - } - - i += 2; - - if ('' === css.charAt(i - 1)) { - return error('End of comment missing'); - } - - var str = css.slice(2, i - 2); - column += 2; - updatePosition(str); - css = css.slice(i); - column += 2; - return pos({ - type: 'comment', - comment: str - }); - } - /** - * Parse selector. - */ - - - function selector() { - var m = match(/^([^{]+)/); - - if (!m) { - return; - } // FIXME: Remove all comments from selectors http://ostermiller.org/findcomment.html - - - return trim(m[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, '').replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function (matched) { - return matched.replace(/,/g, "\u200C"); - }).split(/\s*(?![^(]*\)),\s*/).map(function (s) { - return s.replace(/\u200C/g, ','); - }); - } - /** - * Parse declaration. - */ - - - function declaration() { - var pos = position(); // prop - - var prop = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/); - - if (!prop) { - return; - } - - prop = trim(prop[0]); // : - - if (!match(/^:\s*/)) { - return error("property missing ':'"); - } // val - - - var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/); - var ret = pos({ - type: 'declaration', - property: prop.replace(commentre, ''), - value: val ? trim(val[0]).replace(commentre, '') : '' - }); // ; - - match(/^[;\s]*/); - return ret; - } - /** - * Parse declarations. - */ - - - function declarations() { - var decls = []; - - if (!open()) { - return error("missing '{'"); - } - - comments(decls); // declarations - - var decl; // eslint-disable-next-line no-cond-assign - - while (decl = declaration()) { - if (decl !== false) { - decls.push(decl); - comments(decls); - } - } - - if (!close()) { - return error("missing '}'"); - } - - return decls; - } - /** - * Parse keyframe. - */ - - - function keyframe() { - var m; - var vals = []; - var pos = position(); // eslint-disable-next-line no-cond-assign - - while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) { - vals.push(m[1]); - match(/^,\s*/); - } - - if (!vals.length) { - return; - } - - return pos({ - type: 'keyframe', - values: vals, - declarations: declarations() - }); - } - /** - * Parse keyframes. - */ - - - function atkeyframes() { - var pos = position(); - var m = match(/^@([-\w]+)?keyframes\s*/); - - if (!m) { - return; - } - - var vendor = m[1]; // identifier - - m = match(/^([-\w]+)\s*/); - - if (!m) { - return error('@keyframes missing name'); - } - - var name = m[1]; - - if (!open()) { - return error("@keyframes missing '{'"); - } - - var frame; - var frames = comments(); // eslint-disable-next-line no-cond-assign - - while (frame = keyframe()) { - frames.push(frame); - frames = frames.concat(comments()); - } - - if (!close()) { - return error("@keyframes missing '}'"); - } - - return pos({ - type: 'keyframes', - name: name, - vendor: vendor, - keyframes: frames - }); - } - /** - * Parse supports. - */ - - - function atsupports() { - var pos = position(); - var m = match(/^@supports *([^{]+)/); - - if (!m) { - return; - } - - var supports = trim(m[1]); - - if (!open()) { - return error("@supports missing '{'"); - } - - var style = comments().concat(rules()); - - if (!close()) { - return error("@supports missing '}'"); - } - - return pos({ - type: 'supports', - supports: supports, - rules: style - }); - } - /** - * Parse host. - */ - - - function athost() { - var pos = position(); - var m = match(/^@host\s*/); - - if (!m) { - return; - } - - if (!open()) { - return error("@host missing '{'"); - } - - var style = comments().concat(rules()); - - if (!close()) { - return error("@host missing '}'"); - } - - return pos({ - type: 'host', - rules: style - }); - } - /** - * Parse media. - */ - - - function atmedia() { - var pos = position(); - var m = match(/^@media *([^{]+)/); - - if (!m) { - return; - } - - var media = trim(m[1]); - - if (!open()) { - return error("@media missing '{'"); - } - - var style = comments().concat(rules()); - - if (!close()) { - return error("@media missing '}'"); - } - - return pos({ - type: 'media', - media: media, - rules: style - }); - } - /** - * Parse custom-media. - */ - - - function atcustommedia() { - var pos = position(); - var m = match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/); - - if (!m) { - return; - } - - return pos({ - type: 'custom-media', - name: trim(m[1]), - media: trim(m[2]) - }); - } - /** - * Parse paged media. - */ - - - function atpage() { - var pos = position(); - var m = match(/^@page */); - - if (!m) { - return; - } - - var sel = selector() || []; - - if (!open()) { - return error("@page missing '{'"); - } - - var decls = comments(); // declarations - - var decl; // eslint-disable-next-line no-cond-assign - - while (decl = declaration()) { - decls.push(decl); - decls = decls.concat(comments()); - } - - if (!close()) { - return error("@page missing '}'"); - } - - return pos({ - type: 'page', - selectors: sel, - declarations: decls - }); - } - /** - * Parse document. - */ - - - function atdocument() { - var pos = position(); - var m = match(/^@([-\w]+)?document *([^{]+)/); - - if (!m) { - return; - } - - var vendor = trim(m[1]); - var doc = trim(m[2]); - - if (!open()) { - return error("@document missing '{'"); - } - - var style = comments().concat(rules()); - - if (!close()) { - return error("@document missing '}'"); - } - - return pos({ - type: 'document', - document: doc, - vendor: vendor, - rules: style - }); - } - /** - * Parse font-face. - */ - - - function atfontface() { - var pos = position(); - var m = match(/^@font-face\s*/); - - if (!m) { - return; - } - - if (!open()) { - return error("@font-face missing '{'"); - } - - var decls = comments(); // declarations - - var decl; // eslint-disable-next-line no-cond-assign - - while (decl = declaration()) { - decls.push(decl); - decls = decls.concat(comments()); - } - - if (!close()) { - return error("@font-face missing '}'"); - } - - return pos({ - type: 'font-face', - declarations: decls - }); - } - /** - * Parse import - */ - - - var atimport = _compileAtrule('import'); - /** - * Parse charset - */ - - - var atcharset = _compileAtrule('charset'); - /** - * Parse namespace - */ - - - var atnamespace = _compileAtrule('namespace'); - /** - * Parse non-block at-rules - */ - - - function _compileAtrule(name) { - var re = new RegExp('^@' + name + '\\s*([^;]+);'); - return function () { - var pos = position(); - var m = match(re); - - if (!m) { - return; - } - - var ret = { - type: name - }; - ret[name] = m[1].trim(); - return pos(ret); - }; - } - /** - * Parse at rule. - */ - - - function atrule() { - if (css[0] !== '@') { - return; - } - - return atkeyframes() || atmedia() || atcustommedia() || atsupports() || atimport() || atcharset() || atnamespace() || atdocument() || atpage() || athost() || atfontface(); - } - /** - * Parse rule. - */ - - - function rule() { - var pos = position(); - var sel = selector(); - - if (!sel) { - return error('selector missing'); - } - - comments(); - return pos({ - type: 'rule', - selectors: sel, - declarations: declarations() - }); - } - - return addParent(stylesheet()); -}); -/** - * Trim `str`. - */ - -function trim(str) { - return str ? str.replace(/^\s+|\s+$/g, '') : ''; -} -/** - * Adds non-enumerable parent node reference to each node. - */ - - -function addParent(obj, parent) { - var isNode = obj && typeof obj.type === 'string'; - var childParent = isNode ? obj : parent; - - for (var k in obj) { - var value = obj[k]; - - if (Array.isArray(value)) { - value.forEach(function (v) { - addParent(v, childParent); - }); - } else if (value && Object(esm_typeof["a" /* default */])(value) === 'object') { - addParent(value, childParent); - } - } - - if (isNode) { - Object.defineProperty(obj, 'parent', { - configurable: true, - writable: true, - enumerable: false, - value: parent || null - }); - } - - return obj; -} -/* eslint-enable @wordpress/no-unused-vars-before-return */ - -// EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js -var inherits_browser = __webpack_require__(144); -var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js -// Adapted from https://github.com/reworkcss/css -// because we needed to remove source map support. - -/** - * Expose `Compiler`. - */ -/* harmony default export */ var stringify_compiler = (Compiler); -/** - * Initialize a compiler. - */ - -function Compiler(opts) { - this.options = opts || {}; -} -/** - * Emit `str` - */ - - -Compiler.prototype.emit = function (str) { - return str; -}; -/** - * Visit `node`. - */ - - -Compiler.prototype.visit = function (node) { - return this[node.type](node); -}; -/** - * Map visit over array of `nodes`, optionally using a `delim` - */ - - -Compiler.prototype.mapVisit = function (nodes, delim) { - var buf = ''; - delim = delim || ''; - - for (var i = 0, length = nodes.length; i < length; i++) { - buf += this.visit(nodes[i]); - - if (delim && i < length - 1) { - buf += this.emit(delim); - } - } - - return buf; -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compress.js -// Adapted from https://github.com/reworkcss/css -// because we needed to remove source map support. - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * Expose compiler. - */ - -/* harmony default export */ var compress = (compress_Compiler); -/** - * Initialize a new `Compiler`. - */ - -function compress_Compiler(options) { - stringify_compiler.call(this, options); -} -/** - * Inherit from `Base.prototype`. - */ - - -inherits_browser_default()(compress_Compiler, stringify_compiler); -/** - * Compile `node`. - */ - -compress_Compiler.prototype.compile = function (node) { - return node.stylesheet.rules.map(this.visit, this).join(''); -}; -/** - * Visit comment node. - */ - - -compress_Compiler.prototype.comment = function (node) { - return this.emit('', node.position); -}; -/** - * Visit import node. - */ - - -compress_Compiler.prototype.import = function (node) { - return this.emit('@import ' + node.import + ';', node.position); -}; -/** - * Visit media node. - */ - - -compress_Compiler.prototype.media = function (node) { - return this.emit('@media ' + node.media, node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); -}; -/** - * Visit document node. - */ - - -compress_Compiler.prototype.document = function (node) { - var doc = '@' + (node.vendor || '') + 'document ' + node.document; - return this.emit(doc, node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); -}; -/** - * Visit charset node. - */ - - -compress_Compiler.prototype.charset = function (node) { - return this.emit('@charset ' + node.charset + ';', node.position); -}; -/** - * Visit namespace node. - */ - - -compress_Compiler.prototype.namespace = function (node) { - return this.emit('@namespace ' + node.namespace + ';', node.position); -}; -/** - * Visit supports node. - */ - - -compress_Compiler.prototype.supports = function (node) { - return this.emit('@supports ' + node.supports, node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); -}; -/** - * Visit keyframes node. - */ - - -compress_Compiler.prototype.keyframes = function (node) { - return this.emit('@' + (node.vendor || '') + 'keyframes ' + node.name, node.position) + this.emit('{') + this.mapVisit(node.keyframes) + this.emit('}'); -}; -/** - * Visit keyframe node. - */ - - -compress_Compiler.prototype.keyframe = function (node) { - var decls = node.declarations; - return this.emit(node.values.join(','), node.position) + this.emit('{') + this.mapVisit(decls) + this.emit('}'); -}; -/** - * Visit page node. - */ - - -compress_Compiler.prototype.page = function (node) { - var sel = node.selectors.length ? node.selectors.join(', ') : ''; - return this.emit('@page ' + sel, node.position) + this.emit('{') + this.mapVisit(node.declarations) + this.emit('}'); -}; -/** - * Visit font-face node. - */ - - -compress_Compiler.prototype['font-face'] = function (node) { - return this.emit('@font-face', node.position) + this.emit('{') + this.mapVisit(node.declarations) + this.emit('}'); -}; -/** - * Visit host node. - */ - - -compress_Compiler.prototype.host = function (node) { - return this.emit('@host', node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); -}; -/** - * Visit custom-media node. - */ - - -compress_Compiler.prototype['custom-media'] = function (node) { - return this.emit('@custom-media ' + node.name + ' ' + node.media + ';', node.position); -}; -/** - * Visit rule node. - */ - - -compress_Compiler.prototype.rule = function (node) { - var decls = node.declarations; - - if (!decls.length) { - return ''; - } - - return this.emit(node.selectors.join(','), node.position) + this.emit('{') + this.mapVisit(decls) + this.emit('}'); -}; -/** - * Visit declaration node. - */ - - -compress_Compiler.prototype.declaration = function (node) { - return this.emit(node.property + ':' + node.value, node.position) + this.emit(';'); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/identity.js -/* eslint-disable @wordpress/no-unused-vars-before-return */ -// Adapted from https://github.com/reworkcss/css -// because we needed to remove source map support. - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * Expose compiler. - */ - -/* harmony default export */ var identity = (identity_Compiler); -/** - * Initialize a new `Compiler`. - */ - -function identity_Compiler(options) { - options = options || {}; - stringify_compiler.call(this, options); - this.indentation = options.indent; -} -/** - * Inherit from `Base.prototype`. - */ - - -inherits_browser_default()(identity_Compiler, stringify_compiler); -/** - * Compile `node`. - */ - -identity_Compiler.prototype.compile = function (node) { - return this.stylesheet(node); -}; -/** - * Visit stylesheet node. - */ - - -identity_Compiler.prototype.stylesheet = function (node) { - return this.mapVisit(node.stylesheet.rules, '\n\n'); -}; -/** - * Visit comment node. - */ - - -identity_Compiler.prototype.comment = function (node) { - return this.emit(this.indent() + '/*' + node.comment + '*/', node.position); -}; -/** - * Visit import node. - */ - - -identity_Compiler.prototype.import = function (node) { - return this.emit('@import ' + node.import + ';', node.position); -}; -/** - * Visit media node. - */ - - -identity_Compiler.prototype.media = function (node) { - return this.emit('@media ' + node.media, node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); -}; -/** - * Visit document node. - */ - - -identity_Compiler.prototype.document = function (node) { - var doc = '@' + (node.vendor || '') + 'document ' + node.document; - return this.emit(doc, node.position) + this.emit(' ' + ' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); -}; -/** - * Visit charset node. - */ - - -identity_Compiler.prototype.charset = function (node) { - return this.emit('@charset ' + node.charset + ';', node.position); -}; -/** - * Visit namespace node. - */ - - -identity_Compiler.prototype.namespace = function (node) { - return this.emit('@namespace ' + node.namespace + ';', node.position); -}; -/** - * Visit supports node. - */ - - -identity_Compiler.prototype.supports = function (node) { - return this.emit('@supports ' + node.supports, node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); -}; -/** - * Visit keyframes node. - */ - - -identity_Compiler.prototype.keyframes = function (node) { - return this.emit('@' + (node.vendor || '') + 'keyframes ' + node.name, node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.keyframes, '\n') + this.emit(this.indent(-1) + '}'); -}; -/** - * Visit keyframe node. - */ - - -identity_Compiler.prototype.keyframe = function (node) { - var decls = node.declarations; - return this.emit(this.indent()) + this.emit(node.values.join(', '), node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(decls, '\n') + this.emit(this.indent(-1) + '\n' + this.indent() + '}\n'); -}; -/** - * Visit page node. - */ - - -identity_Compiler.prototype.page = function (node) { - var sel = node.selectors.length ? node.selectors.join(', ') + ' ' : ''; - return this.emit('@page ' + sel, node.position) + this.emit('{\n') + this.emit(this.indent(1)) + this.mapVisit(node.declarations, '\n') + this.emit(this.indent(-1)) + this.emit('\n}'); -}; -/** - * Visit font-face node. - */ - - -identity_Compiler.prototype['font-face'] = function (node) { - return this.emit('@font-face ', node.position) + this.emit('{\n') + this.emit(this.indent(1)) + this.mapVisit(node.declarations, '\n') + this.emit(this.indent(-1)) + this.emit('\n}'); -}; -/** - * Visit host node. - */ - - -identity_Compiler.prototype.host = function (node) { - return this.emit('@host', node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); -}; -/** - * Visit custom-media node. - */ - - -identity_Compiler.prototype['custom-media'] = function (node) { - return this.emit('@custom-media ' + node.name + ' ' + node.media + ';', node.position); -}; -/** - * Visit rule node. - */ - - -identity_Compiler.prototype.rule = function (node) { - var indent = this.indent(); - var decls = node.declarations; - - if (!decls.length) { - return ''; - } - - return this.emit(node.selectors.map(function (s) { - return indent + s; - }).join(',\n'), node.position) + this.emit(' {\n') + this.emit(this.indent(1)) + this.mapVisit(decls, '\n') + this.emit(this.indent(-1)) + this.emit('\n' + this.indent() + '}'); -}; -/** - * Visit declaration node. - */ - - -identity_Compiler.prototype.declaration = function (node) { - return this.emit(this.indent()) + this.emit(node.property + ': ' + node.value, node.position) + this.emit(';'); -}; -/** - * Increase, decrease or return current indentation. - */ - - -identity_Compiler.prototype.indent = function (level) { - this.level = this.level || 1; - - if (null !== level) { - this.level += level; - return ''; - } - - return Array(this.level).join(this.indentation || ' '); -}; -/* eslint-enable @wordpress/no-unused-vars-before-return */ - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/index.js -// Adapted from https://github.com/reworkcss/css -// because we needed to remove source map support. - -/** - * Internal dependencies - */ - - -/** - * Stringfy the given AST `node`. - * - * Options: - * - * - `compress` space-optimized output - * - `sourcemap` return an object with `.code` and `.map` - * - * @param {Object} node - * @param {Object} [options] - * @return {string} - */ - -/* harmony default export */ var stringify = (function (node, options) { - options = options || {}; - var compiler = options.compress ? new compress(options) : new identity(options); - var code = compiler.compile(node); - return code; -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/index.js -// Adapted from https://github.com/reworkcss/css -// because we needed to remove source map support. - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/traverse.js -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - - -function traverseCSS(css, callback) { - try { - var parsed = parse(css); - var updated = traverse_default.a.map(parsed, function (node) { - if (!node) { - return node; - } - - var updatedNode = callback(node); - return this.update(updatedNode); - }); - return stringify(updated); - } catch (err) { - // eslint-disable-next-line no-console - console.warn('Error while traversing the CSS: ' + err); - return null; - } -} - -/* harmony default export */ var transform_styles_traverse = (traverseCSS); - -// EXTERNAL MODULE: ./node_modules/url/url.js -var url_url = __webpack_require__(113); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js - - -function url_rewrite_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function url_rewrite_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { url_rewrite_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { url_rewrite_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * Return `true` if the given path is http/https. - * - * @param {string} filePath path - * - * @return {boolean} is remote path. - */ - -function isRemotePath(filePath) { - return /^(?:https?:)?\/\//.test(filePath); -} -/** - * Return `true` if the given filePath is an absolute url. - * - * @param {string} filePath path - * - * @return {boolean} is absolute path. - */ - - -function isAbsolutePath(filePath) { - return /^\/(?!\/)/.test(filePath); -} -/** - * Whether or not the url should be inluded. - * - * @param {Object} meta url meta info - * - * @return {boolean} is valid. - */ - - -function isValidURL(meta) { - // ignore hashes or data uris - if (meta.value.indexOf('data:') === 0 || meta.value.indexOf('#') === 0) { - return false; - } - - if (isAbsolutePath(meta.value)) { - return false; - } // do not handle the http/https urls if `includeRemote` is false - - - if (isRemotePath(meta.value)) { - return false; - } - - return true; -} -/** - * Get the absolute path of the url, relative to the basePath - * - * @param {string} str the url - * @param {string} baseURL base URL - * - * @return {string} the full path to the file - */ - - -function getResourcePath(str, baseURL) { - var pathname = Object(url_url["parse"])(str).pathname; - var filePath = Object(url_url["resolve"])(baseURL, pathname); - return filePath; -} -/** - * Process the single `url()` pattern - * - * @param {string} baseURL the base URL for relative URLs - * @return {Promise} the Promise - */ - - -function processURL(baseURL) { - return function (meta) { - var URL = getResourcePath(meta.value, baseURL); - return url_rewrite_objectSpread({}, meta, { - newUrl: 'url(' + meta.before + meta.quote + URL + meta.quote + meta.after + ')' - }); - }; -} -/** - * Get all `url()`s, and return the meta info - * - * @param {string} value decl.value - * - * @return {Array} the urls - */ - - -function getURLs(value) { - var reg = /url\((\s*)(['"]?)(.+?)\2(\s*)\)/g; - var match; - var URLs = []; - - while ((match = reg.exec(value)) !== null) { - var meta = { - source: match[0], - before: match[1], - quote: match[2], - value: match[3], - after: match[4] - }; - - if (isValidURL(meta)) { - URLs.push(meta); - } - } - - return URLs; -} -/** - * Replace the raw value's `url()` segment to the new value - * - * @param {string} raw the raw value - * @param {Array} URLs the URLs to replace - * - * @return {string} the new value - */ - - -function replaceURLs(raw, URLs) { - URLs.forEach(function (item) { - raw = raw.replace(item.source, item.newUrl); - }); - return raw; -} - -var rewrite = function rewrite(rootURL) { - return function (node) { - if (node.type === 'declaration') { - var updatedURLs = getURLs(node.value).map(processURL(rootURL)); - return url_rewrite_objectSpread({}, node, { - value: replaceURLs(node.value, updatedURLs) - }); - } - - return node; - }; -}; - -/* harmony default export */ var url_rewrite = (rewrite); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/transforms/wrap.js - - -function wrap_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function wrap_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { wrap_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { wrap_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * @constant string IS_ROOT_TAG Regex to check if the selector is a root tag selector. - */ - -var IS_ROOT_TAG = /^(body|html|:root).*$/; - -var wrap_wrap = function wrap(namespace) { - var ignore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return function (node) { - var updateSelector = function updateSelector(selector) { - if (Object(external_this_lodash_["includes"])(ignore, selector.trim())) { - return selector; - } // Anything other than a root tag is always prefixed. - - - { - if (!selector.match(IS_ROOT_TAG)) { - return namespace + ' ' + selector; - } - } // HTML and Body elements cannot be contained within our container so lets extract their styles. - - return selector.replace(/^(body|html|:root)/, namespace); - }; - - if (node.type === 'rule') { - return wrap_objectSpread({}, node, { - selectors: node.selectors.map(updateSelector) - }); - } - - return node; - }; -}; - -/* harmony default export */ var transforms_wrap = (wrap_wrap); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/index.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - -/** - * Applies a series of CSS rule transforms to wrap selectors inside a given class and/or rewrite URLs depending on the parameters passed. - * - * @param {Array} styles CSS rules. - * @param {string} wrapperClassName Wrapper Class Name. - * @return {Array} converted rules. - */ - -var transform_styles_transformStyles = function transformStyles(styles) { - var wrapperClassName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - return Object(external_this_lodash_["map"])(styles, function (_ref) { - var css = _ref.css, - baseURL = _ref.baseURL; - var transforms = []; - - if (wrapperClassName) { - transforms.push(transforms_wrap(wrapperClassName)); - } - - if (baseURL) { - transforms.push(url_rewrite(baseURL)); - } - - if (transforms.length) { - return transform_styles_traverse(css, Object(external_this_wp_compose_["compose"])(transforms)); - } - - return css; - }); -}; - -/* harmony default export */ var transform_styles = (transform_styles_transformStyles); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/index.js - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js -/* concated harmony reexport __experimentalAlignmentHookSettingsProvider */__webpack_require__.d(__webpack_exports__, "__experimentalAlignmentHookSettingsProvider", function() { return AlignmentHookSettingsProvider; }); -/* concated harmony reexport AlignmentToolbar */__webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return alignment_toolbar; }); -/* concated harmony reexport Autocomplete */__webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return autocomplete; }); -/* concated harmony reexport BlockAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() { return block_alignment_toolbar; }); -/* concated harmony reexport BlockBreadcrumb */__webpack_require__.d(__webpack_exports__, "BlockBreadcrumb", function() { return block_breadcrumb; }); -/* concated harmony reexport BlockControls */__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return block_controls; }); -/* concated harmony reexport BlockEdit */__webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return block_edit; }); -/* concated harmony reexport useBlockEditContext */__webpack_require__.d(__webpack_exports__, "useBlockEditContext", function() { return useBlockEditContext; }); -/* concated harmony reexport BlockFormatControls */__webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return block_format_controls; }); -/* concated harmony reexport BlockIcon */__webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return BlockIcon; }); -/* concated harmony reexport BlockNavigationDropdown */__webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return dropdown; }); -/* concated harmony reexport __experimentalBlockNavigationList */__webpack_require__.d(__webpack_exports__, "__experimentalBlockNavigationList", function() { return BlockNavigationList; }); -/* concated harmony reexport __experimentalBlockVariationPicker */__webpack_require__.d(__webpack_exports__, "__experimentalBlockVariationPicker", function() { return block_variation_picker; }); -/* concated harmony reexport BlockVerticalAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockVerticalAlignmentToolbar", function() { return block_vertical_alignment_toolbar; }); -/* concated harmony reexport ButtonBlockerAppender */__webpack_require__.d(__webpack_exports__, "ButtonBlockerAppender", function() { return button_block_appender; }); -/* concated harmony reexport ColorPalette */__webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return color_palette; }); -/* concated harmony reexport ColorPaletteControl */__webpack_require__.d(__webpack_exports__, "ColorPaletteControl", function() { return ColorPaletteControl; }); -/* concated harmony reexport ContrastChecker */__webpack_require__.d(__webpack_exports__, "ContrastChecker", function() { return contrast_checker; }); -/* concated harmony reexport __experimentalEditorSkeleton */__webpack_require__.d(__webpack_exports__, "__experimentalEditorSkeleton", function() { return editor_skeleton; }); -/* concated harmony reexport __experimentalGradientPicker */__webpack_require__.d(__webpack_exports__, "__experimentalGradientPicker", function() { return gradient_picker; }); -/* concated harmony reexport __experimentalGradientPickerControl */__webpack_require__.d(__webpack_exports__, "__experimentalGradientPickerControl", function() { return gradient_picker_control; }); -/* concated harmony reexport __experimentalGradientPickerPanel */__webpack_require__.d(__webpack_exports__, "__experimentalGradientPickerPanel", function() { return GradientPanel; }); -/* concated harmony reexport __experimentalColorGradientControl */__webpack_require__.d(__webpack_exports__, "__experimentalColorGradientControl", function() { return control; }); -/* concated harmony reexport __experimentalPanelColorGradientSettings */__webpack_require__.d(__webpack_exports__, "__experimentalPanelColorGradientSettings", function() { return panel_color_gradient_settings; }); -/* concated harmony reexport __experimentalImageSizeControl */__webpack_require__.d(__webpack_exports__, "__experimentalImageSizeControl", function() { return image_size_control; }); -/* concated harmony reexport InnerBlocks */__webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return inner_blocks; }); -/* concated harmony reexport InspectorAdvancedControls */__webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return inspector_advanced_controls; }); -/* concated harmony reexport InspectorControls */__webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return inspector_controls; }); -/* concated harmony reexport __experimentalLinkControl */__webpack_require__.d(__webpack_exports__, "__experimentalLinkControl", function() { return link_control; }); -/* concated harmony reexport MediaReplaceFlow */__webpack_require__.d(__webpack_exports__, "MediaReplaceFlow", function() { return media_replace_flow; }); -/* concated harmony reexport MediaPlaceholder */__webpack_require__.d(__webpack_exports__, "MediaPlaceholder", function() { return media_placeholder; }); -/* concated harmony reexport MediaUpload */__webpack_require__.d(__webpack_exports__, "MediaUpload", function() { return media_upload; }); -/* concated harmony reexport MediaUploadCheck */__webpack_require__.d(__webpack_exports__, "MediaUploadCheck", function() { return check; }); -/* concated harmony reexport PanelColorSettings */__webpack_require__.d(__webpack_exports__, "PanelColorSettings", function() { return panel_color_settings; }); -/* concated harmony reexport PlainText */__webpack_require__.d(__webpack_exports__, "PlainText", function() { return plain_text; }); -/* concated harmony reexport __experimentalResponsiveBlockControl */__webpack_require__.d(__webpack_exports__, "__experimentalResponsiveBlockControl", function() { return responsive_block_control; }); -/* concated harmony reexport RichText */__webpack_require__.d(__webpack_exports__, "RichText", function() { return rich_text; }); -/* concated harmony reexport RichTextShortcut */__webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return shortcut_RichTextShortcut; }); -/* concated harmony reexport RichTextToolbarButton */__webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return RichTextToolbarButton; }); -/* concated harmony reexport __unstableRichTextInputEvent */__webpack_require__.d(__webpack_exports__, "__unstableRichTextInputEvent", function() { return input_event_unstableRichTextInputEvent; }); -/* concated harmony reexport ToolSelector */__webpack_require__.d(__webpack_exports__, "ToolSelector", function() { return tool_selector; }); -/* concated harmony reexport URLInput */__webpack_require__.d(__webpack_exports__, "URLInput", function() { return url_input; }); -/* concated harmony reexport URLInputButton */__webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return url_input_button; }); -/* concated harmony reexport URLPopover */__webpack_require__.d(__webpack_exports__, "URLPopover", function() { return url_popover; }); -/* concated harmony reexport __experimentalImageURLInputUI */__webpack_require__.d(__webpack_exports__, "__experimentalImageURLInputUI", function() { return image_url_input_ui_ImageURLInputUI; }); -/* concated harmony reexport withColorContext */__webpack_require__.d(__webpack_exports__, "withColorContext", function() { return with_color_context; }); -/* concated harmony reexport __experimentalBlockListFooter */__webpack_require__.d(__webpack_exports__, "__experimentalBlockListFooter", function() { return block_list_footer; }); -/* concated harmony reexport __experimentalBlockSettingsMenuFirstItem */__webpack_require__.d(__webpack_exports__, "__experimentalBlockSettingsMenuFirstItem", function() { return block_settings_menu_first_item; }); -/* concated harmony reexport __experimentalBlockSettingsMenuPluginsExtension */__webpack_require__.d(__webpack_exports__, "__experimentalBlockSettingsMenuPluginsExtension", function() { return block_settings_menu_plugins_extension; }); -/* concated harmony reexport __experimentalInserterMenuExtension */__webpack_require__.d(__webpack_exports__, "__experimentalInserterMenuExtension", function() { return inserter_menu_extension; }); -/* concated harmony reexport __experimentalPageTemplatePicker */__webpack_require__.d(__webpack_exports__, "__experimentalPageTemplatePicker", function() { return picker; }); -/* concated harmony reexport __experimentalWithPageTemplatePickerVisible */__webpack_require__.d(__webpack_exports__, "__experimentalWithPageTemplatePickerVisible", function() { return with_page_template_picker_visible; }); -/* concated harmony reexport __experimentalUsePageTemplatePickerVisible */__webpack_require__.d(__webpack_exports__, "__experimentalUsePageTemplatePickerVisible", function() { return use_page_template_picker_visible; }); -/* concated harmony reexport BlockInspector */__webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return block_inspector; }); -/* concated harmony reexport BlockList */__webpack_require__.d(__webpack_exports__, "BlockList", function() { return block_list; }); -/* concated harmony reexport BlockMover */__webpack_require__.d(__webpack_exports__, "BlockMover", function() { return block_mover; }); -/* concated harmony reexport BlockPreview */__webpack_require__.d(__webpack_exports__, "BlockPreview", function() { return block_preview; }); -/* concated harmony reexport BlockSelectionClearer */__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return block_selection_clearer; }); -/* concated harmony reexport BlockSettingsMenu */__webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return block_settings_menu; }); -/* concated harmony reexport BlockTitle */__webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return block_title; }); -/* concated harmony reexport BlockToolbar */__webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return BlockToolbar; }); -/* concated harmony reexport CopyHandler */__webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return copy_handler; }); -/* concated harmony reexport DefaultBlockAppender */__webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return default_block_appender; }); -/* concated harmony reexport Inserter */__webpack_require__.d(__webpack_exports__, "Inserter", function() { return inserter; }); -/* concated harmony reexport MultiBlocksSwitcher */__webpack_require__.d(__webpack_exports__, "MultiBlocksSwitcher", function() { return multi_blocks_switcher; }); -/* concated harmony reexport BlockEditorKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "BlockEditorKeyboardShortcuts", function() { return keyboard_shortcuts; }); -/* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return MultiSelectScrollIntoView; }); -/* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return navigable_toolbar; }); -/* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return observe_typing; }); -/* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return PreserveScrollInReorder; }); -/* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return skip_to_selected_block; }); -/* concated harmony reexport Typewriter */__webpack_require__.d(__webpack_exports__, "Typewriter", function() { return typewriter; }); -/* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return warning; }); -/* concated harmony reexport WritingFlow */__webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return WritingFlow; }); -/* concated harmony reexport BlockEditorProvider */__webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return provider; }); -/* concated harmony reexport getColorClassName */__webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return getColorClassName; }); -/* concated harmony reexport getColorObjectByAttributeValues */__webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return utils_getColorObjectByAttributeValues; }); -/* concated harmony reexport getColorObjectByColorValue */__webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return utils_getColorObjectByColorValue; }); -/* concated harmony reexport createCustomColorsHOC */__webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return createCustomColorsHOC; }); -/* concated harmony reexport withColors */__webpack_require__.d(__webpack_exports__, "withColors", function() { return withColors; }); -/* concated harmony reexport __experimentalUseColors */__webpack_require__.d(__webpack_exports__, "__experimentalUseColors", function() { return __experimentalUseColors; }); -/* concated harmony reexport __experimentalGetGradientClass */__webpack_require__.d(__webpack_exports__, "__experimentalGetGradientClass", function() { return __experimentalGetGradientClass; }); -/* concated harmony reexport __experimentalGetGradientObjectByGradientValue */__webpack_require__.d(__webpack_exports__, "__experimentalGetGradientObjectByGradientValue", function() { return __experimentalGetGradientObjectByGradientValue; }); -/* concated harmony reexport __experimentalUseGradient */__webpack_require__.d(__webpack_exports__, "__experimentalUseGradient", function() { return __experimentalUseGradient; }); -/* concated harmony reexport getFontSize */__webpack_require__.d(__webpack_exports__, "getFontSize", function() { return utils_getFontSize; }); -/* concated harmony reexport getFontSizeClass */__webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return getFontSizeClass; }); -/* concated harmony reexport FontSizePicker */__webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return font_size_picker; }); -/* concated harmony reexport withFontSizes */__webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return with_font_sizes; }); -/* concated harmony reexport transformStyles */__webpack_require__.d(__webpack_exports__, "transformStyles", function() { return transform_styles; }); -/* concated harmony reexport storeConfig */__webpack_require__.d(__webpack_exports__, "storeConfig", function() { return storeConfig; }); -/* concated harmony reexport SETTINGS_DEFAULTS */__webpack_require__.d(__webpack_exports__, "SETTINGS_DEFAULTS", function() { return SETTINGS_DEFAULTS; }); -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - - - - - -/***/ }), - -/***/ 43: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), - -/***/ 46: -/***/ (function(module, exports, __webpack_require__) { - -/** - * Memize options object. - * - * @typedef MemizeOptions - * - * @property {number} [maxSize] Maximum size of the cache. - */ - -/** - * Internal cache entry. - * - * @typedef MemizeCacheNode - * - * @property {?MemizeCacheNode|undefined} [prev] Previous node. - * @property {?MemizeCacheNode|undefined} [next] Next node. - * @property {Array<*>} args Function arguments for cache - * entry. - * @property {*} val Function result. - */ - -/** - * Properties of the enhanced function for controlling cache. - * - * @typedef MemizeMemoizedFunction - * - * @property {()=>void} clear Clear the cache. - */ - -/** - * Accepts a function to be memoized, and returns a new memoized function, with - * optional options. - * - * @template {Function} F - * - * @param {F} fn Function to memoize. - * @param {MemizeOptions} [options] Options object. - * - * @return {F & MemizeMemoizedFunction} Memoized function. - */ -function memize( fn, options ) { - var size = 0; - - /** @type {?MemizeCacheNode|undefined} */ - var head; - - /** @type {?MemizeCacheNode|undefined} */ - var tail; - - options = options || {}; - - function memoized( /* ...args */ ) { - var node = head, - len = arguments.length, - args, i; - - searchCache: while ( node ) { - // Perform a shallow equality test to confirm that whether the node - // under test is a candidate for the arguments passed. Two arrays - // are shallowly equal if their length matches and each entry is - // strictly equal between the two sets. Avoid abstracting to a - // function which could incur an arguments leaking deoptimization. - - // Check whether node arguments match arguments length - if ( node.args.length !== arguments.length ) { - node = node.next; - continue; - } - - // Check whether node arguments match arguments values - for ( i = 0; i < len; i++ ) { - if ( node.args[ i ] !== arguments[ i ] ) { - node = node.next; - continue searchCache; - } - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== head ) { - // As tail, shift to previous. Must only shift if not also - // head, since if both head and tail, there is no previous. - if ( node === tail ) { - tail = node.prev; - } - - // Adjust siblings to point to each other. If node was tail, - // this also handles new tail's empty `next` assignment. - /** @type {MemizeCacheNode} */ ( node.prev ).next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = head; - node.prev = null; - /** @type {MemizeCacheNode} */ ( head ).prev = node; - head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - // Create a copy of arguments (avoid leaking deoptimization) - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - node = { - args: args, - - // Generate the result from original function - val: fn.apply( null, args ), - }; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( head ) { - head.prev = node; - node.next = head; - } else { - // If no head, follows that there's no tail (at initial or reset) - tail = node; - } - - // Trim tail if we're reached max size and are pending cache insertion - if ( size === /** @type {MemizeOptions} */ ( options ).maxSize ) { - tail = /** @type {MemizeCacheNode} */ ( tail ).prev; - /** @type {MemizeCacheNode} */ ( tail ).next = null; - } else { - size++; - } - - head = node; - - return node.val; - } - - memoized.clear = function() { - head = null; - tail = null; - size = 0; - }; - - if ( false ) {} - - // Ignore reason: There's not a clear solution to create an intersection of - // the function with additional properties, where the goal is to retain the - // function signature of the incoming argument and add control properties - // on the return value. - - // @ts-ignore - return memoized; -} - -module.exports = memize; - - -/***/ }), - -/***/ 48: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keyboardShortcuts"]; }()); - -/***/ }), - -/***/ 49: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} - -/***/ }), - -/***/ 5: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -} - -/***/ }), - -/***/ 50: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - -/***/ }), - -/***/ 51: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["isShallowEqual"]; }()); - -/***/ }), - -/***/ 54: -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 -// https://github.com/bgrins/TinyColor -// Brian Grinstead, MIT License - -(function(Math) { - -var trimLeft = /^\s+/, - trimRight = /\s+$/, - tinyCounter = 0, - mathRound = Math.round, - mathMin = Math.min, - mathMax = Math.max, - mathRandom = Math.random; - -function tinycolor (color, opts) { - - color = (color) ? color : ''; - opts = opts || { }; - - // If input is already a tinycolor, return itself - if (color instanceof tinycolor) { - return color; - } - // If we are called as a function, call using new instead - if (!(this instanceof tinycolor)) { - return new tinycolor(color, opts); - } - - var rgb = inputToRGB(color); - this._originalInput = color, - this._r = rgb.r, - this._g = rgb.g, - this._b = rgb.b, - this._a = rgb.a, - this._roundA = mathRound(100*this._a) / 100, - this._format = opts.format || rgb.format; - this._gradientType = opts.gradientType; - - // Don't let the range of [0,255] come back in [0,1]. - // Potentially lose a little bit of precision here, but will fix issues where - // .5 gets interpreted as half of the total, instead of half of 1 - // If it was supposed to be 128, this was already taken care of by `inputToRgb` - if (this._r < 1) { this._r = mathRound(this._r); } - if (this._g < 1) { this._g = mathRound(this._g); } - if (this._b < 1) { this._b = mathRound(this._b); } - - this._ok = rgb.ok; - this._tc_id = tinyCounter++; -} - -tinycolor.prototype = { - isDark: function() { - return this.getBrightness() < 128; - }, - isLight: function() { - return !this.isDark(); - }, - isValid: function() { - return this._ok; - }, - getOriginalInput: function() { - return this._originalInput; - }, - getFormat: function() { - return this._format; - }, - getAlpha: function() { - return this._a; - }, - getBrightness: function() { - //http://www.w3.org/TR/AERT#color-contrast - var rgb = this.toRgb(); - return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; - }, - getLuminance: function() { - //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef - var rgb = this.toRgb(); - var RsRGB, GsRGB, BsRGB, R, G, B; - RsRGB = rgb.r/255; - GsRGB = rgb.g/255; - BsRGB = rgb.b/255; - - if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} - if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} - if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} - return (0.2126 * R) + (0.7152 * G) + (0.0722 * B); - }, - setAlpha: function(value) { - this._a = boundAlpha(value); - this._roundA = mathRound(100*this._a) / 100; - return this; - }, - toHsv: function() { - var hsv = rgbToHsv(this._r, this._g, this._b); - return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a }; - }, - toHsvString: function() { - var hsv = rgbToHsv(this._r, this._g, this._b); - var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100); - return (this._a == 1) ? - "hsv(" + h + ", " + s + "%, " + v + "%)" : - "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")"; - }, - toHsl: function() { - var hsl = rgbToHsl(this._r, this._g, this._b); - return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a }; - }, - toHslString: function() { - var hsl = rgbToHsl(this._r, this._g, this._b); - var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100); - return (this._a == 1) ? - "hsl(" + h + ", " + s + "%, " + l + "%)" : - "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")"; - }, - toHex: function(allow3Char) { - return rgbToHex(this._r, this._g, this._b, allow3Char); - }, - toHexString: function(allow3Char) { - return '#' + this.toHex(allow3Char); - }, - toHex8: function(allow4Char) { - return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char); - }, - toHex8String: function(allow4Char) { - return '#' + this.toHex8(allow4Char); - }, - toRgb: function() { - return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a }; - }, - toRgbString: function() { - return (this._a == 1) ? - "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : - "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")"; - }, - toPercentageRgb: function() { - return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a }; - }, - toPercentageRgbString: function() { - return (this._a == 1) ? - "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : - "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")"; - }, - toName: function() { - if (this._a === 0) { - return "transparent"; - } - - if (this._a < 1) { - return false; - } - - return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false; - }, - toFilter: function(secondColor) { - var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); - var secondHex8String = hex8String; - var gradientType = this._gradientType ? "GradientType = 1, " : ""; - - if (secondColor) { - var s = tinycolor(secondColor); - secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); - } - - return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"; - }, - toString: function(format) { - var formatSet = !!format; - format = format || this._format; - - var formattedString = false; - var hasAlpha = this._a < 1 && this._a >= 0; - var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name"); - - if (needsAlphaFormat) { - // Special case for "transparent", all other non-alpha formats - // will return rgba when there is transparency. - if (format === "name" && this._a === 0) { - return this.toName(); - } - return this.toRgbString(); - } - if (format === "rgb") { - formattedString = this.toRgbString(); - } - if (format === "prgb") { - formattedString = this.toPercentageRgbString(); - } - if (format === "hex" || format === "hex6") { - formattedString = this.toHexString(); - } - if (format === "hex3") { - formattedString = this.toHexString(true); - } - if (format === "hex4") { - formattedString = this.toHex8String(true); - } - if (format === "hex8") { - formattedString = this.toHex8String(); - } - if (format === "name") { - formattedString = this.toName(); - } - if (format === "hsl") { - formattedString = this.toHslString(); - } - if (format === "hsv") { - formattedString = this.toHsvString(); - } - - return formattedString || this.toHexString(); - }, - clone: function() { - return tinycolor(this.toString()); - }, - - _applyModification: function(fn, args) { - var color = fn.apply(null, [this].concat([].slice.call(args))); - this._r = color._r; - this._g = color._g; - this._b = color._b; - this.setAlpha(color._a); - return this; - }, - lighten: function() { - return this._applyModification(lighten, arguments); - }, - brighten: function() { - return this._applyModification(brighten, arguments); - }, - darken: function() { - return this._applyModification(darken, arguments); - }, - desaturate: function() { - return this._applyModification(desaturate, arguments); - }, - saturate: function() { - return this._applyModification(saturate, arguments); - }, - greyscale: function() { - return this._applyModification(greyscale, arguments); - }, - spin: function() { - return this._applyModification(spin, arguments); - }, - - _applyCombination: function(fn, args) { - return fn.apply(null, [this].concat([].slice.call(args))); - }, - analogous: function() { - return this._applyCombination(analogous, arguments); - }, - complement: function() { - return this._applyCombination(complement, arguments); - }, - monochromatic: function() { - return this._applyCombination(monochromatic, arguments); - }, - splitcomplement: function() { - return this._applyCombination(splitcomplement, arguments); - }, - triad: function() { - return this._applyCombination(triad, arguments); - }, - tetrad: function() { - return this._applyCombination(tetrad, arguments); - } -}; - -// If input is an object, force 1 into "1.0" to handle ratios properly -// String input requires "1.0" as input, so 1 will be treated as 1 -tinycolor.fromRatio = function(color, opts) { - if (typeof color == "object") { - var newColor = {}; - for (var i in color) { - if (color.hasOwnProperty(i)) { - if (i === "a") { - newColor[i] = color[i]; - } - else { - newColor[i] = convertToPercentage(color[i]); - } - } - } - color = newColor; - } - - return tinycolor(color, opts); -}; - -// Given a string or object, convert that input to RGB -// Possible string inputs: -// -// "red" -// "#f00" or "f00" -// "#ff0000" or "ff0000" -// "#ff000000" or "ff000000" -// "rgb 255 0 0" or "rgb (255, 0, 0)" -// "rgb 1.0 0 0" or "rgb (1, 0, 0)" -// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" -// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" -// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" -// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" -// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" -// -function inputToRGB(color) { - - var rgb = { r: 0, g: 0, b: 0 }; - var a = 1; - var s = null; - var v = null; - var l = null; - var ok = false; - var format = false; - - if (typeof color == "string") { - color = stringInputToObject(color); - } - - if (typeof color == "object") { - if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { - rgb = rgbToRgb(color.r, color.g, color.b); - ok = true; - format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; - } - else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { - s = convertToPercentage(color.s); - v = convertToPercentage(color.v); - rgb = hsvToRgb(color.h, s, v); - ok = true; - format = "hsv"; - } - else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { - s = convertToPercentage(color.s); - l = convertToPercentage(color.l); - rgb = hslToRgb(color.h, s, l); - ok = true; - format = "hsl"; - } - - if (color.hasOwnProperty("a")) { - a = color.a; - } - } - - a = boundAlpha(a); - - return { - ok: ok, - format: color.format || format, - r: mathMin(255, mathMax(rgb.r, 0)), - g: mathMin(255, mathMax(rgb.g, 0)), - b: mathMin(255, mathMax(rgb.b, 0)), - a: a - }; -} - - -// Conversion Functions -// -------------------- - -// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: -// - -// `rgbToRgb` -// Handle bounds / percentage checking to conform to CSS color spec -// -// *Assumes:* r, g, b in [0, 255] or [0, 1] -// *Returns:* { r, g, b } in [0, 255] -function rgbToRgb(r, g, b){ - return { - r: bound01(r, 255) * 255, - g: bound01(g, 255) * 255, - b: bound01(b, 255) * 255 - }; -} - -// `rgbToHsl` -// Converts an RGB color value to HSL. -// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] -// *Returns:* { h, s, l } in [0,1] -function rgbToHsl(r, g, b) { - - r = bound01(r, 255); - g = bound01(g, 255); - b = bound01(b, 255); - - var max = mathMax(r, g, b), min = mathMin(r, g, b); - var h, s, l = (max + min) / 2; - - if(max == min) { - h = s = 0; // achromatic - } - else { - var d = max - min; - s = l > 0.5 ? d / (2 - max - min) : d / (max + min); - switch(max) { - case r: h = (g - b) / d + (g < b ? 6 : 0); break; - case g: h = (b - r) / d + 2; break; - case b: h = (r - g) / d + 4; break; - } - - h /= 6; - } - - return { h: h, s: s, l: l }; -} - -// `hslToRgb` -// Converts an HSL color value to RGB. -// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] -// *Returns:* { r, g, b } in the set [0, 255] -function hslToRgb(h, s, l) { - var r, g, b; - - h = bound01(h, 360); - s = bound01(s, 100); - l = bound01(l, 100); - - function hue2rgb(p, q, t) { - if(t < 0) t += 1; - if(t > 1) t -= 1; - if(t < 1/6) return p + (q - p) * 6 * t; - if(t < 1/2) return q; - if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; - return p; - } - - if(s === 0) { - r = g = b = l; // achromatic - } - else { - var q = l < 0.5 ? l * (1 + s) : l + s - l * s; - var p = 2 * l - q; - r = hue2rgb(p, q, h + 1/3); - g = hue2rgb(p, q, h); - b = hue2rgb(p, q, h - 1/3); - } - - return { r: r * 255, g: g * 255, b: b * 255 }; -} - -// `rgbToHsv` -// Converts an RGB color value to HSV -// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] -// *Returns:* { h, s, v } in [0,1] -function rgbToHsv(r, g, b) { - - r = bound01(r, 255); - g = bound01(g, 255); - b = bound01(b, 255); - - var max = mathMax(r, g, b), min = mathMin(r, g, b); - var h, s, v = max; - - var d = max - min; - s = max === 0 ? 0 : d / max; - - if(max == min) { - h = 0; // achromatic - } - else { - switch(max) { - case r: h = (g - b) / d + (g < b ? 6 : 0); break; - case g: h = (b - r) / d + 2; break; - case b: h = (r - g) / d + 4; break; - } - h /= 6; - } - return { h: h, s: s, v: v }; -} - -// `hsvToRgb` -// Converts an HSV color value to RGB. -// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] -// *Returns:* { r, g, b } in the set [0, 255] - function hsvToRgb(h, s, v) { - - h = bound01(h, 360) * 6; - s = bound01(s, 100); - v = bound01(v, 100); - - var i = Math.floor(h), - f = h - i, - p = v * (1 - s), - q = v * (1 - f * s), - t = v * (1 - (1 - f) * s), - mod = i % 6, - r = [v, q, p, p, t, v][mod], - g = [t, v, v, q, p, p][mod], - b = [p, p, t, v, v, q][mod]; - - return { r: r * 255, g: g * 255, b: b * 255 }; -} - -// `rgbToHex` -// Converts an RGB color to hex -// Assumes r, g, and b are contained in the set [0, 255] -// Returns a 3 or 6 character hex -function rgbToHex(r, g, b, allow3Char) { - - var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ]; - - // Return a 3 character hex if possible - if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) { - return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); - } - - return hex.join(""); -} - -// `rgbaToHex` -// Converts an RGBA color plus alpha transparency to hex -// Assumes r, g, b are contained in the set [0, 255] and -// a in [0, 1]. Returns a 4 or 8 character rgba hex -function rgbaToHex(r, g, b, a, allow4Char) { - - var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)), - pad2(convertDecimalToHex(a)) - ]; - - // Return a 4 character hex if possible - if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) { - return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); - } - - return hex.join(""); -} - -// `rgbaToArgbHex` -// Converts an RGBA color to an ARGB Hex8 string -// Rarely used, but required for "toFilter()" -function rgbaToArgbHex(r, g, b, a) { - - var hex = [ - pad2(convertDecimalToHex(a)), - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ]; - - return hex.join(""); -} - -// `equals` -// Can be called with any tinycolor input -tinycolor.equals = function (color1, color2) { - if (!color1 || !color2) { return false; } - return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString(); -}; - -tinycolor.random = function() { - return tinycolor.fromRatio({ - r: mathRandom(), - g: mathRandom(), - b: mathRandom() - }); -}; - - -// Modification Functions -// ---------------------- -// Thanks to less.js for some of the basics here -// - -function desaturate(color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.s -= amount / 100; - hsl.s = clamp01(hsl.s); - return tinycolor(hsl); -} - -function saturate(color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.s += amount / 100; - hsl.s = clamp01(hsl.s); - return tinycolor(hsl); -} - -function greyscale(color) { - return tinycolor(color).desaturate(100); -} - -function lighten (color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.l += amount / 100; - hsl.l = clamp01(hsl.l); - return tinycolor(hsl); -} - -function brighten(color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var rgb = tinycolor(color).toRgb(); - rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100)))); - rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100)))); - rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100)))); - return tinycolor(rgb); -} - -function darken (color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.l -= amount / 100; - hsl.l = clamp01(hsl.l); - return tinycolor(hsl); -} - -// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. -// Values outside of this range will be wrapped into this range. -function spin(color, amount) { - var hsl = tinycolor(color).toHsl(); - var hue = (hsl.h + amount) % 360; - hsl.h = hue < 0 ? 360 + hue : hue; - return tinycolor(hsl); -} - -// Combination Functions -// --------------------- -// Thanks to jQuery xColor for some of the ideas behind these -// - -function complement(color) { - var hsl = tinycolor(color).toHsl(); - hsl.h = (hsl.h + 180) % 360; - return tinycolor(hsl); -} - -function triad(color) { - var hsl = tinycolor(color).toHsl(); - var h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) - ]; -} - -function tetrad(color) { - var hsl = tinycolor(color).toHsl(); - var h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) - ]; -} - -function splitcomplement(color) { - var hsl = tinycolor(color).toHsl(); - var h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), - tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) - ]; -} - -function analogous(color, results, slices) { - results = results || 6; - slices = slices || 30; - - var hsl = tinycolor(color).toHsl(); - var part = 360 / slices; - var ret = [tinycolor(color)]; - - for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) { - hsl.h = (hsl.h + part) % 360; - ret.push(tinycolor(hsl)); - } - return ret; -} - -function monochromatic(color, results) { - results = results || 6; - var hsv = tinycolor(color).toHsv(); - var h = hsv.h, s = hsv.s, v = hsv.v; - var ret = []; - var modification = 1 / results; - - while (results--) { - ret.push(tinycolor({ h: h, s: s, v: v})); - v = (v + modification) % 1; - } - - return ret; -} - -// Utility Functions -// --------------------- - -tinycolor.mix = function(color1, color2, amount) { - amount = (amount === 0) ? 0 : (amount || 50); - - var rgb1 = tinycolor(color1).toRgb(); - var rgb2 = tinycolor(color2).toRgb(); - - var p = amount / 100; - - var rgba = { - r: ((rgb2.r - rgb1.r) * p) + rgb1.r, - g: ((rgb2.g - rgb1.g) * p) + rgb1.g, - b: ((rgb2.b - rgb1.b) * p) + rgb1.b, - a: ((rgb2.a - rgb1.a) * p) + rgb1.a - }; - - return tinycolor(rgba); -}; - - -// Readability Functions -// --------------------- -// false -// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false -tinycolor.isReadable = function(color1, color2, wcag2) { - var readability = tinycolor.readability(color1, color2); - var wcag2Parms, out; - - out = false; - - wcag2Parms = validateWCAG2Parms(wcag2); - switch (wcag2Parms.level + wcag2Parms.size) { - case "AAsmall": - case "AAAlarge": - out = readability >= 4.5; - break; - case "AAlarge": - out = readability >= 3; - break; - case "AAAsmall": - out = readability >= 7; - break; - } - return out; - -}; - -// `mostReadable` -// Given a base color and a list of possible foreground or background -// colors for that base, returns the most readable color. -// Optionally returns Black or White if the most readable color is unreadable. -// *Example* -// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255" -// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff" -// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3" -// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff" -tinycolor.mostReadable = function(baseColor, colorList, args) { - var bestColor = null; - var bestScore = 0; - var readability; - var includeFallbackColors, level, size ; - args = args || {}; - includeFallbackColors = args.includeFallbackColors ; - level = args.level; - size = args.size; - - for (var i= 0; i < colorList.length ; i++) { - readability = tinycolor.readability(baseColor, colorList[i]); - if (readability > bestScore) { - bestScore = readability; - bestColor = tinycolor(colorList[i]); - } - } - - if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) { - return bestColor; - } - else { - args.includeFallbackColors=false; - return tinycolor.mostReadable(baseColor,["#fff", "#000"],args); - } -}; - - -// Big List of Colors -// ------------------ -// -var names = tinycolor.names = { - aliceblue: "f0f8ff", - antiquewhite: "faebd7", - aqua: "0ff", - aquamarine: "7fffd4", - azure: "f0ffff", - beige: "f5f5dc", - bisque: "ffe4c4", - black: "000", - blanchedalmond: "ffebcd", - blue: "00f", - blueviolet: "8a2be2", - brown: "a52a2a", - burlywood: "deb887", - burntsienna: "ea7e5d", - cadetblue: "5f9ea0", - chartreuse: "7fff00", - chocolate: "d2691e", - coral: "ff7f50", - cornflowerblue: "6495ed", - cornsilk: "fff8dc", - crimson: "dc143c", - cyan: "0ff", - darkblue: "00008b", - darkcyan: "008b8b", - darkgoldenrod: "b8860b", - darkgray: "a9a9a9", - darkgreen: "006400", - darkgrey: "a9a9a9", - darkkhaki: "bdb76b", - darkmagenta: "8b008b", - darkolivegreen: "556b2f", - darkorange: "ff8c00", - darkorchid: "9932cc", - darkred: "8b0000", - darksalmon: "e9967a", - darkseagreen: "8fbc8f", - darkslateblue: "483d8b", - darkslategray: "2f4f4f", - darkslategrey: "2f4f4f", - darkturquoise: "00ced1", - darkviolet: "9400d3", - deeppink: "ff1493", - deepskyblue: "00bfff", - dimgray: "696969", - dimgrey: "696969", - dodgerblue: "1e90ff", - firebrick: "b22222", - floralwhite: "fffaf0", - forestgreen: "228b22", - fuchsia: "f0f", - gainsboro: "dcdcdc", - ghostwhite: "f8f8ff", - gold: "ffd700", - goldenrod: "daa520", - gray: "808080", - green: "008000", - greenyellow: "adff2f", - grey: "808080", - honeydew: "f0fff0", - hotpink: "ff69b4", - indianred: "cd5c5c", - indigo: "4b0082", - ivory: "fffff0", - khaki: "f0e68c", - lavender: "e6e6fa", - lavenderblush: "fff0f5", - lawngreen: "7cfc00", - lemonchiffon: "fffacd", - lightblue: "add8e6", - lightcoral: "f08080", - lightcyan: "e0ffff", - lightgoldenrodyellow: "fafad2", - lightgray: "d3d3d3", - lightgreen: "90ee90", - lightgrey: "d3d3d3", - lightpink: "ffb6c1", - lightsalmon: "ffa07a", - lightseagreen: "20b2aa", - lightskyblue: "87cefa", - lightslategray: "789", - lightslategrey: "789", - lightsteelblue: "b0c4de", - lightyellow: "ffffe0", - lime: "0f0", - limegreen: "32cd32", - linen: "faf0e6", - magenta: "f0f", - maroon: "800000", - mediumaquamarine: "66cdaa", - mediumblue: "0000cd", - mediumorchid: "ba55d3", - mediumpurple: "9370db", - mediumseagreen: "3cb371", - mediumslateblue: "7b68ee", - mediumspringgreen: "00fa9a", - mediumturquoise: "48d1cc", - mediumvioletred: "c71585", - midnightblue: "191970", - mintcream: "f5fffa", - mistyrose: "ffe4e1", - moccasin: "ffe4b5", - navajowhite: "ffdead", - navy: "000080", - oldlace: "fdf5e6", - olive: "808000", - olivedrab: "6b8e23", - orange: "ffa500", - orangered: "ff4500", - orchid: "da70d6", - palegoldenrod: "eee8aa", - palegreen: "98fb98", - paleturquoise: "afeeee", - palevioletred: "db7093", - papayawhip: "ffefd5", - peachpuff: "ffdab9", - peru: "cd853f", - pink: "ffc0cb", - plum: "dda0dd", - powderblue: "b0e0e6", - purple: "800080", - rebeccapurple: "663399", - red: "f00", - rosybrown: "bc8f8f", - royalblue: "4169e1", - saddlebrown: "8b4513", - salmon: "fa8072", - sandybrown: "f4a460", - seagreen: "2e8b57", - seashell: "fff5ee", - sienna: "a0522d", - silver: "c0c0c0", - skyblue: "87ceeb", - slateblue: "6a5acd", - slategray: "708090", - slategrey: "708090", - snow: "fffafa", - springgreen: "00ff7f", - steelblue: "4682b4", - tan: "d2b48c", - teal: "008080", - thistle: "d8bfd8", - tomato: "ff6347", - turquoise: "40e0d0", - violet: "ee82ee", - wheat: "f5deb3", - white: "fff", - whitesmoke: "f5f5f5", - yellow: "ff0", - yellowgreen: "9acd32" -}; - -// Make it easy to access colors via `hexNames[hex]` -var hexNames = tinycolor.hexNames = flip(names); - - -// Utilities -// --------- - -// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }` -function flip(o) { - var flipped = { }; - for (var i in o) { - if (o.hasOwnProperty(i)) { - flipped[o[i]] = i; - } - } - return flipped; -} - -// Return a valid alpha value [0,1] with all invalid values being set to 1 -function boundAlpha(a) { - a = parseFloat(a); - - if (isNaN(a) || a < 0 || a > 1) { - a = 1; - } - - return a; -} - -// Take input from [0, n] and return it as [0, 1] -function bound01(n, max) { - if (isOnePointZero(n)) { n = "100%"; } - - var processPercent = isPercentage(n); - n = mathMin(max, mathMax(0, parseFloat(n))); - - // Automatically convert percentage into number - if (processPercent) { - n = parseInt(n * max, 10) / 100; - } - - // Handle floating point rounding errors - if ((Math.abs(n - max) < 0.000001)) { - return 1; - } - - // Convert into [0, 1] range if it isn't already - return (n % max) / parseFloat(max); -} - -// Force a number between 0 and 1 -function clamp01(val) { - return mathMin(1, mathMax(0, val)); -} - -// Parse a base-16 hex value into a base-10 integer -function parseIntFromHex(val) { - return parseInt(val, 16); -} - -// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 -// -function isOnePointZero(n) { - return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; -} - -// Check to see if string passed in is a percentage -function isPercentage(n) { - return typeof n === "string" && n.indexOf('%') != -1; -} - -// Force a hex value to have 2 characters -function pad2(c) { - return c.length == 1 ? '0' + c : '' + c; -} - -// Replace a decimal with it's percentage value -function convertToPercentage(n) { - if (n <= 1) { - n = (n * 100) + "%"; - } - - return n; -} - -// Converts a decimal to a hex value -function convertDecimalToHex(d) { - return Math.round(parseFloat(d) * 255).toString(16); -} -// Converts a hex value to a decimal -function convertHexToDecimal(h) { - return (parseIntFromHex(h) / 255); -} - -var matchers = (function() { - - // - var CSS_INTEGER = "[-\\+]?\\d+%?"; - - // - var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; - - // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. - var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; - - // Actual matching. - // Parentheses and commas are optional, but not required. - // Whitespace can take the place of commas or opening paren - var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; - var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; - - return { - CSS_UNIT: new RegExp(CSS_UNIT), - rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), - rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), - hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), - hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), - hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), - hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ - }; -})(); - -// `isValidCSSUnit` -// Take in a single string / number and check to see if it looks like a CSS unit -// (see `matchers` above for definition). -function isValidCSSUnit(color) { - return !!matchers.CSS_UNIT.exec(color); -} - -// `stringInputToObject` -// Permissive string parsing. Take in a number of formats, and output an object -// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` -function stringInputToObject(color) { - - color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase(); - var named = false; - if (names[color]) { - color = names[color]; - named = true; - } - else if (color == 'transparent') { - return { r: 0, g: 0, b: 0, a: 0, format: "name" }; - } - - // Try to match string input using regular expressions. - // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] - // Just return an object and let the conversion functions handle that. - // This way the result will be the same whether the tinycolor is initialized with string or object. - var match; - if ((match = matchers.rgb.exec(color))) { - return { r: match[1], g: match[2], b: match[3] }; - } - if ((match = matchers.rgba.exec(color))) { - return { r: match[1], g: match[2], b: match[3], a: match[4] }; - } - if ((match = matchers.hsl.exec(color))) { - return { h: match[1], s: match[2], l: match[3] }; - } - if ((match = matchers.hsla.exec(color))) { - return { h: match[1], s: match[2], l: match[3], a: match[4] }; - } - if ((match = matchers.hsv.exec(color))) { - return { h: match[1], s: match[2], v: match[3] }; - } - if ((match = matchers.hsva.exec(color))) { - return { h: match[1], s: match[2], v: match[3], a: match[4] }; - } - if ((match = matchers.hex8.exec(color))) { - return { - r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - a: convertHexToDecimal(match[4]), - format: named ? "name" : "hex8" - }; - } - if ((match = matchers.hex6.exec(color))) { - return { - r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - format: named ? "name" : "hex" - }; - } - if ((match = matchers.hex4.exec(color))) { - return { - r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - a: convertHexToDecimal(match[4] + '' + match[4]), - format: named ? "name" : "hex8" - }; - } - if ((match = matchers.hex3.exec(color))) { - return { - r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - format: named ? "name" : "hex" - }; - } - - return false; -} - -function validateWCAG2Parms(parms) { - // return valid WCAG2 parms for isReadable. - // If input parms are invalid, return {"level":"AA", "size":"small"} - var level, size; - parms = parms || {"level":"AA", "size":"small"}; - level = (parms.level || "AA").toUpperCase(); - size = (parms.size || "small").toLowerCase(); - if (level !== "AA" && level !== "AAA") { - level = "AA"; - } - if (size !== "small" && size !== "large") { - size = "small"; - } - return {"level":level, "size":size}; -} - -// Node: Export function -if ( true && module.exports) { - module.exports = tinycolor; -} -// AMD/requirejs: Define the module -else if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); -} -// Browser: Expose to window -else {} - -})(Math); - - -/***/ }), - -/***/ 56: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["viewport"]; }()); - -/***/ }), - -/***/ 58: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["htmlEntities"]; }()); - -/***/ }), - -/***/ 7: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -29547,46 +116,63 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 72: +/***/ 103: /***/ (function(module, exports, __webpack_require__) { "use strict"; -exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(152); -exports["default"] = TextareaAutosize_1["default"]; - -/***/ }), - -/***/ 73: -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; +function flattenIntoMap( map, effects ) { + var i; + if ( Array.isArray( effects ) ) { + for ( i = 0; i < effects.length; i++ ) { + flattenIntoMap( map, effects[ i ] ); + } + } else { + for ( i in effects ) { + map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); + } + } } -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} +function refx( effects ) { + var map = {}, + middleware; -module.exports = g; + flattenIntoMap( map, effects ); + + middleware = function( store ) { + return function( next ) { + return function( action ) { + var handlers = map[ action.type ], + result = next( action ), + i, handlerAction; + + if ( handlers ) { + for ( i = 0; i < handlers.length; i++ ) { + handlerAction = handlers[ i ]( action, store ); + if ( handlerAction ) { + store.dispatch( handlerAction ); + } + } + } + + return result; + }; + }; + }; + + middleware.effects = map; + + return middleware; +} + +module.exports = refx; /***/ }), -/***/ 77: +/***/ 107: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -29596,12 +182,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(156)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(157)); -var React = __webpack_require__(21); +var _extends = _interopDefault(__webpack_require__(161)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(162)); +var React = __webpack_require__(17); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(127)); -var _assertThisInitialized = _interopDefault(__webpack_require__(158)); +var _inheritsLoose = _interopDefault(__webpack_require__(139)); +var _assertThisInitialized = _interopDefault(__webpack_require__(163)); var is = { arr: Array.isArray, @@ -31917,75 +2503,31515 @@ exports.useSprings = useSprings; /***/ }), -/***/ 8: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - -/***/ }), - -/***/ 84: +/***/ 11: /***/ (function(module, exports, __webpack_require__) { -"use strict"; +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +/* global define */ +(function () { + 'use strict'; -module.exports = __webpack_require__(150); + var hasOwn = {}.hasOwnProperty; -/***/ }), + function classNames () { + var classes = []; -/***/ 89: -/***/ (function(module, exports, __webpack_require__) { + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; -"use strict"; + var argType = typeof arg; - -function flattenIntoMap( map, effects ) { - var i; - if ( Array.isArray( effects ) ) { - for ( i = 0; i < effects.length; i++ ) { - flattenIntoMap( map, effects[ i ] ); - } - } else { - for ( i in effects ) { - map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); - } - } -} - -function refx( effects ) { - var map = {}, - middleware; - - flattenIntoMap( map, effects ); - - middleware = function( store ) { - return function( next ) { - return function( action ) { - var handlers = map[ action.type ], - result = next( action ), - i, handlerAction; - - if ( handlers ) { - for ( i = 0; i < handlers.length; i++ ) { - handlerAction = handlers[ i ]( action, store ); - if ( handlerAction ) { - store.dispatch( handlerAction ); - } + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); } } + } + } - return result; - }; - }; - }; + return classes.join(' '); + } - middleware.effects = map; + if ( true && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} +}()); - return middleware; + +/***/ }), + +/***/ 114: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = __webpack_require__(168); + +/***/ }), + +/***/ 117: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["shortcode"]; }()); + +/***/ }), + +/***/ 12: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blocks"]; }()); + +/***/ }), + +/***/ 13: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); } -module.exports = refx; +/***/ }), + +/***/ 130: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); + + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. + +/* eslint-disable jsdoc/valid-types */ + +/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ + +/* eslint-enable jsdoc/valid-types */ + +/** + * Return an SVG icon. + * + * @param {IconProps} props icon is the SVG component to render + * size is a number specifiying the icon size in pixels + * Other props will be passed to wrapped SVG component + * + * @return {JSX.Element} Icon component + */ + +function Icon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ + width: size, + height: size + }, props)); +} + +/* harmony default export */ __webpack_exports__["a"] = (Icon); + + +/***/ }), + +/***/ 131: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = __webpack_require__(132); + +function emptyFunction() {} +function emptyFunctionWithReset() {} +emptyFunctionWithReset.resetWarningCache = emptyFunction; + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + err.name = 'Invariant Violation'; + throw err; + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + + +/***/ }), + +/***/ 132: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), + +/***/ 133: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (close); + + +/***/ }), + +/***/ 139: +/***/ (function(module, exports) { + +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} + +module.exports = _inheritsLoose; + +/***/ }), + +/***/ 14: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} + +/***/ }), + +/***/ 140: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; }); +/* harmony import */ var _arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38); +/* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35); +/* harmony import */ var _unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28); +/* harmony import */ var _nonIterableRest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39); + + + + +function _toArray(arr) { + return Object(_arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(); +} + +/***/ }), + +/***/ 141: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["wordcount"]; }()); + +/***/ }), + +/***/ 145: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["tokenList"]; }()); + +/***/ }), + +/***/ 15: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +var arrayWithHoles = __webpack_require__(38); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +function _iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(28); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +var nonIterableRest = __webpack_require__(39); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); + + + + +function _slicedToArray(arr, i) { + return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])(); +} + +/***/ }), + +/***/ 156: +/***/ (function(module, exports) { + +if (typeof Object.create === 'function') { + // implementation from standard node.js 'util' module + module.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }) + } + }; +} else { + // old school shim for old browsers + module.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } + } +} + + +/***/ }), + +/***/ 16: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(26); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(35); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(28); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 161: +/***/ (function(module, exports) { + +function _extends() { + module.exports = _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +module.exports = _extends; + +/***/ }), + +/***/ 162: +/***/ (function(module, exports) { + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +module.exports = _objectWithoutPropertiesLoose; + +/***/ }), + +/***/ 163: +/***/ (function(module, exports) { + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +module.exports = _assertThisInitialized; + +/***/ }), + +/***/ 164: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +exports.__esModule = true; +var React = __webpack_require__(17); +var PropTypes = __webpack_require__(33); +var autosize = __webpack_require__(165); +var _getLineHeight = __webpack_require__(166); +var getLineHeight = _getLineHeight; +var UPDATE = 'autosize:update'; +var DESTROY = 'autosize:destroy'; +var RESIZED = 'autosize:resized'; +/** + * A light replacement for built-in textarea component + * which automaticaly adjusts its height to match the content + */ +var TextareaAutosize = /** @class */ (function (_super) { + __extends(TextareaAutosize, _super); + function TextareaAutosize() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + lineHeight: null + }; + _this.dispatchEvent = function (EVENT_TYPE) { + var event = document.createEvent('Event'); + event.initEvent(EVENT_TYPE, true, false); + _this.textarea.dispatchEvent(event); + }; + _this.updateLineHeight = function () { + _this.setState({ + lineHeight: getLineHeight(_this.textarea) + }); + }; + _this.onChange = function (e) { + var onChange = _this.props.onChange; + _this.currentValue = e.currentTarget.value; + onChange && onChange(e); + }; + _this.saveDOMNodeRef = function (ref) { + var innerRef = _this.props.innerRef; + if (innerRef) { + innerRef(ref); + } + _this.textarea = ref; + }; + _this.getLocals = function () { + var _a = _this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef"]), lineHeight = _a.state.lineHeight, saveDOMNodeRef = _a.saveDOMNodeRef; + var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null; + return __assign({}, props, { saveDOMNodeRef: saveDOMNodeRef, style: maxHeight ? __assign({}, style, { maxHeight: maxHeight }) : style, onChange: _this.onChange }); + }; + return _this; + } + TextareaAutosize.prototype.componentDidMount = function () { + var _this = this; + var _a = this.props, onResize = _a.onResize, maxRows = _a.maxRows; + if (typeof maxRows === 'number') { + this.updateLineHeight(); + } + /* + the defer is needed to: + - force "autosize" to activate the scrollbar when this.props.maxRows is passed + - support StyledComponents (see #71) + */ + setTimeout(function () { return autosize(_this.textarea); }); + if (onResize) { + this.textarea.addEventListener(RESIZED, onResize); + } + }; + TextareaAutosize.prototype.componentWillUnmount = function () { + var onResize = this.props.onResize; + if (onResize) { + this.textarea.removeEventListener(RESIZED, onResize); + } + this.dispatchEvent(DESTROY); + }; + TextareaAutosize.prototype.render = function () { + var _a = this.getLocals(), children = _a.children, saveDOMNodeRef = _a.saveDOMNodeRef, locals = __rest(_a, ["children", "saveDOMNodeRef"]); + return (React.createElement("textarea", __assign({}, locals, { ref: saveDOMNodeRef }), children)); + }; + TextareaAutosize.prototype.componentDidUpdate = function (prevProps) { + if (this.props.value !== this.currentValue || this.props.rows !== prevProps.rows) { + this.dispatchEvent(UPDATE); + } + }; + TextareaAutosize.defaultProps = { + rows: 1 + }; + TextareaAutosize.propTypes = { + rows: PropTypes.number, + maxRows: PropTypes.number, + onResize: PropTypes.func, + innerRef: PropTypes.func + }; + return TextareaAutosize; +}(React.Component)); +exports["default"] = TextareaAutosize; + + +/***/ }), + +/***/ 165: +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + autosize 4.0.2 + license: MIT + http://www.jacklmoore.com/autosize +*/ +(function (global, factory) { + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { var mod; } +})(this, function (module, exports) { + 'use strict'; + + var map = typeof Map === "function" ? new Map() : function () { + var keys = []; + var values = []; + + return { + has: function has(key) { + return keys.indexOf(key) > -1; + }, + get: function get(key) { + return values[keys.indexOf(key)]; + }, + set: function set(key, value) { + if (keys.indexOf(key) === -1) { + keys.push(key); + values.push(value); + } + }, + delete: function _delete(key) { + var index = keys.indexOf(key); + if (index > -1) { + keys.splice(index, 1); + values.splice(index, 1); + } + } + }; + }(); + + var createEvent = function createEvent(name) { + return new Event(name, { bubbles: true }); + }; + try { + new Event('test'); + } catch (e) { + // IE does not support `new Event()` + createEvent = function createEvent(name) { + var evt = document.createEvent('Event'); + evt.initEvent(name, true, false); + return evt; + }; + } + + function assign(ta) { + if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return; + + var heightOffset = null; + var clientWidth = null; + var cachedHeight = null; + + function init() { + var style = window.getComputedStyle(ta, null); + + if (style.resize === 'vertical') { + ta.style.resize = 'none'; + } else if (style.resize === 'both') { + ta.style.resize = 'horizontal'; + } + + if (style.boxSizing === 'content-box') { + heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); + } else { + heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); + } + // Fix when a textarea is not on document body and heightOffset is Not a Number + if (isNaN(heightOffset)) { + heightOffset = 0; + } + + update(); + } + + function changeOverflow(value) { + { + // Chrome/Safari-specific fix: + // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space + // made available by removing the scrollbar. The following forces the necessary text reflow. + var width = ta.style.width; + ta.style.width = '0px'; + // Force reflow: + /* jshint ignore:start */ + ta.offsetWidth; + /* jshint ignore:end */ + ta.style.width = width; + } + + ta.style.overflowY = value; + } + + function getParentOverflows(el) { + var arr = []; + + while (el && el.parentNode && el.parentNode instanceof Element) { + if (el.parentNode.scrollTop) { + arr.push({ + node: el.parentNode, + scrollTop: el.parentNode.scrollTop + }); + } + el = el.parentNode; + } + + return arr; + } + + function resize() { + if (ta.scrollHeight === 0) { + // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. + return; + } + + var overflows = getParentOverflows(ta); + var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) + + ta.style.height = ''; + ta.style.height = ta.scrollHeight + heightOffset + 'px'; + + // used to check if an update is actually necessary on window.resize + clientWidth = ta.clientWidth; + + // prevents scroll-position jumping + overflows.forEach(function (el) { + el.node.scrollTop = el.scrollTop; + }); + + if (docTop) { + document.documentElement.scrollTop = docTop; + } + } + + function update() { + resize(); + + var styleHeight = Math.round(parseFloat(ta.style.height)); + var computed = window.getComputedStyle(ta, null); + + // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box + var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight; + + // The actual height not matching the style height (set via the resize method) indicates that + // the max-height has been exceeded, in which case the overflow should be allowed. + if (actualHeight < styleHeight) { + if (computed.overflowY === 'hidden') { + changeOverflow('scroll'); + resize(); + actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; + } + } else { + // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. + if (computed.overflowY !== 'hidden') { + changeOverflow('hidden'); + resize(); + actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; + } + } + + if (cachedHeight !== actualHeight) { + cachedHeight = actualHeight; + var evt = createEvent('autosize:resized'); + try { + ta.dispatchEvent(evt); + } catch (err) { + // Firefox will throw an error on dispatchEvent for a detached element + // https://bugzilla.mozilla.org/show_bug.cgi?id=889376 + } + } + } + + var pageResize = function pageResize() { + if (ta.clientWidth !== clientWidth) { + update(); + } + }; + + var destroy = function (style) { + window.removeEventListener('resize', pageResize, false); + ta.removeEventListener('input', update, false); + ta.removeEventListener('keyup', update, false); + ta.removeEventListener('autosize:destroy', destroy, false); + ta.removeEventListener('autosize:update', update, false); + + Object.keys(style).forEach(function (key) { + ta.style[key] = style[key]; + }); + + map.delete(ta); + }.bind(ta, { + height: ta.style.height, + resize: ta.style.resize, + overflowY: ta.style.overflowY, + overflowX: ta.style.overflowX, + wordWrap: ta.style.wordWrap + }); + + ta.addEventListener('autosize:destroy', destroy, false); + + // IE9 does not fire onpropertychange or oninput for deletions, + // so binding to onkeyup to catch most of those events. + // There is no way that I know of to detect something like 'cut' in IE9. + if ('onpropertychange' in ta && 'oninput' in ta) { + ta.addEventListener('keyup', update, false); + } + + window.addEventListener('resize', pageResize, false); + ta.addEventListener('input', update, false); + ta.addEventListener('autosize:update', update, false); + ta.style.overflowX = 'hidden'; + ta.style.wordWrap = 'break-word'; + + map.set(ta, { + destroy: destroy, + update: update + }); + + init(); + } + + function destroy(ta) { + var methods = map.get(ta); + if (methods) { + methods.destroy(); + } + } + + function update(ta) { + var methods = map.get(ta); + if (methods) { + methods.update(); + } + } + + var autosize = null; + + // Do nothing in Node.js environment and IE8 (or lower) + if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { + autosize = function autosize(el) { + return el; + }; + autosize.destroy = function (el) { + return el; + }; + autosize.update = function (el) { + return el; + }; + } else { + autosize = function autosize(el, options) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], function (x) { + return assign(x, options); + }); + } + return el; + }; + autosize.destroy = function (el) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], destroy); + } + return el; + }; + autosize.update = function (el) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], update); + } + return el; + }; + } + + exports.default = autosize; + module.exports = exports['default']; +}); + +/***/ }), + +/***/ 166: +/***/ (function(module, exports, __webpack_require__) { + +// Load in dependencies +var computedStyle = __webpack_require__(167); + +/** + * Calculate the `line-height` of a given node + * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM. + * @returns {Number} `line-height` of the element in pixels + */ +function lineHeight(node) { + // Grab the line-height via style + var lnHeightStr = computedStyle(node, 'line-height'); + var lnHeight = parseFloat(lnHeightStr, 10); + + // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em') + if (lnHeightStr === lnHeight + '') { + // Save the old lineHeight style and update the em unit to the element + var _lnHeightStyle = node.style.lineHeight; + node.style.lineHeight = lnHeightStr + 'em'; + + // Calculate the em based height + lnHeightStr = computedStyle(node, 'line-height'); + lnHeight = parseFloat(lnHeightStr, 10); + + // Revert the lineHeight style + if (_lnHeightStyle) { + node.style.lineHeight = _lnHeightStyle; + } else { + delete node.style.lineHeight; + } + } + + // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt) + // DEV: `em` units are converted to `pt` in IE6 + // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length + if (lnHeightStr.indexOf('pt') !== -1) { + lnHeight *= 4; + lnHeight /= 3; + // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm) + } else if (lnHeightStr.indexOf('mm') !== -1) { + lnHeight *= 96; + lnHeight /= 25.4; + // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm) + } else if (lnHeightStr.indexOf('cm') !== -1) { + lnHeight *= 96; + lnHeight /= 2.54; + // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in) + } else if (lnHeightStr.indexOf('in') !== -1) { + lnHeight *= 96; + // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc) + } else if (lnHeightStr.indexOf('pc') !== -1) { + lnHeight *= 16; + } + + // Continue our computation + lnHeight = Math.round(lnHeight); + + // If the line-height is "normal", calculate by font-size + if (lnHeightStr === 'normal') { + // Create a temporary node + var nodeName = node.nodeName; + var _node = document.createElement(nodeName); + _node.innerHTML = ' '; + + // If we have a text area, reset it to only 1 row + // https://github.com/twolfson/line-height/issues/4 + if (nodeName.toUpperCase() === 'TEXTAREA') { + _node.setAttribute('rows', '1'); + } + + // Set the font-size of the element + var fontSizeStr = computedStyle(node, 'font-size'); + _node.style.fontSize = fontSizeStr; + + // Remove default padding/border which can affect offset height + // https://github.com/twolfson/line-height/issues/4 + // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight + _node.style.padding = '0px'; + _node.style.border = '0px'; + + // Append it to the body + var body = document.body; + body.appendChild(_node); + + // Assume the line height of the element is the height + var height = _node.offsetHeight; + lnHeight = height; + + // Remove our child from the DOM + body.removeChild(_node); + } + + // Return the calculated height + return lnHeight; +} + +// Export lineHeight +module.exports = lineHeight; + + +/***/ }), + +/***/ 167: +/***/ (function(module, exports) { + +// This code has been refactored for 140 bytes +// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js +var computedStyle = function (el, prop, getComputedStyle) { + getComputedStyle = window.getComputedStyle; + + // In one fell swoop + return ( + // If we have getComputedStyle + getComputedStyle ? + // Query it + // TODO: From CSS-Query notes, we might need (node, null) for FF + getComputedStyle(el) : + + // Otherwise, we are in IE and use currentStyle + el.currentStyle + )[ + // Switch to camelCase for CSSOM + // DEV: Grabbed from jQuery + // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194 + // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597 + prop.replace(/-(\w)/gi, function (word, letter) { + return letter.toUpperCase(); + }) + ]; +}; + +module.exports = computedStyle; + + +/***/ }), + +/***/ 168: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var util = __webpack_require__(169); + +function scrollIntoView(elem, container, config) { + config = config || {}; + // document 归一化到 window + if (container.nodeType === 9) { + container = util.getWindow(container); + } + + var allowHorizontalScroll = config.allowHorizontalScroll; + var onlyScrollIfNeeded = config.onlyScrollIfNeeded; + var alignWithTop = config.alignWithTop; + var alignWithLeft = config.alignWithLeft; + var offsetTop = config.offsetTop || 0; + var offsetLeft = config.offsetLeft || 0; + var offsetBottom = config.offsetBottom || 0; + var offsetRight = config.offsetRight || 0; + + allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; + + var isWin = util.isWindow(container); + var elemOffset = util.offset(elem); + var eh = util.outerHeight(elem); + var ew = util.outerWidth(elem); + var containerOffset = undefined; + var ch = undefined; + var cw = undefined; + var containerScroll = undefined; + var diffTop = undefined; + var diffBottom = undefined; + var win = undefined; + var winScroll = undefined; + var ww = undefined; + var wh = undefined; + + if (isWin) { + win = container; + wh = util.height(win); + ww = util.width(win); + winScroll = { + left: util.scrollLeft(win), + top: util.scrollTop(win) + }; + // elem 相对 container 可视视窗的距离 + diffTop = { + left: elemOffset.left - winScroll.left - offsetLeft, + top: elemOffset.top - winScroll.top - offsetTop + }; + diffBottom = { + left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, + top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom + }; + containerScroll = winScroll; + } else { + containerOffset = util.offset(container); + ch = container.clientHeight; + cw = container.clientWidth; + containerScroll = { + left: container.scrollLeft, + top: container.scrollTop + }; + // elem 相对 container 可视视窗的距离 + // 注意边框, offset 是边框到根节点 + diffTop = { + left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, + top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop + }; + diffBottom = { + left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, + top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom + }; + } + + if (diffTop.top < 0 || diffBottom.top > 0) { + // 强制向上 + if (alignWithTop === true) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else if (alignWithTop === false) { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } else { + // 自动调整 + if (diffTop.top < 0) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; + if (alignWithTop) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } + + if (allowHorizontalScroll) { + if (diffTop.left < 0 || diffBottom.left > 0) { + // 强制向上 + if (alignWithLeft === true) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else if (alignWithLeft === false) { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } else { + // 自动调整 + if (diffTop.left < 0) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; + if (alignWithLeft) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } + } +} + +module.exports = scrollIntoView; + +/***/ }), + +/***/ 169: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; + +var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; + +function getClientPosition(elem) { + var box = undefined; + var x = undefined; + var y = undefined; + var doc = elem.ownerDocument; + var body = doc.body; + var docElem = doc && doc.documentElement; + // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 + box = elem.getBoundingClientRect(); + + // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop + // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 + // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin + + x = box.left; + y = box.top; + + // In IE, most of the time, 2 extra pixels are added to the top and left + // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and + // IE6 standards mode, this border can be overridden by setting the + // document element's border to zero -- thus, we cannot rely on the + // offset always being 2 pixels. + + // In quirks mode, the offset can be determined by querying the body's + // clientLeft/clientTop, but in standards mode, it is found by querying + // the document element's clientLeft/clientTop. Since we already called + // getClientBoundingRect we have already forced a reflow, so it is not + // too expensive just to query them all. + + // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 + // 窗口边框标准是设 documentElement ,quirks 时设置 body + // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 + // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 + // 标准 ie 下 docElem.clientTop 就是 border-top + // ie7 html 即窗口边框改变不了。永远为 2 + // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 + + x -= docElem.clientLeft || body.clientLeft || 0; + y -= docElem.clientTop || body.clientTop || 0; + + return { + left: x, + top: y + }; +} + +function getScroll(w, top) { + var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; + var method = 'scroll' + (top ? 'Top' : 'Left'); + if (typeof ret !== 'number') { + var d = w.document; + // ie6,7,8 standard mode + ret = d.documentElement[method]; + if (typeof ret !== 'number') { + // quirks mode + ret = d.body[method]; + } + } + return ret; +} + +function getScrollLeft(w) { + return getScroll(w); +} + +function getScrollTop(w) { + return getScroll(w, true); +} + +function getOffset(el) { + var pos = getClientPosition(el); + var doc = el.ownerDocument; + var w = doc.defaultView || doc.parentWindow; + pos.left += getScrollLeft(w); + pos.top += getScrollTop(w); + return pos; +} +function _getComputedStyle(elem, name, computedStyle_) { + var val = ''; + var d = elem.ownerDocument; + var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); + + // https://github.com/kissyteam/kissy/issues/61 + if (computedStyle) { + val = computedStyle.getPropertyValue(name) || computedStyle[name]; + } + + return val; +} + +var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); +var RE_POS = /^(top|right|bottom|left)$/; +var CURRENT_STYLE = 'currentStyle'; +var RUNTIME_STYLE = 'runtimeStyle'; +var LEFT = 'left'; +var PX = 'px'; + +function _getComputedStyleIE(elem, name) { + // currentStyle maybe null + // http://msdn.microsoft.com/en-us/library/ms535231.aspx + var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; + + // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 + // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 + // 在 ie 下不对,需要直接用 offset 方式 + // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // exclude left right for relativity + if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { + // Remember the original values + var style = elem.style; + var left = style[LEFT]; + var rsLeft = elem[RUNTIME_STYLE][LEFT]; + + // prevent flashing of content + elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; + + // Put in the new values to get a computed value out + style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; + ret = style.pixelLeft + PX; + + // Revert the changed values + style[LEFT] = left; + + elem[RUNTIME_STYLE][LEFT] = rsLeft; + } + return ret === '' ? 'auto' : ret; +} + +var getComputedStyleX = undefined; +if (typeof window !== 'undefined') { + getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; +} + +function each(arr, fn) { + for (var i = 0; i < arr.length; i++) { + fn(arr[i]); + } +} + +function isBorderBoxFn(elem) { + return getComputedStyleX(elem, 'boxSizing') === 'border-box'; +} + +var BOX_MODELS = ['margin', 'border', 'padding']; +var CONTENT_INDEX = -1; +var PADDING_INDEX = 2; +var BORDER_INDEX = 1; +var MARGIN_INDEX = 0; + +function swap(elem, options, callback) { + var old = {}; + var style = elem.style; + var name = undefined; + + // Remember the old values, and insert the new ones + for (name in options) { + if (options.hasOwnProperty(name)) { + old[name] = style[name]; + style[name] = options[name]; + } + } + + callback.call(elem); + + // Revert the old values + for (name in options) { + if (options.hasOwnProperty(name)) { + style[name] = old[name]; + } + } +} + +function getPBMWidth(elem, props, which) { + var value = 0; + var prop = undefined; + var j = undefined; + var i = undefined; + for (j = 0; j < props.length; j++) { + prop = props[j]; + if (prop) { + for (i = 0; i < which.length; i++) { + var cssProp = undefined; + if (prop === 'border') { + cssProp = prop + which[i] + 'Width'; + } else { + cssProp = prop + which[i]; + } + value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; + } + } + } + return value; +} + +/** + * A crude way of determining if an object is a window + * @member util + */ +function isWindow(obj) { + // must use == for ie8 + /* eslint eqeqeq:0 */ + return obj != null && obj == obj.window; +} + +var domUtils = {}; + +each(['Width', 'Height'], function (name) { + domUtils['doc' + name] = function (refWin) { + var d = refWin.document; + return Math.max( + // firefox chrome documentElement.scrollHeight< body.scrollHeight + // ie standard mode : documentElement.scrollHeight> body.scrollHeight + d.documentElement['scroll' + name], + // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? + d.body['scroll' + name], domUtils['viewport' + name](d)); + }; + + domUtils['viewport' + name] = function (win) { + // pc browser includes scrollbar in window.innerWidth + var prop = 'client' + name; + var doc = win.document; + var body = doc.body; + var documentElement = doc.documentElement; + var documentElementProp = documentElement[prop]; + // 标准模式取 documentElement + // backcompat 取 body + return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; + }; +}); + +/* + 得到元素的大小信息 + @param elem + @param name + @param {String} [extra] 'padding' : (css width) + padding + 'border' : (css width) + padding + border + 'margin' : (css width) + padding + border + margin + */ +function getWH(elem, name, extra) { + if (isWindow(elem)) { + return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); + } else if (elem.nodeType === 9) { + return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); + } + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem, computedStyle); + var cssBoxValue = 0; + if (borderBoxValue == null || borderBoxValue <= 0) { + borderBoxValue = undefined; + // Fall back to computed then un computed css if necessary + cssBoxValue = getComputedStyleX(elem, name); + if (cssBoxValue == null || Number(cssBoxValue) < 0) { + cssBoxValue = elem.style[name] || 0; + } + // Normalize '', auto, and prepare for extra + cssBoxValue = parseFloat(cssBoxValue) || 0; + } + if (extra === undefined) { + extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; + } + var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; + var val = borderBoxValue || cssBoxValue; + if (extra === CONTENT_INDEX) { + if (borderBoxValueOrIsBorderBox) { + return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); + } + return cssBoxValue; + } + if (borderBoxValueOrIsBorderBox) { + var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); + return val + (extra === BORDER_INDEX ? 0 : padding); + } + return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); +} + +var cssShow = { + position: 'absolute', + visibility: 'hidden', + display: 'block' +}; + +// fix #119 : https://github.com/kissyteam/kissy/issues/119 +function getWHIgnoreDisplay(elem) { + var val = undefined; + var args = arguments; + // in case elem is window + // elem.offsetWidth === undefined + if (elem.offsetWidth !== 0) { + val = getWH.apply(undefined, args); + } else { + swap(elem, cssShow, function () { + val = getWH.apply(undefined, args); + }); + } + return val; +} + +function css(el, name, v) { + var value = v; + if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { + for (var i in name) { + if (name.hasOwnProperty(i)) { + css(el, i, name[i]); + } + } + return undefined; + } + if (typeof value !== 'undefined') { + if (typeof value === 'number') { + value += 'px'; + } + el.style[name] = value; + return undefined; + } + return getComputedStyleX(el, name); +} + +each(['width', 'height'], function (name) { + var first = name.charAt(0).toUpperCase() + name.slice(1); + domUtils['outer' + first] = function (el, includeMargin) { + return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); + }; + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + + domUtils[name] = function (elem, val) { + if (val !== undefined) { + if (elem) { + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem); + if (isBorderBox) { + val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); + } + return css(elem, name, val); + } + return undefined; + } + return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); + }; +}); + +// 设置 elem 相对 elem.ownerDocument 的坐标 +function setOffset(elem, offset) { + // set position first, in-case top/left are set even on static elem + if (css(elem, 'position') === 'static') { + elem.style.position = 'relative'; + } + + var old = getOffset(elem); + var ret = {}; + var current = undefined; + var key = undefined; + + for (key in offset) { + if (offset.hasOwnProperty(key)) { + current = parseFloat(css(elem, key)) || 0; + ret[key] = current + offset[key] - old[key]; + } + } + css(elem, ret); +} + +module.exports = _extends({ + getWindow: function getWindow(node) { + var doc = node.ownerDocument || node; + return doc.defaultView || doc.parentWindow; + }, + offset: function offset(el, value) { + if (typeof value !== 'undefined') { + setOffset(el, value); + } else { + return getOffset(el); + } + }, + + isWindow: isWindow, + each: each, + css: css, + clone: function clone(obj) { + var ret = {}; + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret[i] = obj[i]; + } + } + var overflow = obj.overflow; + if (overflow) { + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret.overflow[i] = obj.overflow[i]; + } + } + } + return ret; + }, + scrollLeft: function scrollLeft(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollLeft(w); + } + window.scrollTo(v, getScrollTop(w)); + } else { + if (v === undefined) { + return w.scrollLeft; + } + w.scrollLeft = v; + } + }, + scrollTop: function scrollTop(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollTop(w); + } + window.scrollTo(getScrollLeft(w), v); + } else { + if (v === undefined) { + return w.scrollTop; + } + w.scrollTop = v; + } + }, + + viewportWidth: 0, + viewportHeight: 0 +}, domUtils); + +/***/ }), + +/***/ 17: +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), + +/***/ 170: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (link); + + +/***/ }), + +/***/ 171: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z" +})); +/* harmony default export */ __webpack_exports__["a"] = (check); + + +/***/ }), + +/***/ 18: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 194: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (blockDefault); + + +/***/ }), + +/***/ 195: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (keyboardReturn); + + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 20: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; }); + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} + +/***/ }), + +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); + + +function _possibleConstructorReturn(self, call) { + if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { + return call; + } + + return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); +} + +/***/ }), + +/***/ 22: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), + +/***/ 23: +/***/ (function(module, exports) { + +(function() { module.exports = this["regeneratorRuntime"]; }()); + +/***/ }), + +/***/ 25: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["richText"]; }()); + +/***/ }), + +/***/ 254: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +/** + * Redux dispatch multiple actions + */ + +function multi(_ref) { + var dispatch = _ref.dispatch; + + return function (next) { + return function (action) { + return Array.isArray(action) ? action.filter(Boolean).map(dispatch) : next(action); + }; + }; +} + +/** + * Exports + */ + +exports.default = multi; + +/***/ }), + +/***/ 255: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/*istanbul ignore start*/ + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.diffChars = diffChars; +exports.characterDiff = void 0; + +/*istanbul ignore end*/ +var +/*istanbul ignore start*/ +_base = _interopRequireDefault(__webpack_require__(291)) +/*istanbul ignore end*/ +; + +/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/*istanbul ignore end*/ +var characterDiff = new +/*istanbul ignore start*/ +_base +/*istanbul ignore end*/ +. +/*istanbul ignore start*/ +default +/*istanbul ignore end*/ +(); + +/*istanbul ignore start*/ +exports.characterDiff = characterDiff; + +/*istanbul ignore end*/ +function diffChars(oldStr, newStr, options) { + return characterDiff.diff(oldStr, newStr, options); +} + + +/***/ }), + +/***/ 256: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* +Copyright (c) 2014, Yahoo! Inc. All rights reserved. +Copyrights licensed under the New BSD License. +See the accompanying LICENSE file for terms. +*/ + + + +exports.match = matchQuery; +exports.parse = parseQuery; + +// ----------------------------------------------------------------------------- + +var RE_MEDIA_QUERY = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, + RE_MQ_EXPRESSION = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, + RE_MQ_FEATURE = /^(?:(min|max)-)?(.+)/, + RE_LENGTH_UNIT = /(em|rem|px|cm|mm|in|pt|pc)?$/, + RE_RESOLUTION_UNIT = /(dpi|dpcm|dppx)?$/; + +function matchQuery(mediaQuery, values) { + return parseQuery(mediaQuery).some(function (query) { + var inverse = query.inverse; + + // Either the parsed or specified `type` is "all", or the types must be + // equal for a match. + var typeMatch = query.type === 'all' || values.type === query.type; + + // Quit early when `type` doesn't match, but take "not" into account. + if ((typeMatch && inverse) || !(typeMatch || inverse)) { + return false; + } + + var expressionsMatch = query.expressions.every(function (expression) { + var feature = expression.feature, + modifier = expression.modifier, + expValue = expression.value, + value = values[feature]; + + // Missing or falsy values don't match. + if (!value) { return false; } + + switch (feature) { + case 'orientation': + case 'scan': + return value.toLowerCase() === expValue.toLowerCase(); + + case 'width': + case 'height': + case 'device-width': + case 'device-height': + expValue = toPx(expValue); + value = toPx(value); + break; + + case 'resolution': + expValue = toDpi(expValue); + value = toDpi(value); + break; + + case 'aspect-ratio': + case 'device-aspect-ratio': + case /* Deprecated */ 'device-pixel-ratio': + expValue = toDecimal(expValue); + value = toDecimal(value); + break; + + case 'grid': + case 'color': + case 'color-index': + case 'monochrome': + expValue = parseInt(expValue, 10) || 1; + value = parseInt(value, 10) || 0; + break; + } + + switch (modifier) { + case 'min': return value >= expValue; + case 'max': return value <= expValue; + default : return value === expValue; + } + }); + + return (expressionsMatch && !inverse) || (!expressionsMatch && inverse); + }); +} + +function parseQuery(mediaQuery) { + return mediaQuery.split(',').map(function (query) { + query = query.trim(); + + var captures = query.match(RE_MEDIA_QUERY), + modifier = captures[1], + type = captures[2], + expressions = captures[3] || '', + parsed = {}; + + parsed.inverse = !!modifier && modifier.toLowerCase() === 'not'; + parsed.type = type ? type.toLowerCase() : 'all'; + + // Split expressions into a list. + expressions = expressions.match(/\([^\)]+\)/g) || []; + + parsed.expressions = expressions.map(function (expression) { + var captures = expression.match(RE_MQ_EXPRESSION), + feature = captures[1].toLowerCase().match(RE_MQ_FEATURE); + + return { + modifier: feature[1], + feature : feature[2], + value : captures[2] + }; + }); + + return parsed; + }); +} + +// -- Utilities ---------------------------------------------------------------- + +function toDecimal(ratio) { + var decimal = Number(ratio), + numbers; + + if (!decimal) { + numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/); + decimal = numbers[1] / numbers[2]; + } + + return decimal; +} + +function toDpi(resolution) { + var value = parseFloat(resolution), + units = String(resolution).match(RE_RESOLUTION_UNIT)[1]; + + switch (units) { + case 'dpcm': return value / 2.54; + case 'dppx': return value * 96; + default : return value; + } +} + +function toPx(length) { + var value = parseFloat(length), + units = String(length).match(RE_LENGTH_UNIT)[1]; + + switch (units) { + case 'em' : return value * 16; + case 'rem': return value * 16; + case 'cm' : return value * 96 / 2.54; + case 'mm' : return value * 96 / 2.54 / 10; + case 'in' : return value * 96; + case 'pt' : return value * 72; + case 'pc' : return value * 72 / 12; + default : return value; + } +} + + +/***/ }), + +/***/ 257: +/***/ (function(module, exports) { + +var traverse = module.exports = function (obj) { + return new Traverse(obj); +}; + +function Traverse (obj) { + this.value = obj; +} + +Traverse.prototype.get = function (ps) { + var node = this.value; + for (var i = 0; i < ps.length; i ++) { + var key = ps[i]; + if (!node || !hasOwnProperty.call(node, key)) { + node = undefined; + break; + } + node = node[key]; + } + return node; +}; + +Traverse.prototype.has = function (ps) { + var node = this.value; + for (var i = 0; i < ps.length; i ++) { + var key = ps[i]; + if (!node || !hasOwnProperty.call(node, key)) { + return false; + } + node = node[key]; + } + return true; +}; + +Traverse.prototype.set = function (ps, value) { + var node = this.value; + for (var i = 0; i < ps.length - 1; i ++) { + var key = ps[i]; + if (!hasOwnProperty.call(node, key)) node[key] = {}; + node = node[key]; + } + node[ps[i]] = value; + return value; +}; + +Traverse.prototype.map = function (cb) { + return walk(this.value, cb, true); +}; + +Traverse.prototype.forEach = function (cb) { + this.value = walk(this.value, cb, false); + return this.value; +}; + +Traverse.prototype.reduce = function (cb, init) { + var skip = arguments.length === 1; + var acc = skip ? this.value : init; + this.forEach(function (x) { + if (!this.isRoot || !skip) { + acc = cb.call(this, acc, x); + } + }); + return acc; +}; + +Traverse.prototype.paths = function () { + var acc = []; + this.forEach(function (x) { + acc.push(this.path); + }); + return acc; +}; + +Traverse.prototype.nodes = function () { + var acc = []; + this.forEach(function (x) { + acc.push(this.node); + }); + return acc; +}; + +Traverse.prototype.clone = function () { + var parents = [], nodes = []; + + return (function clone (src) { + for (var i = 0; i < parents.length; i++) { + if (parents[i] === src) { + return nodes[i]; + } + } + + if (typeof src === 'object' && src !== null) { + var dst = copy(src); + + parents.push(src); + nodes.push(dst); + + forEach(objectKeys(src), function (key) { + dst[key] = clone(src[key]); + }); + + parents.pop(); + nodes.pop(); + return dst; + } + else { + return src; + } + })(this.value); +}; + +function walk (root, cb, immutable) { + var path = []; + var parents = []; + var alive = true; + + return (function walker (node_) { + var node = immutable ? copy(node_) : node_; + var modifiers = {}; + + var keepGoing = true; + + var state = { + node : node, + node_ : node_, + path : [].concat(path), + parent : parents[parents.length - 1], + parents : parents, + key : path.slice(-1)[0], + isRoot : path.length === 0, + level : path.length, + circular : null, + update : function (x, stopHere) { + if (!state.isRoot) { + state.parent.node[state.key] = x; + } + state.node = x; + if (stopHere) keepGoing = false; + }, + 'delete' : function (stopHere) { + delete state.parent.node[state.key]; + if (stopHere) keepGoing = false; + }, + remove : function (stopHere) { + if (isArray(state.parent.node)) { + state.parent.node.splice(state.key, 1); + } + else { + delete state.parent.node[state.key]; + } + if (stopHere) keepGoing = false; + }, + keys : null, + before : function (f) { modifiers.before = f }, + after : function (f) { modifiers.after = f }, + pre : function (f) { modifiers.pre = f }, + post : function (f) { modifiers.post = f }, + stop : function () { alive = false }, + block : function () { keepGoing = false } + }; + + if (!alive) return state; + + function updateState() { + if (typeof state.node === 'object' && state.node !== null) { + if (!state.keys || state.node_ !== state.node) { + state.keys = objectKeys(state.node) + } + + state.isLeaf = state.keys.length == 0; + + for (var i = 0; i < parents.length; i++) { + if (parents[i].node_ === node_) { + state.circular = parents[i]; + break; + } + } + } + else { + state.isLeaf = true; + state.keys = null; + } + + state.notLeaf = !state.isLeaf; + state.notRoot = !state.isRoot; + } + + updateState(); + + // use return values to update if defined + var ret = cb.call(state, state.node); + if (ret !== undefined && state.update) state.update(ret); + + if (modifiers.before) modifiers.before.call(state, state.node); + + if (!keepGoing) return state; + + if (typeof state.node == 'object' + && state.node !== null && !state.circular) { + parents.push(state); + + updateState(); + + forEach(state.keys, function (key, i) { + path.push(key); + + if (modifiers.pre) modifiers.pre.call(state, state.node[key], key); + + var child = walker(state.node[key]); + if (immutable && hasOwnProperty.call(state.node, key)) { + state.node[key] = child.node; + } + + child.isLast = i == state.keys.length - 1; + child.isFirst = i == 0; + + if (modifiers.post) modifiers.post.call(state, child); + + path.pop(); + }); + parents.pop(); + } + + if (modifiers.after) modifiers.after.call(state, state.node); + + return state; + })(root).node; +} + +function copy (src) { + if (typeof src === 'object' && src !== null) { + var dst; + + if (isArray(src)) { + dst = []; + } + else if (isDate(src)) { + dst = new Date(src.getTime ? src.getTime() : src); + } + else if (isRegExp(src)) { + dst = new RegExp(src); + } + else if (isError(src)) { + dst = { message: src.message }; + } + else if (isBoolean(src)) { + dst = new Boolean(src); + } + else if (isNumber(src)) { + dst = new Number(src); + } + else if (isString(src)) { + dst = new String(src); + } + else if (Object.create && Object.getPrototypeOf) { + dst = Object.create(Object.getPrototypeOf(src)); + } + else if (src.constructor === Object) { + dst = {}; + } + else { + var proto = + (src.constructor && src.constructor.prototype) + || src.__proto__ + || {} + ; + var T = function () {}; + T.prototype = proto; + dst = new T; + } + + forEach(objectKeys(src), function (key) { + dst[key] = src[key]; + }); + return dst; + } + else return src; +} + +var objectKeys = Object.keys || function keys (obj) { + var res = []; + for (var key in obj) res.push(key) + return res; +}; + +function toS (obj) { return Object.prototype.toString.call(obj) } +function isDate (obj) { return toS(obj) === '[object Date]' } +function isRegExp (obj) { return toS(obj) === '[object RegExp]' } +function isError (obj) { return toS(obj) === '[object Error]' } +function isBoolean (obj) { return toS(obj) === '[object Boolean]' } +function isNumber (obj) { return toS(obj) === '[object Number]' } +function isString (obj) { return toS(obj) === '[object String]' } + +var isArray = Array.isArray || function isArray (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; + +var forEach = function (xs, fn) { + if (xs.forEach) return xs.forEach(fn) + else for (var i = 0; i < xs.length; i++) { + fn(xs[i], i, xs); + } +}; + +forEach(objectKeys(Traverse.prototype), function (key) { + traverse[key] = function (obj) { + var args = [].slice.call(arguments, 1); + var t = new Traverse(obj); + return t[key].apply(t, args); + }; +}); + +var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { + return key in obj; +}; + + +/***/ }), + +/***/ 26: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + + return arr2; +} + +/***/ }), + +/***/ 28: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); +} + +/***/ }), + +/***/ 281: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (alignLeft); + + +/***/ }), + +/***/ 282: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (alignCenter); + + +/***/ }), + +/***/ 283: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (alignRight); + + +/***/ }), + +/***/ 284: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z" +})); +/* harmony default export */ __webpack_exports__["a"] = (plus); + + +/***/ }), + +/***/ 285: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (search); + + +/***/ }), + +/***/ 286: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (layout); + + +/***/ }), + +/***/ 287: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronRight); + + +/***/ }), + +/***/ 288: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); + + +/***/ }), + +/***/ 289: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronUp); + + +/***/ }), + +/***/ 29: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["dom"]; }()); + +/***/ }), + +/***/ 290: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronDown); + + +/***/ }), + +/***/ 291: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/*istanbul ignore start*/ + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = Diff; + +/*istanbul ignore end*/ +function Diff() {} + +Diff.prototype = { + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + diff: function diff(oldString, newString) { + /*istanbul ignore start*/ + var + /*istanbul ignore end*/ + options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var callback = options.callback; + + if (typeof options === 'function') { + callback = options; + options = {}; + } + + this.options = options; + var self = this; + + function done(value) { + if (callback) { + setTimeout(function () { + callback(undefined, value); + }, 0); + return true; + } else { + return value; + } + } // Allow subclasses to massage the input prior to running + + + oldString = this.castInput(oldString); + newString = this.castInput(newString); + oldString = this.removeEmpty(this.tokenize(oldString)); + newString = this.removeEmpty(this.tokenize(newString)); + var newLen = newString.length, + oldLen = oldString.length; + var editLength = 1; + var maxEditLength = newLen + oldLen; + var bestPath = [{ + newPos: -1, + components: [] + }]; // Seed editLength = 0, i.e. the content starts with the same values + + var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0); + + if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { + // Identity per the equality and tokenizer + return done([{ + value: this.join(newString), + count: newString.length + }]); + } // Main worker method. checks all permutations of a given edit length for acceptance. + + + function execEditLength() { + for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { + var basePath = + /*istanbul ignore start*/ + void 0 + /*istanbul ignore end*/ + ; + + var addPath = bestPath[diagonalPath - 1], + removePath = bestPath[diagonalPath + 1], + _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; + + if (addPath) { + // No one else is going to attempt to use this value, clear it + bestPath[diagonalPath - 1] = undefined; + } + + var canAdd = addPath && addPath.newPos + 1 < newLen, + canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen; + + if (!canAdd && !canRemove) { + // If this path is a terminal then prune + bestPath[diagonalPath] = undefined; + continue; + } // Select the diagonal that we want to branch from. We select the prior + // path whose position in the new string is the farthest from the origin + // and does not pass the bounds of the diff graph + + + if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { + basePath = clonePath(removePath); + self.pushComponent(basePath.components, undefined, true); + } else { + basePath = addPath; // No need to clone, we've pulled it from the list + + basePath.newPos++; + self.pushComponent(basePath.components, true, undefined); + } + + _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done + + if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) { + return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken)); + } else { + // Otherwise track this path as a potential candidate and continue. + bestPath[diagonalPath] = basePath; + } + } + + editLength++; + } // Performs the length of edit iteration. Is a bit fugly as this has to support the + // sync and async mode which is never fun. Loops over execEditLength until a value + // is produced. + + + if (callback) { + (function exec() { + setTimeout(function () { + // This should not happen, but we want to be safe. + + /* istanbul ignore next */ + if (editLength > maxEditLength) { + return callback(); + } + + if (!execEditLength()) { + exec(); + } + }, 0); + })(); + } else { + while (editLength <= maxEditLength) { + var ret = execEditLength(); + + if (ret) { + return ret; + } + } + } + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + pushComponent: function pushComponent(components, added, removed) { + var last = components[components.length - 1]; + + if (last && last.added === added && last.removed === removed) { + // We need to clone here as the component clone operation is just + // as shallow array clone + components[components.length - 1] = { + count: last.count + 1, + added: added, + removed: removed + }; + } else { + components.push({ + count: 1, + added: added, + removed: removed + }); + } + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { + var newLen = newString.length, + oldLen = oldString.length, + newPos = basePath.newPos, + oldPos = newPos - diagonalPath, + commonCount = 0; + + while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { + newPos++; + oldPos++; + commonCount++; + } + + if (commonCount) { + basePath.components.push({ + count: commonCount + }); + } + + basePath.newPos = newPos; + return oldPos; + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + equals: function equals(left, right) { + if (this.options.comparator) { + return this.options.comparator(left, right); + } else { + return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); + } + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + removeEmpty: function removeEmpty(array) { + var ret = []; + + for (var i = 0; i < array.length; i++) { + if (array[i]) { + ret.push(array[i]); + } + } + + return ret; + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + castInput: function castInput(value) { + return value; + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + tokenize: function tokenize(value) { + return value.split(''); + }, + + /*istanbul ignore start*/ + + /*istanbul ignore end*/ + join: function join(chars) { + return chars.join(''); + } +}; + +function buildValues(diff, components, newString, oldString, useLongestToken) { + var componentPos = 0, + componentLen = components.length, + newPos = 0, + oldPos = 0; + + for (; componentPos < componentLen; componentPos++) { + var component = components[componentPos]; + + if (!component.removed) { + if (!component.added && useLongestToken) { + var value = newString.slice(newPos, newPos + component.count); + value = value.map(function (value, i) { + var oldValue = oldString[oldPos + i]; + return oldValue.length > value.length ? oldValue : value; + }); + component.value = diff.join(value); + } else { + component.value = diff.join(newString.slice(newPos, newPos + component.count)); + } + + newPos += component.count; // Common case + + if (!component.added) { + oldPos += component.count; + } + } else { + component.value = diff.join(oldString.slice(oldPos, oldPos + component.count)); + oldPos += component.count; // Reverse add and remove so removes are output first to match common convention + // The diffing algorithm is tied to add then remove output and this is the simplest + // route to get the desired output with minimal overhead. + + if (componentPos && components[componentPos - 1].added) { + var tmp = components[componentPos - 1]; + components[componentPos - 1] = components[componentPos]; + components[componentPos] = tmp; + } + } + } // Special case handle for when one terminal is ignored (i.e. whitespace). + // For this case we merge the terminal into the prior string and drop the change. + // This is only available for string mode. + + + var lastComponent = components[componentLen - 1]; + + if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) { + components[componentLen - 2].value += lastComponent.value; + components.pop(); + } + + return components; +} + +function clonePath(path) { + return { + newPos: path.newPos, + components: path.components.slice(0) + }; +} + + +/***/ }), + +/***/ 292: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" +})); +/* harmony default export */ __webpack_exports__["a"] = (moreVertical); + + +/***/ }), + +/***/ 293: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-5.7-5.3-.6.6-.5-.5-5.2 5.2 1 1.1 4-4v11.7h-6V15H4v5h16v-5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (upload); + + +/***/ }), + +/***/ 294: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (pencil); + + +/***/ }), + +/***/ 3: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 30: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), + +/***/ 31: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["hooks"]; }()); + +/***/ }), + +/***/ 33: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (false) { var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(131)(); +} + + +/***/ }), + +/***/ 35: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); +} + +/***/ }), + +/***/ 37: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), + +/***/ 38: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +/***/ }), + +/***/ 39: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["data"]; }()); + +/***/ }), + +/***/ 40: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); +function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +/***/ }), + +/***/ 41: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + + +var LEAF_KEY, hasWeakMap; + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {Object} + */ +LEAF_KEY = {}; + +/** + * Whether environment supports WeakMap. + * + * @type {boolean} + */ +hasWeakMap = typeof WeakMap !== 'undefined'; + +/** + * Returns the first argument as the sole entry in an array. + * + * @param {*} value Value to return. + * + * @return {Array} Value returned as entry in array. + */ +function arrayOf( value ) { + return [ value ]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike( value ) { + return !! value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Object} Cache object. + */ +function createCache() { + var cache = { + clear: function() { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {Array} a First array. + * @param {Array} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual( a, b, fromIndex ) { + var i; + + if ( a.length !== b.length ) { + return false; + } + + for ( i = fromIndex; i < a.length; i++ ) { + if ( a[ i ] !== b[ i ] ) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @param {Function} selector Selector function. + * @param {Function} getDependants Dependant getter returning an immutable + * reference or array of reference used in + * cache bust consideration. + * + * @return {Function} Memoized selector. + */ +/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { + var rootCache, getCache; + + // Use object source as dependant if getter not provided + if ( ! getDependants ) { + getDependants = arrayOf; + } + + /** + * Returns the root cache. If WeakMap is supported, this is assigned to the + * root WeakMap cache set, otherwise it is a shared instance of the default + * cache object. + * + * @return {(WeakMap|Object)} Root cache object. + */ + function getRootCache() { + return rootCache; + } + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {Array} dependants Selector dependants. + * + * @return {Object} Cache object. + */ + function getWeakMapCache( dependants ) { + var caches = rootCache, + isUniqueByDependants = true, + i, dependant, map, cache; + + for ( i = 0; i < dependants.length; i++ ) { + dependant = dependants[ i ]; + + // Can only compose WeakMap from object-like key. + if ( ! isObjectLike( dependant ) ) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if ( caches.has( dependant ) ) { + // Traverse into nested WeakMap. + caches = caches.get( dependant ); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set( dependant, map ); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if ( ! caches.has( LEAF_KEY ) ) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set( LEAF_KEY, cache ); + } + + return caches.get( LEAF_KEY ); + } + + // Assign cache handler by availability of WeakMap + getCache = hasWeakMap ? getWeakMapCache : getRootCache; + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = hasWeakMap ? new WeakMap() : createCache(); + } + + // eslint-disable-next-line jsdoc/check-param-names + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {Object} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + function callSelector( /* source, ...extraArgs */ ) { + var len = arguments.length, + cache, node, i, args, dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + dependants = getDependants.apply( null, args ); + cache = getCache( dependants ); + + // If not guaranteed uniqueness by dependants (primitive type or lack + // of WeakMap support), shallow compare against last dependants and, if + // references have changed, destroy cache to recalculate result. + if ( ! cache.isUniqueByDependants ) { + if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while ( node ) { + // Check whether node arguments match arguments + if ( ! isShallowEqual( node.args, args, 1 ) ) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== cache.head ) { + // Adjust siblings to point to each other. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + cache.head.prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = { + // Generate the result from original function + val: selector.apply( null, args ), + }; + + // Avoid including the source object in the cache. + args[ 0 ] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( cache.head ) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = getDependants; + callSelector.clear = clear; + clear(); + + return callSelector; +}); + + +/***/ }), + +/***/ 42: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +/***/ }), + +/***/ 433: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +var actions_namespaceObject = {}; +__webpack_require__.r(actions_namespaceObject); +__webpack_require__.d(actions_namespaceObject, "resetBlocks", function() { return actions_resetBlocks; }); +__webpack_require__.d(actions_namespaceObject, "resetSelection", function() { return actions_resetSelection; }); +__webpack_require__.d(actions_namespaceObject, "receiveBlocks", function() { return receiveBlocks; }); +__webpack_require__.d(actions_namespaceObject, "updateBlockAttributes", function() { return actions_updateBlockAttributes; }); +__webpack_require__.d(actions_namespaceObject, "updateBlock", function() { return actions_updateBlock; }); +__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return actions_selectBlock; }); +__webpack_require__.d(actions_namespaceObject, "selectPreviousBlock", function() { return selectPreviousBlock; }); +__webpack_require__.d(actions_namespaceObject, "selectNextBlock", function() { return selectNextBlock; }); +__webpack_require__.d(actions_namespaceObject, "startMultiSelect", function() { return actions_startMultiSelect; }); +__webpack_require__.d(actions_namespaceObject, "stopMultiSelect", function() { return actions_stopMultiSelect; }); +__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return actions_multiSelect; }); +__webpack_require__.d(actions_namespaceObject, "clearSelectedBlock", function() { return actions_clearSelectedBlock; }); +__webpack_require__.d(actions_namespaceObject, "toggleSelection", function() { return actions_toggleSelection; }); +__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return actions_replaceBlocks; }); +__webpack_require__.d(actions_namespaceObject, "replaceBlock", function() { return replaceBlock; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return actions_moveBlocksDown; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return actions_moveBlocksUp; }); +__webpack_require__.d(actions_namespaceObject, "moveBlockToPosition", function() { return actions_moveBlockToPosition; }); +__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return actions_insertBlock; }); +__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return actions_insertBlocks; }); +__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return actions_showInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return actions_hideInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "setTemplateValidity", function() { return setTemplateValidity; }); +__webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function() { return synchronizeTemplate; }); +__webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return actions_mergeBlocks; }); +__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return actions_removeBlocks; }); +__webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return actions_removeBlock; }); +__webpack_require__.d(actions_namespaceObject, "replaceInnerBlocks", function() { return actions_replaceInnerBlocks; }); +__webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; }); +__webpack_require__.d(actions_namespaceObject, "startTyping", function() { return actions_startTyping; }); +__webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return actions_stopTyping; }); +__webpack_require__.d(actions_namespaceObject, "startDraggingBlocks", function() { return actions_startDraggingBlocks; }); +__webpack_require__.d(actions_namespaceObject, "stopDraggingBlocks", function() { return actions_stopDraggingBlocks; }); +__webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return actions_enterFormattedText; }); +__webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return actions_exitFormattedText; }); +__webpack_require__.d(actions_namespaceObject, "selectionChange", function() { return actions_selectionChange; }); +__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return actions_insertDefaultBlock; }); +__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return actions_updateBlockListSettings; }); +__webpack_require__.d(actions_namespaceObject, "updateSettings", function() { return actions_updateSettings; }); +__webpack_require__.d(actions_namespaceObject, "__unstableSaveReusableBlock", function() { return __unstableSaveReusableBlock; }); +__webpack_require__.d(actions_namespaceObject, "__unstableMarkLastChangeAsPersistent", function() { return actions_unstableMarkLastChangeAsPersistent; }); +__webpack_require__.d(actions_namespaceObject, "__unstableMarkNextChangeAsNotPersistent", function() { return actions_unstableMarkNextChangeAsNotPersistent; }); +__webpack_require__.d(actions_namespaceObject, "__unstableMarkAutomaticChange", function() { return actions_unstableMarkAutomaticChange; }); +__webpack_require__.d(actions_namespaceObject, "setNavigationMode", function() { return actions_setNavigationMode; }); +__webpack_require__.d(actions_namespaceObject, "duplicateBlocks", function() { return actions_duplicateBlocks; }); +__webpack_require__.d(actions_namespaceObject, "insertBeforeBlock", function() { return actions_insertBeforeBlock; }); +__webpack_require__.d(actions_namespaceObject, "insertAfterBlock", function() { return actions_insertAfterBlock; }); +__webpack_require__.d(actions_namespaceObject, "toggleBlockHighlight", function() { return actions_toggleBlockHighlight; }); +__webpack_require__.d(actions_namespaceObject, "flashBlock", function() { return actions_flashBlock; }); +__webpack_require__.d(actions_namespaceObject, "setHasControlledInnerBlocks", function() { return actions_setHasControlledInnerBlocks; }); +var selectors_namespaceObject = {}; +__webpack_require__.r(selectors_namespaceObject); +__webpack_require__.d(selectors_namespaceObject, "getBlockName", function() { return selectors_getBlockName; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return selectors_isBlockValid; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockAttributes", function() { return getBlockAttributes; }); +__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return selectors_getBlock; }); +__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return selectors_unstableGetBlockWithoutInnerBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "getBlocks", function() { return selectors_getBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "getClientIdsOfDescendants", function() { return selectors_getClientIdsOfDescendants; }); +__webpack_require__.d(selectors_namespaceObject, "getClientIdsWithDescendants", function() { return getClientIdsWithDescendants; }); +__webpack_require__.d(selectors_namespaceObject, "getGlobalBlockCount", function() { return getGlobalBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return selectors_getBlocksByClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return selectors_getBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectionStart", function() { return selectors_getSelectionStart; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectionEnd", function() { return selectors_getSelectionEnd; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockSelectionStart", function() { return getBlockSelectionStart; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockSelectionEnd", function() { return selectors_getBlockSelectionEnd; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockCount", function() { return selectors_getSelectedBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "hasSelectedBlock", function() { return hasSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientId", function() { return selectors_getSelectedBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlock", function() { return selectors_getSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockRootClientId", function() { return selectors_getBlockRootClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockParents", function() { return selectors_getBlockParents; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockParentsByBlockName", function() { return getBlockParentsByBlockName; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockHierarchyRootClientId", function() { return getBlockHierarchyRootClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getLowestCommonAncestorWithSelectedBlock", function() { return getLowestCommonAncestorWithSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getAdjacentBlockClientId", function() { return getAdjacentBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getPreviousBlockClientId", function() { return getPreviousBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getNextBlockClientId", function() { return getNextBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlocksInitialCaretPosition", function() { return getSelectedBlocksInitialCaretPosition; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientIds", function() { return selectors_getSelectedBlockClientIds; }); +__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlockClientIds", function() { return getMultiSelectedBlockClientIds; }); +__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocks", function() { return getMultiSelectedBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "getFirstMultiSelectedBlockClientId", function() { return selectors_getFirstMultiSelectedBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getLastMultiSelectedBlockClientId", function() { return getLastMultiSelectedBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "isFirstMultiSelectedBlock", function() { return isFirstMultiSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockMultiSelected", function() { return isBlockMultiSelected; }); +__webpack_require__.d(selectors_namespaceObject, "isAncestorMultiSelected", function() { return isAncestorMultiSelected; }); +__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksStartClientId", function() { return getMultiSelectedBlocksStartClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksEndClientId", function() { return getMultiSelectedBlocksEndClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockOrder", function() { return selectors_getBlockOrder; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockIndex", function() { return selectors_getBlockIndex; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockSelected", function() { return isBlockSelected; }); +__webpack_require__.d(selectors_namespaceObject, "hasSelectedInnerBlock", function() { return hasSelectedInnerBlock; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockWithinSelection", function() { return isBlockWithinSelection; }); +__webpack_require__.d(selectors_namespaceObject, "hasMultiSelection", function() { return selectors_hasMultiSelection; }); +__webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() { return selectors_isMultiSelecting; }); +__webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; }); +__webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; }); +__webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return selectors_isDraggingBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "isCaretWithinFormattedText", function() { return selectors_isCaretWithinFormattedText; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockInsertionPoint", function() { return getBlockInsertionPoint; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockInsertionPointVisible", function() { return isBlockInsertionPointVisible; }); +__webpack_require__.d(selectors_namespaceObject, "isValidTemplate", function() { return isValidTemplate; }); +__webpack_require__.d(selectors_namespaceObject, "getTemplate", function() { return getTemplate; }); +__webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return selectors_getTemplateLock; }); +__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return selectors_canInsertBlockType; }); +__webpack_require__.d(selectors_namespaceObject, "getInserterItems", function() { return selectors_getInserterItems; }); +__webpack_require__.d(selectors_namespaceObject, "hasInserterItems", function() { return selectors_hasInserterItems; }); +__webpack_require__.d(selectors_namespaceObject, "__experimentalGetAllowedBlocks", function() { return selectors_experimentalGetAllowedBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockListSettings", function() { return selectors_getBlockListSettings; }); +__webpack_require__.d(selectors_namespaceObject, "getSettings", function() { return selectors_getSettings; }); +__webpack_require__.d(selectors_namespaceObject, "isLastBlockChangePersistent", function() { return isLastBlockChangePersistent; }); +__webpack_require__.d(selectors_namespaceObject, "__experimentalGetBlockListSettingsForBlocks", function() { return selectors_experimentalGetBlockListSettingsForBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "__experimentalGetParsedReusableBlock", function() { return __experimentalGetParsedReusableBlock; }); +__webpack_require__.d(selectors_namespaceObject, "__unstableIsLastBlockChangeIgnored", function() { return __unstableIsLastBlockChangeIgnored; }); +__webpack_require__.d(selectors_namespaceObject, "__experimentalGetLastBlockAttributeChanges", function() { return __experimentalGetLastBlockAttributeChanges; }); +__webpack_require__.d(selectors_namespaceObject, "isNavigationMode", function() { return selectors_isNavigationMode; }); +__webpack_require__.d(selectors_namespaceObject, "didAutomaticChange", function() { return selectors_didAutomaticChange; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockHighlighted", function() { return isBlockHighlighted; }); +__webpack_require__.d(selectors_namespaceObject, "areInnerBlocksControlled", function() { return areInnerBlocksControlled; }); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(12); + +// EXTERNAL MODULE: external {"this":["wp","richText"]} +var external_this_wp_richText_ = __webpack_require__(25); + +// EXTERNAL MODULE: external {"this":["wp","viewport"]} +var external_this_wp_viewport_ = __webpack_require__(72); + +// EXTERNAL MODULE: external {"this":["wp","keyboardShortcuts"]} +var external_this_wp_keyboardShortcuts_ = __webpack_require__(47); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(8); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(11); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":"lodash"} +var external_this_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(9); + +// EXTERNAL MODULE: external {"this":["wp","hooks"]} +var external_this_wp_hooks_ = __webpack_require__(31); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(3); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/context.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var Context = Object(external_this_wp_element_["createContext"])({ + name: '', + isSelected: false, + focusedElement: null, + setFocusedElement: external_this_lodash_["noop"], + clientId: null +}); +var Provider = Context.Provider; + +/** + * A hook that returns the block edit context. + * + * @return {Object} Block edit context + */ + +function useBlockEditContext() { + return Object(external_this_wp_element_["useContext"])(Context); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-display-block-controls/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function useDisplayBlockControls() { + var _useBlockEditContext = useBlockEditContext(), + isSelected = _useBlockEditContext.isSelected, + clientId = _useBlockEditContext.clientId, + name = _useBlockEditContext.name; + + var isFirstAndSameTypeMultiSelected = Object(external_this_wp_data_["useSelect"])(function (select) { + // Don't bother checking, see OR statement below. + if (isSelected) { + return; + } + + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName, + isFirstMultiSelectedBlock = _select.isFirstMultiSelectedBlock, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds; + + if (!isFirstMultiSelectedBlock(clientId)) { + return false; + } + + return getMultiSelectedBlockClientIds().every(function (id) { + return getBlockName(id) === name; + }); + }, [clientId, name]); + return isSelected || isFirstAndSameTypeMultiSelected; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockControls'), + Fill = _createSlotFill.Fill, + Slot = _createSlotFill.Slot; + +function BlockControlsSlot(props) { + var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(external_this_wp_components_["__experimentalToolbarContext"]); + return Object(external_this_wp_element_["createElement"])(Slot, Object(esm_extends["a" /* default */])({}, props, { + fillProps: accessibleToolbarState + })); +} + +function BlockControlsFill(_ref) { + var controls = _ref.controls, + children = _ref.children; + + if (!useDisplayBlockControls()) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(Fill, null, function (fillProps) { + // Children passed to BlockControlsFill will not have access to any + // React Context whose Provider is part of the BlockControlsSlot tree. + // So we re-create the Provider in this subtree. + var value = !Object(external_this_lodash_["isEmpty"])(fillProps) ? fillProps : null; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarContext"].Provider, { + value: value + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + controls: controls + }), children); + }); +} + +var BlockControls = BlockControlsFill; +BlockControls.Slot = BlockControlsSlot; +/* harmony default export */ var block_controls = (BlockControls); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","primitives"]} +var external_this_wp_primitives_ = __webpack_require__(6); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-left.js + + +/** + * WordPress dependencies + */ + +var positionLeft = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z" +})); +/* harmony default export */ var position_left = (positionLeft); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-center.js + + +/** + * WordPress dependencies + */ + +var positionCenter = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z" +})); +/* harmony default export */ var position_center = (positionCenter); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/position-right.js + + +/** + * WordPress dependencies + */ + +var positionRight = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z" +})); +/* harmony default export */ var position_right = (positionRight); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stretch-wide.js + + +/** + * WordPress dependencies + */ + +var stretchWide = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z" +})); +/* harmony default export */ var stretch_wide = (stretchWide); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/stretch-full-width.js + + +/** + * WordPress dependencies + */ + +var stretchFullWidth = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z" +})); +/* harmony default export */ var stretch_full_width = (stretchFullWidth); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-toolbar/index.js + + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + + + + +var BLOCK_ALIGNMENTS_CONTROLS = { + left: { + icon: position_left, + title: Object(external_this_wp_i18n_["__"])('Align left') + }, + center: { + icon: position_center, + title: Object(external_this_wp_i18n_["__"])('Align center') + }, + right: { + icon: position_right, + title: Object(external_this_wp_i18n_["__"])('Align right') + }, + wide: { + icon: stretch_wide, + title: Object(external_this_wp_i18n_["__"])('Wide width') + }, + full: { + icon: stretch_full_width, + title: Object(external_this_wp_i18n_["__"])('Full width') + } +}; +var DEFAULT_CONTROLS = ['left', 'center', 'right', 'wide', 'full']; +var DEFAULT_CONTROL = 'center'; +var WIDE_CONTROLS = ['wide', 'full']; +var block_alignment_toolbar_POPOVER_PROPS = { + isAlternate: true +}; +function BlockAlignmentToolbar(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + _ref$controls = _ref.controls, + controls = _ref$controls === void 0 ? DEFAULT_CONTROLS : _ref$controls, + _ref$isCollapsed = _ref.isCollapsed, + isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed, + _ref$wideControlsEnab = _ref.wideControlsEnabled, + wideControlsEnabled = _ref$wideControlsEnab === void 0 ? false : _ref$wideControlsEnab; + + function applyOrUnset(align) { + return function () { + return onChange(value === align ? undefined : align); + }; + } + + var enabledControls = wideControlsEnabled ? controls : controls.filter(function (control) { + return WIDE_CONTROLS.indexOf(control) === -1; + }); + var activeAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS[value]; + var defaultAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS[DEFAULT_CONTROL]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + popoverProps: block_alignment_toolbar_POPOVER_PROPS, + isCollapsed: isCollapsed, + icon: activeAlignmentControl ? activeAlignmentControl.icon : defaultAlignmentControl.icon, + label: Object(external_this_wp_i18n_["__"])('Change alignment'), + controls: enabledControls.map(function (control) { + return _objectSpread({}, BLOCK_ALIGNMENTS_CONTROLS[control], { + isActive: value === control, + role: isCollapsed ? 'menuitemradio' : undefined, + onClick: applyOrUnset(control) + }); + }) + }); +} +/* harmony default export */ var block_alignment_toolbar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + var settings = getSettings(); + return { + wideControlsEnabled: settings.alignWide + }; +}))(BlockAlignmentToolbar)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/align.js + + + + +function align_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function align_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { align_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { align_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * An array which includes all possible valid alignments, + * used to validate if an alignment is valid or not. + * + * @constant + * @type {string[]} + */ + +var ALL_ALIGNMENTS = ['left', 'center', 'right', 'wide', 'full']; +/** + * An array which includes all wide alignments. + * In order for this alignments to be valid they need to be supported by the block, + * and by the theme. + * + * @constant + * @type {string[]} + */ + +var WIDE_ALIGNMENTS = ['wide', 'full']; +/** + * Returns the valid alignments. + * Takes into consideration the aligns supported by a block, if the block supports wide controls or not and if theme supports wide controls or not. + * Exported just for testing purposes, not exported outside the module. + * + * @param {?boolean|string[]} blockAlign Aligns supported by the block. + * @param {?boolean} hasWideBlockSupport True if block supports wide alignments. And False otherwise. + * @param {?boolean} hasWideEnabled True if theme supports wide alignments. And False otherwise. + * + * @return {string[]} Valid alignments. + */ + +function getValidAlignments(blockAlign) { + var hasWideBlockSupport = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var hasWideEnabled = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var validAlignments; + + if (Array.isArray(blockAlign)) { + validAlignments = blockAlign; + } else if (blockAlign === true) { + // `true` includes all alignments... + validAlignments = ALL_ALIGNMENTS; + } else { + validAlignments = []; + } + + if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) { + return external_this_lodash_["without"].apply(void 0, [validAlignments].concat(WIDE_ALIGNMENTS)); + } + + return validAlignments; +} +/** + * Filters registered block settings, extending attributes to include `align`. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + +function addAttribute(settings) { + // allow blocks to specify their own attribute definition with default values if needed. + if (Object(external_this_lodash_["has"])(settings.attributes, ['align', 'type'])) { + return settings; + } + + if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'align')) { + // Gracefully handle if settings.attributes is undefined. + settings.attributes = align_objectSpread({}, settings.attributes, { + align: { + type: 'string' + } + }); + } + + return settings; +} +var AlignmentHookSettings = Object(external_this_wp_element_["createContext"])({}); +/** + * Allows to pass additional settings to the alignment hook. + */ + +var AlignmentHookSettingsProvider = AlignmentHookSettings.Provider; +/** + * Override the default edit UI to include new toolbar controls for block + * alignment, if block defines support. + * + * @param {Function} BlockEdit Original component + * @return {Function} Wrapped component + */ + +var withToolbarControls = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var _useContext = Object(external_this_wp_element_["useContext"])(AlignmentHookSettings), + isEmbedButton = _useContext.isEmbedButton; + + var blockName = props.name; // Compute valid alignments without taking into account, + // if the theme supports wide alignments or not. + // BlockAlignmentToolbar takes into account the theme support. + + var validAlignments = isEmbedButton ? [] : getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(blockName, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'alignWide', true)); + + var updateAlignment = function updateAlignment(nextAlign) { + if (!nextAlign) { + var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); + var blockDefaultAlign = Object(external_this_lodash_["get"])(blockType, ['attributes', 'align', 'default']); + + if (blockDefaultAlign) { + nextAlign = ''; + } + } + + props.setAttributes({ + align: nextAlign + }); + }; + + return [validAlignments.length > 0 && props.isSelected && Object(external_this_wp_element_["createElement"])(block_controls, { + key: "align-controls" + }, Object(external_this_wp_element_["createElement"])(block_alignment_toolbar, { + value: props.attributes.align, + onChange: updateAlignment, + controls: validAlignments + })), Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ + key: "edit" + }, props))]; + }; +}, 'withToolbarControls'); +/** + * Override the default block element to add alignment wrapper props. + * + * @param {Function} BlockListBlock Original component + * @return {Function} Wrapped component + */ + +var withDataAlign = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockListBlock) { + return function (props) { + var name = props.name, + attributes = props.attributes; + var align = attributes.align; + var hasWideEnabled = Object(external_this_wp_data_["useSelect"])(function (select) { + return !!select('core/block-editor').getSettings().alignWide; + }, []); // If an alignment is not assigned, there's no need to go through the + // effort to validate or assign its value. + + if (align === undefined) { + return Object(external_this_wp_element_["createElement"])(BlockListBlock, props); + } + + var validAlignments = getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(name, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(name, 'alignWide', true), hasWideEnabled); + var wrapperProps = props.wrapperProps; + + if (Object(external_this_lodash_["includes"])(validAlignments, align)) { + wrapperProps = align_objectSpread({}, wrapperProps, { + 'data-align': align + }); + } + + return Object(external_this_wp_element_["createElement"])(BlockListBlock, Object(esm_extends["a" /* default */])({}, props, { + wrapperProps: wrapperProps + })); + }; +}); +/** + * Override props assigned to save component to inject alignment class name if + * block supports it. + * + * @param {Object} props Additional props applied to save element + * @param {Object} blockType Block type + * @param {Object} attributes Block attributes + * @return {Object} Filtered props applied to save element + */ + +function addAssignedAlign(props, blockType, attributes) { + var align = attributes.align; + var blockAlign = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, 'align'); + var hasWideBlockSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'alignWide', true); + var isAlignValid = Object(external_this_lodash_["includes"])( // Compute valid alignments without taking into account, + // if the theme supports wide alignments or not. + // This way changing themes does not impacts the block save. + getValidAlignments(blockAlign, hasWideBlockSupport), align); + + if (isAlignValid) { + props.className = classnames_default()("align".concat(align), props.className); + } + + return props; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/align/addAttribute', addAttribute); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/editor/align/with-data-align', withDataAlign); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-advanced-controls/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var inspector_advanced_controls_name = 'InspectorAdvancedControls'; + +var inspector_advanced_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])(inspector_advanced_controls_name), + inspector_advanced_controls_Fill = inspector_advanced_controls_createSlotFill.Fill, + inspector_advanced_controls_Slot = inspector_advanced_controls_createSlotFill.Slot; + +function InspectorAdvancedControls(_ref) { + var children = _ref.children; + + var _useBlockEditContext = useBlockEditContext(), + isSelected = _useBlockEditContext.isSelected; + + return isSelected ? Object(external_this_wp_element_["createElement"])(inspector_advanced_controls_Fill, null, children) : null; +} + +InspectorAdvancedControls.slotName = inspector_advanced_controls_name; +InspectorAdvancedControls.Slot = inspector_advanced_controls_Slot; +/* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js + + + +function anchor_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function anchor_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { anchor_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { anchor_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Regular expression matching invalid anchor characters for replacement. + * + * @type {RegExp} + */ + +var ANCHOR_REGEX = /[\s#]/g; +/** + * Filters registered block settings, extending attributes with anchor using ID + * of the first node. + * + * @param {Object} settings Original block settings. + * + * @return {Object} Filtered block settings. + */ + +function anchor_addAttribute(settings) { + // allow blocks to specify their own attribute definition with default values if needed. + if (Object(external_this_lodash_["has"])(settings.attributes, ['anchor', 'type'])) { + return settings; + } + + if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'anchor')) { + // Gracefully handle if settings.attributes is undefined. + settings.attributes = anchor_objectSpread({}, settings.attributes, { + anchor: { + type: 'string', + source: 'attribute', + attribute: 'id', + selector: '*' + } + }); + } + + return settings; +} +/** + * Override the default edit UI to include a new block inspector control for + * assigning the anchor ID, if block supports anchor. + * + * @param {WPComponent} BlockEdit Original component. + * + * @return {WPComponent} Wrapped component. + */ + +var withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var hasAnchor = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'anchor'); + + if (hasAnchor && props.isSelected) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + className: "html-anchor-control", + label: Object(external_this_wp_i18n_["__"])('HTML anchor'), + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: 'https://wordpress.org/support/article/page-jumps/' + }, Object(external_this_wp_i18n_["__"])('Learn more about anchors'))), + value: props.attributes.anchor || '', + onChange: function onChange(nextValue) { + nextValue = nextValue.replace(ANCHOR_REGEX, '-'); + props.setAttributes({ + anchor: nextValue + }); + } + }))); + } + + return Object(external_this_wp_element_["createElement"])(BlockEdit, props); + }; +}, 'withInspectorControl'); +/** + * Override props assigned to save component to inject anchor ID, if block + * supports anchor. This is only applied if the block's save result is an + * element and not a markup string. + * + * @param {Object} extraProps Additional props applied to save element. + * @param {Object} blockType Block type. + * @param {Object} attributes Current block attributes. + * + * @return {Object} Filtered props applied to save element. + */ + +function addSaveProps(extraProps, blockType, attributes) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'anchor')) { + extraProps.id = attributes.anchor === '' ? null : attributes.anchor; + } + + return extraProps; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/anchor/with-inspector-control', withInspectorControl); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/custom-class-name.js + + + +function custom_class_name_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function custom_class_name_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { custom_class_name_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { custom_class_name_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Filters registered block settings, extending attributes with anchor using ID + * of the first node. + * + * @param {Object} settings Original block settings. + * + * @return {Object} Filtered block settings. + */ + +function custom_class_name_addAttribute(settings) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'customClassName', true)) { + // Gracefully handle if settings.attributes is undefined. + settings.attributes = custom_class_name_objectSpread({}, settings.attributes, { + className: { + type: 'string' + } + }); + } + + return settings; +} +/** + * Override the default edit UI to include a new block inspector control for + * assigning the custom class name, if block supports custom class name. + * + * @param {WPComponent} BlockEdit Original component. + * + * @return {WPComponent} Wrapped component. + */ + +var custom_class_name_withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var hasCustomClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'customClassName', true); + + if (hasCustomClassName && props.isSelected) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + autoComplete: "off", + label: Object(external_this_wp_i18n_["__"])('Additional CSS class(es)'), + value: props.attributes.className || '', + onChange: function onChange(nextValue) { + props.setAttributes({ + className: nextValue !== '' ? nextValue : undefined + }); + }, + help: Object(external_this_wp_i18n_["__"])('Separate multiple classes with spaces.') + }))); + } + + return Object(external_this_wp_element_["createElement"])(BlockEdit, props); + }; +}, 'withInspectorControl'); +/** + * Override props assigned to save component to inject anchor ID, if block + * supports anchor. This is only applied if the block's save result is an + * element and not a markup string. + * + * @param {Object} extraProps Additional props applied to save element. + * @param {Object} blockType Block type. + * @param {Object} attributes Current block attributes. + * + * @return {Object} Filtered props applied to save element. + */ + +function custom_class_name_addSaveProps(extraProps, blockType, attributes) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true) && attributes.className) { + extraProps.className = classnames_default()(extraProps.className, attributes.className); + } + + return extraProps; +} +/** + * Given an HTML string, returns an array of class names assigned to the root + * element in the markup. + * + * @param {string} innerHTML Markup string from which to extract classes. + * + * @return {string[]} Array of class names assigned to the root element. + */ + +function getHTMLRootElementClasses(innerHTML) { + innerHTML = "
    ".concat(innerHTML, "
    "); + var parsed = Object(external_this_wp_blocks_["parseWithAttributeSchema"])(innerHTML, { + type: 'string', + source: 'attribute', + selector: '[data-custom-class-name] > *', + attribute: 'class' + }); + return parsed ? parsed.trim().split(/\s+/) : []; +} +/** + * Given a parsed set of block attributes, if the block supports custom class + * names and an unknown class (per the block's serialization behavior) is + * found, the unknown classes are treated as custom classes. This prevents the + * block from being considered as invalid. + * + * @param {Object} blockAttributes Original block attributes. + * @param {Object} blockType Block type settings. + * @param {string} innerHTML Original block markup. + * + * @return {Object} Filtered block attributes. + */ + +function addParsedDifference(blockAttributes, blockType, innerHTML) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true)) { + // To determine difference, serialize block given the known set of + // attributes, with the exception of `className`. This will determine + // the default set of classes. From there, any difference in innerHTML + // can be considered as custom classes. + var attributesSansClassName = Object(external_this_lodash_["omit"])(blockAttributes, ['className']); + var serialized = Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributesSansClassName); + var defaultClasses = getHTMLRootElementClasses(serialized); + var actualClasses = getHTMLRootElementClasses(innerHTML); + var customClasses = Object(external_this_lodash_["difference"])(actualClasses, defaultClasses); + + if (customClasses.length) { + blockAttributes.className = customClasses.join(' '); + } else if (serialized) { + delete blockAttributes.className; + } + } + + return blockAttributes; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/custom-class-name/attribute', custom_class_name_addAttribute); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/custom-class-name/with-inspector-control', custom_class_name_withInspectorControl); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/custom-class-name/save-props', custom_class_name_addSaveProps); +Object(external_this_wp_hooks_["addFilter"])('blocks.getBlockAttributes', 'core/custom-class-name/addParsedDifference', addParsedDifference); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(16); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Override props assigned to save component to inject generated className if + * block supports it. This is only applied if the block's save result is an + * element and not a markup string. + * + * @param {Object} extraProps Additional props applied to save element. + * @param {Object} blockType Block type. + * + * @return {Object} Filtered props applied to save element. + */ + +function addGeneratedClassName(extraProps, blockType) { + // Adding the generated className + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true)) { + if (typeof extraProps.className === 'string') { + // We have some extra classes and want to add the default classname + // We use uniq to prevent duplicate classnames + extraProps.className = Object(external_this_lodash_["uniq"])([Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name)].concat(Object(toConsumableArray["a" /* default */])(extraProps.className.split(' ')))).join(' ').trim(); + } else { + // There is no string in the className variable, + // so we just dump the default name in there + extraProps.className = Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name); + } + } + + return extraProps; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js +var toArray = __webpack_require__(140); + +// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js +var tinycolor = __webpack_require__(56); +var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/utils.js +/** + * External dependencies + */ + + +/** + * Provided an array of color objects as set by the theme or by the editor defaults, + * and the values of the defined color or custom color returns a color object describing the color. + * + * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. + * @param {?string} definedColor A string containing the color slug. + * @param {?string} customColor A string containing the customColor value. + * + * @return {?Object} If definedColor is passed and the name is found in colors, + * the color object exactly as set by the theme or editor defaults is returned. + * Otherwise, an object that just sets the color is defined. + */ + +var utils_getColorObjectByAttributeValues = function getColorObjectByAttributeValues(colors, definedColor, customColor) { + if (definedColor) { + var colorObj = Object(external_this_lodash_["find"])(colors, { + slug: definedColor + }); + + if (colorObj) { + return colorObj; + } + } + + return { + color: customColor + }; +}; +/** + * Provided an array of color objects as set by the theme or by the editor defaults, and a color value returns the color object matching that value or undefined. + * + * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. + * @param {?string} colorValue A string containing the color value. + * + * @return {?Object} Color object included in the colors array whose color property equals colorValue. + * Returns undefined if no color object matches this requirement. + */ + +var utils_getColorObjectByColorValue = function getColorObjectByColorValue(colors, colorValue) { + return Object(external_this_lodash_["find"])(colors, { + color: colorValue + }); +}; +/** + * Returns a class based on the context a color is being used and its slug. + * + * @param {string} colorContextName Context/place where color is being used e.g: background, text etc... + * @param {string} colorSlug Slug of the color. + * + * @return {?string} String with the class corresponding to the color in the provided context. + * Returns undefined if either colorContextName or colorSlug are not provided. + */ + +function getColorClassName(colorContextName, colorSlug) { + if (!colorContextName || !colorSlug) { + return undefined; + } + + return "has-".concat(Object(external_this_lodash_["kebabCase"])(colorSlug), "-").concat(colorContextName); +} +/** + * Given an array of color objects and a color value returns the color value of the most readable color in the array. + * + * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. + * @param {?string} colorValue A string containing the color value. + * + * @return {string} String with the color value of the most readable color. + */ + +function utils_getMostReadableColor(colors, colorValue) { + return tinycolor_default.a.mostReadable(colorValue, Object(external_this_lodash_["map"])(colors, 'color')).toHexString(); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradients/use-gradient.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +function __experimentalGetGradientClass(gradientSlug) { + if (!gradientSlug) { + return undefined; + } + + return "has-".concat(gradientSlug, "-gradient-background"); +} +/** + * Retrieves the gradient value per slug. + * + * @param {Array} gradients Gradient Palette + * @param {string} slug Gradient slug + * + * @return {string} Gradient value. + */ + +function getGradientValueBySlug(gradients, slug) { + var gradient = Object(external_this_lodash_["find"])(gradients, ['slug', slug]); + return gradient && gradient.gradient; +} +function __experimentalGetGradientObjectByGradientValue(gradients, value) { + var gradient = Object(external_this_lodash_["find"])(gradients, ['gradient', value]); + return gradient; +} +/** + * Retrieves the gradient slug per slug. + * + * @param {Array} gradients Gradient Palette + * @param {string} value Gradient value + * @return {string} Gradient slug. + */ + +function getGradientSlugByValue(gradients, value) { + var gradient = __experimentalGetGradientObjectByGradientValue(gradients, value); + + return gradient && gradient.slug; +} +function __experimentalUseGradient() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + _ref$gradientAttribut = _ref.gradientAttribute, + gradientAttribute = _ref$gradientAttribut === void 0 ? 'gradient' : _ref$gradientAttribut, + _ref$customGradientAt = _ref.customGradientAttribute, + customGradientAttribute = _ref$customGradientAt === void 0 ? 'customGradient' : _ref$customGradientAt; + + var _useBlockEditContext = useBlockEditContext(), + clientId = _useBlockEditContext.clientId; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockAttributes = _select.getBlockAttributes, + getSettings = _select.getSettings; + + var attributes = getBlockAttributes(clientId); + return { + gradient: attributes[gradientAttribute], + customGradient: attributes[customGradientAttribute], + gradients: getSettings().gradients + }; + }, [clientId, gradientAttribute, customGradientAttribute]), + gradients = _useSelect.gradients, + gradient = _useSelect.gradient, + customGradient = _useSelect.customGradient; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateBlockAttributes = _useDispatch.updateBlockAttributes; + + var setGradient = Object(external_this_wp_element_["useCallback"])(function (newGradientValue) { + var _updateBlockAttribute2; + + var slug = getGradientSlugByValue(gradients, newGradientValue); + + if (slug) { + var _updateBlockAttribute; + + updateBlockAttributes(clientId, (_updateBlockAttribute = {}, Object(defineProperty["a" /* default */])(_updateBlockAttribute, gradientAttribute, slug), Object(defineProperty["a" /* default */])(_updateBlockAttribute, customGradientAttribute, undefined), _updateBlockAttribute)); + return; + } + + updateBlockAttributes(clientId, (_updateBlockAttribute2 = {}, Object(defineProperty["a" /* default */])(_updateBlockAttribute2, gradientAttribute, undefined), Object(defineProperty["a" /* default */])(_updateBlockAttribute2, customGradientAttribute, newGradientValue), _updateBlockAttribute2)); + }, [gradients, clientId, updateBlockAttributes]); + + var gradientClass = __experimentalGetGradientClass(gradient); + + var gradientValue; + + if (gradient) { + gradientValue = getGradientValueBySlug(gradients, gradient); + } else { + gradientValue = customGradient; + } + + return { + gradientClass: gradientClass, + gradientValue: gradientValue, + setGradient: setGradient + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/utils.js +/** + * External dependencies + */ + +/** + * Removed undefined values from nested object. + * + * @param {*} object + * @return {*} Object cleaned from undefined values + */ + +var utils_cleanEmptyObject = function cleanEmptyObject(object) { + if (!Object(external_this_lodash_["isObject"])(object)) { + return object; + } + + var cleanedNestedObjects = Object(external_this_lodash_["pickBy"])(Object(external_this_lodash_["mapValues"])(object, cleanEmptyObject), external_this_lodash_["identity"]); + return Object(external_this_lodash_["isEqual"])(cleanedNestedObjects, {}) ? undefined : cleanedNestedObjects; +}; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(14); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/control.js + + + + + +function control_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { control_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + // translators: first %s: the color name or value (e.g. red or #ff0000) + +var colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(Color: %s)'); // translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%) + + +var gradientIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(Gradient: %s)'); + +var colorsAndGradientKeys = ['colors', 'disableCustomColors', 'gradients', 'disableCustomGradients']; + +function VisualLabel(_ref) { + var colors = _ref.colors, + gradients = _ref.gradients, + label = _ref.label, + currentTab = _ref.currentTab, + colorValue = _ref.colorValue, + gradientValue = _ref.gradientValue; + var value, ariaLabel; + + if (currentTab === 'color') { + if (colorValue) { + value = colorValue; + var colorObject = utils_getColorObjectByColorValue(colors, value); + var colorName = colorObject && colorObject.name; + ariaLabel = Object(external_this_wp_i18n_["sprintf"])(colorIndicatorAriaLabel, colorName || value); + } + } else if (currentTab === 'gradient' && gradientValue) { + value = gradientValue; + + var gradientObject = __experimentalGetGradientObjectByGradientValue(gradients, value); + + var gradientName = gradientObject && gradientObject.name; + ariaLabel = Object(external_this_wp_i18n_["sprintf"])(gradientIndicatorAriaLabel, gradientName || value); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, label, !!value && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { + colorValue: value, + "aria-label": ariaLabel + })); +} + +function ColorGradientControlInner(_ref2) { + var colors = _ref2.colors, + gradients = _ref2.gradients, + disableCustomColors = _ref2.disableCustomColors, + disableCustomGradients = _ref2.disableCustomGradients, + className = _ref2.className, + label = _ref2.label, + onColorChange = _ref2.onColorChange, + onGradientChange = _ref2.onGradientChange, + colorValue = _ref2.colorValue, + gradientValue = _ref2.gradientValue; + var canChooseAColor = onColorChange && (!Object(external_this_lodash_["isEmpty"])(colors) || !disableCustomColors); + var canChooseAGradient = onGradientChange && (!Object(external_this_lodash_["isEmpty"])(gradients) || !disableCustomGradients); + + var _useState = Object(external_this_wp_element_["useState"])(gradientValue ? 'gradient' : !!canChooseAColor && 'color'), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + currentTab = _useState2[0], + setCurrentTab = _useState2[1]; + + if (!canChooseAColor && !canChooseAGradient) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: classnames_default()('block-editor-color-gradient-control', className) + }, Object(external_this_wp_element_["createElement"])("fieldset", null, Object(external_this_wp_element_["createElement"])("legend", null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-color-gradient-control__color-indicator" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_element_["createElement"])(VisualLabel, { + currentTab: currentTab, + label: label, + colorValue: colorValue, + gradientValue: gradientValue + })))), canChooseAColor && canChooseAGradient && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { + className: "block-editor-color-gradient-control__button-tabs" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSmall: true, + isPressed: currentTab === 'color', + onClick: function onClick() { + return setCurrentTab('color'); + } + }, Object(external_this_wp_i18n_["__"])('Solid')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSmall: true, + isPressed: currentTab === 'gradient', + onClick: function onClick() { + return setCurrentTab('gradient'); + } + }, Object(external_this_wp_i18n_["__"])('Gradient'))), (currentTab === 'color' || !canChooseAGradient) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorPalette"], Object(esm_extends["a" /* default */])({ + value: colorValue, + onChange: canChooseAGradient ? function (newColor) { + onColorChange(newColor); + onGradientChange(); + } : onColorChange + }, { + colors: colors, + disableCustomColors: disableCustomColors + })), (currentTab === 'gradient' || !canChooseAColor) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalGradientPicker"], Object(esm_extends["a" /* default */])({ + value: gradientValue, + onChange: canChooseAColor ? function (newGradient) { + onGradientChange(newGradient); + onColorChange(); + } : onGradientChange + }, { + gradients: gradients, + disableCustomGradients: disableCustomGradients + })))); +} + +function ColorGradientControlSelect(props) { + var colorGradientSettings = Object(external_this_wp_data_["useSelect"])(function (select) { + var settings = select('core/block-editor').getSettings(); + return Object(external_this_lodash_["pick"])(settings, colorsAndGradientKeys); + }); + return Object(external_this_wp_element_["createElement"])(ColorGradientControlInner, control_objectSpread({}, colorGradientSettings, {}, props)); +} + +function ColorGradientControl(props) { + if (Object(external_this_lodash_["every"])(colorsAndGradientKeys, function (key) { + return props.hasOwnProperty(key); + })) { + return Object(external_this_wp_element_["createElement"])(ColorGradientControlInner, props); + } + + return Object(external_this_wp_element_["createElement"])(ColorGradientControlSelect, props); +} + +/* harmony default export */ var control = (ColorGradientControl); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.js + + + + + +function panel_color_gradient_settings_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function panel_color_gradient_settings_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { panel_color_gradient_settings_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { panel_color_gradient_settings_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000) + +var panel_color_gradient_settings_colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: color %s)'); // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000) + + +var panel_color_gradient_settings_gradientIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: gradient %s)'); + +var panel_color_gradient_settings_colorsAndGradientKeys = ['colors', 'disableCustomColors', 'gradients', 'disableCustomGradients']; + +var panel_color_gradient_settings_Indicators = function Indicators(_ref) { + var colors = _ref.colors, + gradients = _ref.gradients, + settings = _ref.settings; + return settings.map(function (_ref2, index) { + var colorValue = _ref2.colorValue, + gradientValue = _ref2.gradientValue, + label = _ref2.label, + availableColors = _ref2.colors, + availableGradients = _ref2.gradients; + + if (!colorValue && !gradientValue) { + return null; + } + + var ariaLabel; + + if (colorValue) { + var colorObject = utils_getColorObjectByColorValue(availableColors || colors, colorValue); + ariaLabel = Object(external_this_wp_i18n_["sprintf"])(panel_color_gradient_settings_colorIndicatorAriaLabel, label.toLowerCase(), colorObject && colorObject.name || colorValue); + } else { + var gradientObject = __experimentalGetGradientObjectByGradientValue(availableGradients || gradients, colorValue); + + ariaLabel = Object(external_this_wp_i18n_["sprintf"])(panel_color_gradient_settings_gradientIndicatorAriaLabel, label.toLowerCase(), gradientObject && gradientObject.name || gradientValue); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { + key: index, + colorValue: colorValue || gradientValue, + "aria-label": ariaLabel + }); + }); +}; + +var panel_color_gradient_settings_PanelColorGradientSettingsInner = function PanelColorGradientSettingsInner(_ref3) { + var className = _ref3.className, + colors = _ref3.colors, + gradients = _ref3.gradients, + disableCustomColors = _ref3.disableCustomColors, + disableCustomGradients = _ref3.disableCustomGradients, + children = _ref3.children, + settings = _ref3.settings, + title = _ref3.title, + props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["className", "colors", "gradients", "disableCustomColors", "disableCustomGradients", "children", "settings", "title"]); + + if (Object(external_this_lodash_["isEmpty"])(colors) && Object(external_this_lodash_["isEmpty"])(gradients) && disableCustomColors && disableCustomGradients && Object(external_this_lodash_["every"])(settings, function (setting) { + return Object(external_this_lodash_["isEmpty"])(setting.colors) && Object(external_this_lodash_["isEmpty"])(setting.gradients) && (setting.disableCustomColors === undefined || setting.disableCustomColors) && (setting.disableCustomGradients === undefined || setting.disableCustomGradients); + })) { + return null; + } + + var titleElement = Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-panel-color-gradient-settings__panel-title" + }, title, Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_Indicators, { + colors: colors, + gradients: gradients, + settings: settings + })); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], Object(esm_extends["a" /* default */])({ + className: classnames_default()('block-editor-panel-color-gradient-settings', className), + title: titleElement + }, props), settings.map(function (setting, index) { + return Object(external_this_wp_element_["createElement"])(control, Object(esm_extends["a" /* default */])({ + key: index + }, panel_color_gradient_settings_objectSpread({ + colors: colors, + gradients: gradients, + disableCustomColors: disableCustomColors, + disableCustomGradients: disableCustomGradients + }, setting))); + }), children); +}; + +var panel_color_gradient_settings_PanelColorGradientSettingsSelect = function PanelColorGradientSettingsSelect(props) { + var colorGradientSettings = Object(external_this_wp_data_["useSelect"])(function (select) { + var settings = select('core/block-editor').getSettings(); + return Object(external_this_lodash_["pick"])(settings, panel_color_gradient_settings_colorsAndGradientKeys); + }); + return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsInner, panel_color_gradient_settings_objectSpread({}, colorGradientSettings, {}, props)); +}; + +var panel_color_gradient_settings_PanelColorGradientSettings = function PanelColorGradientSettings(props) { + if (Object(external_this_lodash_["every"])(panel_color_gradient_settings_colorsAndGradientKeys, function (key) { + return props.hasOwnProperty(key); + })) { + return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsInner, props); + } + + return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings_PanelColorGradientSettingsSelect, props); +}; + +/* harmony default export */ var panel_color_gradient_settings = (panel_color_gradient_settings_PanelColorGradientSettings); + +// EXTERNAL MODULE: external {"this":["wp","a11y"]} +var external_this_wp_a11y_ = __webpack_require__(49); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function ContrastCheckerMessage(_ref) { + var tinyBackgroundColor = _ref.tinyBackgroundColor, + tinyTextColor = _ref.tinyTextColor, + backgroundColor = _ref.backgroundColor, + textColor = _ref.textColor; + var msg = tinyBackgroundColor.getBrightness() < tinyTextColor.getBrightness() ? Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color.') : Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.'); // Note: The `Notice` component can speak messages via its `spokenMessage` + // prop, but the contrast checker requires granular control over when the + // announcements are made. Notably, the message will be re-announced if a + // new color combination is selected and the contrast is still insufficient. + + Object(external_this_wp_element_["useEffect"])(function () { + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read.')); + }, [backgroundColor, textColor]); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-contrast-checker" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { + spokenMessage: null, + status: "warning", + isDismissible: false + }, msg)); +} + +function ContrastChecker(_ref2) { + var backgroundColor = _ref2.backgroundColor, + fallbackBackgroundColor = _ref2.fallbackBackgroundColor, + fallbackTextColor = _ref2.fallbackTextColor, + fontSize = _ref2.fontSize, + isLargeText = _ref2.isLargeText, + textColor = _ref2.textColor; + + if (!(backgroundColor || fallbackBackgroundColor) || !(textColor || fallbackTextColor)) { + return null; + } + + var tinyBackgroundColor = tinycolor_default()(backgroundColor || fallbackBackgroundColor); + var tinyTextColor = tinycolor_default()(textColor || fallbackTextColor); + var hasTransparency = tinyBackgroundColor.getAlpha() !== 1 || tinyTextColor.getAlpha() !== 1; + + if (hasTransparency || tinycolor_default.a.isReadable(tinyBackgroundColor, tinyTextColor, { + level: 'AA', + size: isLargeText || isLargeText !== false && fontSize >= 24 ? 'large' : 'small' + })) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(ContrastCheckerMessage, { + backgroundColor: backgroundColor, + textColor: textColor, + tinyBackgroundColor: tinyBackgroundColor, + tinyTextColor: tinyTextColor + }); +} + +/* harmony default export */ var contrast_checker = (ContrastChecker); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var inspector_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('InspectorControls'), + inspector_controls_Fill = inspector_controls_createSlotFill.Fill, + inspector_controls_Slot = inspector_controls_createSlotFill.Slot; + +function InspectorControls(_ref) { + var children = _ref.children; + return useDisplayBlockControls() ? Object(external_this_wp_element_["createElement"])(inspector_controls_Fill, null, children) : null; +} + +InspectorControls.Slot = inspector_controls_Slot; +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/inspector-controls/README.md + */ + +/* harmony default export */ var inspector_controls = (InspectorControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/dom.js +/** + * Given a block client ID, returns the corresponding DOM node for the block, + * if exists. As much as possible, this helper should be avoided, and used only + * in cases where isolated behaviors need remote access to a block node. + * + * @param {string} clientId Block client ID. + * + * @return {Element?} Block DOM node. + */ +function getBlockDOMNode(clientId) { + return document.getElementById('block-' + clientId); +} +/** + * Returns the preview container DOM node for a given block client ID, or + * undefined if the container cannot be determined. + * + * @param {string} clientId Block client ID. + * + * @return {Node|undefined} Preview container DOM node. + */ + +function getBlockPreviewContainerDOMNode(clientId) { + var domNode = getBlockDOMNode(clientId); + + if (!domNode) { + return; + } + + return domNode.firstChild || domNode; +} +/** + * Returns true if the given element is a block focus stop. Blocks without their + * own text fields rely on the focus stop to be keyboard navigable. + * + * @param {Element} element Element to test. + * + * @return {boolean} Whether element is a block focus stop. + */ + +function isBlockFocusStop(element) { + return element.classList.contains('block-editor-block-list__block'); +} +/** + * Returns true if two elements are contained within the same block. + * + * @param {Element} a First element. + * @param {Element} b Second element. + * + * @return {boolean} Whether elements are in the same block. + */ + +function isInSameBlock(a, b) { + return a.closest('.block-editor-block-list__block') === b.closest('.block-editor-block-list__block'); +} +/** + * Returns true if an element is considered part of the block and not its + * children. + * + * @param {Element} blockElement Block container element. + * @param {Element} element Element. + * + * @return {boolean} Whether element is in the block Element but not its + * children. + */ + +function isInsideRootBlock(blockElement, element) { + var parentBlock = element.closest('.block-editor-block-list__block'); + return parentBlock === blockElement; +} +/** + * Returns true if the given element contains inner blocks (an InnerBlocks + * element). + * + * @param {Element} element Element to test. + * + * @return {boolean} Whether element contains inner blocks. + */ + +function hasInnerBlocksContext(element) { + return element.classList.contains('block-editor-block-list__layout') || !!element.querySelector('.block-editor-block-list__layout'); +} +/** + * Finds the block client ID given any DOM node inside the block. + * + * @param {Node?} node DOM node. + * + * @return {string|undefined} Client ID or undefined if the node is not part of + * a block. + */ + +function getBlockClientId(node) { + while (node && node.nodeType !== window.Node.ELEMENT_NODE) { + node = node.parentNode; + } + + if (!node) { + return; + } + + var elementNode = + /** @type {Element} */ + node; + var blockNode = elementNode.closest('.block-editor-block-list__block'); + + if (!blockNode) { + return; + } + + return blockNode.id.slice('block-'.length); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/color-panel.js + + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +function ColorPanel(_ref) { + var settings = _ref.settings, + clientId = _ref.clientId, + _ref$enableContrastCh = _ref.enableContrastChecking, + enableContrastChecking = _ref$enableContrastCh === void 0 ? true : _ref$enableContrastCh; + var _window = window, + getComputedStyle = _window.getComputedStyle, + Node = _window.Node; + + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + detectedBackgroundColor = _useState2[0], + setDetectedBackgroundColor = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + detectedColor = _useState4[0], + setDetectedColor = _useState4[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + if (!enableContrastChecking) { + return; + } + + var colorsDetectionElement = getBlockDOMNode(clientId); + + if (!colorsDetectionElement) { + return; + } + + setDetectedColor(getComputedStyle(colorsDetectionElement).color); + var backgroundColorNode = colorsDetectionElement; + var backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; + + while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === Node.ELEMENT_NODE) { + backgroundColorNode = backgroundColorNode.parentNode; + backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; + } + + setDetectedBackgroundColor(backgroundColor); + }); + return Object(external_this_wp_element_["createElement"])(inspector_controls, null, Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings, { + title: Object(external_this_wp_i18n_["__"])('Color settings'), + initialOpen: false, + settings: settings + }, enableContrastChecking && Object(external_this_wp_element_["createElement"])(contrast_checker, { + backgroundColor: detectedBackgroundColor, + textColor: detectedColor + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/color.js + + + + +function color_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function color_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { color_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { color_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + +var COLOR_SUPPORT_KEY = '__experimentalColor'; + +var color_hasColorSupport = function hasColorSupport(blockType) { + return external_this_wp_element_["Platform"].OS === 'web' && Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, COLOR_SUPPORT_KEY); +}; + +var color_hasLinkColorSupport = function hasLinkColorSupport(blockType) { + if (external_this_wp_element_["Platform"].OS !== 'web') { + return false; + } + + var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); + return Object(external_this_lodash_["isObject"])(colorSupport) && !!colorSupport.linkColor; +}; + +var color_hasGradientSupport = function hasGradientSupport(blockType) { + if (external_this_wp_element_["Platform"].OS !== 'web') { + return false; + } + + var colorSupport = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); + return Object(external_this_lodash_["isObject"])(colorSupport) && !!colorSupport.gradients; +}; +/** + * Filters registered block settings, extending attributes to include + * `backgroundColor` and `textColor` attribute. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + + +function addAttributes(settings) { + if (!color_hasColorSupport(settings)) { + return settings; + } // allow blocks to specify their own attribute definition with default values if needed. + + + if (!settings.attributes.backgroundColor) { + Object.assign(settings.attributes, { + backgroundColor: { + type: 'string' + } + }); + } + + if (!settings.attributes.textColor) { + Object.assign(settings.attributes, { + textColor: { + type: 'string' + } + }); + } + + if (color_hasGradientSupport(settings) && !settings.attributes.gradient) { + Object.assign(settings.attributes, { + gradient: { + type: 'string' + } + }); + } + + return settings; +} +/** + * Override props assigned to save component to inject colors classnames. + * + * @param {Object} props Additional props applied to save element + * @param {Object} blockType Block type + * @param {Object} attributes Block attributes + * @return {Object} Filtered props applied to save element + */ + + +function color_addSaveProps(props, blockType, attributes) { + var _style$color, _style$color2, _style$color3, _style$color4, _style$color5, _classnames; + + if (!color_hasColorSupport(blockType)) { + return props; + } + + var hasGradient = color_hasGradientSupport(blockType); // I'd have prefered to avoid the "style" attribute usage here + + var backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + gradient = attributes.gradient, + style = attributes.style; + var backgroundClass = getColorClassName('background-color', backgroundColor); + + var gradientClass = __experimentalGetGradientClass(gradient); + + var textClass = getColorClassName('color', textColor); + var newClassName = classnames_default()(props.className, textClass, gradientClass, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, (!hasGradient || !(style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.gradient)) && !!backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || (style === null || style === void 0 ? void 0 : (_style$color2 = style.color) === null || _style$color2 === void 0 ? void 0 : _style$color2.text)), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || (style === null || style === void 0 ? void 0 : (_style$color3 = style.color) === null || _style$color3 === void 0 ? void 0 : _style$color3.background) || hasGradient && (gradient || (style === null || style === void 0 ? void 0 : (_style$color4 = style.color) === null || _style$color4 === void 0 ? void 0 : _style$color4.gradient))), Object(defineProperty["a" /* default */])(_classnames, 'has-link-color', style === null || style === void 0 ? void 0 : (_style$color5 = style.color) === null || _style$color5 === void 0 ? void 0 : _style$color5.link), _classnames)); + props.className = newClassName ? newClassName : undefined; + return props; +} +/** + * Filters registered block settings to extand the block edit wrapper + * to apply the desired styles and classnames properly. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + +function addEditProps(settings) { + if (!color_hasColorSupport(settings)) { + return settings; + } + + var existingGetEditWrapperProps = settings.getEditWrapperProps; + + settings.getEditWrapperProps = function (attributes) { + var props = {}; + + if (existingGetEditWrapperProps) { + props = existingGetEditWrapperProps(attributes); + } + + return color_addSaveProps(props, settings, attributes); + }; + + return settings; +} + +var color_getLinkColorFromAttributeValue = function getLinkColorFromAttributeValue(colors, value) { + var attributeParsed = /var:preset\|color\|(.+)/.exec(value); + + if (attributeParsed && attributeParsed[1]) { + return utils_getColorObjectByAttributeValues(colors, attributeParsed[1]).color; + } + + return value; +}; +/** + * Inspector control panel containing the color related configuration + * + * @param {Object} props + * + * @return {WPElement} Color edit element. + */ + + +function ColorEdit(props) { + var _style$color7, _style$color8, _style$color9, _style$color10, _props$attributes$sty2, _props$attributes$sty3; + + var blockName = props.name, + attributes = props.attributes; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings(); + }, []), + colors = _useSelect.colors, + gradients = _useSelect.gradients, + __experimentalEnableLinkColor = _useSelect.__experimentalEnableLinkColor; // Shouldn't be needed but right now the ColorGradientsPanel + // can trigger both onChangeColor and onChangeBackground + // synchronously causing our two callbacks to override changes + // from each other. + + + var localAttributes = Object(external_this_wp_element_["useRef"])(attributes); + Object(external_this_wp_element_["useEffect"])(function () { + localAttributes.current = attributes; + }, [attributes]); + + if (!color_hasColorSupport(blockName)) { + return null; + } + + var hasGradient = color_hasGradientSupport(blockName); + var style = attributes.style, + textColor = attributes.textColor, + backgroundColor = attributes.backgroundColor, + gradient = attributes.gradient; + var gradientValue; + + if (hasGradient && gradient) { + gradientValue = getGradientValueBySlug(gradients, gradient); + } else if (hasGradient) { + var _style$color6; + + gradientValue = style === null || style === void 0 ? void 0 : (_style$color6 = style.color) === null || _style$color6 === void 0 ? void 0 : _style$color6.gradient; + } + + var onChangeColor = function onChangeColor(name) { + return function (value) { + var _localAttributes$curr, _localAttributes$curr2; + + var colorObject = utils_getColorObjectByColorValue(colors, value); + var attributeName = name + 'Color'; + + var newStyle = color_objectSpread({}, localAttributes.current.style, { + color: color_objectSpread({}, (_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color, Object(defineProperty["a" /* default */])({}, name, (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? undefined : value)) + }); + + var newNamedColor = (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? colorObject.slug : undefined; + + var newAttributes = Object(defineProperty["a" /* default */])({ + style: utils_cleanEmptyObject(newStyle) + }, attributeName, newNamedColor); + + props.setAttributes(newAttributes); + localAttributes.current = color_objectSpread({}, localAttributes.current, {}, newAttributes); + }; + }; + + var onChangeGradient = function onChangeGradient(value) { + var slug = getGradientSlugByValue(gradients, value); + var newAttributes; + + if (slug) { + var _localAttributes$curr3, _localAttributes$curr4, _localAttributes$curr5; + + var newStyle = color_objectSpread({}, (_localAttributes$curr3 = localAttributes.current) === null || _localAttributes$curr3 === void 0 ? void 0 : _localAttributes$curr3.style, { + color: color_objectSpread({}, (_localAttributes$curr4 = localAttributes.current) === null || _localAttributes$curr4 === void 0 ? void 0 : (_localAttributes$curr5 = _localAttributes$curr4.style) === null || _localAttributes$curr5 === void 0 ? void 0 : _localAttributes$curr5.color, { + gradient: undefined + }) + }); + + newAttributes = { + style: utils_cleanEmptyObject(newStyle), + gradient: slug + }; + } else { + var _localAttributes$curr6, _localAttributes$curr7, _localAttributes$curr8; + + var _newStyle = color_objectSpread({}, (_localAttributes$curr6 = localAttributes.current) === null || _localAttributes$curr6 === void 0 ? void 0 : _localAttributes$curr6.style, { + color: color_objectSpread({}, (_localAttributes$curr7 = localAttributes.current) === null || _localAttributes$curr7 === void 0 ? void 0 : (_localAttributes$curr8 = _localAttributes$curr7.style) === null || _localAttributes$curr8 === void 0 ? void 0 : _localAttributes$curr8.color, { + gradient: value + }) + }); + + newAttributes = { + style: utils_cleanEmptyObject(_newStyle), + gradient: undefined + }; + } + + props.setAttributes(newAttributes); + localAttributes.current = color_objectSpread({}, localAttributes.current, {}, newAttributes); + }; + + var onChangeLinkColor = function onChangeLinkColor(value) { + var _props$attributes$sty; + + var colorObject = utils_getColorObjectByColorValue(colors, value); + props.setAttributes({ + style: color_objectSpread({}, props.attributes.style, { + color: color_objectSpread({}, (_props$attributes$sty = props.attributes.style) === null || _props$attributes$sty === void 0 ? void 0 : _props$attributes$sty.color, { + link: (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? "var:preset|color|".concat(colorObject.slug) : value + }) + }) + }); + }; + + return Object(external_this_wp_element_["createElement"])(ColorPanel, { + enableContrastChecking: // Turn on contrast checker for web only since it's not supported on mobile yet. + external_this_wp_element_["Platform"].OS === 'web' && !gradient && !(style === null || style === void 0 ? void 0 : (_style$color7 = style.color) === null || _style$color7 === void 0 ? void 0 : _style$color7.gradient), + clientId: props.clientId, + settings: [{ + label: Object(external_this_wp_i18n_["__"])('Text Color'), + onColorChange: onChangeColor('text'), + colorValue: utils_getColorObjectByAttributeValues(colors, textColor, style === null || style === void 0 ? void 0 : (_style$color8 = style.color) === null || _style$color8 === void 0 ? void 0 : _style$color8.text).color + }, { + label: Object(external_this_wp_i18n_["__"])('Background Color'), + onColorChange: onChangeColor('background'), + colorValue: utils_getColorObjectByAttributeValues(colors, backgroundColor, style === null || style === void 0 ? void 0 : (_style$color9 = style.color) === null || _style$color9 === void 0 ? void 0 : _style$color9.background).color, + gradientValue: gradientValue, + onGradientChange: hasGradient ? onChangeGradient : undefined + }].concat(Object(toConsumableArray["a" /* default */])(__experimentalEnableLinkColor && color_hasLinkColorSupport(blockName) ? [{ + label: Object(external_this_wp_i18n_["__"])('Link Color'), + onColorChange: onChangeLinkColor, + colorValue: color_getLinkColorFromAttributeValue(colors, style === null || style === void 0 ? void 0 : (_style$color10 = style.color) === null || _style$color10 === void 0 ? void 0 : _style$color10.link), + clearable: !!((_props$attributes$sty2 = props.attributes.style) === null || _props$attributes$sty2 === void 0 ? void 0 : (_props$attributes$sty3 = _props$attributes$sty2.color) === null || _props$attributes$sty3 === void 0 ? void 0 : _props$attributes$sty3.link) + }] : [])) + }); +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/color/addAttribute', addAttributes); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/color/addSaveProps', color_addSaveProps); +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/color/addEditProps', addEditProps); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/utils.js +var BASE_DEFAULT_VALUE = 1.5; +var STEP = 0.1; +/** + * There are varying value types within LineHeightControl: + * + * {undefined} Initial value. No changes from the user. + * {string} Input value. Value consumed/outputted by the input. Empty would be ''. + * {number} Block attribute type. Input value needs to be converted for attribute setting. + * + * Note: If the value is undefined, the input requires it to be an empty string ('') + * in order to be considered "controlled" by props (rather than internal state). + */ + +var RESET_VALUE = ''; +/** + * Determines if the lineHeight attribute has been properly defined. + * + * @param {any} lineHeight The value to check. + * + * @return {boolean} Whether the lineHeight attribute is valid. + */ + +function isLineHeightDefined(lineHeight) { + return lineHeight !== undefined && lineHeight !== RESET_VALUE; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/line-height-control/index.js + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +function LineHeightControl(_ref) { + var lineHeight = _ref.value, + onChange = _ref.onChange; + var isDefined = isLineHeightDefined(lineHeight); + + var handleOnKeyDown = function handleOnKeyDown(event) { + var keyCode = event.keyCode; + + if (keyCode === external_this_wp_keycodes_["ZERO"] && !isDefined) { + /** + * Prevents the onChange callback from firing, which prevents + * the logic from assuming the change was triggered from + * an input arrow CLICK. + */ + event.preventDefault(); + onChange('0'); + } + }; + + var handleOnChange = function handleOnChange(nextValue) { + // Set the next value without modification if lineHeight has been defined + if (isDefined) { + onChange(nextValue); + return; + } // Otherwise... + + /** + * The following logic handles the initial up/down arrow CLICK of the + * input element. This is so that the next values (from an undefined value state) + * are more better suited for line-height rendering. + */ + + + var adjustedNextValue = nextValue; + + switch (nextValue) { + case "".concat(STEP): + // Increment by step value + adjustedNextValue = BASE_DEFAULT_VALUE + STEP; + break; + + case '0': + // Decrement by step value + adjustedNextValue = BASE_DEFAULT_VALUE - STEP; + break; + } + + onChange(adjustedNextValue); + }; + + var value = isDefined ? lineHeight : RESET_VALUE; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-line-height-control" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + autoComplete: "off", + onKeyDown: handleOnKeyDown, + onChange: handleOnChange, + label: Object(external_this_wp_i18n_["__"])('Line height'), + placeholder: BASE_DEFAULT_VALUE, + step: STEP, + type: "number", + value: value, + min: 0 + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/line-height.js + + + +function line_height_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function line_height_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { line_height_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { line_height_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +var LINE_HEIGHT_SUPPORT_KEY = '__experimentalLineHeight'; +/** + * Inspector control panel containing the line height related configuration + * + * @param {Object} props + * + * @return {WPElement} Line height edit element. + */ + +function LineHeightEdit(props) { + var _style$typography; + + var style = props.attributes.style; + var isDisabled = useIsLineHeightDisabled(props); + + if (isDisabled) { + return null; + } + + var onChange = function onChange(newLineHeightValue) { + var newStyle = line_height_objectSpread({}, style, { + typography: line_height_objectSpread({}, style === null || style === void 0 ? void 0 : style.typography, { + lineHeight: newLineHeightValue + }) + }); + + props.setAttributes({ + style: utils_cleanEmptyObject(newStyle) + }); + }; + + return Object(external_this_wp_element_["createElement"])(LineHeightControl, { + value: style === null || style === void 0 ? void 0 : (_style$typography = style.typography) === null || _style$typography === void 0 ? void 0 : _style$typography.lineHeight, + onChange: onChange + }); +} +/** + * Custom hook that checks if line-height settings have been disabled. + * + * @param {string} name The name of the block. + * @return {boolean} Whether setting is disabled. + */ + +function useIsLineHeightDisabled() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + blockName = _ref.name; + + var isDisabled = Object(external_this_wp_data_["useSelect"])(function (select) { + var editorSettings = select('core/block-editor').getSettings(); + return editorSettings.__experimentalDisableCustomLineHeight; + }); + return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, LINE_HEIGHT_SUPPORT_KEY) || isDisabled; +} + +// EXTERNAL MODULE: external {"this":["wp","tokenList"]} +var external_this_wp_tokenList_ = __webpack_require__(145); +var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/utils.js +/** + * External dependencies + */ + +/** + * Returns the font size object based on an array of named font sizes and the namedFontSize and customFontSize values. + * If namedFontSize is undefined or not found in fontSizes an object with just the size value based on customFontSize is returned. + * + * @param {Array} fontSizes Array of font size objects containing at least the "name" and "size" values as properties. + * @param {?string} fontSizeAttribute Content of the font size attribute (slug). + * @param {?number} customFontSizeAttribute Contents of the custom font size attribute (value). + * + * @return {?Object} If fontSizeAttribute is set and an equal slug is found in fontSizes it returns the font size object for that slug. + * Otherwise, an object with just the size value based on customFontSize is returned. + */ + +var utils_getFontSize = function getFontSize(fontSizes, fontSizeAttribute, customFontSizeAttribute) { + if (fontSizeAttribute) { + var fontSizeObject = Object(external_this_lodash_["find"])(fontSizes, { + slug: fontSizeAttribute + }); + + if (fontSizeObject) { + return fontSizeObject; + } + } + + return { + size: customFontSizeAttribute + }; +}; +/** + * Returns the corresponding font size object for a given value. + * + * @param {Array} fontSizes Array of font size objects. + * @param {number} value Font size value. + * + * @return {Object} Font size object. + */ + +function getFontSizeObjectByValue(fontSizes, value) { + var fontSizeObject = Object(external_this_lodash_["find"])(fontSizes, { + size: value + }); + + if (fontSizeObject) { + return fontSizeObject; + } + + return { + size: value + }; +} +/** + * Returns a class based on fontSizeName. + * + * @param {string} fontSizeSlug Slug of the fontSize. + * + * @return {string} String with the class corresponding to the fontSize passed. + * The class is generated by appending 'has-' followed by fontSizeSlug in kebabCase and ending with '-font-size'. + */ + +function getFontSizeClass(fontSizeSlug) { + if (!fontSizeSlug) { + return; + } + + return "has-".concat(Object(external_this_lodash_["kebabCase"])(fontSizeSlug), "-font-size"); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/font-size-picker.js +/** + * WordPress dependencies + */ + + +/* harmony default export */ var font_size_picker = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select$getSettings = select('core/block-editor').getSettings(), + disableCustomFontSizes = _select$getSettings.disableCustomFontSizes, + fontSizes = _select$getSettings.fontSizes; + + return { + disableCustomFontSizes: disableCustomFontSizes, + fontSizes: fontSizes + }; +})(external_this_wp_components_["FontSizePicker"])); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/font-size.js + + + +function font_size_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function font_size_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { font_size_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { font_size_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var FONT_SIZE_SUPPORT_KEY = '__experimentalFontSize'; +/** + * Filters registered block settings, extending attributes to include + * `fontSize` and `fontWeight` attributes. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + +function font_size_addAttributes(settings) { + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(settings, FONT_SIZE_SUPPORT_KEY)) { + return settings; + } // Allow blocks to specify a default value if needed. + + + if (!settings.attributes.fontSize) { + Object.assign(settings.attributes, { + fontSize: { + type: 'string' + } + }); + } + + return settings; +} +/** + * Override props assigned to save component to inject font size. + * + * @param {Object} props Additional props applied to save element + * @param {Object} blockType Block type + * @param {Object} attributes Block attributes + * @return {Object} Filtered props applied to save element + */ + + +function font_size_addSaveProps(props, blockType, attributes) { + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, FONT_SIZE_SUPPORT_KEY)) { + return props; + } // Use TokenList to dedupe classes. + + + var classes = new external_this_wp_tokenList_default.a(props.className); + classes.add(getFontSizeClass(attributes.fontSize)); + var newClassName = classes.value; + props.className = newClassName ? newClassName : undefined; + return props; +} +/** + * Filters registered block settings to expand the block edit wrapper + * by applying the desired styles and classnames. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + + +function font_size_addEditProps(settings) { + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(settings, FONT_SIZE_SUPPORT_KEY)) { + return settings; + } + + var existingGetEditWrapperProps = settings.getEditWrapperProps; + + settings.getEditWrapperProps = function (attributes) { + var props = {}; + + if (existingGetEditWrapperProps) { + props = existingGetEditWrapperProps(attributes); + } + + return font_size_addSaveProps(props, settings, attributes); + }; + + return settings; +} +/** + * Inspector control panel containing the font size related configuration + * + * @param {Object} props + * + * @return {WPElement} Font size edit element. + */ + + +function FontSizeEdit(props) { + var _style$typography; + + var _props$attributes = props.attributes, + fontSize = _props$attributes.fontSize, + style = _props$attributes.style, + setAttributes = props.setAttributes; + var isDisabled = useIsFontSizeDisabled(props); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings(); + }), + fontSizes = _useSelect.fontSizes; + + if (isDisabled) { + return null; + } + + var fontSizeObject = utils_getFontSize(fontSizes, fontSize, style === null || style === void 0 ? void 0 : (_style$typography = style.typography) === null || _style$typography === void 0 ? void 0 : _style$typography.fontSize); + + var onChange = function onChange(value) { + var fontSizeSlug = getFontSizeObjectByValue(fontSizes, value).slug; + setAttributes({ + style: utils_cleanEmptyObject(font_size_objectSpread({}, style, { + typography: font_size_objectSpread({}, style === null || style === void 0 ? void 0 : style.typography, { + fontSize: fontSizeSlug ? undefined : value + }) + })), + fontSize: fontSizeSlug + }); + }; + + return Object(external_this_wp_element_["createElement"])(font_size_picker, { + value: fontSizeObject.size, + onChange: onChange + }); +} +/** + * Custom hook that checks if font-size settings have been disabled. + * + * @param {string} name The name of the block. + * @return {boolean} Whether setting is disabled. + */ + +function useIsFontSizeDisabled() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + blockName = _ref.name; + + var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings(); + }), + fontSizes = _useSelect2.fontSizes; + + var hasFontSizes = fontSizes.length; + return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, FONT_SIZE_SUPPORT_KEY) || !hasFontSizes; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/font/addAttribute', font_size_addAttributes); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/font/addSaveProps', font_size_addSaveProps); +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/font/addEditProps', font_size_addEditProps); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/typography.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + +var TYPOGRAPHY_SUPPORT_KEYS = [LINE_HEIGHT_SUPPORT_KEY, FONT_SIZE_SUPPORT_KEY]; +function TypographyPanel(props) { + var isDisabled = useIsTypographyDisabled(props); + var isSupported = typography_hasTypographySupport(props.name); + if (isDisabled || !isSupported) return null; + return Object(external_this_wp_element_["createElement"])(inspector_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Typography') + }, Object(external_this_wp_element_["createElement"])(FontSizeEdit, props), Object(external_this_wp_element_["createElement"])(LineHeightEdit, props))); +} + +var typography_hasTypographySupport = function hasTypographySupport(blockName) { + return external_this_wp_element_["Platform"].OS === 'web' && TYPOGRAPHY_SUPPORT_KEYS.some(function (key) { + return Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, key); + }); +}; + +function useIsTypographyDisabled() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var configs = [useIsFontSizeDisabled(props), useIsLineHeightDisabled(props)]; + return configs.filter(Boolean).length === configs.length; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-editor-feature/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * Hook that retrieves the setting for the given editor feature. + * It works with nested objects using by finding the value at path. + * + * @param {string} featurePath The path to the feature. + * + * @return {any} Returns the value defined for the setting. + * + * @example + * ```js + * const isEnabled = useEditorFeature( 'typography.dropCap' ); + * ``` + */ + +function useEditorFeature(featurePath) { + var _useBlockEditContext = useBlockEditContext(), + blockName = _useBlockEditContext.name; + + var path = "__experimentalFeatures.".concat(featurePath); + var setting = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/blocks'), + getBlockSupport = _select.getBlockSupport; + + var blockSupportValue = getBlockSupport(blockName, path); + + if (blockSupportValue !== undefined) { + return blockSupportValue; + } + + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; + + return Object(external_this_lodash_["get"])(getSettings(), path); + }, [blockName, path]); + return setting; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/unit-control/index.js + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function UnitControl(_ref) { + var unitsProp = _ref.units, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["units"]); + + var units = useCustomUnits(unitsProp); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalUnitControl"], Object(esm_extends["a" /* default */])({ + units: units + }, props)); +} +/** + * Filters available units based on values defined by settings. + * + * @param {Array} settings Collection of preferred units. + * @param {Array} units Collection of available units. + * + * @return {Array} Filtered units based on settings. + */ + +function filterUnitsWithSettings() { + var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var units = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + return units.filter(function (unit) { + return settings.includes(unit.value); + }); +} +/** + * Custom hook to retrieve and consolidate units setting from add_theme_support(). + * + * @param {Array} unitsProp Collection of available units. + * + * @return {Array} Filtered units based on settings. + */ + + +function useCustomUnits(unitsProp) { + var settings = useEditorFeature('__experimentalDisableCustomUnits'); + var isDisabled = !!settings; // Adjust units based on add_theme_support( 'experimental-custom-units' ); + + var units; + /** + * Handle extra arguments for add_theme_support + * + * Example: add_theme_support( 'experimental-custom-units', 'rem' ); + * Or: add_theme_support( 'experimental-custom-units', 'px, 'rem', 'em' ); + * + * Note: If there are unit argument (e.g. 'em'), these units are enabled + * within the control. + */ + + if (Array.isArray(settings)) { + units = filterUnitsWithSettings(settings, unitsProp); + } else { + units = isDisabled ? false : unitsProp; + } + + return units; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/padding.js + + + +function padding_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function padding_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { padding_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { padding_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var PADDING_SUPPORT_KEY = '__experimentalPadding'; +/** + * Inspector control panel containing the line height related configuration + * + * @param {Object} props + * + * @return {WPElement} Line height edit element. + */ + +function PaddingEdit(props) { + var _style$spacing; + + var blockName = props.name, + style = props.attributes.style, + setAttributes = props.setAttributes; + var units = useCustomUnits(); + + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, PADDING_SUPPORT_KEY)) { + return null; + } + + var onChange = function onChange(next) { + var newStyle = padding_objectSpread({}, style, { + spacing: { + padding: next + } + }); + + setAttributes({ + style: utils_cleanEmptyObject(newStyle) + }); + }; + + var onChangeShowVisualizer = function onChangeShowVisualizer(next) { + var newStyle = padding_objectSpread({}, style, { + visualizers: { + padding: next + } + }); + + setAttributes({ + style: utils_cleanEmptyObject(newStyle) + }); + }; + + return external_this_wp_element_["Platform"].select({ + web: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalBoxControl"], { + values: style === null || style === void 0 ? void 0 : (_style$spacing = style.spacing) === null || _style$spacing === void 0 ? void 0 : _style$spacing.padding, + onChange: onChange, + onChangeShowVisualizer: onChangeShowVisualizer, + label: Object(external_this_wp_i18n_["__"])('Padding'), + units: units + })), + native: null + }); +} +var paddingStyleMappings = { + paddingTop: ['spacing', 'padding', 'top'], + paddingRight: ['spacing', 'padding', 'right'], + paddingBottom: ['spacing', 'padding', 'bottom'], + paddingLeft: ['spacing', 'padding', 'left'] +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/spacing-panel-control/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function SpacingPanelControl(_ref) { + var children = _ref.children, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children"]); + + var isSpacingEnabled = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return Object(external_this_lodash_["get"])(getSettings(), '__experimentalEnableCustomSpacing'); + }); + if (!isSpacingEnabled) return null; + return Object(external_this_wp_element_["createElement"])(inspector_controls, props, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Spacing') + }, children)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/style.js + + + + + + + +function style_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function style_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { style_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { style_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + +var styleSupportKeys = [].concat(Object(toConsumableArray["a" /* default */])(TYPOGRAPHY_SUPPORT_KEYS), [COLOR_SUPPORT_KEY, PADDING_SUPPORT_KEY]); + +var style_hasStyleSupport = function hasStyleSupport(blockType) { + return styleSupportKeys.some(function (key) { + return Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, key); + }); +}; + +var VARIABLE_REFERENCE_PREFIX = 'var:'; +var VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE = '|'; +var VARIABLE_PATH_SEPARATOR_TOKEN_STYLE = '--'; + +function compileStyleValue(uncompiledValue) { + if (Object(external_this_lodash_["startsWith"])(uncompiledValue, VARIABLE_REFERENCE_PREFIX)) { + var variable = uncompiledValue.slice(VARIABLE_REFERENCE_PREFIX.length).split(VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE).join(VARIABLE_PATH_SEPARATOR_TOKEN_STYLE); + return "var(--wp--".concat(variable, ")"); + } + + return uncompiledValue; +} +/** + * Returns the inline styles to add depending on the style object + * + * @param {Object} styles Styles configuration + * @return {Object} Flattened CSS variables declaration + */ + + +function getInlineStyles() { + var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var mappings = style_objectSpread({}, paddingStyleMappings, { + lineHeight: ['typography', 'lineHeight'], + fontSize: ['typography', 'fontSize'], + background: ['color', 'gradient'], + backgroundColor: ['color', 'background'], + color: ['color', 'text'], + '--wp--style--color--link': ['color', 'link'] + }); + + var output = {}; + Object.entries(mappings).forEach(function (_ref) { + var _ref2 = Object(toArray["a" /* default */])(_ref), + styleKey = _ref2[0], + otherObjectKeys = _ref2.slice(1); + + var _otherObjectKeys = Object(slicedToArray["a" /* default */])(otherObjectKeys, 1), + objectKeys = _otherObjectKeys[0]; + + if (Object(external_this_lodash_["has"])(styles, objectKeys)) { + output[styleKey] = compileStyleValue(Object(external_this_lodash_["get"])(styles, objectKeys)); + } + }); + return output; +} +/** + * Filters registered block settings, extending attributes to include `style` attribute. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + +function style_addAttribute(settings) { + if (!style_hasStyleSupport(settings)) { + return settings; + } // allow blocks to specify their own attribute definition with default values if needed. + + + if (!settings.attributes.style) { + Object.assign(settings.attributes, { + style: { + type: 'object' + } + }); + } + + return settings; +} +/** + * Override props assigned to save component to inject the CSS variables definition. + * + * @param {Object} props Additional props applied to save element + * @param {Object} blockType Block type + * @param {Object} attributes Block attributes + * @return {Object} Filtered props applied to save element + */ + + +function style_addSaveProps(props, blockType, attributes) { + if (!style_hasStyleSupport(blockType)) { + return props; + } + + var style = attributes.style; + props.style = style_objectSpread({}, getInlineStyles(style), {}, props.style); + return props; +} +/** + * Filters registered block settings to extand the block edit wrapper + * to apply the desired styles and classnames properly. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + +function style_addEditProps(settings) { + if (!style_hasStyleSupport(settings)) { + return settings; + } + + var existingGetEditWrapperProps = settings.getEditWrapperProps; + + settings.getEditWrapperProps = function (attributes) { + var props = {}; + + if (existingGetEditWrapperProps) { + props = existingGetEditWrapperProps(attributes); + } + + return style_addSaveProps(props, settings, attributes); + }; + + return settings; +} +/** + * Override the default edit UI to include new inspector controls for + * all the custom styles configs. + * + * @param {Function} BlockEdit Original component + * @return {Function} Wrapped component + */ + +var withBlockControls = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var blockName = props.name; + var hasPaddingSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, PADDING_SUPPORT_KEY); + return [Object(external_this_wp_element_["createElement"])(TypographyPanel, Object(esm_extends["a" /* default */])({ + key: "typography" + }, props)), Object(external_this_wp_element_["createElement"])(ColorEdit, Object(esm_extends["a" /* default */])({ + key: "colors" + }, props)), Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ + key: "edit" + }, props)), hasPaddingSupport && Object(external_this_wp_element_["createElement"])(SpacingPanelControl, { + key: "spacing" + }, Object(external_this_wp_element_["createElement"])(PaddingEdit, props))]; + }; +}, 'withToolbarControls'); +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/style/addAttribute', style_addAttribute); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/style/addSaveProps', style_addSaveProps); +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/style/addEditProps', style_addEditProps); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/style/with-block-controls', withBlockControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/index.js +/** + * Internal dependencies + */ + + + + + + + + + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(18); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(20); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js + + + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +function with_colors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function with_colors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_colors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { with_colors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var DEFAULT_COLORS = []; +/** + * Higher order component factory for injecting the `colorsArray` argument as + * the colors prop in the `withCustomColors` HOC. + * + * @param {Array} colorsArray An array of color objects. + * + * @return {Function} The higher order component. + */ + +var with_colors_withCustomColorPalette = function withCustomColorPalette(colorsArray) { + return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { + colors: colorsArray + })); + }; + }, 'withCustomColorPalette'); +}; +/** + * Higher order component factory for injecting the editor colors as the + * `colors` prop in the `withColors` HOC. + * + * @return {Function} The higher order component. + */ + + +var with_colors_withEditorColorPalette = function withEditorColorPalette() { + return Object(external_this_wp_data_["withSelect"])(function (select) { + var settings = select('core/block-editor').getSettings(); + return { + colors: Object(external_this_lodash_["get"])(settings, ['colors'], DEFAULT_COLORS) + }; + }); +}; +/** + * Helper function used with `createHigherOrderComponent` to create + * higher order components for managing color logic. + * + * @param {Array} colorTypes An array of color types (e.g. 'backgroundColor, borderColor). + * @param {Function} withColorPalette A HOC for injecting the 'colors' prop into the WrappedComponent. + * + * @return {WPComponent} The component that can be used as a HOC. + */ + + +function createColorHOC(colorTypes, withColorPalette) { + var colorMap = Object(external_this_lodash_["reduce"])(colorTypes, function (colorObject, colorType) { + return with_colors_objectSpread({}, colorObject, {}, Object(external_this_lodash_["isString"])(colorType) ? Object(defineProperty["a" /* default */])({}, colorType, Object(external_this_lodash_["kebabCase"])(colorType)) : colorType); + }, {}); + return Object(external_this_wp_compose_["compose"])([withColorPalette, function (WrappedComponent) { + return /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + var _super = _createSuper(_class); + + function _class(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = _super.call(this, props); + _this.setters = _this.createSetters(); + _this.colorUtils = { + getMostReadableColor: _this.getMostReadableColor.bind(Object(assertThisInitialized["a" /* default */])(_this)) + }; + _this.state = {}; + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "getMostReadableColor", + value: function getMostReadableColor(colorValue) { + var colors = this.props.colors; + return utils_getMostReadableColor(colors, colorValue); + } + }, { + key: "createSetters", + value: function createSetters() { + var _this2 = this; + + return Object(external_this_lodash_["reduce"])(colorMap, function (settersAccumulator, colorContext, colorAttributeName) { + var upperFirstColorAttributeName = Object(external_this_lodash_["upperFirst"])(colorAttributeName); + var customColorAttributeName = "custom".concat(upperFirstColorAttributeName); + settersAccumulator["set".concat(upperFirstColorAttributeName)] = _this2.createSetColor(colorAttributeName, customColorAttributeName); + return settersAccumulator; + }, {}); + } + }, { + key: "createSetColor", + value: function createSetColor(colorAttributeName, customColorAttributeName) { + var _this3 = this; + + return function (colorValue) { + var _this3$props$setAttri; + + var colorObject = utils_getColorObjectByColorValue(_this3.props.colors, colorValue); + + _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, colorAttributeName, colorObject && colorObject.slug ? colorObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customColorAttributeName, colorObject && colorObject.slug ? undefined : colorValue), _this3$props$setAttri)); + }; + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_colors_objectSpread({}, this.props, { + colors: undefined + }, this.state, {}, this.setters, { + colorUtils: this.colorUtils + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(_ref2, previousState) { + var attributes = _ref2.attributes, + colors = _ref2.colors; + return Object(external_this_lodash_["reduce"])(colorMap, function (newState, colorContext, colorAttributeName) { + var colorObject = utils_getColorObjectByAttributeValues(colors, attributes[colorAttributeName], attributes["custom".concat(Object(external_this_lodash_["upperFirst"])(colorAttributeName))]); + var previousColorObject = previousState[colorAttributeName]; + var previousColor = Object(external_this_lodash_["get"])(previousColorObject, ['color']); + /** + * The "and previousColorObject" condition checks that a previous color object was already computed. + * At the start previousColorObject and colorValue are both equal to undefined + * bus as previousColorObject does not exist we should compute the object. + */ + + if (previousColor === colorObject.color && previousColorObject) { + newState[colorAttributeName] = previousColorObject; + } else { + newState[colorAttributeName] = with_colors_objectSpread({}, colorObject, { + class: getColorClassName(colorContext, colorObject.slug) + }); + } + + return newState; + }, {}); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]); + }]); +} +/** + * A higher-order component factory for creating a 'withCustomColors' HOC, which handles color logic + * for class generation color value, retrieval and color attribute setting. + * + * Use this higher-order component to work with a custom set of colors. + * + * @example + * + * ```jsx + * const CUSTOM_COLORS = [ { name: 'Red', slug: 'red', color: '#ff0000' }, { name: 'Blue', slug: 'blue', color: '#0000ff' } ]; + * const withCustomColors = createCustomColorsHOC( CUSTOM_COLORS ); + * // ... + * export default compose( + * withCustomColors( 'backgroundColor', 'borderColor' ), + * MyColorfulComponent, + * ); + * ``` + * + * @param {Array} colorsArray The array of color objects (name, slug, color, etc... ). + * + * @return {Function} Higher-order component. + */ + + +function createCustomColorsHOC(colorsArray) { + return function () { + var withColorPalette = with_colors_withCustomColorPalette(colorsArray); + + for (var _len = arguments.length, colorTypes = new Array(_len), _key = 0; _key < _len; _key++) { + colorTypes[_key] = arguments[_key]; + } + + return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withCustomColors'); + }; +} +/** + * A higher-order component, which handles color logic for class generation color value, retrieval and color attribute setting. + * + * For use with the default editor/theme color palette. + * + * @example + * + * ```jsx + * export default compose( + * withColors( 'backgroundColor', { textColor: 'color' } ), + * MyColorfulComponent, + * ); + * ``` + * + * @param {...(Object|string)} colorTypes The arguments can be strings or objects. If the argument is an object, + * it should contain the color attribute name as key and the color context as value. + * If the argument is a string the value should be the color attribute name, + * the color context is computed by applying a kebab case transform to the value. + * Color context represents the context/place where the color is going to be used. + * The class name of the color is generated using 'has' followed by the color name + * and ending with the color context all in kebab case e.g: has-green-background-color. + * + * @return {Function} Higher-order component. + */ + +function withColors() { + var withColorPalette = with_colors_withEditorColorPalette(); + + for (var _len2 = arguments.length, colorTypes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + colorTypes[_key2] = arguments[_key2]; + } + + return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withColors'); +} + +// EXTERNAL MODULE: ./node_modules/memize/index.js +var memize = __webpack_require__(50); +var memize_default = /*#__PURE__*/__webpack_require__.n(memize); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/panel-color-settings/index.js + + + + + +function panel_color_settings_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function panel_color_settings_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { panel_color_settings_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { panel_color_settings_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * Internal dependencies + */ + + +var panel_color_settings_PanelColorSettings = function PanelColorSettings(_ref) { + var colorSettings = _ref.colorSettings, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["colorSettings"]); + + var settings = colorSettings.map(function (_ref2) { + var value = _ref2.value, + onChange = _ref2.onChange, + otherSettings = Object(objectWithoutProperties["a" /* default */])(_ref2, ["value", "onChange"]); + + return panel_color_settings_objectSpread({}, otherSettings, { + colorValue: value, + onColorChange: onChange + }); + }); + return Object(external_this_wp_element_["createElement"])(panel_color_gradient_settings, Object(esm_extends["a" /* default */])({ + settings: settings, + gradients: [], + disableCustomGradients: true + }, props)); +}; + +/* harmony default export */ var panel_color_settings = (panel_color_settings_PanelColorSettings); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/color-panel.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + + +var resolveContrastCheckerColor = function resolveContrastCheckerColor(color, colorSettings, detectedColor) { + if (typeof color === 'function') { + return color(colorSettings); + } else if (color === true) { + return detectedColor; + } + + return color; +}; + +function color_panel_ColorPanel(_ref) { + var title = _ref.title, + colorSettings = _ref.colorSettings, + colorPanelProps = _ref.colorPanelProps, + contrastCheckers = _ref.contrastCheckers, + detectedBackgroundColor = _ref.detectedBackgroundColor, + detectedColor = _ref.detectedColor, + panelChildren = _ref.panelChildren, + initialOpen = _ref.initialOpen; + return Object(external_this_wp_element_["createElement"])(panel_color_settings, Object(esm_extends["a" /* default */])({ + title: title, + initialOpen: initialOpen, + colorSettings: Object.values(colorSettings) + }, colorPanelProps), contrastCheckers && (Array.isArray(contrastCheckers) ? contrastCheckers.map(function (_ref2) { + var backgroundColor = _ref2.backgroundColor, + textColor = _ref2.textColor, + rest = Object(objectWithoutProperties["a" /* default */])(_ref2, ["backgroundColor", "textColor"]); + + backgroundColor = resolveContrastCheckerColor(backgroundColor, colorSettings, detectedBackgroundColor); + textColor = resolveContrastCheckerColor(textColor, colorSettings, detectedColor); + return Object(external_this_wp_element_["createElement"])(contrast_checker, Object(esm_extends["a" /* default */])({ + key: "".concat(backgroundColor, "-").concat(textColor), + backgroundColor: backgroundColor, + textColor: textColor + }, rest)); + }) : Object(external_this_lodash_["map"])(colorSettings, function (_ref3) { + var value = _ref3.value; + var backgroundColor = contrastCheckers.backgroundColor, + textColor = contrastCheckers.textColor; + backgroundColor = resolveContrastCheckerColor(backgroundColor || value, colorSettings, detectedBackgroundColor); + textColor = resolveContrastCheckerColor(textColor || value, colorSettings, detectedColor); + return Object(external_this_wp_element_["createElement"])(contrast_checker, Object(esm_extends["a" /* default */])({}, contrastCheckers, { + key: "".concat(backgroundColor, "-").concat(textColor), + backgroundColor: backgroundColor, + textColor: textColor + })); + })), typeof panelChildren === 'function' ? panelChildren(colorSettings) : panelChildren); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/use-colors.js + + + + + +function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +function use_colors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function use_colors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_colors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { use_colors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + +/** + * Browser dependencies + */ + +var use_colors_window = window, + use_colors_getComputedStyle = use_colors_window.getComputedStyle, + use_colors_Node = use_colors_window.Node; +var use_colors_DEFAULT_COLORS = []; +var COMMON_COLOR_LABELS = { + textColor: Object(external_this_wp_i18n_["__"])('Text Color'), + backgroundColor: Object(external_this_wp_i18n_["__"])('Background Color') +}; + +var use_colors_InspectorControlsColorPanel = function InspectorControlsColorPanel(props) { + return Object(external_this_wp_element_["createElement"])(inspector_controls, null, Object(external_this_wp_element_["createElement"])(color_panel_ColorPanel, props)); +}; + +function __experimentalUseColors(colorConfigs) { + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { + panelTitle: Object(external_this_wp_i18n_["__"])('Color settings') + }, + _ref$panelTitle = _ref.panelTitle, + panelTitle = _ref$panelTitle === void 0 ? Object(external_this_wp_i18n_["__"])('Color settings') : _ref$panelTitle, + colorPanelProps = _ref.colorPanelProps, + contrastCheckers = _ref.contrastCheckers, + panelChildren = _ref.panelChildren, + _ref$colorDetector = _ref.colorDetector; + + _ref$colorDetector = _ref$colorDetector === void 0 ? {} : _ref$colorDetector; + var targetRef = _ref$colorDetector.targetRef, + _ref$colorDetector$ba = _ref$colorDetector.backgroundColorTargetRef, + backgroundColorTargetRef = _ref$colorDetector$ba === void 0 ? targetRef : _ref$colorDetector$ba, + _ref$colorDetector$te = _ref$colorDetector.textColorTargetRef, + textColorTargetRef = _ref$colorDetector$te === void 0 ? targetRef : _ref$colorDetector$te; + var deps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + + var _useBlockEditContext = useBlockEditContext(), + clientId = _useBlockEditContext.clientId; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockAttributes = _select.getBlockAttributes, + getSettings = _select.getSettings; + + var colors = getSettings().colors; + return { + attributes: getBlockAttributes(clientId), + settingsColors: !colors || colors === true ? use_colors_DEFAULT_COLORS : colors + }; + }, [clientId]), + attributes = _useSelect.attributes, + settingsColors = _useSelect.settingsColors; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateBlockAttributes = _useDispatch.updateBlockAttributes; + + var setAttributes = Object(external_this_wp_element_["useCallback"])(function (newAttributes) { + return updateBlockAttributes(clientId, newAttributes); + }, [updateBlockAttributes, clientId]); + var createComponent = Object(external_this_wp_element_["useMemo"])(function () { + return memize_default()(function (name, property, className, color, colorValue, customColor) { + return function (_ref2) { + var _classnames; + + var children = _ref2.children, + _ref2$className = _ref2.className, + componentClassName = _ref2$className === void 0 ? '' : _ref2$className, + _ref2$style = _ref2.style, + componentStyle = _ref2$style === void 0 ? {} : _ref2$style; + var colorStyle = {}; + + if (color) { + colorStyle = Object(defineProperty["a" /* default */])({}, property, colorValue); + } else if (customColor) { + colorStyle = Object(defineProperty["a" /* default */])({}, property, customColor); + } + + var extraProps = { + className: classnames_default()(componentClassName, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "has-".concat(Object(external_this_lodash_["kebabCase"])(color), "-").concat(Object(external_this_lodash_["kebabCase"])(property)), color), Object(defineProperty["a" /* default */])(_classnames, className || "has-".concat(Object(external_this_lodash_["kebabCase"])(name)), color || customColor), _classnames)), + style: use_colors_objectSpread({}, colorStyle, {}, componentStyle) + }; + + if (Object(external_this_lodash_["isFunction"])(children)) { + return children(extraProps); + } + + return (// Clone children, setting the style property from the color configuration, + // if not already set explicitly through props. + external_this_wp_element_["Children"].map(children, function (child) { + return Object(external_this_wp_element_["cloneElement"])(child, { + className: classnames_default()(child.props.className, extraProps.className), + style: use_colors_objectSpread({}, extraProps.style, {}, child.props.style || {}) + }); + }) + ); + }; + }, { + maxSize: colorConfigs.length + }); + }, [colorConfigs.length]); + var createSetColor = Object(external_this_wp_element_["useMemo"])(function () { + return memize_default()(function (name, colors) { + return function (newColor) { + var color = colors.find(function (_color) { + return _color.color === newColor; + }); + setAttributes(Object(defineProperty["a" /* default */])({}, color ? Object(external_this_lodash_["camelCase"])("custom ".concat(name)) : name, undefined)); + setAttributes(Object(defineProperty["a" /* default */])({}, color ? name : Object(external_this_lodash_["camelCase"])("custom ".concat(name)), color ? color.slug : newColor)); + }; + }, { + maxSize: colorConfigs.length + }); + }, [setAttributes, colorConfigs.length]); + + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + detectedBackgroundColor = _useState2[0], + setDetectedBackgroundColor = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + detectedColor = _useState4[0], + setDetectedColor = _useState4[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + if (!contrastCheckers) { + return undefined; + } + + var needsBackgroundColor = false; + var needsColor = false; + + var _iterator = _createForOfIteratorHelper(Object(external_this_lodash_["castArray"])(contrastCheckers)), + _step; + + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var _step$value = _step.value, + _backgroundColor = _step$value.backgroundColor, + textColor = _step$value.textColor; + + if (!needsBackgroundColor) { + needsBackgroundColor = _backgroundColor === true; + } + + if (!needsColor) { + needsColor = textColor === true; + } + + if (needsBackgroundColor && needsColor) { + break; + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + + if (needsColor) { + setDetectedColor(use_colors_getComputedStyle(textColorTargetRef.current).color); + } + + if (needsBackgroundColor) { + var backgroundColorNode = backgroundColorTargetRef.current; + var backgroundColor = use_colors_getComputedStyle(backgroundColorNode).backgroundColor; + + while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === use_colors_Node.ELEMENT_NODE) { + backgroundColorNode = backgroundColorNode.parentNode; + backgroundColor = use_colors_getComputedStyle(backgroundColorNode).backgroundColor; + } + + setDetectedBackgroundColor(backgroundColor); + } + }, [colorConfigs.reduce(function (acc, colorConfig) { + return "".concat(acc, " | ").concat(attributes[colorConfig.name], " | ").concat(attributes[Object(external_this_lodash_["camelCase"])("custom ".concat(colorConfig.name))]); + }, '')].concat(Object(toConsumableArray["a" /* default */])(deps))); + return Object(external_this_wp_element_["useMemo"])(function () { + var colorSettings = {}; + var components = colorConfigs.reduce(function (acc, colorConfig) { + if (typeof colorConfig === 'string') { + colorConfig = { + name: colorConfig + }; + } + + var _colorConfig$color = use_colors_objectSpread({}, colorConfig, { + color: attributes[colorConfig.name] + }), + name = _colorConfig$color.name, + _colorConfig$color$pr = _colorConfig$color.property, + property = _colorConfig$color$pr === void 0 ? name : _colorConfig$color$pr, + className = _colorConfig$color.className, + _colorConfig$color$pa = _colorConfig$color.panelLabel, + panelLabel = _colorConfig$color$pa === void 0 ? colorConfig.label || COMMON_COLOR_LABELS[name] || Object(external_this_lodash_["startCase"])(name) : _colorConfig$color$pa, + _colorConfig$color$co = _colorConfig$color.componentName, + componentName = _colorConfig$color$co === void 0 ? Object(external_this_lodash_["startCase"])(name).replace(/\s/g, '') : _colorConfig$color$co, + _colorConfig$color$co2 = _colorConfig$color.color, + color = _colorConfig$color$co2 === void 0 ? colorConfig.color : _colorConfig$color$co2, + _colorConfig$color$co3 = _colorConfig$color.colors, + colors = _colorConfig$color$co3 === void 0 ? settingsColors : _colorConfig$color$co3; + + var customColor = attributes[Object(external_this_lodash_["camelCase"])("custom ".concat(name))]; // We memoize the non-primitives to avoid unnecessary updates + // when they are used as props for other components. + + var _color = customColor ? undefined : colors.find(function (__color) { + return __color.slug === color; + }); + + acc[componentName] = createComponent(name, property, className, color, _color && _color.color, customColor); + acc[componentName].displayName = componentName; + acc[componentName].color = customColor ? customColor : _color && _color.color; + acc[componentName].slug = color; + acc[componentName].setColor = createSetColor(name, colors); + colorSettings[componentName] = { + value: _color ? _color.color : attributes[Object(external_this_lodash_["camelCase"])("custom ".concat(name))], + onChange: acc[componentName].setColor, + label: panelLabel, + colors: colors + }; // These settings will be spread over the `colors` in + // `colorPanelProps`, so we need to unset the key here, + // if not set to an actual value, to avoid overwriting + // an actual value in `colorPanelProps`. + + if (!colors) { + delete colorSettings[componentName].colors; + } + + return acc; + }, {}); + var wrappedColorPanelProps = { + title: panelTitle, + initialOpen: false, + colorSettings: colorSettings, + colorPanelProps: colorPanelProps, + contrastCheckers: contrastCheckers, + detectedBackgroundColor: detectedBackgroundColor, + detectedColor: detectedColor, + panelChildren: panelChildren + }; + return use_colors_objectSpread({}, components, { + ColorPanel: Object(external_this_wp_element_["createElement"])(color_panel_ColorPanel, wrappedColorPanelProps), + InspectorControlsColorPanel: Object(external_this_wp_element_["createElement"])(use_colors_InspectorControlsColorPanel, wrappedColorPanelProps) + }); + }, [attributes, setAttributes, detectedColor, detectedBackgroundColor].concat(Object(toConsumableArray["a" /* default */])(deps))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/index.js + + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradients/index.js + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/with-font-sizes.js + + + + + + + + +function with_font_sizes_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function with_font_sizes_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_font_sizes_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { with_font_sizes_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function with_font_sizes_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (with_font_sizes_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function with_font_sizes_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Higher-order component, which handles font size logic for class generation, + * font size value retrieval, and font size change handling. + * + * @param {...(Object|string)} fontSizeNames The arguments should all be strings. + * Each string contains the font size + * attribute name e.g: 'fontSize'. + * + * @return {Function} Higher-order component. + */ + +/* harmony default export */ var with_font_sizes = (function () { + for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) { + fontSizeNames[_key] = arguments[_key]; + } + + /* + * Computes an object whose key is the font size attribute name as passed in the array, + * and the value is the custom font size attribute name. + * Custom font size is automatically compted by appending custom followed by the font size attribute name in with the first letter capitalized. + */ + var fontSizeAttributeNames = Object(external_this_lodash_["reduce"])(fontSizeNames, function (fontSizeAttributeNamesAccumulator, fontSizeAttributeName) { + fontSizeAttributeNamesAccumulator[fontSizeAttributeName] = "custom".concat(Object(external_this_lodash_["upperFirst"])(fontSizeAttributeName)); + return fontSizeAttributeNamesAccumulator; + }, {}); + return Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select$getSettings = select('core/block-editor').getSettings(), + fontSizes = _select$getSettings.fontSizes; + + return { + fontSizes: fontSizes + }; + }), function (WrappedComponent) { + return /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + var _super = with_font_sizes_createSuper(_class); + + function _class(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = _super.call(this, props); + _this.setters = _this.createSetters(); + _this.state = {}; + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "createSetters", + value: function createSetters() { + var _this2 = this; + + return Object(external_this_lodash_["reduce"])(fontSizeAttributeNames, function (settersAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { + var upperFirstFontSizeAttributeName = Object(external_this_lodash_["upperFirst"])(fontSizeAttributeName); + settersAccumulator["set".concat(upperFirstFontSizeAttributeName)] = _this2.createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName); + return settersAccumulator; + }, {}); + } + }, { + key: "createSetFontSize", + value: function createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName) { + var _this3 = this; + + return function (fontSizeValue) { + var _this3$props$setAttri; + + var fontSizeObject = Object(external_this_lodash_["find"])(_this3.props.fontSizes, { + size: Number(fontSizeValue) + }); + + _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, fontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? fontSizeObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customFontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? undefined : fontSizeValue), _this3$props$setAttri)); + }; + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, with_font_sizes_objectSpread({}, this.props, { + fontSizes: undefined + }, this.state, {}, this.setters)); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(_ref, previousState) { + var attributes = _ref.attributes, + fontSizes = _ref.fontSizes; + + var didAttributesChange = function didAttributesChange(customFontSizeAttributeName, fontSizeAttributeName) { + if (previousState[fontSizeAttributeName]) { + // if new font size is name compare with the previous slug + if (attributes[fontSizeAttributeName]) { + return attributes[fontSizeAttributeName] !== previousState[fontSizeAttributeName].slug; + } // if font size is not named, update when the font size value changes. + + + return previousState[fontSizeAttributeName].size !== attributes[customFontSizeAttributeName]; + } // in this case we need to build the font size object + + + return true; + }; + + if (!Object(external_this_lodash_["some"])(fontSizeAttributeNames, didAttributesChange)) { + return null; + } + + var newState = Object(external_this_lodash_["reduce"])(Object(external_this_lodash_["pickBy"])(fontSizeAttributeNames, didAttributesChange), function (newStateAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { + var fontSizeAttributeValue = attributes[fontSizeAttributeName]; + var fontSizeObject = utils_getFontSize(fontSizes, fontSizeAttributeValue, attributes[customFontSizeAttributeName]); + newStateAccumulator[fontSizeAttributeName] = with_font_sizes_objectSpread({}, fontSizeObject, { + class: getFontSizeClass(fontSizeAttributeValue) + }); + return newStateAccumulator; + }, {}); + return with_font_sizes_objectSpread({}, previousState, {}, newState); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]); + }]), 'withFontSizes'); +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/index.js + + + + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js +var align_left = __webpack_require__(281); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js +var align_center = __webpack_require__(282); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js +var align_right = __webpack_require__(283); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-toolbar/index.js + + + +function alignment_toolbar_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function alignment_toolbar_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { alignment_toolbar_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { alignment_toolbar_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var DEFAULT_ALIGNMENT_CONTROLS = [{ + icon: align_left["a" /* default */], + title: Object(external_this_wp_i18n_["__"])('Align text left'), + align: 'left' +}, { + icon: align_center["a" /* default */], + title: Object(external_this_wp_i18n_["__"])('Align text center'), + align: 'center' +}, { + icon: align_right["a" /* default */], + title: Object(external_this_wp_i18n_["__"])('Align text right'), + align: 'right' +}]; +var alignment_toolbar_POPOVER_PROPS = { + position: 'bottom right', + isAlternate: true +}; +function AlignmentToolbar(props) { + var value = props.value, + onChange = props.onChange, + _props$alignmentContr = props.alignmentControls, + alignmentControls = _props$alignmentContr === void 0 ? DEFAULT_ALIGNMENT_CONTROLS : _props$alignmentContr, + _props$label = props.label, + label = _props$label === void 0 ? Object(external_this_wp_i18n_["__"])('Change text alignment') : _props$label, + _props$isCollapsed = props.isCollapsed, + isCollapsed = _props$isCollapsed === void 0 ? true : _props$isCollapsed, + isRTL = props.isRTL; + + function applyOrUnset(align) { + return function () { + return onChange(value === align ? undefined : align); + }; + } + + var activeAlignment = Object(external_this_lodash_["find"])(alignmentControls, function (control) { + return control.align === value; + }); + + function setIcon() { + if (activeAlignment) return activeAlignment.icon; + return isRTL ? align_right["a" /* default */] : align_left["a" /* default */]; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + isCollapsed: isCollapsed, + icon: setIcon(), + label: label, + popoverProps: alignment_toolbar_POPOVER_PROPS, + controls: alignmentControls.map(function (control) { + var align = control.align; + var isActive = value === align; + return alignment_toolbar_objectSpread({}, control, { + isActive: isActive, + role: isCollapsed ? 'menuitemradio' : undefined, + onClick: applyOrUnset(align) + }); + }) + }); +} +/* harmony default export */ var alignment_toolbar = (AlignmentToolbar); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js +var block_default = __webpack_require__(194); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function BlockIcon(_ref) { + var icon = _ref.icon, + _ref$showColors = _ref.showColors, + showColors = _ref$showColors === void 0 ? false : _ref$showColors, + className = _ref.className; + + if (Object(external_this_lodash_["get"])(icon, ['src']) === 'block-default') { + icon = { + src: block_default["a" /* default */] + }; + } + + var renderedIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + icon: icon && icon.src ? icon.src : icon + }); + var style = showColors ? { + backgroundColor: icon && icon.background, + color: icon && icon.foreground + } : {}; + return Object(external_this_wp_element_["createElement"])("span", { + style: style, + className: classnames_default()('block-editor-block-icon', className, { + 'has-colors': showColors + }) + }, renderedIcon); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/autocompleters/block.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/** @typedef {import('@wordpress/block-editor').WPEditorInserterItem} WPEditorInserterItem */ + +/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */ + +/** + * Returns the client ID of the parent where a newly inserted block would be + * placed. + * + * @return {string} Client ID of the parent where a newly inserted block would + * be placed. + */ + +function defaultGetBlockInsertionParentClientId() { + return Object(external_this_wp_data_["select"])('core/block-editor').getBlockInsertionPoint().rootClientId; +} +/** + * Returns the inserter items for the specified parent block. + * + * @param {string} rootClientId Client ID of the block for which to retrieve + * inserter items. + * + * @return {Array} The inserter items for the specified + * parent. + */ + + +function defaultGetInserterItems(rootClientId) { + return Object(external_this_wp_data_["select"])('core/block-editor').getInserterItems(rootClientId); +} +/** + * Returns the name of the currently selected block. + * + * @return {string?} The name of the currently selected block or `null` if no + * block is selected. + */ + + +function defaultGetSelectedBlockName() { + var _select = Object(external_this_wp_data_["select"])('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getBlockName = _select.getBlockName; + + var selectedBlockClientId = getSelectedBlockClientId(); + return selectedBlockClientId ? getBlockName(selectedBlockClientId) : null; +} +/** + * Triggers a fetch of reusable blocks, once. + * + * TODO: Reusable blocks fetching should be reimplemented as a core-data entity + * resolver, not relying on `core/editor` (see #7119). The implementation here + * is imperfect in that the options result will not await the completion of the + * fetch request and thus will not include any reusable blocks. This has always + * been true, but relied upon the fact the user would be delayed in typing an + * autocompleter search query. Once implemented using resolvers, the status of + * this request could be subscribed to as part of a promised return value using + * the result of `hasFinishedResolution`. There is currently reliable way to + * determine that a reusable blocks fetch request has completed. + * + * @return {Promise} Promise resolving once reusable blocks fetched. + */ + + +var block_fetchReusableBlocks = Object(external_this_lodash_["once"])(function () { + var _select$getSettings = Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), + __experimentalFetchReusableBlocks = _select$getSettings.__experimentalFetchReusableBlocks; + + if (__experimentalFetchReusableBlocks) { + __experimentalFetchReusableBlocks(); + } +}); +/** + * Creates a blocks repeater for replacing the current block with a selected block type. + * + * @param {Object} props Component props. + * @param {string} [props.getBlockInsertionParentClientId] Client ID of the parent. + * @param {string} [props.getInserterItems] Inserter items for parent. + * @param {string} [props.getSelectedBlockName] Name of selected block or null. + * + * @return {WPCompleter} A blocks completer. + */ + +function createBlockCompleter() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + _ref$getBlockInsertio = _ref.getBlockInsertionParentClientId, + getBlockInsertionParentClientId = _ref$getBlockInsertio === void 0 ? defaultGetBlockInsertionParentClientId : _ref$getBlockInsertio, + _ref$getInserterItems = _ref.getInserterItems, + getInserterItems = _ref$getInserterItems === void 0 ? defaultGetInserterItems : _ref$getInserterItems, + _ref$getSelectedBlock = _ref.getSelectedBlockName, + getSelectedBlockName = _ref$getSelectedBlock === void 0 ? defaultGetSelectedBlockName : _ref$getSelectedBlock; + + return { + name: 'blocks', + className: 'block-editor-autocompleters__block', + triggerPrefix: '/', + options: function options() { + block_fetchReusableBlocks(); + var selectedBlockName = getSelectedBlockName(); + return getInserterItems(getBlockInsertionParentClientId()).filter( // Avoid offering to replace the current block with a block of the same type. + function (inserterItem) { + return selectedBlockName !== inserterItem.name; + }); + }, + getOptionKeywords: function getOptionKeywords(inserterItem) { + var title = inserterItem.title, + _inserterItem$keyword = inserterItem.keywords, + keywords = _inserterItem$keyword === void 0 ? [] : _inserterItem$keyword, + category = inserterItem.category; + return [category].concat(Object(toConsumableArray["a" /* default */])(keywords), [title]); + }, + getOptionLabel: function getOptionLabel(inserterItem) { + var icon = inserterItem.icon, + title = inserterItem.title; + return [Object(external_this_wp_element_["createElement"])(BlockIcon, { + key: "icon", + icon: icon, + showColors: true + }), title]; + }, + allowContext: function allowContext(before, after) { + return !(/\S/.test(before) || /\S/.test(after)); + }, + getOptionCompletion: function getOptionCompletion(inserterItem) { + var name = inserterItem.name, + initialAttributes = inserterItem.initialAttributes; + return { + action: 'replace', + value: Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes) + }; + }, + isOptionDisabled: function isOptionDisabled(inserterItem) { + return inserterItem.isDisabled; + } + }; +} +/** + * Creates a blocks repeater for replacing the current block with a selected block type. + * + * @return {WPCompleter} A blocks completer. + */ + +/* harmony default export */ var autocompleters_block = (createBlockCompleter()); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/autocomplete/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +/** + * Shared reference to an empty array for cases where it is important to avoid + * returning a new array reference on every invocation. + * + * @type {Array} + */ + +var EMPTY_ARRAY = []; +/** + * Wrap the default Autocomplete component with one that supports a filter hook + * for customizing its list of autocompleters. + * + * @type {import('react').FC} + */ + +function BlockEditorAutocomplete(props) { + var _useBlockEditContext = useBlockEditContext(), + name = _useBlockEditContext.name; + + var _props$completers = props.completers, + completers = _props$completers === void 0 ? EMPTY_ARRAY : _props$completers; + completers = Object(external_this_wp_element_["useMemo"])(function () { + var filteredCompleters = completers; + + if (name === Object(external_this_wp_blocks_["getDefaultBlockName"])()) { + filteredCompleters = filteredCompleters.concat([autocompleters_block]); + } + + if (Object(external_this_wp_hooks_["hasFilter"])('editor.Autocomplete.completers')) { + // Provide copies so filters may directly modify them. + if (filteredCompleters === completers) { + filteredCompleters = filteredCompleters.map(external_this_lodash_["clone"]); + } + + filteredCompleters = Object(external_this_wp_hooks_["applyFilters"])('editor.Autocomplete.completers', filteredCompleters, name); + } + + return filteredCompleters; + }, [completers, name]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Autocomplete"], Object(esm_extends["a" /* default */])({}, props, { + completers: completers + })); +} +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/autocomplete/README.md + */ + + +/* harmony default export */ var autocomplete = (BlockEditorAutocomplete); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-matrix-toolbar/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +function BlockAlignmentMatrixToolbar(props) { + var _props$label = props.label, + label = _props$label === void 0 ? Object(external_this_wp_i18n_["__"])('Change matrix alignment') : _props$label, + _props$onChange = props.onChange, + onChange = _props$onChange === void 0 ? external_this_lodash_["noop"] : _props$onChange, + _props$value = props.value, + value = _props$value === void 0 ? 'center' : _props$value; + var icon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalAlignmentMatrixControl"].Icon, { + value: value + }); + var className = 'block-editor-block-alignment-matrix-toolbar'; + var popoverClassName = "".concat(className, "__popover"); + var isAlternate = true; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + position: "bottom right", + className: className, + popoverProps: { + className: popoverClassName, + isAlternate: isAlternate + }, + renderToggle: function renderToggle(_ref) { + var onToggle = _ref.onToggle, + isOpen = _ref.isOpen; + + var openOnArrowDown = function openOnArrowDown(event) { + if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { + event.preventDefault(); + event.stopPropagation(); + onToggle(); + } + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: onToggle, + "aria-haspopup": "true", + "aria-expanded": isOpen, + onKeyDown: openOnArrowDown, + label: label, + icon: icon, + showTooltip: true + })); + }, + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalAlignmentMatrixControl"], { + hasFocusBorder: false, + onChange: onChange, + value: value + }); + } + }); +} +/* harmony default export */ var block_alignment_matrix_toolbar = (BlockAlignmentMatrixToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-title/index.js +/** + * WordPress dependencies + */ + + +/** + * Renders the block's configured title as a string, or empty if the title + * cannot be determined. + * + * @example + * + * ```jsx + * + * ``` + * + * @param {Object} props + * @param {string} props.clientId Client ID of block. + * + * @return {?string} Block title. + */ + +function BlockTitle(_ref) { + var clientId = _ref.clientId; + var name = Object(external_this_wp_data_["useSelect"])(function (select) { + if (!clientId) { + return null; + } + + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName; + + return getBlockName(clientId); + }, [clientId]); + + if (!name) { + return null; + } + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + + if (!blockType) { + return null; + } + + return blockType.title; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-breadcrumb/index.js + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/** + * Block breadcrumb component, displaying the hierarchy of the current block selection as a breadcrumb. + * + * @return {WPElement} Block Breadcrumb. + */ + +function BlockBreadcrumb() { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + selectBlock = _useDispatch.selectBlock, + clearSelectedBlock = _useDispatch.clearSelectedBlock; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectionStart = _select.getSelectionStart, + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getBlockParents = _select.getBlockParents; + + var selectedBlockClientId = getSelectedBlockClientId(); + return { + parents: getBlockParents(selectedBlockClientId), + clientId: selectedBlockClientId, + hasSelection: !!getSelectionStart().clientId + }; + }, []), + clientId = _useSelect.clientId, + parents = _useSelect.parents, + hasSelection = _useSelect.hasSelection; + /* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + + /* eslint-disable jsx-a11y/no-redundant-roles */ + + + return Object(external_this_wp_element_["createElement"])("ul", { + className: "block-editor-block-breadcrumb", + role: "list", + "aria-label": Object(external_this_wp_i18n_["__"])('Block breadcrumb') + }, Object(external_this_wp_element_["createElement"])("li", { + className: !hasSelection ? 'block-editor-block-breadcrumb__current' : undefined, + "aria-current": !hasSelection ? 'true' : undefined + }, hasSelection && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-block-breadcrumb__button", + isTertiary: true, + onClick: clearSelectedBlock + }, Object(external_this_wp_i18n_["__"])('Document')), !hasSelection && Object(external_this_wp_i18n_["__"])('Document')), parents.map(function (parentClientId) { + return Object(external_this_wp_element_["createElement"])("li", { + key: parentClientId + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-block-breadcrumb__button", + isTertiary: true, + onClick: function onClick() { + return selectBlock(parentClientId); + } + }, Object(external_this_wp_element_["createElement"])(BlockTitle, { + clientId: parentClientId + }))); + }), !!clientId && Object(external_this_wp_element_["createElement"])("li", { + className: "block-editor-block-breadcrumb__current", + "aria-current": "true" + }, Object(external_this_wp_element_["createElement"])(BlockTitle, { + clientId: clientId + }))) + /* eslint-enable jsx-a11y/no-redundant-roles */ + ; +} + +/* harmony default export */ var block_breadcrumb = (BlockBreadcrumb); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-context/index.js + + + +function block_context_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_context_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_context_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_context_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** @typedef {import('react').ReactNode} ReactNode */ + +/** + * @typedef BlockContextProviderProps + * + * @property {Record} value Context value to merge with current + * value. + * @property {ReactNode} children Component children. + */ + +/** @type {import('react').Context>} */ + +var block_context_Context = Object(external_this_wp_element_["createContext"])({}); +/** + * Component which merges passed value with current consumed block context. + * + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/block-context/README.md + * + * @param {BlockContextProviderProps} props + */ + +function BlockContextProvider(_ref) { + var value = _ref.value, + children = _ref.children; + var context = Object(external_this_wp_element_["useContext"])(block_context_Context); + var nextValue = Object(external_this_wp_element_["useMemo"])(function () { + return block_context_objectSpread({}, context, {}, value); + }, [context, value]); + return Object(external_this_wp_element_["createElement"])(block_context_Context.Provider, { + value: nextValue, + children: children + }); +} +/* harmony default export */ var block_context = (block_context_Context); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-style-selector/index.js + + + +/** + * WordPress dependencies + */ + + + + +var color_style_selector_ColorSelectorSVGIcon = function ColorSelectorSVGIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "https://www.w3.org/2000/svg", + viewBox: "0 0 20 20" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z" + })); +}; +/** + * Color Selector Icon component. + * + * @param {Object} props Component properties. + * @param {Object} props.style Style object. + * @param {string} props.className Class name for component. + * + * @return {*} React Icon component. + */ + + +var color_style_selector_ColorSelectorIcon = function ColorSelectorIcon(_ref) { + var style = _ref.style, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-colors-selector__icon-container" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "".concat(className, " block-library-colors-selector__state-selection"), + style: style + }, Object(external_this_wp_element_["createElement"])(color_style_selector_ColorSelectorSVGIcon, null))); +}; +/** + * Renders the Colors Selector Toolbar with the icon button. + * + * @param {Object} props Component properties. + * @param {Object} props.TextColor Text color component that wraps icon. + * @param {Object} props.BackgroundColor Background color component that wraps icon. + * + * @return {*} React toggle button component. + */ + + +var color_style_selector_renderToggleComponent = function renderToggleComponent(_ref2) { + var TextColor = _ref2.TextColor, + BackgroundColor = _ref2.BackgroundColor; + return function (_ref3) { + var onToggle = _ref3.onToggle, + isOpen = _ref3.isOpen; + + var openOnArrowDown = function openOnArrowDown(event) { + if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { + event.preventDefault(); + event.stopPropagation(); + onToggle(); + } + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "components-toolbar__control block-library-colors-selector__toggle", + label: Object(external_this_wp_i18n_["__"])('Open Colors Selector'), + onClick: onToggle, + onKeyDown: openOnArrowDown, + icon: Object(external_this_wp_element_["createElement"])(BackgroundColor, null, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])(color_style_selector_ColorSelectorIcon, null))) + })); + }; +}; + +var color_style_selector_BlockColorsStyleSelector = function BlockColorsStyleSelector(_ref4) { + var children = _ref4.children, + other = Object(objectWithoutProperties["a" /* default */])(_ref4, ["children"]); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + position: "bottom right", + className: "block-library-colors-selector", + contentClassName: "block-library-colors-selector__popover", + renderToggle: color_style_selector_renderToggleComponent(other), + renderContent: function renderContent() { + return children; + } + }); +}; + +/* harmony default export */ var color_style_selector = (color_style_selector_BlockColorsStyleSelector); + +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/** + * Default value used for blocks which do not define their own context needs, + * used to guarantee that a block's `context` prop will always be an object. It + * is assigned as a constant since it is always expected to be an empty object, + * and in order to avoid unnecessary React reconciliations of a changing object. + * + * @type {{}} + */ + +var DEFAULT_BLOCK_CONTEXT = {}; +var edit_Edit = function Edit(props) { + var _props$attributes = props.attributes, + attributes = _props$attributes === void 0 ? {} : _props$attributes, + name = props.name; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + var blockContext = Object(external_this_wp_element_["useContext"])(block_context); // Assign context values using the block type's declared context needs. + + var context = Object(external_this_wp_element_["useMemo"])(function () { + if (blockType && blockType.context) { + external_this_wp_deprecated_default()('Block type "context" option', { + alternative: '"usesContext"', + version: '8.6.0', + hint: "Block \"".concat(name, "\"."), + link: 'https://developer.wordpress.org/block-editor/developers/block-api/block-context/' + }); + return Object(external_this_lodash_["pick"])(blockContext, blockType.context); + } + + return blockType && blockType.usesContext ? Object(external_this_lodash_["pick"])(blockContext, blockType.usesContext) : DEFAULT_BLOCK_CONTEXT; + }, [blockType, blockContext]); + + if (!blockType) { + return null; + } // `edit` and `save` are functions or components describing the markup + // with which a block is displayed. If `blockType` is valid, assign + // them preferentially as the render value for the block. + + + var Component = blockType.edit || blockType.save; + var lightBlockWrapper = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'lightBlockWrapper', false); + + if (lightBlockWrapper) { + return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { + context: context + })); + } // Generate a class name for the block's editable form + + + var generatedClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true) ? Object(external_this_wp_blocks_["getBlockDefaultClassName"])(name) : null; + var className = classnames_default()(generatedClassName, attributes.className); + return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { + context: context, + className: className + })); +}; +/* harmony default export */ var edit = (Object(external_this_wp_components_["withFilters"])('editor.BlockEdit')(edit_Edit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +function block_edit_BlockEdit(props) { + var name = props.name, + isSelected = props.isSelected, + clientId = props.clientId, + onFocus = props.onFocus, + onCaretVerticalPositionChange = props.onCaretVerticalPositionChange; + var context = { + name: name, + isSelected: isSelected, + clientId: clientId, + onFocus: onFocus, + onCaretVerticalPositionChange: onCaretVerticalPositionChange + }; + return Object(external_this_wp_element_["createElement"])(Provider // It is important to return the same object if props haven't + // changed to avoid unnecessary rerenders. + // See https://reactjs.org/docs/context.html#caveats. + , { + value: Object(external_this_wp_element_["useMemo"])(function () { + return context; + }, Object.values(context)) + }, Object(external_this_wp_element_["createElement"])(edit, props)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-format-controls/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var block_format_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockFormatControls'), + block_format_controls_Fill = block_format_controls_createSlotFill.Fill, + block_format_controls_Slot = block_format_controls_createSlotFill.Slot; + +function BlockFormatControlsSlot(props) { + var accessibleToolbarState = Object(external_this_wp_element_["useContext"])(external_this_wp_components_["__experimentalToolbarContext"]); + return Object(external_this_wp_element_["createElement"])(block_format_controls_Slot, Object(esm_extends["a" /* default */])({}, props, { + fillProps: accessibleToolbarState + })); +} + +function BlockFormatControlsFill(props) { + var _useBlockEditContext = useBlockEditContext(), + isSelected = _useBlockEditContext.isSelected; + + if (!isSelected) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(block_format_controls_Fill, null, function (fillProps) { + var value = !Object(external_this_lodash_["isEmpty"])(fillProps) ? fillProps : null; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarContext"].Provider, { + value: value + }, props.children); + }); +} + +var BlockFormatControls = BlockFormatControlsFill; +BlockFormatControls.Slot = BlockFormatControlsSlot; +/* harmony default export */ var block_format_controls = (BlockFormatControls); + +// EXTERNAL MODULE: external {"this":"regeneratorRuntime"} +var external_this_regeneratorRuntime_ = __webpack_require__(23); +var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_this_regeneratorRuntime_); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(46); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js +var more_vertical = __webpack_require__(292); + +// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js +var web_cjs = __webpack_require__(107); + +// EXTERNAL MODULE: external {"this":["wp","dom"]} +var external_this_wp_dom_ = __webpack_require__(29); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-moving-animation/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Simple reducer used to increment a counter. + * + * @param {number} state Previous counter value. + * @return {number} New state value. + */ + +var counterReducer = function counterReducer(state) { + return state + 1; +}; + +var getAbsolutePosition = function getAbsolutePosition(element) { + return { + top: element.offsetTop, + left: element.offsetLeft + }; +}; +/** + * Hook used to compute the styles required to move a div into a new position. + * + * The way this animation works is the following: + * - It first renders the element as if there was no animation. + * - It takes a snapshot of the position of the block to use it + * as a destination point for the animation. + * - It restores the element to the previous position using a CSS transform + * - It uses the "resetAnimation" flag to reset the animation + * from the beginning in order to animate to the new destination point. + * + * @param {Object} ref Reference to the element to animate. + * @param {boolean} isSelected Whether it's the current block or not. + * @param {boolean} adjustScrolling Adjust the scroll position to the current block. + * @param {boolean} enableAnimation Enable/Disable animation. + * @param {*} triggerAnimationOnChange Variable used to trigger the animation if it changes. + */ + + +function useMovingAnimation(ref, isSelected, adjustScrolling, enableAnimation, triggerAnimationOnChange) { + var prefersReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])() || !enableAnimation; + + var _useReducer = Object(external_this_wp_element_["useReducer"])(counterReducer, 0), + _useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2), + triggeredAnimation = _useReducer2[0], + triggerAnimation = _useReducer2[1]; + + var _useReducer3 = Object(external_this_wp_element_["useReducer"])(counterReducer, 0), + _useReducer4 = Object(slicedToArray["a" /* default */])(_useReducer3, 2), + finishedAnimation = _useReducer4[0], + endAnimation = _useReducer4[1]; + + var _useState = Object(external_this_wp_element_["useState"])({ + x: 0, + y: 0, + scrollTop: 0 + }), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + transform = _useState2[0], + setTransform = _useState2[1]; + + var previous = ref.current ? getAbsolutePosition(ref.current) : null; + var scrollContainer = Object(external_this_wp_element_["useRef"])(); + Object(external_this_wp_element_["useLayoutEffect"])(function () { + if (triggeredAnimation) { + endAnimation(); + } + }, [triggeredAnimation]); + Object(external_this_wp_element_["useLayoutEffect"])(function () { + if (!previous) { + return; + } + + scrollContainer.current = Object(external_this_wp_dom_["getScrollContainer"])(ref.current); + + if (prefersReducedMotion) { + if (adjustScrolling && scrollContainer.current) { + // if the animation is disabled and the scroll needs to be adjusted, + // just move directly to the final scroll position + ref.current.style.transform = 'none'; + + var _destination = getAbsolutePosition(ref.current); + + scrollContainer.current.scrollTop = scrollContainer.current.scrollTop - previous.top + _destination.top; + } + + return; + } + + ref.current.style.transform = 'none'; + var destination = getAbsolutePosition(ref.current); + var newTransform = { + x: previous.left - destination.left, + y: previous.top - destination.top, + scrollTop: scrollContainer.current ? scrollContainer.current.scrollTop - previous.top + destination.top : 0 + }; + ref.current.style.transform = newTransform.x === 0 && newTransform.y === 0 ? undefined : "translate3d(".concat(newTransform.x, "px,").concat(newTransform.y, "px,0)"); + triggerAnimation(); + setTransform(newTransform); + }, [triggerAnimationOnChange]); + Object(web_cjs["useSpring"])({ + from: { + x: transform.x, + y: transform.y + }, + to: { + x: 0, + y: 0 + }, + reset: triggeredAnimation !== finishedAnimation, + config: { + mass: 5, + tension: 2000, + friction: 200 + }, + immediate: prefersReducedMotion, + onFrame: function onFrame(_ref) { + var x = _ref.x, + y = _ref.y; + + if (adjustScrolling && scrollContainer.current && !prefersReducedMotion && y) { + scrollContainer.current.scrollTop = transform.scrollTop + y; + } + + if (ref.current) { + ref.current.style.transformOrigin = 'center'; + ref.current.style.transform = x === 0 && y === 0 ? null : "translate3d(".concat(x, "px,").concat(y, "px,0)"); + ref.current.style.zIndex = !isSelected || x === 0 && y === 0 ? null : '1'; + } + } + }); +} + +/* harmony default export */ var use_moving_animation = (useMovingAnimation); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/leaf.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +var AnimatedTreeGridRow = Object(web_cjs["animated"])(external_this_wp_components_["__experimentalTreeGridRow"]); +function BlockNavigationLeaf(_ref) { + var isSelected = _ref.isSelected, + position = _ref.position, + level = _ref.level, + rowCount = _ref.rowCount, + children = _ref.children, + className = _ref.className, + path = _ref.path, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["isSelected", "position", "level", "rowCount", "children", "className", "path"]); + + var wrapper = Object(external_this_wp_element_["useRef"])(null); + var adjustScrolling = false; + var enableAnimation = true; + var animateOnChange = path.join('_'); + var style = use_moving_animation(wrapper, isSelected, adjustScrolling, enableAnimation, animateOnChange); + return Object(external_this_wp_element_["createElement"])(AnimatedTreeGridRow, Object(esm_extends["a" /* default */])({ + ref: wrapper, + style: style, + className: classnames_default()('block-editor-block-navigation-leaf', className), + level: level, + positionInSet: position, + setSize: rowCount + }, props), children); +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js +var chevron_right = __webpack_require__(287); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js +var chevron_left = __webpack_require__(288); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js +var chevron_up = __webpack_require__(289); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js +var chevron_down = __webpack_require__(290); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js +/** + * WordPress dependencies + */ + +/** + * Return a label for the block movement controls depending on block position. + * + * @param {number} selectedCount Number of blocks selected. + * @param {string} type Block type - in the case of a single block, should + * define its 'type'. I.e. 'Text', 'Heading', 'Image' etc. + * @param {number} firstIndex The index (position - 1) of the first block selected. + * @param {boolean} isFirst This is the first block. + * @param {boolean} isLast This is the last block. + * @param {number} dir Direction of movement (> 0 is considered to be going + * down, < 0 is up). + * @param {string} orientation The orientation of the block movers, vertical or + * horizontal. + * @param {boolean} isRTL True if current writing system is right to left. + * + * @return {string} Label for the block movement controls. + */ + +function getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir, orientation, isRTL) { + var position = firstIndex + 1; + + var getMovementDirection = function getMovementDirection(moveDirection) { + if (moveDirection === 'up') { + if (orientation === 'horizontal') { + return isRTL ? 'right' : 'left'; + } + + return 'up'; + } else if (moveDirection === 'down') { + if (orientation === 'horizontal') { + return isRTL ? 'left' : 'right'; + } + + return 'down'; + } + + return null; + }; + + if (selectedCount > 1) { + return getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir); + } + + if (isFirst && isLast) { + return Object(external_this_wp_i18n_["sprintf"])( // translators: %s: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %s is the only block, and cannot be moved'), type); + } + + if (dir > 0 && !isLast) { + // moving down + var movementDirection = getMovementDirection('down'); + + if (movementDirection === 'down') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d down to position %3$d'), type, position, position + 1); + } + + if (movementDirection === 'left') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d left to position %3$d'), type, position, position + 1); + } + + if (movementDirection === 'right') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d right to position %3$d'), type, position, position + 1); + } + } + + if (dir > 0 && isLast) { + // moving down, and is the last item + var _movementDirection = getMovementDirection('down'); + + if (_movementDirection === 'down') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %1$s is at the end of the content and can’t be moved down'), type); + } + + if (_movementDirection === 'left') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %1$s is at the end of the content and can’t be moved left'), type); + } + + if (_movementDirection === 'right') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %1$s is at the end of the content and can’t be moved right'), type); + } + } + + if (dir < 0 && !isFirst) { + // moving up + var _movementDirection2 = getMovementDirection('up'); + + if (_movementDirection2 === 'up') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d up to position %3$d'), type, position, position - 1); + } + + if (_movementDirection2 === 'left') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d left to position %3$d'), type, position, position - 1); + } + + if (_movementDirection2 === 'right') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d right to position %3$d'), type, position, position - 1); + } + } + + if (dir < 0 && isFirst) { + // moving up, and is the first item + var _movementDirection3 = getMovementDirection('up'); + + if (_movementDirection3 === 'up') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %1$s is at the beginning of the content and can’t be moved up'), type); + } + + if (_movementDirection3 === 'left') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %1$s is at the beginning of the content and can’t be moved left'), type); + } + + if (_movementDirection3 === 'right') { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc) + Object(external_this_wp_i18n_["__"])('Block %1$s is at the beginning of the content and can’t be moved right'), type); + } + } +} +/** + * Return a label for the block movement controls depending on block position. + * + * @param {number} selectedCount Number of blocks selected. + * @param {number} firstIndex The index (position - 1) of the first block selected. + * @param {boolean} isFirst This is the first block. + * @param {boolean} isLast This is the last block. + * @param {number} dir Direction of movement (> 0 is considered to be going + * down, < 0 is up). + * + * @return {string} Label for the block movement controls. + */ + +function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir) { + var position = firstIndex + 1; + + if (dir < 0 && isFirst) { + return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved up as they are already at the top'); + } + + if (dir > 0 && isLast) { + return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved down as they are already at the bottom'); + } + + if (dir < 0 && !isFirst) { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks + Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d up by one place', 'Move %1$d blocks from position %2$d up by one place', selectedCount), selectedCount, position); + } + + if (dir > 0 && !isLast) { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks + Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d down by one place', 'Move %1$d blocks from position %2$d down by one place', selectedCount), selectedCount, position); + } +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/button.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + +var button_getArrowIcon = function getArrowIcon(direction, orientation, isRTL) { + if (direction === 'up') { + if (orientation === 'horizontal') { + return isRTL ? chevron_right["a" /* default */] : chevron_left["a" /* default */]; + } + + return chevron_up["a" /* default */]; + } else if (direction === 'down') { + if (orientation === 'horizontal') { + return isRTL ? chevron_left["a" /* default */] : chevron_right["a" /* default */]; + } + + return chevron_down["a" /* default */]; + } + + return null; +}; + +var button_getMovementDirectionLabel = function getMovementDirectionLabel(moveDirection, orientation, isRTL) { + if (moveDirection === 'up') { + if (orientation === 'horizontal') { + return isRTL ? Object(external_this_wp_i18n_["__"])('Move right') : Object(external_this_wp_i18n_["__"])('Move left'); + } + + return Object(external_this_wp_i18n_["__"])('Move up'); + } else if (moveDirection === 'down') { + if (orientation === 'horizontal') { + return isRTL ? Object(external_this_wp_i18n_["__"])('Move left') : Object(external_this_wp_i18n_["__"])('Move right'); + } + + return Object(external_this_wp_i18n_["__"])('Move down'); + } + + return null; +}; + +var BlockMoverButton = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { + var clientIds = _ref.clientIds, + direction = _ref.direction, + orientation = _ref.__experimentalOrientation, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["clientIds", "direction", "__experimentalOrientation"]); + + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockMoverButton); + var blocksCount = Object(external_this_lodash_["castArray"])(clientIds).length; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockIndex = _select.getBlockIndex, + getBlockRootClientId = _select.getBlockRootClientId, + getBlockOrder = _select.getBlockOrder, + getBlock = _select.getBlock, + getSettings = _select.getSettings, + getBlockListSettings = _select.getBlockListSettings; + + var normalizedClientIds = Object(external_this_lodash_["castArray"])(clientIds); + var firstClientId = Object(external_this_lodash_["first"])(normalizedClientIds); + var blockRootClientId = getBlockRootClientId(firstClientId); + var firstBlockIndex = getBlockIndex(firstClientId, blockRootClientId); + var lastBlockIndex = getBlockIndex(Object(external_this_lodash_["last"])(normalizedClientIds), blockRootClientId); + var blockOrder = getBlockOrder(blockRootClientId); + var block = getBlock(firstClientId); + var isFirstBlock = firstBlockIndex === 0; + var isLastBlock = lastBlockIndex === blockOrder.length - 1; + + var _ref2 = getBlockListSettings(blockRootClientId) || {}, + _ref2$__experimentalM = _ref2.__experimentalMoverDirection, + __experimentalMoverDirection = _ref2$__experimentalM === void 0 ? 'vertical' : _ref2$__experimentalM; + + return { + blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, + isDisabled: direction === 'up' ? isFirstBlock : isLastBlock, + rootClientId: blockRootClientId, + firstIndex: firstBlockIndex, + isFirst: isFirstBlock, + isLast: isLastBlock, + isRTL: getSettings().isRTL, + moverOrientation: orientation || __experimentalMoverDirection + }; + }, [clientIds, direction]), + blockType = _useSelect.blockType, + isDisabled = _useSelect.isDisabled, + rootClientId = _useSelect.rootClientId, + isFirst = _useSelect.isFirst, + isLast = _useSelect.isLast, + firstIndex = _useSelect.firstIndex, + isRTL = _useSelect.isRTL, + moverOrientation = _useSelect.moverOrientation; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + moveBlocksDown = _useDispatch.moveBlocksDown, + moveBlocksUp = _useDispatch.moveBlocksUp; + + var moverFunction = direction === 'up' ? moveBlocksUp : moveBlocksDown; + + var onClick = function onClick(event) { + moverFunction(clientIds, rootClientId); + + if (props.onClick) { + props.onClick(event); + } + }; + + var descriptionId = "block-editor-block-mover-button__description-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({ + ref: ref, + className: classnames_default()('block-editor-block-mover-button', "is-".concat(direction, "-button")), + icon: button_getArrowIcon(direction, moverOrientation, isRTL), + label: button_getMovementDirectionLabel(direction, moverOrientation, isRTL), + "aria-describedby": descriptionId + }, props, { + onClick: isDisabled ? null : onClick, + "aria-disabled": isDisabled + })), Object(external_this_wp_element_["createElement"])("span", { + id: descriptionId, + className: "block-editor-block-mover-button__description" + }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, direction === 'up' ? -1 : 1, moverOrientation, isRTL))); +}); +var BlockMoverUpButton = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + return Object(external_this_wp_element_["createElement"])(BlockMoverButton, Object(esm_extends["a" /* default */])({ + direction: "up", + ref: ref + }, props)); +}); +var BlockMoverDownButton = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + return Object(external_this_wp_element_["createElement"])(BlockMoverButton, Object(esm_extends["a" /* default */])({ + direction: "down", + ref: ref + }, props)); +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/descender-lines.js + + +/** + * External dependencies + */ + + +var lineClassName = 'block-editor-block-navigator-descender-line'; +function DescenderLines(_ref) { + var level = _ref.level, + isLastRow = _ref.isLastRow, + terminatedLevels = _ref.terminatedLevels; + return Object(external_this_lodash_["times"])(level - 1, function (index) { + // The first 'level' that has a descender line is level 2. + // Add 2 to the zero-based index below to reflect that. + var currentLevel = index + 2; + var hasItem = currentLevel === level; + return Object(external_this_wp_element_["createElement"])("div", { + key: index, + "aria-hidden": "true", + className: classnames_default()(lineClassName, { + 'has-item': hasItem, + 'is-last-row': isLastRow, + 'is-terminated': terminatedLevels.includes(currentLevel) + }) + }); + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/context.js +/** + * WordPress dependencies + */ + +var BlockNavigationContext = Object(external_this_wp_element_["createContext"])({ + __experimentalFeatures: false +}); +var context_useBlockNavigationContext = function useBlockNavigationContext() { + return Object(external_this_wp_element_["useContext"])(BlockNavigationContext); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-horizontal.js + + +/** + * WordPress dependencies + */ + +var moreHorizontal = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z" +})); +/* harmony default export */ var more_horizontal = (moreHorizontal); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/warning/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function Warning(_ref) { + var className = _ref.className, + actions = _ref.actions, + children = _ref.children, + secondaryActions = _ref.secondaryActions; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()(className, 'block-editor-warning') + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-warning__contents" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "block-editor-warning__message" + }, children), (external_this_wp_element_["Children"].count(actions) > 0 || secondaryActions) && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-warning__actions" + }, external_this_wp_element_["Children"].count(actions) > 0 && external_this_wp_element_["Children"].map(actions, function (action, i) { + return Object(external_this_wp_element_["createElement"])("span", { + key: i, + className: "block-editor-warning__action" + }, action); + }), secondaryActions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + className: "block-editor-warning__secondary", + position: "bottom left", + renderToggle: function renderToggle(_ref2) { + var isOpen = _ref2.isOpen, + onToggle = _ref2.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: more_horizontal, + label: Object(external_this_wp_i18n_["__"])('More options'), + onClick: onToggle, + "aria-expanded": isOpen + }); + }, + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, secondaryActions.map(function (item, pos) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: item.onClick, + key: pos + }, item.title); + })); + } + })))); +} + +/* harmony default export */ var warning = (Warning); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/node_modules/diff/lib/diff/character.js +var diff_character = __webpack_require__(255); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js + + +/** + * WordPress dependencies + */ + + +var block_view_BlockView = function BlockView(_ref) { + var title = _ref.title, + rawContent = _ref.rawContent, + renderedContent = _ref.renderedContent, + action = _ref.action, + actionText = _ref.actionText, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-compare__content" + }, Object(external_this_wp_element_["createElement"])("h2", { + className: "block-editor-block-compare__heading" + }, title), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-compare__html" + }, rawContent), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-compare__preview edit-post-visual-editor" + }, renderedContent)), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-compare__action" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSecondary: true, + tabIndex: "0", + onClick: action + }, actionText))); +}; + +/* harmony default export */ var block_view = (block_view_BlockView); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/index.js + + +/** + * External dependencies + */ + + // diff doesn't tree-shake correctly, so we import from the individual +// module here, to avoid including too much of the library + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +function BlockCompare(_ref) { + var block = _ref.block, + onKeep = _ref.onKeep, + onConvert = _ref.onConvert, + convertor = _ref.convertor, + convertButtonText = _ref.convertButtonText; + + function getDifference(originalContent, newContent) { + var difference = Object(diff_character["diffChars"])(originalContent, newContent); + return difference.map(function (item, pos) { + var classes = classnames_default()({ + 'block-editor-block-compare__added': item.added, + 'block-editor-block-compare__removed': item.removed + }); + return Object(external_this_wp_element_["createElement"])("span", { + key: pos, + className: classes + }, item.value); + }); + } + + function getConvertedContent(convertedBlock) { + // The convertor may return an array of items or a single item + var newBlocks = Object(external_this_lodash_["castArray"])(convertedBlock); // Get converted block details + + var newContent = newBlocks.map(function (item) { + return Object(external_this_wp_blocks_["getSaveContent"])(item.name, item.attributes, item.innerBlocks); + }); + var renderedContent = newBlocks.map(function (item) { + return Object(external_this_wp_blocks_["getSaveElement"])(item.name, item.attributes, item.innerBlocks); + }); + return { + rawContent: newContent.join(''), + renderedContent: renderedContent + }; + } + + var original = { + rawContent: block.originalContent, + renderedContent: Object(external_this_wp_blocks_["getSaveElement"])(block.name, block.attributes) + }; + var converted = getConvertedContent(convertor(block)); + var difference = getDifference(original.rawContent, converted.rawContent); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-compare__wrapper" + }, Object(external_this_wp_element_["createElement"])(block_view, { + title: Object(external_this_wp_i18n_["__"])('Current'), + className: "block-editor-block-compare__current", + action: onKeep, + actionText: Object(external_this_wp_i18n_["__"])('Convert to HTML'), + rawContent: original.rawContent, + renderedContent: original.renderedContent + }), Object(external_this_wp_element_["createElement"])(block_view, { + title: Object(external_this_wp_i18n_["__"])('After Conversion'), + className: "block-editor-block-compare__converted", + action: onConvert, + actionText: convertButtonText, + rawContent: difference, + renderedContent: converted.renderedContent + })); +} + +/* harmony default export */ var block_compare = (BlockCompare); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-invalid-warning.js + + + + + + + + +function block_invalid_warning_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_invalid_warning_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function block_invalid_warning_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var block_invalid_warning_BlockInvalidWarning = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(BlockInvalidWarning, _Component); + + var _super = block_invalid_warning_createSuper(BlockInvalidWarning); + + function BlockInvalidWarning(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockInvalidWarning); + + _this = _super.call(this, props); + _this.state = { + compare: false + }; + _this.onCompare = _this.onCompare.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onCompareClose = _this.onCompareClose.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(BlockInvalidWarning, [{ + key: "onCompare", + value: function onCompare() { + this.setState({ + compare: true + }); + } + }, { + key: "onCompareClose", + value: function onCompareClose() { + this.setState({ + compare: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + convertToHTML = _this$props.convertToHTML, + convertToBlocks = _this$props.convertToBlocks, + convertToClassic = _this$props.convertToClassic, + attemptBlockRecovery = _this$props.attemptBlockRecovery, + block = _this$props.block; + var hasHTMLBlock = !!Object(external_this_wp_blocks_["getBlockType"])('core/html'); + var compare = this.state.compare; + var hiddenActions = [{ + title: Object(external_this_wp_i18n_["__"])('Convert to Classic Block'), + onClick: convertToClassic + }, { + title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'), + onClick: attemptBlockRecovery + }]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(warning, { + actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "convert", + onClick: this.onCompare, + isSecondary: hasHTMLBlock, + isPrimary: !hasHTMLBlock + }, // translators: Button to fix block content + Object(external_this_wp_i18n_["_x"])('Resolve', 'imperative verb')), hasHTMLBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "edit", + onClick: convertToHTML, + isPrimary: true + }, Object(external_this_wp_i18n_["__"])('Convert to HTML'))], + secondaryActions: hiddenActions + }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')), compare && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { + title: // translators: Dialog title to fix block content + Object(external_this_wp_i18n_["__"])('Resolve Block'), + onRequestClose: this.onCompareClose, + className: "block-editor-block-compare" + }, Object(external_this_wp_element_["createElement"])(block_compare, { + block: block, + onKeep: convertToHTML, + onConvert: convertToBlocks, + convertor: block_invalid_warning_blockToBlocks, + convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks') + }))); + } + }]); + + return BlockInvalidWarning; +}(external_this_wp_element_["Component"]); + +var block_invalid_warning_blockToClassic = function blockToClassic(block) { + return Object(external_this_wp_blocks_["createBlock"])('core/freeform', { + content: block.originalContent + }); +}; + +var block_invalid_warning_blockToHTML = function blockToHTML(block) { + return Object(external_this_wp_blocks_["createBlock"])('core/html', { + content: block.originalContent + }); +}; + +var block_invalid_warning_blockToBlocks = function blockToBlocks(block) { + return Object(external_this_wp_blocks_["rawHandler"])({ + HTML: block.originalContent + }); +}; + +var block_invalid_warning_recoverBlock = function recoverBlock(_ref) { + var name = _ref.name, + attributes = _ref.attributes, + innerBlocks = _ref.innerBlocks; + return Object(external_this_wp_blocks_["createBlock"])(name, attributes, innerBlocks); +}; + +/* harmony default export */ var block_invalid_warning = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + return { + block: select('core/block-editor').getBlock(clientId) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var block = _ref3.block; + + var _dispatch = dispatch('core/block-editor'), + replaceBlock = _dispatch.replaceBlock; + + return { + convertToClassic: function convertToClassic() { + replaceBlock(block.clientId, block_invalid_warning_blockToClassic(block)); + }, + convertToHTML: function convertToHTML() { + replaceBlock(block.clientId, block_invalid_warning_blockToHTML(block)); + }, + convertToBlocks: function convertToBlocks() { + replaceBlock(block.clientId, block_invalid_warning_blockToBlocks(block)); + }, + attemptBlockRecovery: function attemptBlockRecovery() { + replaceBlock(block.clientId, block_invalid_warning_recoverBlock(block)); + } + }; +})])(block_invalid_warning_BlockInvalidWarning)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-warning.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var block_crash_warning_warning = Object(external_this_wp_element_["createElement"])(warning, { + className: "block-editor-block-list__block-crash-warning" +}, Object(external_this_wp_i18n_["__"])('This block has encountered an error and cannot be previewed.')); +/* harmony default export */ var block_crash_warning = (function () { + return block_crash_warning_warning; +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-boundary.js + + + + + + +function block_crash_boundary_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_crash_boundary_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function block_crash_boundary_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + +var block_crash_boundary_BlockCrashBoundary = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(BlockCrashBoundary, _Component); + + var _super = block_crash_boundary_createSuper(BlockCrashBoundary); + + function BlockCrashBoundary() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockCrashBoundary); + + _this = _super.apply(this, arguments); + _this.state = { + hasError: false + }; + return _this; + } + + Object(createClass["a" /* default */])(BlockCrashBoundary, [{ + key: "componentDidCatch", + value: function componentDidCatch(error) { + this.props.onError(error); + this.setState({ + hasError: true + }); + } + }, { + key: "render", + value: function render() { + if (this.state.hasError) { + return null; + } + + return this.props.children; + } + }]); + + return BlockCrashBoundary; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); + +// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js +var lib = __webpack_require__(88); +var lib_default = /*#__PURE__*/__webpack_require__.n(lib); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function BlockHTML(_ref) { + var clientId = _ref.clientId; + + var _useState = Object(external_this_wp_element_["useState"])(''), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + html = _useState2[0], + setHtml = _useState2[1]; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return { + block: select('core/block-editor').getBlock(clientId) + }; + }, [clientId]), + block = _useSelect.block; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateBlock = _useDispatch.updateBlock; + + var onChange = function onChange() { + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(blockType, html, block.attributes); // If html is empty we reset the block to the default HTML and mark it as valid to avoid triggering an error + + var content = html ? html : Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributes); + var isValid = html ? Object(external_this_wp_blocks_["isValidBlockContent"])(blockType, attributes, content) : true; + updateBlock(clientId, { + attributes: attributes, + originalContent: content, + isValid: isValid + }); // Ensure the state is updated if we reset so it displays the default content + + if (!html) { + setHtml({ + content: content + }); + } + }; + + Object(external_this_wp_element_["useEffect"])(function () { + setHtml(Object(external_this_wp_blocks_["getBlockContent"])(block)); + }, [block]); + return Object(external_this_wp_element_["createElement"])(lib_default.a, { + className: "block-editor-block-list__block-html-textarea", + value: html, + onBlur: onChange, + onChange: function onChange(event) { + return setHtml(event.target.value); + } + }); +} + +/* harmony default export */ var block_html = (BlockHTML); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/use-multi-selection.js + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * Returns for the deepest node at the start or end of a container node. Ignores + * any text nodes that only contain HTML formatting whitespace. + * + * @param {Element} node Container to search. + * @param {string} type 'start' or 'end'. + */ + +function getDeepestNode(node, type) { + var child = type === 'start' ? 'firstChild' : 'lastChild'; + var sibling = type === 'start' ? 'nextSibling' : 'previousSibling'; + + while (node[child]) { + node = node[child]; + + while (node.nodeType === node.TEXT_NODE && /^[ \t\n]*$/.test(node.data) && node[sibling]) { + node = node[sibling]; + } + } + + return node; +} + +function use_multi_selection_selector(select) { + var _select = select('core/block-editor'), + isSelectionEnabled = _select.isSelectionEnabled, + isMultiSelecting = _select.isMultiSelecting, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + hasMultiSelection = _select.hasMultiSelection, + getBlockParents = _select.getBlockParents, + getSelectedBlockClientId = _select.getSelectedBlockClientId; + + return { + isSelectionEnabled: isSelectionEnabled(), + isMultiSelecting: isMultiSelecting(), + multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), + hasMultiSelection: hasMultiSelection(), + getBlockParents: getBlockParents, + selectedBlockClientId: getSelectedBlockClientId() + }; +} + +function toggleRichText(container, toggle) { + Array.from(container.querySelectorAll('.rich-text')).forEach(function (node) { + if (toggle) { + node.setAttribute('contenteditable', true); + } else { + node.removeAttribute('contenteditable'); + } + }); +} + +function useMultiSelection(ref) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(use_multi_selection_selector, []), + isSelectionEnabled = _useSelect.isSelectionEnabled, + isMultiSelecting = _useSelect.isMultiSelecting, + multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds, + hasMultiSelection = _useSelect.hasMultiSelection, + getBlockParents = _useSelect.getBlockParents, + selectedBlockClientId = _useSelect.selectedBlockClientId; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + startMultiSelect = _useDispatch.startMultiSelect, + stopMultiSelect = _useDispatch.stopMultiSelect, + multiSelect = _useDispatch.multiSelect, + selectBlock = _useDispatch.selectBlock; + + var rafId = Object(external_this_wp_element_["useRef"])(); + var startClientId = Object(external_this_wp_element_["useRef"])(); + var anchorElement = Object(external_this_wp_element_["useRef"])(); + /** + * When the component updates, and there is multi selection, we need to + * select the entire block contents. + */ + + Object(external_this_wp_element_["useEffect"])(function () { + if (!hasMultiSelection || isMultiSelecting) { + if (!selectedBlockClientId || isMultiSelecting) { + return; + } + + var _selection = window.getSelection(); + + if (_selection.rangeCount && !_selection.isCollapsed) { + var blockNode = getBlockDOMNode(selectedBlockClientId); + + var _selection$getRangeAt = _selection.getRangeAt(0), + startContainer = _selection$getRangeAt.startContainer, + endContainer = _selection$getRangeAt.endContainer; + + if (!!blockNode && (!blockNode.contains(startContainer) || !blockNode.contains(endContainer))) { + _selection.removeAllRanges(); + } + } + + return; + } + + var length = multiSelectedBlockClientIds.length; + + if (length < 2) { + return; + } // These must be in the right DOM order. + + + var start = multiSelectedBlockClientIds[0]; + var end = multiSelectedBlockClientIds[length - 1]; + var startNode = getBlockDOMNode(start); + var endNode = getBlockDOMNode(end); + var selection = window.getSelection(); + var range = document.createRange(); // The most stable way to select the whole block contents is to start + // and end at the deepest points. + + startNode = getDeepestNode(startNode, 'start'); + endNode = getDeepestNode(endNode, 'end'); + range.setStartBefore(startNode); + range.setEndAfter(endNode); + selection.removeAllRanges(); + selection.addRange(range); + }, [hasMultiSelection, isMultiSelecting, multiSelectedBlockClientIds, selectBlock, selectedBlockClientId]); + var onSelectionChange = Object(external_this_wp_element_["useCallback"])(function (_ref) { + var isSelectionEnd = _ref.isSelectionEnd; + var selection = window.getSelection(); // If no selection is found, end multi selection and enable all rich + // text areas. + + if (!selection.rangeCount || selection.isCollapsed) { + toggleRichText(ref.current, true); + return; + } + + var clientId = getBlockClientId(selection.focusNode); + var isSingularSelection = startClientId.current === clientId; + + if (isSingularSelection) { + selectBlock(clientId); // If the selection is complete (on mouse up), and no multiple + // blocks have been selected, set focus back to the anchor element + // if the anchor element contains the selection. Additionally, rich + // text elements that were previously disabled can now be enabled + // again. + + if (isSelectionEnd) { + toggleRichText(ref.current, true); + + if (selection.rangeCount) { + var _selection$getRangeAt2 = selection.getRangeAt(0), + commonAncestorContainer = _selection$getRangeAt2.commonAncestorContainer; + + if (anchorElement.current.contains(commonAncestorContainer)) { + anchorElement.current.focus(); + } + } + } + } else { + var startPath = [].concat(Object(toConsumableArray["a" /* default */])(getBlockParents(startClientId.current)), [startClientId.current]); + var endPath = [].concat(Object(toConsumableArray["a" /* default */])(getBlockParents(clientId)), [clientId]); + var depth = Math.min(startPath.length, endPath.length) - 1; + multiSelect(startPath[depth], endPath[depth]); + } + }, [selectBlock, getBlockParents, multiSelect]); + /** + * Handles a mouseup event to end the current mouse multi-selection. + */ + + var onSelectionEnd = Object(external_this_wp_element_["useCallback"])(function () { + document.removeEventListener('selectionchange', onSelectionChange); // Equivalent to attaching the listener once. + + window.removeEventListener('mouseup', onSelectionEnd); // The browser selection won't have updated yet at this point, so wait + // until the next animation frame to get the browser selection. + + rafId.current = window.requestAnimationFrame(function () { + onSelectionChange({ + isSelectionEnd: true + }); + stopMultiSelect(); + }); + }, [onSelectionChange, stopMultiSelect]); // Only clean up when unmounting, these are added and cleaned up elsewhere. + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + document.removeEventListener('selectionchange', onSelectionChange); + window.removeEventListener('mouseup', onSelectionEnd); + window.cancelAnimationFrame(rafId.current); + }; + }, [onSelectionChange, onSelectionEnd]); + /** + * Binds event handlers to the document for tracking a pending multi-select + * in response to a mousedown event occurring in a rendered block. + */ + + return Object(external_this_wp_element_["useCallback"])(function (clientId) { + if (!isSelectionEnabled) { + return; + } + + startClientId.current = clientId; + anchorElement.current = document.activeElement; + startMultiSelect(); // `onSelectionStart` is called after `mousedown` and `mouseleave` + // (from a block). The selection ends when `mouseup` happens anywhere + // in the window. + + document.addEventListener('selectionchange', onSelectionChange); + window.addEventListener('mouseup', onSelectionEnd); // Removing the contenteditable attributes within the block editor is + // essential for selection to work across editable areas. The edible + // hosts are removed, allowing selection to be extended outside the + // DOM element. `startMultiSelect` sets a flag in the store so the rich + // text components are updated, but the rerender may happen very slowly, + // especially in Safari for the blocks that are asynchonously rendered. + // To ensure the browser instantly removes the selection boundaries, we + // remove the contenteditable attributes manually. + + toggleRichText(ref.current, false); + }, [isSelectionEnabled, startMultiSelect, onSelectionEnd]); +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js +var plus = __webpack_require__(284); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tips.js + + + +/** + * WordPress dependencies + */ + + + +var globalTips = [Object(external_this_wp_element_["createInterpolateElement"])(Object(external_this_wp_i18n_["__"])('While writing, you can press / to quickly insert new blocks.'), { + kbd: Object(external_this_wp_element_["createElement"])("kbd", null) +}), Object(external_this_wp_element_["createInterpolateElement"])(Object(external_this_wp_i18n_["__"])('Indent a list by pressing space at the beginning of a line.'), { + kbd: Object(external_this_wp_element_["createElement"])("kbd", null) +}), Object(external_this_wp_element_["createInterpolateElement"])(Object(external_this_wp_i18n_["__"])('Outdent a list by pressing backspace at the beginning of a line.'), { + kbd: Object(external_this_wp_element_["createElement"])("kbd", null) +}), Object(external_this_wp_i18n_["__"])('Drag files into the editor to automatically insert media blocks.'), Object(external_this_wp_i18n_["__"])("Change a block's type by pressing the block icon on the toolbar.")]; + +function Tips() { + var _useState = Object(external_this_wp_element_["useState"])( // Disable Reason: I'm not generating an HTML id. + // eslint-disable-next-line no-restricted-syntax + Math.floor(Math.random() * globalTips.length)), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 1), + randomIndex = _useState2[0]; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tip"], null, globalTips[randomIndex]); +} + +/* harmony default export */ var tips = (Tips); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js +var build_module_icon = __webpack_require__(130); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js +var search = __webpack_require__(285); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-form.js + + +/** + * WordPress dependencies + */ + + + + + +function InserterSearchForm(_ref) { + var _onChange = _ref.onChange; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(InserterSearchForm); // Disable reason (no-autofocus): The inserter menu is a modal display, not one which + // is always visible, and one which already incurs this behavior of autoFocus via + // Popover's focusOnMount. + + /* eslint-disable jsx-a11y/no-autofocus */ + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__search" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "label", + htmlFor: "block-editor-inserter__search-".concat(instanceId) + }, Object(external_this_wp_i18n_["__"])('Search for a block')), Object(external_this_wp_element_["createElement"])("input", { + className: "block-editor-inserter__search-input", + id: "block-editor-inserter__search-".concat(instanceId), + type: "search", + placeholder: Object(external_this_wp_i18n_["__"])('Search for a block'), + autoFocus: true, + onChange: function onChange(event) { + return _onChange(event.target.value); + }, + autoComplete: "off" + }), Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + className: "block-editor-inserter__search-icon", + icon: search["a" /* default */] + })); + /* eslint-enable jsx-a11y/no-autofocus */ +} + +/* harmony default export */ var search_form = (InserterSearchForm); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-card/index.js + + +/** + * Internal dependencies + */ + + +function BlockCard(_ref) { + var blockType = _ref.blockType; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-card" + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: blockType.icon, + showColors: true + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-card__content" + }, Object(external_this_wp_element_["createElement"])("h2", { + className: "block-editor-block-card__title" + }, blockType.title), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-block-card__description" + }, blockType.description))); +} + +/* harmony default export */ var block_card = (BlockCard); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/defaults.js +/** + * WordPress dependencies + */ + +var PREFERENCES_DEFAULTS = { + insertUsage: {} +}; +/** + * The default editor settings + * + * @typedef {Object} SETTINGS_DEFAULT + * @property {boolean} alignWide Enable/Disable Wide/Full Alignments + * @property {Array} availableLegacyWidgets Array of objects representing the legacy widgets available. + * @property {Array} colors Palette colors + * @property {boolean} disableCustomColors Whether or not the custom colors are disabled + * @property {Array} fontSizes Available font sizes + * @property {boolean} disableCustomFontSizes Whether or not the custom font sizes are disabled + * @property {Array} imageSizes Available image sizes + * @property {number} maxWidth Max width to constraint resizing + * @property {boolean|Array} allowedBlockTypes Allowed block types + * @property {boolean} hasFixedToolbar Whether or not the editor toolbar is fixed + * @property {boolean} hasPermissionsToManageWidgets Whether or not the user is able to manage widgets. + * @property {boolean} focusMode Whether the focus mode is enabled or not + * @property {Array} styles Editor Styles + * @property {boolean} isRTL Whether the editor is in RTL mode + * @property {string} bodyPlaceholder Empty post placeholder + * @property {string} titlePlaceholder Empty title placeholder + * @property {boolean} codeEditingEnabled Whether or not the user can switch to the code editor + * @property {boolean} __experimentalCanUserUseUnfilteredHTML Whether the user should be able to use unfiltered HTML or the HTML should be filtered e.g., to remove elements considered insecure like iframes. + * @property {boolean} __experimentalEnableLegacyWidgetBlock Whether the user has enabled the Legacy Widget Block + * @property {boolean} __experimentalBlockDirectory Whether the user has enabled the Block Directory + * @property {boolean} __experimentalEnableFullSiteEditing Whether the user has enabled Full Site Editing + * @property {boolean} __experimentalEnableFullSiteEditingDemo Whether the user has enabled Full Site Editing Demo Templates + */ + +var SETTINGS_DEFAULTS = { + alignWide: false, + colors: [{ + name: Object(external_this_wp_i18n_["__"])('Black'), + slug: 'black', + color: '#000000' + }, { + name: Object(external_this_wp_i18n_["__"])('Cyan bluish gray'), + slug: 'cyan-bluish-gray', + color: '#abb8c3' + }, { + name: Object(external_this_wp_i18n_["__"])('White'), + slug: 'white', + color: '#ffffff' + }, { + name: Object(external_this_wp_i18n_["__"])('Pale pink'), + slug: 'pale-pink', + color: '#f78da7' + }, { + name: Object(external_this_wp_i18n_["__"])('Vivid red'), + slug: 'vivid-red', + color: '#cf2e2e' + }, { + name: Object(external_this_wp_i18n_["__"])('Luminous vivid orange'), + slug: 'luminous-vivid-orange', + color: '#ff6900' + }, { + name: Object(external_this_wp_i18n_["__"])('Luminous vivid amber'), + slug: 'luminous-vivid-amber', + color: '#fcb900' + }, { + name: Object(external_this_wp_i18n_["__"])('Light green cyan'), + slug: 'light-green-cyan', + color: '#7bdcb5' + }, { + name: Object(external_this_wp_i18n_["__"])('Vivid green cyan'), + slug: 'vivid-green-cyan', + color: '#00d084' + }, { + name: Object(external_this_wp_i18n_["__"])('Pale cyan blue'), + slug: 'pale-cyan-blue', + color: '#8ed1fc' + }, { + name: Object(external_this_wp_i18n_["__"])('Vivid cyan blue'), + slug: 'vivid-cyan-blue', + color: '#0693e3' + }, { + name: Object(external_this_wp_i18n_["__"])('Vivid purple'), + slug: 'vivid-purple', + color: '#9b51e0' + }], + fontSizes: [{ + name: Object(external_this_wp_i18n_["_x"])('Small', 'font size name'), + size: 13, + slug: 'small' + }, { + name: Object(external_this_wp_i18n_["_x"])('Normal', 'font size name'), + size: 16, + slug: 'normal' + }, { + name: Object(external_this_wp_i18n_["_x"])('Medium', 'font size name'), + size: 20, + slug: 'medium' + }, { + name: Object(external_this_wp_i18n_["_x"])('Large', 'font size name'), + size: 36, + slug: 'large' + }, { + name: Object(external_this_wp_i18n_["_x"])('Huge', 'font size name'), + size: 48, + slug: 'huge' + }], + imageSizes: [{ + slug: 'thumbnail', + name: Object(external_this_wp_i18n_["__"])('Thumbnail') + }, { + slug: 'medium', + name: Object(external_this_wp_i18n_["__"])('Medium') + }, { + slug: 'large', + name: Object(external_this_wp_i18n_["__"])('Large') + }, { + slug: 'full', + name: Object(external_this_wp_i18n_["__"])('Full Size') + }], + // This is current max width of the block inner area + // It's used to constraint image resizing and this value could be overridden later by themes + maxWidth: 580, + // Allowed block types for the editor, defaulting to true (all supported). + allowedBlockTypes: true, + // Maximum upload size in bytes allowed for the site. + maxUploadFileSize: 0, + // List of allowed mime types and file extensions. + allowedMimeTypes: null, + availableLegacyWidgets: {}, + hasPermissionsToManageWidgets: false, + __experimentalCanUserUseUnfilteredHTML: false, + __experimentalEnableLegacyWidgetBlock: false, + __experimentalBlockDirectory: false, + __experimentalEnableFullSiteEditing: false, + __experimentalEnableFullSiteEditingDemo: false, + __mobileEnablePageTemplates: false, + gradients: [{ + name: Object(external_this_wp_i18n_["__"])('Vivid cyan blue to vivid purple'), + gradient: 'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)', + slug: 'vivid-cyan-blue-to-vivid-purple' + }, { + name: Object(external_this_wp_i18n_["__"])('Light green cyan to vivid green cyan'), + gradient: 'linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)', + slug: 'light-green-cyan-to-vivid-green-cyan' + }, { + name: Object(external_this_wp_i18n_["__"])('Luminous vivid amber to luminous vivid orange'), + gradient: 'linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)', + slug: 'luminous-vivid-amber-to-luminous-vivid-orange' + }, { + name: Object(external_this_wp_i18n_["__"])('Luminous vivid orange to vivid red'), + gradient: 'linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)', + slug: 'luminous-vivid-orange-to-vivid-red' + }, { + name: Object(external_this_wp_i18n_["__"])('Very light gray to cyan bluish gray'), + gradient: 'linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)', + slug: 'very-light-gray-to-cyan-bluish-gray' + }, { + name: Object(external_this_wp_i18n_["__"])('Cool to warm spectrum'), + gradient: 'linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)', + slug: 'cool-to-warm-spectrum' + }, { + name: Object(external_this_wp_i18n_["__"])('Blush light purple'), + gradient: 'linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)', + slug: 'blush-light-purple' + }, { + name: Object(external_this_wp_i18n_["__"])('Blush bordeaux'), + gradient: 'linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)', + slug: 'blush-bordeaux' + }, { + name: Object(external_this_wp_i18n_["__"])('Luminous dusk'), + gradient: 'linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)', + slug: 'luminous-dusk' + }, { + name: Object(external_this_wp_i18n_["__"])('Pale ocean'), + gradient: 'linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)', + slug: 'pale-ocean' + }, { + name: Object(external_this_wp_i18n_["__"])('Electric grass'), + gradient: 'linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)', + slug: 'electric-grass' + }, { + name: Object(external_this_wp_i18n_["__"])('Midnight'), + gradient: 'linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)', + slug: 'midnight' + }] +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/array.js + + +/** + * External dependencies + */ + +/** + * Insert one or multiple elements into a given position of an array. + * + * @param {Array} array Source array. + * @param {*} elements Elements to insert. + * @param {number} index Insert Position. + * + * @return {Array} Result. + */ + +function insertAt(array, elements, index) { + return [].concat(Object(toConsumableArray["a" /* default */])(array.slice(0, index)), Object(toConsumableArray["a" /* default */])(Object(external_this_lodash_["castArray"])(elements)), Object(toConsumableArray["a" /* default */])(array.slice(index))); +} +/** + * Moves an element in an array. + * + * @param {Array} array Source array. + * @param {number} from Source index. + * @param {number} to Destination index. + * @param {number} count Number of elements to move. + * + * @return {Array} Result. + */ + +function moveTo(array, from, to) { + var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; + + var withoutMovedElements = Object(toConsumableArray["a" /* default */])(array); + + withoutMovedElements.splice(from, count); + return insertAt(withoutMovedElements, array.slice(from, from + count), to); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/reducer.js + + + + +function reducer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function reducer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { reducer_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { reducer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +/** + * Given an array of blocks, returns an object where each key is a nesting + * context, the value of which is an array of block client IDs existing within + * that nesting context. + * + * @param {Array} blocks Blocks to map. + * @param {?string} rootClientId Assumed root client ID. + * + * @return {Object} Block order map object. + */ + +function mapBlockOrder(blocks) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + + var result = Object(defineProperty["a" /* default */])({}, rootClientId, []); + + blocks.forEach(function (block) { + var clientId = block.clientId, + innerBlocks = block.innerBlocks; + result[rootClientId].push(clientId); + Object.assign(result, mapBlockOrder(innerBlocks, clientId)); + }); + return result; +} +/** + * Given an array of blocks, returns an object where each key contains + * the clientId of the block and the value is the parent of the block. + * + * @param {Array} blocks Blocks to map. + * @param {?string} rootClientId Assumed root client ID. + * + * @return {Object} Block order map object. + */ + + +function mapBlockParents(blocks) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + return blocks.reduce(function (result, block) { + return Object.assign(result, Object(defineProperty["a" /* default */])({}, block.clientId, rootClientId), mapBlockParents(block.innerBlocks, block.clientId)); + }, {}); +} +/** + * Helper method to iterate through all blocks, recursing into inner blocks, + * applying a transformation function to each one. + * Returns a flattened object with the transformed blocks. + * + * @param {Array} blocks Blocks to flatten. + * @param {Function} transform Transforming function to be applied to each block. + * + * @return {Object} Flattened object. + */ + + +function flattenBlocks(blocks) { + var transform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : external_this_lodash_["identity"]; + var result = {}; + + var stack = Object(toConsumableArray["a" /* default */])(blocks); + + while (stack.length) { + var _stack$shift = stack.shift(), + innerBlocks = _stack$shift.innerBlocks, + block = Object(objectWithoutProperties["a" /* default */])(_stack$shift, ["innerBlocks"]); + + stack.push.apply(stack, Object(toConsumableArray["a" /* default */])(innerBlocks)); + result[block.clientId] = transform(block); + } + + return result; +} +/** + * Given an array of blocks, returns an object containing all blocks, without + * attributes, recursing into inner blocks. Keys correspond to the block client + * ID, the value of which is the attributes object. + * + * @param {Array} blocks Blocks to flatten. + * + * @return {Object} Flattened block attributes object. + */ + + +function getFlattenedBlocksWithoutAttributes(blocks) { + return flattenBlocks(blocks, function (block) { + return Object(external_this_lodash_["omit"])(block, 'attributes'); + }); +} +/** + * Given an array of blocks, returns an object containing all block attributes, + * recursing into inner blocks. Keys correspond to the block client ID, the + * value of which is the attributes object. + * + * @param {Array} blocks Blocks to flatten. + * + * @return {Object} Flattened block attributes object. + */ + + +function getFlattenedBlockAttributes(blocks) { + return flattenBlocks(blocks, function (block) { + return block.attributes; + }); +} +/** + * Given a block order map object, returns *all* of the block client IDs that are + * a descendant of the given root client ID. + * + * Calling this with `rootClientId` set to `''` results in a list of client IDs + * that are in the post. That is, it excludes blocks like fetched reusable + * blocks which are stored into state but not visible. It also excludes + * InnerBlocks controllers, like template parts. + * + * It is important to exclude the full inner block controller and not just the + * inner blocks because in many cases, we need to persist the previous value of + * an inner block controller. To do so, it must be excluded from the list of + * client IDs which are considered to be part of the top-level entity. + * + * @param {Object} blocksOrder Object that maps block client IDs to a list of + * nested block client IDs. + * @param {?string} rootClientId The root client ID to search. Defaults to ''. + * @param {?Object} controlledInnerBlocks The InnerBlocks controller state. + * + * @return {Array} List of descendant client IDs. + */ + + +function getNestedBlockClientIds(blocksOrder) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var controlledInnerBlocks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + return Object(external_this_lodash_["reduce"])(blocksOrder[rootClientId], function (result, clientId) { + if (!!controlledInnerBlocks[clientId]) { + return result; + } + + return [].concat(Object(toConsumableArray["a" /* default */])(result), [clientId], Object(toConsumableArray["a" /* default */])(getNestedBlockClientIds(blocksOrder, clientId))); + }, []); +} +/** + * Returns an object against which it is safe to perform mutating operations, + * given the original object and its current working copy. + * + * @param {Object} original Original object. + * @param {Object} working Working object. + * + * @return {Object} Mutation-safe object. + */ + + +function getMutateSafeObject(original, working) { + if (original === working) { + return reducer_objectSpread({}, original); + } + + return working; +} +/** + * Returns true if the two object arguments have the same keys, or false + * otherwise. + * + * @param {Object} a First object. + * @param {Object} b Second object. + * + * @return {boolean} Whether the two objects have the same keys. + */ + + +function hasSameKeys(a, b) { + return Object(external_this_lodash_["isEqual"])(Object(external_this_lodash_["keys"])(a), Object(external_this_lodash_["keys"])(b)); +} +/** + * Returns true if, given the currently dispatching action and the previously + * dispatched action, the two actions are updating the same block attribute, or + * false otherwise. + * + * @param {Object} action Currently dispatching action. + * @param {Object} lastAction Previously dispatched action. + * + * @return {boolean} Whether actions are updating the same block attribute. + */ + +function isUpdatingSameBlockAttribute(action, lastAction) { + return action.type === 'UPDATE_BLOCK_ATTRIBUTES' && lastAction !== undefined && lastAction.type === 'UPDATE_BLOCK_ATTRIBUTES' && Object(external_this_lodash_["isEqual"])(action.clientIds, lastAction.clientIds) && hasSameKeys(action.attributes, lastAction.attributes); +} +/** + * Utility returning an object with an empty object value for each key. + * + * @param {Array} objectKeys Keys to fill. + * @return {Object} Object filled with empty object as values for each clientId. + */ + +var fillKeysWithEmptyObject = function fillKeysWithEmptyObject(objectKeys) { + return objectKeys.reduce(function (result, key) { + result[key] = {}; + return result; + }, {}); +}; +/** + * Higher-order reducer intended to compute a cache key for each block in the post. + * A new instance of the cache key (empty object) is created each time the block object + * needs to be refreshed (for any change in the block or its children). + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +var reducer_withBlockCache = function withBlockCache(reducer) { + return function () { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + var newState = reducer(state, action); + + if (newState === state) { + return state; + } + + newState.cache = state.cache ? state.cache : {}; + /** + * For each clientId provided, traverses up parents, adding the provided clientIds + * and each parent's clientId to the returned array. + * + * When calling this function consider that it uses the old state, so any state + * modifications made by the `reducer` will not be present. + * + * @param {Array} clientIds an Array of block clientIds. + * + * @return {Array} The provided clientIds and all of their parent clientIds. + */ + + var getBlocksWithParentsClientIds = function getBlocksWithParentsClientIds(clientIds) { + return clientIds.reduce(function (result, clientId) { + var current = clientId; + + do { + result.push(current); + current = state.parents[current]; + } while (current && !state.controlledInnerBlocks[current]); + + return result; + }, []); + }; + + switch (action.type) { + case 'RESET_BLOCKS': + newState.cache = Object(external_this_lodash_["mapValues"])(flattenBlocks(action.blocks), function () { + return {}; + }); + break; + + case 'RECEIVE_BLOCKS': + case 'INSERT_BLOCKS': + { + var updatedBlockUids = Object(external_this_lodash_["keys"])(flattenBlocks(action.blocks)); + + if (action.rootClientId && !state.controlledInnerBlocks[action.rootClientId]) { + updatedBlockUids.push(action.rootClientId); + } + + newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(updatedBlockUids))); + break; + } + + case 'UPDATE_BLOCK': + newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds([action.clientId]))); + break; + + case 'UPDATE_BLOCK_ATTRIBUTES': + newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(action.clientIds))); + break; + + case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': + var parentClientIds = fillKeysWithEmptyObject(getBlocksWithParentsClientIds(action.replacedClientIds)); + newState.cache = reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.replacedClientIds), {}, Object(external_this_lodash_["omit"])(parentClientIds, action.replacedClientIds), {}, fillKeysWithEmptyObject(Object(external_this_lodash_["keys"])(flattenBlocks(action.blocks)))); + break; + + case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': + newState.cache = reducer_objectSpread({}, Object(external_this_lodash_["omit"])(newState.cache, action.removedClientIds), {}, fillKeysWithEmptyObject(Object(external_this_lodash_["difference"])(getBlocksWithParentsClientIds(action.clientIds), action.clientIds))); + break; + + case 'MOVE_BLOCK_TO_POSITION': + { + var _updatedBlockUids = [action.clientId]; + + if (action.fromRootClientId) { + _updatedBlockUids.push(action.fromRootClientId); + } + + if (action.toRootClientId) { + _updatedBlockUids.push(action.toRootClientId); + } + + newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids))); + break; + } + + case 'MOVE_BLOCKS_UP': + case 'MOVE_BLOCKS_DOWN': + { + var _updatedBlockUids2 = []; + + if (action.rootClientId) { + _updatedBlockUids2.push(action.rootClientId); + } + + newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids2))); + break; + } + + case 'SAVE_REUSABLE_BLOCK_SUCCESS': + { + var _updatedBlockUids3 = Object(external_this_lodash_["keys"])(Object(external_this_lodash_["omitBy"])(newState.attributes, function (attributes, clientId) { + return newState.byClientId[clientId].name !== 'core/block' || attributes.ref !== action.updatedId; + })); + + newState.cache = reducer_objectSpread({}, newState.cache, {}, fillKeysWithEmptyObject(getBlocksWithParentsClientIds(_updatedBlockUids3))); + } + } + + return newState; + }; +}; +/** + * Higher-order reducer intended to augment the blocks reducer, assigning an + * `isPersistentChange` property value corresponding to whether a change in + * state can be considered as persistent. All changes are considered persistent + * except when updating the same block attribute as in the previous action. + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +function withPersistentBlockChange(reducer) { + var lastAction; + var markNextChangeAsNotPersistent = false; + return function (state, action) { + var nextState = reducer(state, action); + var isExplicitPersistentChange = action.type === 'MARK_LAST_CHANGE_AS_PERSISTENT' || markNextChangeAsNotPersistent; // Defer to previous state value (or default) unless changing or + // explicitly marking as persistent. + + if (state === nextState && !isExplicitPersistentChange) { + markNextChangeAsNotPersistent = action.type === 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT'; + var nextIsPersistentChange = Object(external_this_lodash_["get"])(state, ['isPersistentChange'], true); + + if (state.isPersistentChange === nextIsPersistentChange) { + return state; + } + + return reducer_objectSpread({}, nextState, { + isPersistentChange: nextIsPersistentChange + }); + } + + nextState = reducer_objectSpread({}, nextState, { + isPersistentChange: isExplicitPersistentChange ? !markNextChangeAsNotPersistent : !isUpdatingSameBlockAttribute(action, lastAction) + }); // In comparing against the previous action, consider only those which + // would have qualified as one which would have been ignored or not + // have resulted in a changed state. + + lastAction = action; + markNextChangeAsNotPersistent = action.type === 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT'; + return nextState; + }; +} +/** + * Higher-order reducer intended to augment the blocks reducer, assigning an + * `isIgnoredChange` property value corresponding to whether a change in state + * can be considered as ignored. A change is considered ignored when the result + * of an action not incurred by direct user interaction. + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +function withIgnoredBlockChange(reducer) { + /** + * Set of action types for which a blocks state change should be ignored. + * + * @type {Set} + */ + var IGNORED_ACTION_TYPES = new Set(['RECEIVE_BLOCKS']); + return function (state, action) { + var nextState = reducer(state, action); + + if (nextState !== state) { + nextState.isIgnoredChange = IGNORED_ACTION_TYPES.has(action.type); + } + + return nextState; + }; +} +/** + * Higher-order reducer targeting the combined blocks reducer, augmenting + * block client IDs in remove action to include cascade of inner blocks. + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +var reducer_withInnerBlocksRemoveCascade = function withInnerBlocksRemoveCascade(reducer) { + return function (state, action) { + // Gets all children which need to be removed. + var getAllChildren = function getAllChildren(clientIds) { + var result = clientIds; + + for (var i = 0; i < result.length; i++) { + var _result2; + + if (!state.order[result[i]] || action.keepControlledInnerBlocks && action.keepControlledInnerBlocks[result[i]]) { + continue; + } + + if (result === clientIds) { + result = Object(toConsumableArray["a" /* default */])(result); + } + + (_result2 = result).push.apply(_result2, Object(toConsumableArray["a" /* default */])(state.order[result[i]])); + } + + return result; + }; + + if (state) { + switch (action.type) { + case 'REMOVE_BLOCKS': + action = reducer_objectSpread({}, action, { + type: 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN', + removedClientIds: getAllChildren(action.clientIds) + }); + break; + + case 'REPLACE_BLOCKS': + action = reducer_objectSpread({}, action, { + type: 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN', + replacedClientIds: getAllChildren(action.clientIds) + }); + break; + } + } + + return reducer(state, action); + }; +}; +/** + * Higher-order reducer which targets the combined blocks reducer and handles + * the `RESET_BLOCKS` action. When dispatched, this action will replace all + * blocks that exist in the post, leaving blocks that exist only in state (e.g. + * reusable blocks and blocks controlled by inner blocks controllers) alone. + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +var reducer_withBlockReset = function withBlockReset(reducer) { + return function (state, action) { + if (state && action.type === 'RESET_BLOCKS') { + /** + * A list of client IDs associated with the top level entity (like a + * post or template). It excludes the client IDs of blocks associated + * with other entities, like inner block controllers or reusable blocks. + */ + var visibleClientIds = getNestedBlockClientIds(state.order, '', state.controlledInnerBlocks); // pickBy returns only the truthy values from controlledInnerBlocks + + var controlledInnerBlocks = Object.keys(Object(external_this_lodash_["pickBy"])(state.controlledInnerBlocks)); + /** + * Each update operation consists of a few parts: + * 1. First, the client IDs associated with the top level entity are + * removed from the existing state key, leaving in place controlled + * blocks (like reusable blocks and inner block controllers). + * 2. Second, the blocks from the reset action are used to calculate the + * individual state keys. This will re-populate the clientIDs which + * were removed in step 1. + * 3. In some cases, we remove the recalculated inner block controllers, + * letting their old values persist. We need to do this because the + * reset block action from a top-level entity is not aware of any + * inner blocks inside InnerBlock controllers. So if the new values + * were used, it would not take into account the existing InnerBlocks + * which already exist in the state for inner block controllers. For + * example, `attributes` uses the newly computed value for controllers + * since attributes are stored in the top-level entity. But `order` + * uses the previous value for the controllers since the new value + * does not include the order of controlled inner blocks. So if the + * new value was used, template parts would disappear from the editor + * whenever you try to undo a change in the top level entity. + */ + + return reducer_objectSpread({}, state, { + byClientId: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.byClientId, visibleClientIds), {}, getFlattenedBlocksWithoutAttributes(action.blocks)), + attributes: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.attributes, visibleClientIds), {}, getFlattenedBlockAttributes(action.blocks)), + order: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.order, visibleClientIds), {}, Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), controlledInnerBlocks)), + parents: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.parents, visibleClientIds), {}, mapBlockParents(action.blocks)), + cache: reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state.cache, visibleClientIds), {}, Object(external_this_lodash_["omit"])(Object(external_this_lodash_["mapValues"])(flattenBlocks(action.blocks), function () { + return {}; + }), controlledInnerBlocks)) + }); + } + + return reducer(state, action); + }; +}; +/** + * Higher-order reducer which targets the combined blocks reducer and handles + * the `REPLACE_INNER_BLOCKS` action. When dispatched, this action the state + * should become equivalent to the execution of a `REMOVE_BLOCKS` action + * containing all the child's of the root block followed by the execution of + * `INSERT_BLOCKS` with the new blocks. + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +var reducer_withReplaceInnerBlocks = function withReplaceInnerBlocks(reducer) { + return function (state, action) { + if (action.type !== 'REPLACE_INNER_BLOCKS') { + return reducer(state, action); + } // Finds every nested inner block controller. We must check the action blocks + // and not just the block parent state because some inner block controllers + // should be deleted if specified, whereas others should not be deleted. If + // a controlled should not be deleted, then we need to avoid deleting its + // inner blocks from the block state because its inner blocks will not be + // attached to the block in the action. + + + var nestedControllers = {}; + + if (Object.keys(state.controlledInnerBlocks).length) { + var stack = Object(toConsumableArray["a" /* default */])(action.blocks); + + while (stack.length) { + var _stack$shift2 = stack.shift(), + innerBlocks = _stack$shift2.innerBlocks, + block = Object(objectWithoutProperties["a" /* default */])(_stack$shift2, ["innerBlocks"]); + + stack.push.apply(stack, Object(toConsumableArray["a" /* default */])(innerBlocks)); + + if (!!state.controlledInnerBlocks[block.clientId]) { + nestedControllers[block.clientId] = true; + } + } + } // The `keepControlledInnerBlocks` prop will keep the inner blocks of the + // marked block in the block state so that they can be reattached to the + // marked block when we re-insert everything a few lines below. + + + var stateAfterBlocksRemoval = state; + + if (state.order[action.rootClientId]) { + stateAfterBlocksRemoval = reducer(stateAfterBlocksRemoval, { + type: 'REMOVE_BLOCKS', + keepControlledInnerBlocks: nestedControllers, + clientIds: state.order[action.rootClientId] + }); + } + + var stateAfterInsert = stateAfterBlocksRemoval; + + if (action.blocks.length) { + stateAfterInsert = reducer(stateAfterInsert, reducer_objectSpread({}, action, { + type: 'INSERT_BLOCKS', + index: 0 + })); // We need to re-attach the block order of the controlled inner blocks. + // Otherwise, an inner block controller's blocks will be deleted entirely + // from its entity.. + + stateAfterInsert.order = reducer_objectSpread({}, stateAfterInsert.order, {}, Object(external_this_lodash_["reduce"])(nestedControllers, function (result, value, key) { + if (state.order[key]) { + result[key] = state.order[key]; + } + + return result; + }, {})); + } + + return stateAfterInsert; + }; +}; +/** + * Higher-order reducer which targets the combined blocks reducer and handles + * the `SAVE_REUSABLE_BLOCK_SUCCESS` action. This action can't be handled by + * regular reducers and needs a higher-order reducer since it needs access to + * both `byClientId` and `attributes` simultaneously. + * + * @param {Function} reducer Original reducer function. + * + * @return {Function} Enhanced reducer function. + */ + + +var reducer_withSaveReusableBlock = function withSaveReusableBlock(reducer) { + return function (state, action) { + if (state && action.type === 'SAVE_REUSABLE_BLOCK_SUCCESS') { + var id = action.id, + updatedId = action.updatedId; // If a temporary reusable block is saved, we swap the temporary id with the final one + + if (id === updatedId) { + return state; + } + + state = reducer_objectSpread({}, state); + state.attributes = Object(external_this_lodash_["mapValues"])(state.attributes, function (attributes, clientId) { + var name = state.byClientId[clientId].name; + + if (name === 'core/block' && attributes.ref === id) { + return reducer_objectSpread({}, attributes, { + ref: updatedId + }); + } + + return attributes; + }); + } + + return reducer(state, action); + }; +}; +/** + * Reducer returning the blocks state. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + + +var reducer_blocks = Object(external_this_lodash_["flow"])(external_this_wp_data_["combineReducers"], reducer_withSaveReusableBlock, // needs to be before withBlockCache +reducer_withBlockCache, // needs to be before withInnerBlocksRemoveCascade +reducer_withInnerBlocksRemoveCascade, reducer_withReplaceInnerBlocks, // needs to be after withInnerBlocksRemoveCascade +reducer_withBlockReset, withPersistentBlockChange, withIgnoredBlockChange)({ + byClientId: function byClientId() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'RESET_BLOCKS': + return getFlattenedBlocksWithoutAttributes(action.blocks); + + case 'RECEIVE_BLOCKS': + case 'INSERT_BLOCKS': + return reducer_objectSpread({}, state, {}, getFlattenedBlocksWithoutAttributes(action.blocks)); + + case 'UPDATE_BLOCK': + // Ignore updates if block isn't known + if (!state[action.clientId]) { + return state; + } // Do nothing if only attributes change. + + + var changes = Object(external_this_lodash_["omit"])(action.updates, 'attributes'); + + if (Object(external_this_lodash_["isEmpty"])(changes)) { + return state; + } + + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread({}, state[action.clientId], {}, changes))); + + case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': + if (!action.blocks) { + return state; + } + + return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, getFlattenedBlocksWithoutAttributes(action.blocks)); + + case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': + return Object(external_this_lodash_["omit"])(state, action.removedClientIds); + } + + return state; + }, + attributes: function attributes() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'RESET_BLOCKS': + return getFlattenedBlockAttributes(action.blocks); + + case 'RECEIVE_BLOCKS': + case 'INSERT_BLOCKS': + return reducer_objectSpread({}, state, {}, getFlattenedBlockAttributes(action.blocks)); + + case 'UPDATE_BLOCK': + // Ignore updates if block isn't known or there are no attribute changes. + if (!state[action.clientId] || !action.updates.attributes) { + return state; + } + + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, reducer_objectSpread({}, state[action.clientId], {}, action.updates.attributes))); + + case 'UPDATE_BLOCK_ATTRIBUTES': + { + // Avoid a state change if none of the block IDs are known. + if (action.clientIds.every(function (id) { + return !state[id]; + })) { + return state; + } + + var next = action.clientIds.reduce(function (accumulator, id) { + return reducer_objectSpread({}, accumulator, Object(defineProperty["a" /* default */])({}, id, Object(external_this_lodash_["reduce"])(action.attributes, function (result, value, key) { + // Consider as updates only changed values. + if (value !== result[key]) { + result = getMutateSafeObject(state[id], result); + result[key] = value; + } + + return result; + }, state[id]))); + }, {}); + + if (action.clientIds.every(function (id) { + return next[id] === state[id]; + })) { + return state; + } + + return reducer_objectSpread({}, state, {}, next); + } + + case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': + if (!action.blocks) { + return state; + } + + return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, getFlattenedBlockAttributes(action.blocks)); + + case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': + return Object(external_this_lodash_["omit"])(state, action.removedClientIds); + } + + return state; + }, + order: function order() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'RESET_BLOCKS': + return mapBlockOrder(action.blocks); + + case 'RECEIVE_BLOCKS': + return reducer_objectSpread({}, state, {}, Object(external_this_lodash_["omit"])(mapBlockOrder(action.blocks), '')); + + case 'INSERT_BLOCKS': + { + var _action$rootClientId = action.rootClientId, + rootClientId = _action$rootClientId === void 0 ? '' : _action$rootClientId; + var subState = state[rootClientId] || []; + var mappedBlocks = mapBlockOrder(action.blocks, rootClientId); + var _action$index = action.index, + index = _action$index === void 0 ? subState.length : _action$index; + return reducer_objectSpread({}, state, {}, mappedBlocks, Object(defineProperty["a" /* default */])({}, rootClientId, insertAt(subState, mappedBlocks[rootClientId], index))); + } + + case 'MOVE_BLOCK_TO_POSITION': + { + var _objectSpread7; + + var _action$fromRootClien = action.fromRootClientId, + fromRootClientId = _action$fromRootClien === void 0 ? '' : _action$fromRootClien, + _action$toRootClientI = action.toRootClientId, + toRootClientId = _action$toRootClientI === void 0 ? '' : _action$toRootClientI, + clientId = action.clientId; + + var _action$index2 = action.index, + _index = _action$index2 === void 0 ? state[toRootClientId].length : _action$index2; // Moving inside the same parent block + + + if (fromRootClientId === toRootClientId) { + var _subState = state[toRootClientId]; + + var fromIndex = _subState.indexOf(clientId); + + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, toRootClientId, moveTo(state[toRootClientId], fromIndex, _index))); + } // Moving from a parent block to another + + + return reducer_objectSpread({}, state, (_objectSpread7 = {}, Object(defineProperty["a" /* default */])(_objectSpread7, fromRootClientId, Object(external_this_lodash_["without"])(state[fromRootClientId], clientId)), Object(defineProperty["a" /* default */])(_objectSpread7, toRootClientId, insertAt(state[toRootClientId], clientId, _index)), _objectSpread7)); + } + + case 'MOVE_BLOCKS_UP': + { + var clientIds = action.clientIds, + _action$rootClientId2 = action.rootClientId, + _rootClientId = _action$rootClientId2 === void 0 ? '' : _action$rootClientId2; + + var firstClientId = Object(external_this_lodash_["first"])(clientIds); + var _subState2 = state[_rootClientId]; + + if (!_subState2.length || firstClientId === Object(external_this_lodash_["first"])(_subState2)) { + return state; + } + + var firstIndex = _subState2.indexOf(firstClientId); + + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, _rootClientId, moveTo(_subState2, firstIndex, firstIndex - 1, clientIds.length))); + } + + case 'MOVE_BLOCKS_DOWN': + { + var _clientIds = action.clientIds, + _action$rootClientId3 = action.rootClientId, + _rootClientId2 = _action$rootClientId3 === void 0 ? '' : _action$rootClientId3; + + var _firstClientId = Object(external_this_lodash_["first"])(_clientIds); + + var lastClientId = Object(external_this_lodash_["last"])(_clientIds); + var _subState3 = state[_rootClientId2]; + + if (!_subState3.length || lastClientId === Object(external_this_lodash_["last"])(_subState3)) { + return state; + } + + var _firstIndex = _subState3.indexOf(_firstClientId); + + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, _rootClientId2, moveTo(_subState3, _firstIndex, _firstIndex + 1, _clientIds.length))); + } + + case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': + { + var _clientIds2 = action.clientIds; + + if (!action.blocks) { + return state; + } + + var _mappedBlocks = mapBlockOrder(action.blocks); + + return Object(external_this_lodash_["flow"])([function (nextState) { + return Object(external_this_lodash_["omit"])(nextState, action.replacedClientIds); + }, function (nextState) { + return reducer_objectSpread({}, nextState, {}, Object(external_this_lodash_["omit"])(_mappedBlocks, '')); + }, function (nextState) { + return Object(external_this_lodash_["mapValues"])(nextState, function (subState) { + return Object(external_this_lodash_["reduce"])(subState, function (result, clientId) { + if (clientId === _clientIds2[0]) { + return [].concat(Object(toConsumableArray["a" /* default */])(result), Object(toConsumableArray["a" /* default */])(_mappedBlocks[''])); + } + + if (_clientIds2.indexOf(clientId) === -1) { + result.push(clientId); + } + + return result; + }, []); + }); + }])(state); + } + + case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': + return Object(external_this_lodash_["flow"])([// Remove inner block ordering for removed blocks + function (nextState) { + return Object(external_this_lodash_["omit"])(nextState, action.removedClientIds); + }, // Remove deleted blocks from other blocks' orderings + function (nextState) { + return Object(external_this_lodash_["mapValues"])(nextState, function (subState) { + return external_this_lodash_["without"].apply(void 0, [subState].concat(Object(toConsumableArray["a" /* default */])(action.removedClientIds))); + }); + }])(state); + } + + return state; + }, + // While technically redundant data as the inverse of `order`, it serves as + // an optimization for the selectors which derive the ancestry of a block. + parents: function parents() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'RESET_BLOCKS': + return mapBlockParents(action.blocks); + + case 'RECEIVE_BLOCKS': + return reducer_objectSpread({}, state, {}, mapBlockParents(action.blocks)); + + case 'INSERT_BLOCKS': + return reducer_objectSpread({}, state, {}, mapBlockParents(action.blocks, action.rootClientId || '')); + + case 'MOVE_BLOCK_TO_POSITION': + { + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, action.clientId, action.toRootClientId || '')); + } + + case 'REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN': + return reducer_objectSpread({}, Object(external_this_lodash_["omit"])(state, action.replacedClientIds), {}, mapBlockParents(action.blocks, state[action.clientIds[0]])); + + case 'REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN': + return Object(external_this_lodash_["omit"])(state, action.removedClientIds); + } + + return state; + }, + controlledInnerBlocks: function controlledInnerBlocks() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var _ref = arguments.length > 1 ? arguments[1] : undefined, + type = _ref.type, + clientId = _ref.clientId, + hasControlledInnerBlocks = _ref.hasControlledInnerBlocks; + + if (type === 'SET_HAS_CONTROLLED_INNER_BLOCKS') { + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, hasControlledInnerBlocks)); + } + + return state; + } +}); +/** + * Reducer returning typing state. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {boolean} Updated state. + */ + +function reducer_isTyping() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'START_TYPING': + return true; + + case 'STOP_TYPING': + return false; + } + + return state; +} +/** + * Reducer returning dragging state. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {boolean} Updated state. + */ + +function isDraggingBlocks() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'START_DRAGGING_BLOCKS': + return true; + + case 'STOP_DRAGGING_BLOCKS': + return false; + } + + return state; +} +/** + * Reducer returning whether the caret is within formatted text. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {boolean} Updated state. + */ + +function reducer_isCaretWithinFormattedText() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'ENTER_FORMATTED_TEXT': + return true; + + case 'EXIT_FORMATTED_TEXT': + return false; + } + + return state; +} +/** + * Internal helper reducer for selectionStart and selectionEnd. Can hold a block + * selection, represented by an object with property clientId. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +function reducer_selection() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'CLEAR_SELECTED_BLOCK': + { + if (state.clientId) { + return {}; + } + + return state; + } + + case 'SELECT_BLOCK': + if (action.clientId === state.clientId) { + return state; + } + + return { + clientId: action.clientId + }; + + case 'REPLACE_INNER_BLOCKS': // REPLACE_INNER_BLOCKS and INSERT_BLOCKS should follow the same logic. + + case 'INSERT_BLOCKS': + { + // REPLACE_INNER_BLOCKS can be called with an empty array. + if (!action.updateSelection || !action.blocks.length) { + return state; + } + + return { + clientId: action.blocks[0].clientId + }; + } + + case 'REMOVE_BLOCKS': + if (!action.clientIds || !action.clientIds.length || action.clientIds.indexOf(state.clientId) === -1) { + return state; + } + + return {}; + + case 'REPLACE_BLOCKS': + { + if (action.clientIds.indexOf(state.clientId) === -1) { + return state; + } + + var indexToSelect = action.indexToSelect || action.blocks.length - 1; + var blockToSelect = action.blocks[indexToSelect]; + + if (!blockToSelect) { + return {}; + } + + if (blockToSelect.clientId === state.clientId) { + return state; + } + + var newState = { + clientId: blockToSelect.clientId + }; + + if (typeof action.initialPosition === 'number') { + newState.initialPosition = action.initialPosition; + } + + return newState; + } + } + + return state; +} +/** + * Reducer returning the block selection's start. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + + +function reducer_selectionStart() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'SELECTION_CHANGE': + return { + clientId: action.clientId, + attributeKey: action.attributeKey, + offset: action.startOffset + }; + + case 'RESET_SELECTION': + return action.selectionStart; + + case 'MULTI_SELECT': + return { + clientId: action.start + }; + } + + return reducer_selection(state, action); +} +/** + * Reducer returning the block selection's end. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +function reducer_selectionEnd() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'SELECTION_CHANGE': + return { + clientId: action.clientId, + attributeKey: action.attributeKey, + offset: action.endOffset + }; + + case 'RESET_SELECTION': + return action.selectionEnd; + + case 'MULTI_SELECT': + return { + clientId: action.end + }; + } + + return reducer_selection(state, action); +} +/** + * Reducer returning whether the user is multi-selecting. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {boolean} Updated state. + */ + +function reducer_isMultiSelecting() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'START_MULTI_SELECT': + return true; + + case 'STOP_MULTI_SELECT': + return false; + } + + return state; +} +/** + * Reducer returning whether selection is enabled. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {boolean} Updated state. + */ + +function reducer_isSelectionEnabled() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'TOGGLE_SELECTION': + return action.isSelectionEnabled; + } + + return state; +} +/** + * Reducer returning the intial block selection. + * + * Currently this in only used to restore the selection after block deletion and + * pasting new content.This reducer should eventually be removed in favour of setting + * selection directly. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {?number} Initial position: -1 or undefined. + */ + +function reducer_initialPosition(state, action) { + if (action.type === 'REPLACE_BLOCKS' && typeof action.initialPosition === 'number') { + return action.initialPosition; + } else if (action.type === 'SELECT_BLOCK') { + return action.initialPosition; + } else if (action.type === 'REMOVE_BLOCKS') { + return state; + } else if (action.type === 'START_TYPING') { + return state; + } // Reset the state by default (for any action not handled). + +} +function blocksMode() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + if (action.type === 'TOGGLE_BLOCK_MODE') { + var clientId = action.clientId; + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, state[clientId] && state[clientId] === 'html' ? 'visual' : 'html')); + } + + return state; +} +/** + * Reducer returning the block insertion point visibility, either null if there + * is not an explicit insertion point assigned, or an object of its `index` and + * `rootClientId`. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +function insertionPoint() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'SHOW_INSERTION_POINT': + var rootClientId = action.rootClientId, + index = action.index; + return { + rootClientId: rootClientId, + index: index + }; + + case 'HIDE_INSERTION_POINT': + return null; + } + + return state; +} +/** + * Reducer returning whether the post blocks match the defined template or not. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {boolean} Updated state. + */ + +function reducer_template() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + isValid: true + }; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'SET_TEMPLATE_VALIDITY': + return reducer_objectSpread({}, state, { + isValid: action.isValid + }); + } + + return state; +} +/** + * Reducer returning the editor setting. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +function reducer_settings() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SETTINGS_DEFAULTS; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'UPDATE_SETTINGS': + return reducer_objectSpread({}, state, {}, action.settings); + } + + return state; +} +/** + * Reducer returning the user preferences. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {string} Updated state. + */ + +function preferences() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PREFERENCES_DEFAULTS; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'INSERT_BLOCKS': + case 'REPLACE_BLOCKS': + return action.blocks.reduce(function (prevState, block) { + var id = block.name; + var insert = { + name: block.name + }; + + if (Object(external_this_wp_blocks_["isReusableBlock"])(block)) { + insert.ref = block.attributes.ref; + id += '/' + block.attributes.ref; + } + + return reducer_objectSpread({}, prevState, { + insertUsage: reducer_objectSpread({}, prevState.insertUsage, Object(defineProperty["a" /* default */])({}, id, { + time: action.time, + count: prevState.insertUsage[id] ? prevState.insertUsage[id].count + 1 : 1, + insert: insert + })) + }); + }, state); + } + + return state; +} +/** + * Reducer returning an object where each key is a block client ID, its value + * representing the settings for its nested blocks. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +var reducer_blockListSettings = function blockListSettings() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + // Even if the replaced blocks have the same client ID, our logic + // should correct the state. + case 'REPLACE_BLOCKS': + case 'REMOVE_BLOCKS': + { + return Object(external_this_lodash_["omit"])(state, action.clientIds); + } + + case 'UPDATE_BLOCK_LIST_SETTINGS': + { + var clientId = action.clientId; + + if (!action.settings) { + if (state.hasOwnProperty(clientId)) { + return Object(external_this_lodash_["omit"])(state, clientId); + } + + return state; + } + + if (Object(external_this_lodash_["isEqual"])(state[clientId], action.settings)) { + return state; + } + + return reducer_objectSpread({}, state, Object(defineProperty["a" /* default */])({}, clientId, action.settings)); + } + } + + return state; +}; +/** + * Reducer returning whether the navigation mode is enabled or not. + * + * @param {string} state Current state. + * @param {Object} action Dispatched action. + * + * @return {string} Updated state. + */ + +function reducer_isNavigationMode() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + // Let inserting block always trigger Edit mode. + if (action.type === 'INSERT_BLOCKS') { + return false; + } + + if (action.type === 'SET_NAVIGATION_MODE') { + return action.isNavigationMode; + } + + return state; +} +/** + * Reducer return an updated state representing the most recent block attribute + * update. The state is structured as an object where the keys represent the + * client IDs of blocks, the values a subset of attributes from the most recent + * block update. The state is always reset to null if the last action is + * anything other than an attributes update. + * + * @param {Object} state Current state. + * @param {Object} action Action object. + * + * @return {[string,Object]} Updated state. + */ + +function lastBlockAttributesChange(state, action) { + switch (action.type) { + case 'UPDATE_BLOCK': + if (!action.updates.attributes) { + break; + } + + return Object(defineProperty["a" /* default */])({}, action.clientId, action.updates.attributes); + + case 'UPDATE_BLOCK_ATTRIBUTES': + return action.clientIds.reduce(function (accumulator, id) { + return reducer_objectSpread({}, accumulator, Object(defineProperty["a" /* default */])({}, id, action.attributes)); + }, {}); + } + + return null; +} +/** + * Reducer returning automatic change state. + * + * @param {boolean} state Current state. + * @param {Object} action Dispatched action. + * + * @return {string} Updated state. + */ + +function automaticChangeStatus(state, action) { + switch (action.type) { + case 'MARK_AUTOMATIC_CHANGE': + return 'pending'; + + case 'MARK_AUTOMATIC_CHANGE_FINAL': + if (state === 'pending') { + return 'final'; + } + + return; + + case 'SELECTION_CHANGE': + // As long as the state is not final, ignore any selection changes. + if (state !== 'final') { + return state; + } + + return; + // Undoing an automatic change should still be possible after mouse + // move. + + case 'STOP_TYPING': + return state; + } // Reset the state by default (for any action not handled). + +} +/** + * Reducer returning current highlighted block. + * + * @param {boolean} state Current highlighted block. + * @param {Object} action Dispatched action. + * + * @return {string} Updated state. + */ + +function highlightedBlock(state, action) { + var clientId = action.clientId, + isHighlighted = action.isHighlighted; + + if (action.type === 'TOGGLE_BLOCK_HIGHLIGHT') { + if (isHighlighted) { + return clientId; + } else if (state === clientId) { + return null; + } + } + + return state; +} +/* harmony default export */ var store_reducer = (Object(external_this_wp_data_["combineReducers"])({ + blocks: reducer_blocks, + isTyping: reducer_isTyping, + isDraggingBlocks: isDraggingBlocks, + isCaretWithinFormattedText: reducer_isCaretWithinFormattedText, + selectionStart: reducer_selectionStart, + selectionEnd: reducer_selectionEnd, + isMultiSelecting: reducer_isMultiSelecting, + isSelectionEnabled: reducer_isSelectionEnabled, + initialPosition: reducer_initialPosition, + blocksMode: blocksMode, + blockListSettings: reducer_blockListSettings, + insertionPoint: insertionPoint, + template: reducer_template, + settings: reducer_settings, + preferences: preferences, + lastBlockAttributesChange: lastBlockAttributesChange, + isNavigationMode: reducer_isNavigationMode, + automaticChangeStatus: automaticChangeStatus, + highlightedBlock: highlightedBlock +})); + +// EXTERNAL MODULE: ./node_modules/refx/refx.js +var refx = __webpack_require__(103); +var refx_default = /*#__PURE__*/__webpack_require__.n(refx); + +// EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js +var redux_multi_lib = __webpack_require__(254); +var redux_multi_lib_default = /*#__PURE__*/__webpack_require__.n(redux_multi_lib); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(40); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/controls.js + + +/** + * WordPress dependencies + */ + +/** + * Calls a selector using the current state. + * + * @param {string} storeName Store name. + * @param {string} selectorName Selector name. + * @param {Array} args Selector arguments. + * + * @return {Object} control descriptor. + */ + +function controls_select(storeName, selectorName) { + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + return { + type: 'SELECT', + storeName: storeName, + selectorName: selectorName, + args: args + }; +} +var controls_controls = { + SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { + return function (_ref) { + var _registry$select; + + var storeName = _ref.storeName, + selectorName = _ref.selectorName, + args = _ref.args; + return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); + }; + }), + SLEEP: function SLEEP(_ref2) { + var duration = _ref2.duration; + return new Promise(function (resolve) { + setTimeout(resolve, duration); + }); + } +}; +/* harmony default export */ var store_controls = (controls_controls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/actions.js + + + +function actions_createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = actions_unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function actions_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return actions_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return actions_arrayLikeToArray(o, minLen); } + +function actions_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +function actions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { actions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { actions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _marked = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(ensureDefaultBlock), + _marked2 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(selectPreviousBlock), + _marked3 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(selectNextBlock), + _marked4 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_replaceBlocks), + _marked5 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_moveBlockToPosition), + _marked6 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_insertBlocks), + _marked7 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_removeBlocks), + _marked8 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_setNavigationMode), + _marked9 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_duplicateBlocks), + _marked10 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_insertBeforeBlock), + _marked11 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_insertAfterBlock), + _marked12 = /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(actions_flashBlock); + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Generator which will yield a default block insert action if there + * are no other blocks at the root of the editor. This generator should be used + * in actions which may result in no blocks remaining in the editor (removal, + * replacement, etc). + */ + +function ensureDefaultBlock() { + var count; + return external_this_regeneratorRuntime_default.a.wrap(function ensureDefaultBlock$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return controls_select('core/block-editor', 'getBlockCount'); + + case 2: + count = _context.sent; + + if (!(count === 0)) { + _context.next = 7; + break; + } + + _context.next = 6; + return actions_insertDefaultBlock(); + + case 6: + return _context.abrupt("return", _context.sent); + + case 7: + case "end": + return _context.stop(); + } + } + }, _marked); +} +/** + * Returns an action object used in signalling that blocks state should be + * reset to the specified array of blocks, taking precedence over any other + * content reflected as an edit in state. + * + * @param {Array} blocks Array of blocks. + * + * @return {Object} Action object. + */ + + +function actions_resetBlocks(blocks) { + return { + type: 'RESET_BLOCKS', + blocks: blocks + }; +} +/** + * A block selection object. + * + * @typedef {Object} WPBlockSelection + * + * @property {string} clientId A block client ID. + * @property {string} attributeKey A block attribute key. + * @property {number} offset An attribute value offset, based on the rich + * text value. See `wp.richText.create`. + */ + +/** + * Returns an action object used in signalling that selection state should be + * reset to the specified selection. + * + * @param {WPBlockSelection} selectionStart The selection start. + * @param {WPBlockSelection} selectionEnd The selection end. + * + * @return {Object} Action object. + */ + +function actions_resetSelection(selectionStart, selectionEnd) { + return { + type: 'RESET_SELECTION', + selectionStart: selectionStart, + selectionEnd: selectionEnd + }; +} +/** + * Returns an action object used in signalling that blocks have been received. + * Unlike resetBlocks, these should be appended to the existing known set, not + * replacing. + * + * @param {Object[]} blocks Array of block objects. + * + * @return {Object} Action object. + */ + +function receiveBlocks(blocks) { + return { + type: 'RECEIVE_BLOCKS', + blocks: blocks + }; +} +/** + * Returns an action object used in signalling that the multiple blocks' + * attributes with the specified client IDs have been updated. + * + * @param {string|string[]} clientIds Block client IDs. + * @param {Object} attributes Block attributes to be merged. + * + * @return {Object} Action object. + */ + +function actions_updateBlockAttributes(clientIds, attributes) { + return { + type: 'UPDATE_BLOCK_ATTRIBUTES', + clientIds: Object(external_this_lodash_["castArray"])(clientIds), + attributes: attributes + }; +} +/** + * Returns an action object used in signalling that the block with the + * specified client ID has been updated. + * + * @param {string} clientId Block client ID. + * @param {Object} updates Block attributes to be merged. + * + * @return {Object} Action object. + */ + +function actions_updateBlock(clientId, updates) { + return { + type: 'UPDATE_BLOCK', + clientId: clientId, + updates: updates + }; +} +/** + * Returns an action object used in signalling that the block with the + * specified client ID has been selected, optionally accepting a position + * value reflecting its selection directionality. An initialPosition of -1 + * reflects a reverse selection. + * + * @param {string} clientId Block client ID. + * @param {?number} initialPosition Optional initial position. Pass as -1 to + * reflect reverse selection. + * + * @return {Object} Action object. + */ + +function actions_selectBlock(clientId) { + var initialPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + return { + type: 'SELECT_BLOCK', + initialPosition: initialPosition, + clientId: clientId + }; +} +/** + * Yields action objects used in signalling that the block preceding the given + * clientId should be selected. + * + * @param {string} clientId Block client ID. + */ + +function selectPreviousBlock(clientId) { + var previousBlockClientId; + return external_this_regeneratorRuntime_default.a.wrap(function selectPreviousBlock$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return controls_select('core/block-editor', 'getPreviousBlockClientId', clientId); + + case 2: + previousBlockClientId = _context2.sent; + + if (!previousBlockClientId) { + _context2.next = 7; + break; + } + + _context2.next = 6; + return actions_selectBlock(previousBlockClientId, -1); + + case 6: + return _context2.abrupt("return", [previousBlockClientId]); + + case 7: + case "end": + return _context2.stop(); + } + } + }, _marked2); +} +/** + * Yields action objects used in signalling that the block following the given + * clientId should be selected. + * + * @param {string} clientId Block client ID. + */ + +function selectNextBlock(clientId) { + var nextBlockClientId; + return external_this_regeneratorRuntime_default.a.wrap(function selectNextBlock$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return controls_select('core/block-editor', 'getNextBlockClientId', clientId); + + case 2: + nextBlockClientId = _context3.sent; + + if (!nextBlockClientId) { + _context3.next = 7; + break; + } + + _context3.next = 6; + return actions_selectBlock(nextBlockClientId); + + case 6: + return _context3.abrupt("return", [nextBlockClientId]); + + case 7: + case "end": + return _context3.stop(); + } + } + }, _marked3); +} +/** + * Returns an action object used in signalling that a block multi-selection has started. + * + * @return {Object} Action object. + */ + +function actions_startMultiSelect() { + return { + type: 'START_MULTI_SELECT' + }; +} +/** + * Returns an action object used in signalling that block multi-selection stopped. + * + * @return {Object} Action object. + */ + +function actions_stopMultiSelect() { + return { + type: 'STOP_MULTI_SELECT' + }; +} +/** + * Returns an action object used in signalling that block multi-selection changed. + * + * @param {string} start First block of the multi selection. + * @param {string} end Last block of the multiselection. + * + * @return {Object} Action object. + */ + +function actions_multiSelect(start, end) { + return { + type: 'MULTI_SELECT', + start: start, + end: end + }; +} +/** + * Returns an action object used in signalling that the block selection is cleared. + * + * @return {Object} Action object. + */ + +function actions_clearSelectedBlock() { + return { + type: 'CLEAR_SELECTED_BLOCK' + }; +} +/** + * Returns an action object that enables or disables block selection. + * + * @param {boolean} [isSelectionEnabled=true] Whether block selection should + * be enabled. + * + * @return {Object} Action object. + */ + +function actions_toggleSelection() { + var isSelectionEnabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + return { + type: 'TOGGLE_SELECTION', + isSelectionEnabled: isSelectionEnabled + }; +} + +function getBlocksWithDefaultStylesApplied(blocks, blockEditorSettings) { + var preferredStyleVariations = Object(external_this_lodash_["get"])(blockEditorSettings, ['__experimentalPreferredStyleVariations', 'value'], {}); + return blocks.map(function (block) { + var blockName = block.name; + + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'defaultStylePicker', true)) { + return block; + } + + if (!preferredStyleVariations[blockName]) { + return block; + } + + var className = Object(external_this_lodash_["get"])(block, ['attributes', 'className']); + + if (Object(external_this_lodash_["includes"])(className, 'is-style-')) { + return block; + } + + var _block$attributes = block.attributes, + attributes = _block$attributes === void 0 ? {} : _block$attributes; + var blockStyle = preferredStyleVariations[blockName]; + return actions_objectSpread({}, block, { + attributes: actions_objectSpread({}, attributes, { + className: "".concat(className || '', " is-style-").concat(blockStyle).trim() + }) + }); + }); +} +/** + * Returns an action object signalling that a blocks should be replaced with + * one or more replacement blocks. + * + * @param {(string|string[])} clientIds Block client ID(s) to replace. + * @param {(Object|Object[])} blocks Replacement block(s). + * @param {number} indexToSelect Index of replacement block to select. + * @param {number} initialPosition Index of caret after in the selected block after the operation. + * + * @yield {Object} Action object. + */ + + +function actions_replaceBlocks(clientIds, blocks, indexToSelect, initialPosition) { + var rootClientId, index, block, canInsertBlock; + return external_this_regeneratorRuntime_default.a.wrap(function replaceBlocks$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + clientIds = Object(external_this_lodash_["castArray"])(clientIds); + _context4.t0 = getBlocksWithDefaultStylesApplied; + _context4.t1 = Object(external_this_lodash_["castArray"])(blocks); + _context4.next = 5; + return controls_select('core/block-editor', 'getSettings'); + + case 5: + _context4.t2 = _context4.sent; + blocks = (0, _context4.t0)(_context4.t1, _context4.t2); + _context4.next = 9; + return controls_select('core/block-editor', 'getBlockRootClientId', Object(external_this_lodash_["first"])(clientIds)); + + case 9: + rootClientId = _context4.sent; + index = 0; + + case 11: + if (!(index < blocks.length)) { + _context4.next = 21; + break; + } + + block = blocks[index]; + _context4.next = 15; + return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); + + case 15: + canInsertBlock = _context4.sent; + + if (canInsertBlock) { + _context4.next = 18; + break; + } + + return _context4.abrupt("return"); + + case 18: + index++; + _context4.next = 11; + break; + + case 21: + _context4.next = 23; + return { + type: 'REPLACE_BLOCKS', + clientIds: clientIds, + blocks: blocks, + time: Date.now(), + indexToSelect: indexToSelect, + initialPosition: initialPosition + }; + + case 23: + return _context4.delegateYield(ensureDefaultBlock(), "t3", 24); + + case 24: + case "end": + return _context4.stop(); + } + } + }, _marked4); +} +/** + * Returns an action object signalling that a single block should be replaced + * with one or more replacement blocks. + * + * @param {(string|string[])} clientId Block client ID to replace. + * @param {(Object|Object[])} block Replacement block(s). + * + * @return {Object} Action object. + */ + +function replaceBlock(clientId, block) { + return actions_replaceBlocks(clientId, block); +} +/** + * Higher-order action creator which, given the action type to dispatch creates + * an action creator for managing block movement. + * + * @param {string} type Action type to dispatch. + * + * @return {Function} Action creator. + */ + +function createOnMove(type) { + return function (clientIds, rootClientId) { + return { + clientIds: Object(external_this_lodash_["castArray"])(clientIds), + type: type, + rootClientId: rootClientId + }; + }; +} + +var actions_moveBlocksDown = createOnMove('MOVE_BLOCKS_DOWN'); +var actions_moveBlocksUp = createOnMove('MOVE_BLOCKS_UP'); +/** + * Returns an action object signalling that an indexed block should be moved + * to a new index. + * + * @param {?string} clientId The client ID of the block. + * @param {?string} fromRootClientId Root client ID source. + * @param {?string} toRootClientId Root client ID destination. + * @param {number} index The index to move the block into. + * + * @yield {Object} Action object. + */ + +function actions_moveBlockToPosition(clientId) { + var fromRootClientId, + toRootClientId, + index, + templateLock, + action, + blockName, + canInsertBlock, + _args5 = arguments; + return external_this_regeneratorRuntime_default.a.wrap(function moveBlockToPosition$(_context5) { + while (1) { + switch (_context5.prev = _context5.next) { + case 0: + fromRootClientId = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : ''; + toRootClientId = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : ''; + index = _args5.length > 3 ? _args5[3] : undefined; + _context5.next = 5; + return controls_select('core/block-editor', 'getTemplateLock', fromRootClientId); + + case 5: + templateLock = _context5.sent; + + if (!(templateLock === 'all')) { + _context5.next = 8; + break; + } + + return _context5.abrupt("return"); + + case 8: + action = { + type: 'MOVE_BLOCK_TO_POSITION', + fromRootClientId: fromRootClientId, + toRootClientId: toRootClientId, + clientId: clientId, + index: index + }; // If moving inside the same root block the move is always possible. + + if (!(fromRootClientId === toRootClientId)) { + _context5.next = 13; + break; + } + + _context5.next = 12; + return action; + + case 12: + return _context5.abrupt("return"); + + case 13: + if (!(templateLock === 'insert')) { + _context5.next = 15; + break; + } + + return _context5.abrupt("return"); + + case 15: + _context5.next = 17; + return controls_select('core/block-editor', 'getBlockName', clientId); + + case 17: + blockName = _context5.sent; + _context5.next = 20; + return controls_select('core/block-editor', 'canInsertBlockType', blockName, toRootClientId); + + case 20: + canInsertBlock = _context5.sent; + + if (!canInsertBlock) { + _context5.next = 24; + break; + } + + _context5.next = 24; + return action; + + case 24: + case "end": + return _context5.stop(); + } + } + }, _marked5); +} +/** + * Returns an action object used in signalling that a single block should be + * inserted, optionally at a specific index respective a root block list. + * + * @param {Object} block Block object to insert. + * @param {?number} index Index at which block should be inserted. + * @param {?string} rootClientId Optional root client ID of block list on which to insert. + * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. + * + * @return {Object} Action object. + */ + +function actions_insertBlock(block, index, rootClientId) { + var updateSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + return actions_insertBlocks([block], index, rootClientId, updateSelection); +} +/** + * Returns an action object used in signalling that an array of blocks should + * be inserted, optionally at a specific index respective a root block list. + * + * @param {Object[]} blocks Block objects to insert. + * @param {?number} index Index at which block should be inserted. + * @param {?string} rootClientId Optional root client ID of block list on which to insert. + * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. + * + * @return {Object} Action object. + */ + +function actions_insertBlocks(blocks, index, rootClientId) { + var updateSelection, + allowedBlocks, + _iterator, + _step, + block, + isValid, + _args6 = arguments; + + return external_this_regeneratorRuntime_default.a.wrap(function insertBlocks$(_context6) { + while (1) { + switch (_context6.prev = _context6.next) { + case 0: + updateSelection = _args6.length > 3 && _args6[3] !== undefined ? _args6[3] : true; + _context6.t0 = getBlocksWithDefaultStylesApplied; + _context6.t1 = Object(external_this_lodash_["castArray"])(blocks); + _context6.next = 5; + return controls_select('core/block-editor', 'getSettings'); + + case 5: + _context6.t2 = _context6.sent; + blocks = (0, _context6.t0)(_context6.t1, _context6.t2); + allowedBlocks = []; + _iterator = actions_createForOfIteratorHelper(blocks); + _context6.prev = 9; + + _iterator.s(); + + case 11: + if ((_step = _iterator.n()).done) { + _context6.next = 19; + break; + } + + block = _step.value; + _context6.next = 15; + return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId); + + case 15: + isValid = _context6.sent; + + if (isValid) { + allowedBlocks.push(block); + } + + case 17: + _context6.next = 11; + break; + + case 19: + _context6.next = 24; + break; + + case 21: + _context6.prev = 21; + _context6.t3 = _context6["catch"](9); + + _iterator.e(_context6.t3); + + case 24: + _context6.prev = 24; + + _iterator.f(); + + return _context6.finish(24); + + case 27: + if (!allowedBlocks.length) { + _context6.next = 29; + break; + } + + return _context6.abrupt("return", { + type: 'INSERT_BLOCKS', + blocks: allowedBlocks, + index: index, + rootClientId: rootClientId, + time: Date.now(), + updateSelection: updateSelection + }); + + case 29: + case "end": + return _context6.stop(); + } + } + }, _marked6, null, [[9, 21, 24, 27]]); +} +/** + * Returns an action object used in signalling that the insertion point should + * be shown. + * + * @param {?string} rootClientId Optional root client ID of block list on + * which to insert. + * @param {?number} index Index at which block should be inserted. + * + * @return {Object} Action object. + */ + +function actions_showInsertionPoint(rootClientId, index) { + return { + type: 'SHOW_INSERTION_POINT', + rootClientId: rootClientId, + index: index + }; +} +/** + * Returns an action object hiding the insertion point. + * + * @return {Object} Action object. + */ + +function actions_hideInsertionPoint() { + return { + type: 'HIDE_INSERTION_POINT' + }; +} +/** + * Returns an action object resetting the template validity. + * + * @param {boolean} isValid template validity flag. + * + * @return {Object} Action object. + */ + +function setTemplateValidity(isValid) { + return { + type: 'SET_TEMPLATE_VALIDITY', + isValid: isValid + }; +} +/** + * Returns an action object synchronize the template with the list of blocks + * + * @return {Object} Action object. + */ + +function synchronizeTemplate() { + return { + type: 'SYNCHRONIZE_TEMPLATE' + }; +} +/** + * Returns an action object used in signalling that two blocks should be merged + * + * @param {string} firstBlockClientId Client ID of the first block to merge. + * @param {string} secondBlockClientId Client ID of the second block to merge. + * + * @return {Object} Action object. + */ + +function actions_mergeBlocks(firstBlockClientId, secondBlockClientId) { + return { + type: 'MERGE_BLOCKS', + blocks: [firstBlockClientId, secondBlockClientId] + }; +} +/** + * Yields action objects used in signalling that the blocks corresponding to + * the set of specified client IDs are to be removed. + * + * @param {string|string[]} clientIds Client IDs of blocks to remove. + * @param {boolean} selectPrevious True if the previous block should be + * selected when a block is removed. + */ + +function actions_removeBlocks(clientIds) { + var selectPrevious, + rootClientId, + isLocked, + previousBlockId, + defaultBlockId, + _args7 = arguments; + return external_this_regeneratorRuntime_default.a.wrap(function removeBlocks$(_context7) { + while (1) { + switch (_context7.prev = _context7.next) { + case 0: + selectPrevious = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : true; + + if (!(!clientIds || !clientIds.length)) { + _context7.next = 3; + break; + } + + return _context7.abrupt("return"); + + case 3: + clientIds = Object(external_this_lodash_["castArray"])(clientIds); + _context7.next = 6; + return controls_select('core/block-editor', 'getBlockRootClientId', clientIds[0]); + + case 6: + rootClientId = _context7.sent; + _context7.next = 9; + return controls_select('core/block-editor', 'getTemplateLock', rootClientId); + + case 9: + isLocked = _context7.sent; + + if (!isLocked) { + _context7.next = 12; + break; + } + + return _context7.abrupt("return"); + + case 12: + if (!selectPrevious) { + _context7.next = 18; + break; + } + + _context7.next = 15; + return selectPreviousBlock(clientIds[0]); + + case 15: + previousBlockId = _context7.sent; + _context7.next = 21; + break; + + case 18: + _context7.next = 20; + return controls_select('core/block-editor', 'getPreviousBlockClientId', clientIds[0]); + + case 20: + previousBlockId = _context7.sent; + + case 21: + _context7.next = 23; + return { + type: 'REMOVE_BLOCKS', + clientIds: clientIds + }; + + case 23: + return _context7.delegateYield(ensureDefaultBlock(), "t0", 24); + + case 24: + defaultBlockId = _context7.t0; + return _context7.abrupt("return", [previousBlockId || defaultBlockId]); + + case 26: + case "end": + return _context7.stop(); + } + } + }, _marked7); +} +/** + * Returns an action object used in signalling that the block with the + * specified client ID is to be removed. + * + * @param {string} clientId Client ID of block to remove. + * @param {boolean} selectPrevious True if the previous block should be + * selected when a block is removed. + * + * @return {Object} Action object. + */ + +function actions_removeBlock(clientId, selectPrevious) { + return actions_removeBlocks([clientId], selectPrevious); +} +/** + * Returns an action object used in signalling that the inner blocks with the + * specified client ID should be replaced. + * + * @param {string} rootClientId Client ID of the block whose InnerBlocks will re replaced. + * @param {Object[]} blocks Block objects to insert as new InnerBlocks + * @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true. + * + * @return {Object} Action object. + */ + +function actions_replaceInnerBlocks(rootClientId, blocks) { + var updateSelection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + return { + type: 'REPLACE_INNER_BLOCKS', + rootClientId: rootClientId, + blocks: blocks, + updateSelection: updateSelection, + time: Date.now() + }; +} +/** + * Returns an action object used to toggle the block editing mode between + * visual and HTML modes. + * + * @param {string} clientId Block client ID. + * + * @return {Object} Action object. + */ + +function toggleBlockMode(clientId) { + return { + type: 'TOGGLE_BLOCK_MODE', + clientId: clientId + }; +} +/** + * Returns an action object used in signalling that the user has begun to type. + * + * @return {Object} Action object. + */ + +function actions_startTyping() { + return { + type: 'START_TYPING' + }; +} +/** + * Returns an action object used in signalling that the user has stopped typing. + * + * @return {Object} Action object. + */ + +function actions_stopTyping() { + return { + type: 'STOP_TYPING' + }; +} +/** + * Returns an action object used in signalling that the user has begun to drag blocks. + * + * @return {Object} Action object. + */ + +function actions_startDraggingBlocks() { + return { + type: 'START_DRAGGING_BLOCKS' + }; +} +/** + * Returns an action object used in signalling that the user has stopped dragging blocks. + * + * @return {Object} Action object. + */ + +function actions_stopDraggingBlocks() { + return { + type: 'STOP_DRAGGING_BLOCKS' + }; +} +/** + * Returns an action object used in signalling that the caret has entered formatted text. + * + * @return {Object} Action object. + */ + +function actions_enterFormattedText() { + return { + type: 'ENTER_FORMATTED_TEXT' + }; +} +/** + * Returns an action object used in signalling that the user caret has exited formatted text. + * + * @return {Object} Action object. + */ + +function actions_exitFormattedText() { + return { + type: 'EXIT_FORMATTED_TEXT' + }; +} +/** + * Returns an action object used in signalling that the user caret has changed + * position. + * + * @param {string} clientId The selected block client ID. + * @param {string} attributeKey The selected block attribute key. + * @param {number} startOffset The start offset. + * @param {number} endOffset The end offset. + * + * @return {Object} Action object. + */ + +function actions_selectionChange(clientId, attributeKey, startOffset, endOffset) { + return { + type: 'SELECTION_CHANGE', + clientId: clientId, + attributeKey: attributeKey, + startOffset: startOffset, + endOffset: endOffset + }; +} +/** + * Returns an action object used in signalling that a new block of the default + * type should be added to the block list. + * + * @param {?Object} attributes Optional attributes of the block to assign. + * @param {?string} rootClientId Optional root client ID of block list on which + * to append. + * @param {?number} index Optional index where to insert the default block + * + * @return {Object} Action object + */ + +function actions_insertDefaultBlock(attributes, rootClientId, index) { + // Abort if there is no default block type (if it has been unregistered). + var defaultBlockName = Object(external_this_wp_blocks_["getDefaultBlockName"])(); + + if (!defaultBlockName) { + return; + } + + var block = Object(external_this_wp_blocks_["createBlock"])(defaultBlockName, attributes); + return actions_insertBlock(block, index, rootClientId); +} +/** + * Returns an action object that changes the nested settings of a given block. + * + * @param {string} clientId Client ID of the block whose nested setting are + * being received. + * @param {Object} settings Object with the new settings for the nested block. + * + * @return {Object} Action object + */ + +function actions_updateBlockListSettings(clientId, settings) { + return { + type: 'UPDATE_BLOCK_LIST_SETTINGS', + clientId: clientId, + settings: settings + }; +} +/** + * Returns an action object used in signalling that the block editor settings have been updated. + * + * @param {Object} settings Updated settings + * + * @return {Object} Action object + */ + +function actions_updateSettings(settings) { + return { + type: 'UPDATE_SETTINGS', + settings: settings + }; +} +/** + * Returns an action object used in signalling that a temporary reusable blocks have been saved + * in order to switch its temporary id with the real id. + * + * @param {string} id Reusable block's id. + * @param {string} updatedId Updated block's id. + * + * @return {Object} Action object. + */ + +function __unstableSaveReusableBlock(id, updatedId) { + return { + type: 'SAVE_REUSABLE_BLOCK_SUCCESS', + id: id, + updatedId: updatedId + }; +} +/** + * Returns an action object used in signalling that the last block change should be marked explicitely as persistent. + * + * @return {Object} Action object. + */ + +function actions_unstableMarkLastChangeAsPersistent() { + return { + type: 'MARK_LAST_CHANGE_AS_PERSISTENT' + }; +} +/** + * Returns an action object used in signalling that the next block change should be marked explicitly as not persistent. + * + * @return {Object} Action object. + */ + +function actions_unstableMarkNextChangeAsNotPersistent() { + return { + type: 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT' + }; +} +/** + * Returns an action object used in signalling that the last block change is + * an automatic change, meaning it was not performed by the user, and can be + * undone using the `Escape` and `Backspace` keys. This action must be called + * after the change was made, and any actions that are a consequence of it, so + * it is recommended to be called at the next idle period to ensure all + * selection changes have been recorded. + * + * @return {Object} Action object. + */ + +function actions_unstableMarkAutomaticChange() { + return { + type: 'MARK_AUTOMATIC_CHANGE' + }; +} +/** + * Generators that triggers an action used to enable or disable the navigation mode. + * + * @param {string} isNavigationMode Enable/Disable navigation mode. + */ + +function actions_setNavigationMode() { + var isNavigationMode, + _args8 = arguments; + return external_this_regeneratorRuntime_default.a.wrap(function setNavigationMode$(_context8) { + while (1) { + switch (_context8.prev = _context8.next) { + case 0: + isNavigationMode = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : true; + _context8.next = 3; + return { + type: 'SET_NAVIGATION_MODE', + isNavigationMode: isNavigationMode + }; + + case 3: + if (isNavigationMode) { + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.')); + } else { + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are currently in edit mode. To return to the navigation mode, press Escape.')); + } + + case 4: + case "end": + return _context8.stop(); + } + } + }, _marked8); +} +/** + * Generator that triggers an action used to duplicate a list of blocks. + * + * @param {string[]} clientIds + * @param {boolean} updateSelection + */ + +function actions_duplicateBlocks(clientIds) { + var updateSelection, + blocks, + rootClientId, + blockNames, + lastSelectedIndex, + clonedBlocks, + _args9 = arguments; + return external_this_regeneratorRuntime_default.a.wrap(function duplicateBlocks$(_context9) { + while (1) { + switch (_context9.prev = _context9.next) { + case 0: + updateSelection = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : true; + + if (!(!clientIds && !clientIds.length)) { + _context9.next = 3; + break; + } + + return _context9.abrupt("return"); + + case 3: + _context9.next = 5; + return controls_select('core/block-editor', 'getBlocksByClientId', clientIds); + + case 5: + blocks = _context9.sent; + _context9.next = 8; + return controls_select('core/block-editor', 'getBlockRootClientId', clientIds[0]); + + case 8: + rootClientId = _context9.sent; + + if (!Object(external_this_lodash_["some"])(blocks, function (block) { + return !block; + })) { + _context9.next = 11; + break; + } + + return _context9.abrupt("return"); + + case 11: + blockNames = blocks.map(function (block) { + return block.name; + }); // Return early if blocks don't support multiple usage. + + if (!Object(external_this_lodash_["some"])(blockNames, function (blockName) { + return !Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'multiple', true); + })) { + _context9.next = 14; + break; + } + + return _context9.abrupt("return"); + + case 14: + _context9.next = 16; + return controls_select('core/block-editor', 'getBlockIndex', Object(external_this_lodash_["last"])(Object(external_this_lodash_["castArray"])(clientIds)), rootClientId); + + case 16: + lastSelectedIndex = _context9.sent; + clonedBlocks = blocks.map(function (block) { + return Object(external_this_wp_blocks_["cloneBlock"])(block); + }); + _context9.next = 20; + return actions_insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId, updateSelection); + + case 20: + if (!(clonedBlocks.length > 1 && updateSelection)) { + _context9.next = 23; + break; + } + + _context9.next = 23; + return actions_multiSelect(Object(external_this_lodash_["first"])(clonedBlocks).clientId, Object(external_this_lodash_["last"])(clonedBlocks).clientId); + + case 23: + return _context9.abrupt("return", clonedBlocks.map(function (block) { + return block.clientId; + })); + + case 24: + case "end": + return _context9.stop(); + } + } + }, _marked9); +} +/** + * Generator used to insert an empty block after a given block. + * + * @param {string} clientId + */ + +function actions_insertBeforeBlock(clientId) { + var rootClientId, isLocked, firstSelectedIndex; + return external_this_regeneratorRuntime_default.a.wrap(function insertBeforeBlock$(_context10) { + while (1) { + switch (_context10.prev = _context10.next) { + case 0: + if (clientId) { + _context10.next = 2; + break; + } + + return _context10.abrupt("return"); + + case 2: + _context10.next = 4; + return controls_select('core/block-editor', 'getBlockRootClientId', clientId); + + case 4: + rootClientId = _context10.sent; + _context10.next = 7; + return controls_select('core/block-editor', 'getTemplateLock', rootClientId); + + case 7: + isLocked = _context10.sent; + + if (!isLocked) { + _context10.next = 10; + break; + } + + return _context10.abrupt("return"); + + case 10: + _context10.next = 12; + return controls_select('core/block-editor', 'getBlockIndex', clientId, rootClientId); + + case 12: + firstSelectedIndex = _context10.sent; + _context10.next = 15; + return actions_insertDefaultBlock({}, rootClientId, firstSelectedIndex); + + case 15: + return _context10.abrupt("return", _context10.sent); + + case 16: + case "end": + return _context10.stop(); + } + } + }, _marked10); +} +/** + * Generator used to insert an empty block before a given block. + * + * @param {string} clientId + */ + +function actions_insertAfterBlock(clientId) { + var rootClientId, isLocked, firstSelectedIndex; + return external_this_regeneratorRuntime_default.a.wrap(function insertAfterBlock$(_context11) { + while (1) { + switch (_context11.prev = _context11.next) { + case 0: + if (clientId) { + _context11.next = 2; + break; + } + + return _context11.abrupt("return"); + + case 2: + _context11.next = 4; + return controls_select('core/block-editor', 'getBlockRootClientId', clientId); + + case 4: + rootClientId = _context11.sent; + _context11.next = 7; + return controls_select('core/block-editor', 'getTemplateLock', rootClientId); + + case 7: + isLocked = _context11.sent; + + if (!isLocked) { + _context11.next = 10; + break; + } + + return _context11.abrupt("return"); + + case 10: + _context11.next = 12; + return controls_select('core/block-editor', 'getBlockIndex', clientId, rootClientId); + + case 12: + firstSelectedIndex = _context11.sent; + _context11.next = 15; + return actions_insertDefaultBlock({}, rootClientId, firstSelectedIndex + 1); + + case 15: + return _context11.abrupt("return", _context11.sent); + + case 16: + case "end": + return _context11.stop(); + } + } + }, _marked11); +} +/** + * Returns an action object that toggles the highlighted block state. + * + * @param {string} clientId The block's clientId. + * @param {boolean} isHighlighted The highlight state. + */ + +function actions_toggleBlockHighlight(clientId, isHighlighted) { + return { + type: 'TOGGLE_BLOCK_HIGHLIGHT', + clientId: clientId, + isHighlighted: isHighlighted + }; +} +/** + * Yields action objects used in signalling that the block corresponding to the + * given clientId should appear to "flash" by rhythmically highlighting it. + * + * @param {string} clientId Target block client ID. + */ + +function actions_flashBlock(clientId) { + return external_this_regeneratorRuntime_default.a.wrap(function flashBlock$(_context12) { + while (1) { + switch (_context12.prev = _context12.next) { + case 0: + _context12.next = 2; + return actions_toggleBlockHighlight(clientId, true); + + case 2: + _context12.next = 4; + return { + type: 'SLEEP', + duration: 150 + }; + + case 4: + _context12.next = 6; + return actions_toggleBlockHighlight(clientId, false); + + case 6: + case "end": + return _context12.stop(); + } + } + }, _marked12); +} +/** + * Returns an action object that sets whether the block has controlled innerblocks. + * + * @param {string} clientId The block's clientId. + * @param {boolean} hasControlledInnerBlocks True if the block's inner blocks are controlled. + */ + +function actions_setHasControlledInnerBlocks(clientId, hasControlledInnerBlocks) { + return { + type: 'SET_HAS_CONTROLLED_INNER_BLOCKS', + hasControlledInnerBlocks: hasControlledInnerBlocks, + clientId: clientId + }; +} + +// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js +var rememo = __webpack_require__(41); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js + + + + +function selectors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { selectors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { selectors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * A block selection object. + * + * @typedef {Object} WPBlockSelection + * + * @property {string} clientId A block client ID. + * @property {string} attributeKey A block attribute key. + * @property {number} offset An attribute value offset, based on the rich + * text value. See `wp.richText.create`. + */ +// Module constants + +var MILLISECONDS_PER_HOUR = 3600 * 1000; +var MILLISECONDS_PER_DAY = 24 * 3600 * 1000; +var MILLISECONDS_PER_WEEK = 7 * 24 * 3600 * 1000; +var templateIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "0", + fill: "none", + width: "24", + height: "24" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z" +}))); +/** + * Shared reference to an empty array for cases where it is important to avoid + * returning a new array reference on every invocation, as in a connected or + * other pure component which performs `shouldComponentUpdate` check on props. + * This should be used as a last resort, since the normalized data should be + * maintained by the reducer result in state. + * + * @type {Array} + */ + +var selectors_EMPTY_ARRAY = []; +/** + * Returns a block's name given its client ID, or null if no block exists with + * the client ID. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {string} Block name. + */ + +function selectors_getBlockName(state, clientId) { + var block = state.blocks.byClientId[clientId]; + return block ? block.name : null; +} +/** + * Returns whether a block is valid or not. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {boolean} Is Valid. + */ + +function selectors_isBlockValid(state, clientId) { + var block = state.blocks.byClientId[clientId]; + return !!block && block.isValid; +} +/** + * Returns a block's attributes given its client ID, or null if no block exists with + * the client ID. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {Object?} Block attributes. + */ + +function getBlockAttributes(state, clientId) { + var block = state.blocks.byClientId[clientId]; + + if (!block) { + return null; + } + + return state.blocks.attributes[clientId]; +} +/** + * Returns a block given its client ID. This is a parsed copy of the block, + * containing its `blockName`, `clientId`, and current `attributes` state. This + * is not the block's registration settings, which must be retrieved from the + * blocks module registration store. + * + * getBlock recurses through its inner blocks until all its children blocks have + * been retrieved. Note that getBlock will not return the child inner blocks of + * an inner block controller. This is because an inner block controller syncs + * itself with its own entity, and should therefore not be included with the + * blocks of a different entity. For example, say you call `getBlocks( TP )` to + * get the blocks of a template part. If another template part is a child of TP, + * then the nested template part's child blocks will not be returned. This way, + * the template block itself is considered part of the parent, but the children + * are not. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {Object} Parsed block object. + */ + +var selectors_getBlock = Object(rememo["a" /* default */])(function (state, clientId) { + var block = state.blocks.byClientId[clientId]; + + if (!block) { + return null; + } + + return selectors_objectSpread({}, block, { + attributes: getBlockAttributes(state, clientId), + innerBlocks: areInnerBlocksControlled(state, clientId) ? selectors_EMPTY_ARRAY : selectors_getBlocks(state, clientId) + }); +}, function (state, clientId) { + return [// Normally, we'd have both `getBlockAttributes` dependencies and + // `getBlocks` (children) dependancies here but for performance reasons + // we use a denormalized cache key computed in the reducer that takes both + // the attributes and inner blocks into account. The value of the cache key + // is being changed whenever one of these dependencies is out of date. + state.blocks.cache[clientId]]; +}); +var selectors_unstableGetBlockWithoutInnerBlocks = Object(rememo["a" /* default */])(function (state, clientId) { + var block = state.blocks.byClientId[clientId]; + + if (!block) { + return null; + } + + return selectors_objectSpread({}, block, { + attributes: getBlockAttributes(state, clientId) + }); +}, function (state, clientId) { + return [state.blocks.byClientId[clientId], state.blocks.attributes[clientId]]; +}); +/** + * Returns all block objects for the current post being edited as an array in + * the order they appear in the post. Note that this will exclude child blocks + * of nested inner block controllers. + * + * Note: It's important to memoize this selector to avoid return a new instance + * on each call. We use the block cache state for each top-level block of the + * given clientID. This way, the selector only refreshes on changes to blocks + * associated with the given entity, and does not refresh when changes are made + * to blocks which are part of different inner block controllers. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {Object[]} Post blocks. + */ + +var selectors_getBlocks = Object(rememo["a" /* default */])(function (state, rootClientId) { + return Object(external_this_lodash_["map"])(selectors_getBlockOrder(state, rootClientId), function (clientId) { + return selectors_getBlock(state, clientId); + }); +}, function (state, rootClientId) { + return Object(external_this_lodash_["map"])(state.blocks.order[rootClientId || ''], function (id) { + return state.blocks.cache[id]; + }); +}); +/** + * Returns an array containing the clientIds of all descendants + * of the blocks given. + * + * @param {Object} state Global application state. + * @param {Array} clientIds Array of blocks to inspect. + * + * @return {Array} ids of descendants. + */ + +var selectors_getClientIdsOfDescendants = function getClientIdsOfDescendants(state, clientIds) { + return Object(external_this_lodash_["flatMap"])(clientIds, function (clientId) { + var descendants = selectors_getBlockOrder(state, clientId); + return [].concat(Object(toConsumableArray["a" /* default */])(descendants), Object(toConsumableArray["a" /* default */])(getClientIdsOfDescendants(state, descendants))); + }); +}; +/** + * Returns an array containing the clientIds of the top-level blocks + * and their descendants of any depth (for nested blocks). + * + * @param {Object} state Global application state. + * + * @return {Array} ids of top-level and descendant blocks. + */ + +var getClientIdsWithDescendants = Object(rememo["a" /* default */])(function (state) { + var topLevelIds = selectors_getBlockOrder(state); + return [].concat(Object(toConsumableArray["a" /* default */])(topLevelIds), Object(toConsumableArray["a" /* default */])(selectors_getClientIdsOfDescendants(state, topLevelIds))); +}, function (state) { + return [state.blocks.order]; +}); +/** + * Returns the total number of blocks, or the total number of blocks with a specific name in a post. + * The number returned includes nested blocks. + * + * @param {Object} state Global application state. + * @param {?string} blockName Optional block name, if specified only blocks of that type will be counted. + * + * @return {number} Number of blocks in the post, or number of blocks with name equal to blockName. + */ + +var getGlobalBlockCount = Object(rememo["a" /* default */])(function (state, blockName) { + var clientIds = getClientIdsWithDescendants(state); + + if (!blockName) { + return clientIds.length; + } + + return Object(external_this_lodash_["reduce"])(clientIds, function (accumulator, clientId) { + var block = state.blocks.byClientId[clientId]; + return block.name === blockName ? accumulator + 1 : accumulator; + }, 0); +}, function (state) { + return [state.blocks.order, state.blocks.byClientId]; +}); +/** + * Given an array of block client IDs, returns the corresponding array of block + * objects. + * + * @param {Object} state Editor state. + * @param {string[]} clientIds Client IDs for which blocks are to be returned. + * + * @return {WPBlock[]} Block objects. + */ + +var selectors_getBlocksByClientId = Object(rememo["a" /* default */])(function (state, clientIds) { + return Object(external_this_lodash_["map"])(Object(external_this_lodash_["castArray"])(clientIds), function (clientId) { + return selectors_getBlock(state, clientId); + }); +}, function (state) { + return [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; +}); +/** + * Returns the number of blocks currently present in the post. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {number} Number of blocks in the post. + */ + +function selectors_getBlockCount(state, rootClientId) { + return selectors_getBlockOrder(state, rootClientId).length; +} +/** + * Returns the current selection start block client ID, attribute key and text + * offset. + * + * @param {Object} state Block editor state. + * + * @return {WPBlockSelection} Selection start information. + */ + +function selectors_getSelectionStart(state) { + return state.selectionStart; +} +/** + * Returns the current selection end block client ID, attribute key and text + * offset. + * + * @param {Object} state Block editor state. + * + * @return {WPBlockSelection} Selection end information. + */ + +function selectors_getSelectionEnd(state) { + return state.selectionEnd; +} +/** + * Returns the current block selection start. This value may be null, and it + * may represent either a singular block selection or multi-selection start. + * A selection is singular if its start and end match. + * + * @param {Object} state Global application state. + * + * @return {?string} Client ID of block selection start. + */ + +function getBlockSelectionStart(state) { + return state.selectionStart.clientId; +} +/** + * Returns the current block selection end. This value may be null, and it + * may represent either a singular block selection or multi-selection end. + * A selection is singular if its start and end match. + * + * @param {Object} state Global application state. + * + * @return {?string} Client ID of block selection end. + */ + +function selectors_getBlockSelectionEnd(state) { + return state.selectionEnd.clientId; +} +/** + * Returns the number of blocks currently selected in the post. + * + * @param {Object} state Global application state. + * + * @return {number} Number of blocks selected in the post. + */ + +function selectors_getSelectedBlockCount(state) { + var multiSelectedBlockCount = getMultiSelectedBlockClientIds(state).length; + + if (multiSelectedBlockCount) { + return multiSelectedBlockCount; + } + + return state.selectionStart.clientId ? 1 : 0; +} +/** + * Returns true if there is a single selected block, or false otherwise. + * + * @param {Object} state Editor state. + * + * @return {boolean} Whether a single block is selected. + */ + +function hasSelectedBlock(state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + return !!selectionStart.clientId && selectionStart.clientId === selectionEnd.clientId; +} +/** + * Returns the currently selected block client ID, or null if there is no + * selected block. + * + * @param {Object} state Editor state. + * + * @return {?string} Selected block client ID. + */ + +function selectors_getSelectedBlockClientId(state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + var clientId = selectionStart.clientId; + + if (!clientId || clientId !== selectionEnd.clientId) { + return null; + } + + return clientId; +} +/** + * Returns the currently selected block, or null if there is no selected block. + * + * @param {Object} state Global application state. + * + * @return {?Object} Selected block. + */ + +function selectors_getSelectedBlock(state) { + var clientId = selectors_getSelectedBlockClientId(state); + return clientId ? selectors_getBlock(state, clientId) : null; +} +/** + * Given a block client ID, returns the root block from which the block is + * nested, an empty string for top-level blocks, or null if the block does not + * exist. + * + * @param {Object} state Editor state. + * @param {string} clientId Block from which to find root client ID. + * + * @return {?string} Root client ID, if exists + */ + +function selectors_getBlockRootClientId(state, clientId) { + return state.blocks.parents[clientId] !== undefined ? state.blocks.parents[clientId] : null; +} +/** + * Given a block client ID, returns the list of all its parents from top to bottom. + * + * @param {Object} state Editor state. + * @param {string} clientId Block from which to find root client ID. + * @param {boolean} ascending Order results from bottom to top (true) or top to bottom (false). + * + * @return {Array} ClientIDs of the parent blocks. + */ + +var selectors_getBlockParents = Object(rememo["a" /* default */])(function (state, clientId) { + var ascending = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var parents = []; + var current = clientId; + + while (!!state.blocks.parents[current]) { + current = state.blocks.parents[current]; + parents.push(current); + } + + return ascending ? parents : parents.reverse(); +}, function (state) { + return [state.blocks.parents]; +}); +/** + * Given a block client ID and a block name, + * returns the list of all its parents from top to bottom, + * filtered by the given name. + * + * @param {Object} state Editor state. + * @param {string} clientId Block from which to find root client ID. + * @param {string} blockName Block name to filter. + * @param {boolean} ascending Order results from bottom to top (true) or top to bottom (false). + * + * @return {Array} ClientIDs of the parent blocks. + */ + +var getBlockParentsByBlockName = Object(rememo["a" /* default */])(function (state, clientId, blockName) { + var ascending = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var parents = selectors_getBlockParents(state, clientId, ascending); + return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(Object(external_this_lodash_["map"])(parents, function (id) { + return { + id: id, + name: selectors_getBlockName(state, id) + }; + }), { + name: blockName + }), function (_ref) { + var id = _ref.id; + return id; + }); +}, function (state) { + return [state.blocks.parents]; +}); +/** + * Given a block client ID, returns the root of the hierarchy from which the block is nested, return the block itself for root level blocks. + * + * @param {Object} state Editor state. + * @param {string} clientId Block from which to find root client ID. + * + * @return {string} Root client ID + */ + +function getBlockHierarchyRootClientId(state, clientId) { + var current = clientId; + var parent; + + do { + parent = current; + current = state.blocks.parents[current]; + } while (current); + + return parent; +} +/** + * Given a block client ID, returns the lowest common ancestor with selected client ID. + * + * @param {Object} state Editor state. + * @param {string} clientId Block from which to find common ancestor client ID. + * + * @return {string} Common ancestor client ID or undefined + */ + +function getLowestCommonAncestorWithSelectedBlock(state, clientId) { + var selectedId = selectors_getSelectedBlockClientId(state); + var clientParents = [].concat(Object(toConsumableArray["a" /* default */])(selectors_getBlockParents(state, clientId)), [clientId]); + var selectedParents = [].concat(Object(toConsumableArray["a" /* default */])(selectors_getBlockParents(state, selectedId)), [selectedId]); + var lowestCommonAncestor; + var maxDepth = Math.min(clientParents.length, selectedParents.length); + + for (var index = 0; index < maxDepth; index++) { + if (clientParents[index] === selectedParents[index]) { + lowestCommonAncestor = clientParents[index]; + } else { + break; + } + } + + return lowestCommonAncestor; +} +/** + * Returns the client ID of the block adjacent one at the given reference + * startClientId and modifier directionality. Defaults start startClientId to + * the selected block, and direction as next block. Returns null if there is no + * adjacent block. + * + * @param {Object} state Editor state. + * @param {?string} startClientId Optional client ID of block from which to + * search. + * @param {?number} modifier Directionality multiplier (1 next, -1 + * previous). + * + * @return {?string} Return the client ID of the block, or null if none exists. + */ + +function getAdjacentBlockClientId(state, startClientId) { + var modifier = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; + + // Default to selected block. + if (startClientId === undefined) { + startClientId = selectors_getSelectedBlockClientId(state); + } // Try multi-selection starting at extent based on modifier. + + + if (startClientId === undefined) { + if (modifier < 0) { + startClientId = selectors_getFirstMultiSelectedBlockClientId(state); + } else { + startClientId = getLastMultiSelectedBlockClientId(state); + } + } // Validate working start client ID. + + + if (!startClientId) { + return null; + } // Retrieve start block root client ID, being careful to allow the falsey + // empty string top-level root by explicitly testing against null. + + + var rootClientId = selectors_getBlockRootClientId(state, startClientId); + + if (rootClientId === null) { + return null; + } + + var order = state.blocks.order; + var orderSet = order[rootClientId]; + var index = orderSet.indexOf(startClientId); + var nextIndex = index + 1 * modifier; // Block was first in set and we're attempting to get previous. + + if (nextIndex < 0) { + return null; + } // Block was last in set and we're attempting to get next. + + + if (nextIndex === orderSet.length) { + return null; + } // Assume incremented index is within the set. + + + return orderSet[nextIndex]; +} +/** + * Returns the previous block's client ID from the given reference start ID. + * Defaults start to the selected block. Returns null if there is no previous + * block. + * + * @param {Object} state Editor state. + * @param {?string} startClientId Optional client ID of block from which to + * search. + * + * @return {?string} Adjacent block's client ID, or null if none exists. + */ + +function getPreviousBlockClientId(state, startClientId) { + return getAdjacentBlockClientId(state, startClientId, -1); +} +/** + * Returns the next block's client ID from the given reference start ID. + * Defaults start to the selected block. Returns null if there is no next + * block. + * + * @param {Object} state Editor state. + * @param {?string} startClientId Optional client ID of block from which to + * search. + * + * @return {?string} Adjacent block's client ID, or null if none exists. + */ + +function getNextBlockClientId(state, startClientId) { + return getAdjacentBlockClientId(state, startClientId, 1); +} +/** + * Returns the initial caret position for the selected block. + * This position is to used to position the caret properly when the selected block changes. + * + * @param {Object} state Global application state. + * + * @return {?Object} Selected block. + */ + +function getSelectedBlocksInitialCaretPosition(state) { + return state.initialPosition; +} +/** + * Returns the current selection set of block client IDs (multiselection or single selection). + * + * @param {Object} state Editor state. + * + * @return {Array} Multi-selected block client IDs. + */ + +var selectors_getSelectedBlockClientIds = Object(rememo["a" /* default */])(function (state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + + if (selectionStart.clientId === undefined || selectionEnd.clientId === undefined) { + return selectors_EMPTY_ARRAY; + } + + if (selectionStart.clientId === selectionEnd.clientId) { + return [selectionStart.clientId]; + } // Retrieve root client ID to aid in retrieving relevant nested block + // order, being careful to allow the falsey empty string top-level root + // by explicitly testing against null. + + + var rootClientId = selectors_getBlockRootClientId(state, selectionStart.clientId); + + if (rootClientId === null) { + return selectors_EMPTY_ARRAY; + } + + var blockOrder = selectors_getBlockOrder(state, rootClientId); + var startIndex = blockOrder.indexOf(selectionStart.clientId); + var endIndex = blockOrder.indexOf(selectionEnd.clientId); + + if (startIndex > endIndex) { + return blockOrder.slice(endIndex, startIndex + 1); + } + + return blockOrder.slice(startIndex, endIndex + 1); +}, function (state) { + return [state.blocks.order, state.selectionStart.clientId, state.selectionEnd.clientId]; +}); +/** + * Returns the current multi-selection set of block client IDs, or an empty + * array if there is no multi-selection. + * + * @param {Object} state Editor state. + * + * @return {Array} Multi-selected block client IDs. + */ + +function getMultiSelectedBlockClientIds(state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + + if (selectionStart.clientId === selectionEnd.clientId) { + return selectors_EMPTY_ARRAY; + } + + return selectors_getSelectedBlockClientIds(state); +} +/** + * Returns the current multi-selection set of blocks, or an empty array if + * there is no multi-selection. + * + * @param {Object} state Editor state. + * + * @return {Array} Multi-selected block objects. + */ + +var getMultiSelectedBlocks = Object(rememo["a" /* default */])(function (state) { + var multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(state); + + if (!multiSelectedBlockClientIds.length) { + return selectors_EMPTY_ARRAY; + } + + return multiSelectedBlockClientIds.map(function (clientId) { + return selectors_getBlock(state, clientId); + }); +}, function (state) { + return [].concat(Object(toConsumableArray["a" /* default */])(selectors_getSelectedBlockClientIds.getDependants(state)), [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]); +}); +/** + * Returns the client ID of the first block in the multi-selection set, or null + * if there is no multi-selection. + * + * @param {Object} state Editor state. + * + * @return {?string} First block client ID in the multi-selection set. + */ + +function selectors_getFirstMultiSelectedBlockClientId(state) { + return Object(external_this_lodash_["first"])(getMultiSelectedBlockClientIds(state)) || null; +} +/** + * Returns the client ID of the last block in the multi-selection set, or null + * if there is no multi-selection. + * + * @param {Object} state Editor state. + * + * @return {?string} Last block client ID in the multi-selection set. + */ + +function getLastMultiSelectedBlockClientId(state) { + return Object(external_this_lodash_["last"])(getMultiSelectedBlockClientIds(state)) || null; +} +/** + * Returns true if a multi-selection exists, and the block corresponding to the + * specified client ID is the first block of the multi-selection set, or false + * otherwise. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {boolean} Whether block is first in multi-selection. + */ + +function isFirstMultiSelectedBlock(state, clientId) { + return selectors_getFirstMultiSelectedBlockClientId(state) === clientId; +} +/** + * Returns true if the client ID occurs within the block multi-selection, or + * false otherwise. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {boolean} Whether block is in multi-selection set. + */ + +function isBlockMultiSelected(state, clientId) { + return getMultiSelectedBlockClientIds(state).indexOf(clientId) !== -1; +} +/** + * Returns true if an ancestor of the block is multi-selected, or false + * otherwise. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {boolean} Whether an ancestor of the block is in multi-selection + * set. + */ + +var isAncestorMultiSelected = Object(rememo["a" /* default */])(function (state, clientId) { + var ancestorClientId = clientId; + var isMultiSelected = false; + + while (ancestorClientId && !isMultiSelected) { + ancestorClientId = selectors_getBlockRootClientId(state, ancestorClientId); + isMultiSelected = isBlockMultiSelected(state, ancestorClientId); + } + + return isMultiSelected; +}, function (state) { + return [state.blocks.order, state.selectionStart.clientId, state.selectionEnd.clientId]; +}); +/** + * Returns the client ID of the block which begins the multi-selection set, or + * null if there is no multi-selection. + * + * This is not necessarily the first client ID in the selection. + * + * @see getFirstMultiSelectedBlockClientId + * + * @param {Object} state Editor state. + * + * @return {?string} Client ID of block beginning multi-selection. + */ + +function getMultiSelectedBlocksStartClientId(state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + + if (selectionStart.clientId === selectionEnd.clientId) { + return null; + } + + return selectionStart.clientId || null; +} +/** + * Returns the client ID of the block which ends the multi-selection set, or + * null if there is no multi-selection. + * + * This is not necessarily the last client ID in the selection. + * + * @see getLastMultiSelectedBlockClientId + * + * @param {Object} state Editor state. + * + * @return {?string} Client ID of block ending multi-selection. + */ + +function getMultiSelectedBlocksEndClientId(state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + + if (selectionStart.clientId === selectionEnd.clientId) { + return null; + } + + return selectionEnd.clientId || null; +} +/** + * Returns an array containing all block client IDs in the editor in the order + * they appear. Optionally accepts a root client ID of the block list for which + * the order should be returned, defaulting to the top-level block order. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {Array} Ordered client IDs of editor blocks. + */ + +function selectors_getBlockOrder(state, rootClientId) { + return state.blocks.order[rootClientId || ''] || selectors_EMPTY_ARRAY; +} +/** + * Returns the index at which the block corresponding to the specified client + * ID occurs within the block order, or `-1` if the block does not exist. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {number} Index at which block exists in order. + */ + +function selectors_getBlockIndex(state, clientId, rootClientId) { + return selectors_getBlockOrder(state, rootClientId).indexOf(clientId); +} +/** + * Returns true if the block corresponding to the specified client ID is + * currently selected and no multi-selection exists, or false otherwise. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {boolean} Whether block is selected and multi-selection exists. + */ + +function isBlockSelected(state, clientId) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + + if (selectionStart.clientId !== selectionEnd.clientId) { + return false; + } + + return selectionStart.clientId === clientId; +} +/** + * Returns true if one of the block's inner blocks is selected. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * @param {boolean} deep Perform a deep check. + * + * @return {boolean} Whether the block as an inner block selected + */ + +function hasSelectedInnerBlock(state, clientId) { + var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + return Object(external_this_lodash_["some"])(selectors_getBlockOrder(state, clientId), function (innerClientId) { + return isBlockSelected(state, innerClientId) || isBlockMultiSelected(state, innerClientId) || deep && hasSelectedInnerBlock(state, innerClientId, deep); + }); +} +/** + * Returns true if the block corresponding to the specified client ID is + * currently selected but isn't the last of the selected blocks. Here "last" + * refers to the block sequence in the document, _not_ the sequence of + * multi-selection, which is why `state.selectionEnd` isn't used. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {boolean} Whether block is selected and not the last in the + * selection. + */ + +function isBlockWithinSelection(state, clientId) { + if (!clientId) { + return false; + } + + var clientIds = getMultiSelectedBlockClientIds(state); + var index = clientIds.indexOf(clientId); + return index > -1 && index < clientIds.length - 1; +} +/** + * Returns true if a multi-selection has been made, or false otherwise. + * + * @param {Object} state Editor state. + * + * @return {boolean} Whether multi-selection has been made. + */ + +function selectors_hasMultiSelection(state) { + var selectionStart = state.selectionStart, + selectionEnd = state.selectionEnd; + return selectionStart.clientId !== selectionEnd.clientId; +} +/** + * Whether in the process of multi-selecting or not. This flag is only true + * while the multi-selection is being selected (by mouse move), and is false + * once the multi-selection has been settled. + * + * @see hasMultiSelection + * + * @param {Object} state Global application state. + * + * @return {boolean} True if multi-selecting, false if not. + */ + +function selectors_isMultiSelecting(state) { + return state.isMultiSelecting; +} +/** + * Selector that returns if multi-selection is enabled or not. + * + * @param {Object} state Global application state. + * + * @return {boolean} True if it should be possible to multi-select blocks, false if multi-selection is disabled. + */ + +function selectors_isSelectionEnabled(state) { + return state.isSelectionEnabled; +} +/** + * Returns the block's editing mode, defaulting to "visual" if not explicitly + * assigned. + * + * @param {Object} state Editor state. + * @param {string} clientId Block client ID. + * + * @return {Object} Block editing mode. + */ + +function selectors_getBlockMode(state, clientId) { + return state.blocksMode[clientId] || 'visual'; +} +/** + * Returns true if the user is typing, or false otherwise. + * + * @param {Object} state Global application state. + * + * @return {boolean} Whether user is typing. + */ + +function selectors_isTyping(state) { + return state.isTyping; +} +/** + * Returns true if the user is dragging blocks, or false otherwise. + * + * @param {Object} state Global application state. + * + * @return {boolean} Whether user is dragging blocks. + */ + +function selectors_isDraggingBlocks(state) { + return state.isDraggingBlocks; +} +/** + * Returns true if the caret is within formatted text, or false otherwise. + * + * @param {Object} state Global application state. + * + * @return {boolean} Whether the caret is within formatted text. + */ + +function selectors_isCaretWithinFormattedText(state) { + return state.isCaretWithinFormattedText; +} +/** + * Returns the insertion point, the index at which the new inserted block would + * be placed. Defaults to the last index. + * + * @param {Object} state Editor state. + * + * @return {Object} Insertion point object with `rootClientId`, `index`. + */ + +function getBlockInsertionPoint(state) { + var rootClientId, index; + var insertionPoint = state.insertionPoint, + selectionEnd = state.selectionEnd; + + if (insertionPoint !== null) { + return insertionPoint; + } + + var clientId = selectionEnd.clientId; + + if (clientId) { + rootClientId = selectors_getBlockRootClientId(state, clientId) || undefined; + index = selectors_getBlockIndex(state, selectionEnd.clientId, rootClientId) + 1; + } else { + index = selectors_getBlockOrder(state).length; + } + + return { + rootClientId: rootClientId, + index: index + }; +} +/** + * Returns true if we should show the block insertion point. + * + * @param {Object} state Global application state. + * + * @return {?boolean} Whether the insertion point is visible or not. + */ + +function isBlockInsertionPointVisible(state) { + return state.insertionPoint !== null; +} +/** + * Returns whether the blocks matches the template or not. + * + * @param {boolean} state + * @return {?boolean} Whether the template is valid or not. + */ + +function isValidTemplate(state) { + return state.template.isValid; +} +/** + * Returns the defined block template + * + * @param {boolean} state + * @return {?Array} Block Template + */ + +function getTemplate(state) { + return state.settings.template; +} +/** + * Returns the defined block template lock. Optionally accepts a root block + * client ID as context, otherwise defaulting to the global context. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional block root client ID. + * + * @return {?string} Block Template Lock + */ + +function selectors_getTemplateLock(state, rootClientId) { + if (!rootClientId) { + return state.settings.templateLock; + } + + var blockListSettings = selectors_getBlockListSettings(state, rootClientId); + + if (!blockListSettings) { + return null; + } + + return blockListSettings.templateLock; +} +/** + * Determines if the given block type is allowed to be inserted into the block list. + * This function is not exported and not memoized because using a memoized selector + * inside another memoized selector is just a waste of time. + * + * @param {Object} state Editor state. + * @param {string} blockName The name of the block type, e.g.' core/paragraph'. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {boolean} Whether the given block type is allowed to be inserted. + */ + +var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoized(state, blockName) { + var rootClientId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + + var checkAllowList = function checkAllowList(list, item) { + var defaultResult = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + + if (Object(external_this_lodash_["isBoolean"])(list)) { + return list; + } + + if (Object(external_this_lodash_["isArray"])(list)) { + // TODO: when there is a canonical way to detect that we are editing a post + // the following check should be changed to something like: + // if ( includes( list, 'core/post-content' ) && getEditorMode() === 'post-content' && item === null ) + if (Object(external_this_lodash_["includes"])(list, 'core/post-content') && item === null) { + return true; + } + + return Object(external_this_lodash_["includes"])(list, item); + } + + return defaultResult; + }; + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(blockName); + + if (!blockType) { + return false; + } + + var _getSettings = selectors_getSettings(state), + allowedBlockTypes = _getSettings.allowedBlockTypes; + + var isBlockAllowedInEditor = checkAllowList(allowedBlockTypes, blockName, true); + + if (!isBlockAllowedInEditor) { + return false; + } + + var isLocked = !!selectors_getTemplateLock(state, rootClientId); + + if (isLocked) { + return false; + } + + var parentBlockListSettings = selectors_getBlockListSettings(state, rootClientId); + var parentAllowedBlocks = Object(external_this_lodash_["get"])(parentBlockListSettings, ['allowedBlocks']); + var hasParentAllowedBlock = checkAllowList(parentAllowedBlocks, blockName); + var blockAllowedParentBlocks = blockType.parent; + var parentName = selectors_getBlockName(state, rootClientId); + var hasBlockAllowedParent = checkAllowList(blockAllowedParentBlocks, parentName); + + if (hasParentAllowedBlock !== null && hasBlockAllowedParent !== null) { + return hasParentAllowedBlock || hasBlockAllowedParent; + } else if (hasParentAllowedBlock !== null) { + return hasParentAllowedBlock; + } else if (hasBlockAllowedParent !== null) { + return hasBlockAllowedParent; + } + + return true; +}; +/** + * Determines if the given block type is allowed to be inserted into the block list. + * + * @param {Object} state Editor state. + * @param {string} blockName The name of the block type, e.g.' core/paragraph'. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {boolean} Whether the given block type is allowed to be inserted. + */ + + +var selectors_canInsertBlockType = Object(rememo["a" /* default */])(selectors_canInsertBlockTypeUnmemoized, function (state, blockName, rootClientId) { + return [state.blockListSettings[rootClientId], state.blocks.byClientId[rootClientId], state.settings.allowedBlockTypes, state.settings.templateLock]; +}); +/** + * Returns information about how recently and frequently a block has been inserted. + * + * @param {Object} state Global application state. + * @param {string} id A string which identifies the insert, e.g. 'core/block/12' + * + * @return {?{ time: number, count: number }} An object containing `time` which is when the last + * insert occurred as a UNIX epoch, and `count` which is + * the number of inserts that have occurred. + */ + +function getInsertUsage(state, id) { + return Object(external_this_lodash_["get"])(state.preferences.insertUsage, [id], null); +} +/** + * Returns whether we can show a block type in the inserter + * + * @param {Object} state Global State + * @param {Object} blockType BlockType + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {boolean} Whether the given block type is allowed to be shown in the inserter. + */ + + +var selectors_canIncludeBlockTypeInInserter = function canIncludeBlockTypeInInserter(state, blockType, rootClientId) { + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'inserter', true)) { + return false; + } + + return selectors_canInsertBlockTypeUnmemoized(state, blockType.name, rootClientId); +}; +/** + * Determines the items that appear in the inserter. Includes both static + * items (e.g. a regular block type) and dynamic items (e.g. a reusable block). + * + * Each item object contains what's necessary to display a button in the + * inserter and handle its selection. + * + * The 'frecency' property is a heuristic (https://en.wikipedia.org/wiki/Frecency) + * that combines block usage frequenty and recency. + * + * Items are returned ordered descendingly by their 'utility' and 'frecency'. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {WPEditorInserterItem[]} Items that appear in inserter. + * + * @typedef {Object} WPEditorInserterItem + * @property {string} id Unique identifier for the item. + * @property {string} name The type of block to create. + * @property {Object} initialAttributes Attributes to pass to the newly created block. + * @property {string} title Title of the item, as it appears in the inserter. + * @property {string} icon Dashicon for the item, as it appears in the inserter. + * @property {string} category Block category that the item is associated with. + * @property {string[]} keywords Keywords that can be searched to find this item. + * @property {boolean} isDisabled Whether or not the user should be prevented from inserting + * this item. + * @property {number} frecency Hueristic that combines frequency and recency. + */ + + +var selectors_getInserterItems = Object(rememo["a" /* default */])(function (state) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + + var calculateFrecency = function calculateFrecency(time, count) { + if (!time) { + return count; + } // The selector is cached, which means Date.now() is the last time that the + // relevant state changed. This suits our needs. + + + var duration = Date.now() - time; + + switch (true) { + case duration < MILLISECONDS_PER_HOUR: + return count * 4; + + case duration < MILLISECONDS_PER_DAY: + return count * 2; + + case duration < MILLISECONDS_PER_WEEK: + return count / 2; + + default: + return count / 4; + } + }; + + var buildBlockTypeInserterItem = function buildBlockTypeInserterItem(blockType) { + var id = blockType.name; + var isDisabled = false; + + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType.name, 'multiple', true)) { + isDisabled = Object(external_this_lodash_["some"])(selectors_getBlocksByClientId(state, getClientIdsWithDescendants(state)), { + name: blockType.name + }); + } + + var _ref2 = getInsertUsage(state, id) || {}, + time = _ref2.time, + _ref2$count = _ref2.count, + count = _ref2$count === void 0 ? 0 : _ref2$count; + + var inserterVariations = blockType.variations.filter(function (_ref3) { + var scope = _ref3.scope; + return !scope || scope.includes('inserter'); + }); + return { + id: id, + name: blockType.name, + initialAttributes: {}, + title: blockType.title, + description: blockType.description, + icon: blockType.icon, + category: blockType.category, + keywords: blockType.keywords, + variations: inserterVariations, + example: blockType.example, + isDisabled: isDisabled, + utility: 1, + // deprecated + frecency: calculateFrecency(time, count) + }; + }; + + var buildReusableBlockInserterItem = function buildReusableBlockInserterItem(reusableBlock) { + var id = "core/block/".concat(reusableBlock.id); + + var referencedBlocks = __experimentalGetParsedReusableBlock(state, reusableBlock.id); + + var referencedBlockType; + + if (referencedBlocks.length === 1) { + referencedBlockType = Object(external_this_wp_blocks_["getBlockType"])(referencedBlocks[0].name); + } + + var _ref4 = getInsertUsage(state, id) || {}, + time = _ref4.time, + _ref4$count = _ref4.count, + count = _ref4$count === void 0 ? 0 : _ref4$count; + + var frecency = calculateFrecency(time, count); + return { + id: id, + name: 'core/block', + initialAttributes: { + ref: reusableBlock.id + }, + title: reusableBlock.title, + icon: referencedBlockType ? referencedBlockType.icon : templateIcon, + category: 'reusable', + keywords: [], + isDisabled: false, + utility: 1, + // deprecated + frecency: frecency + }; + }; + + var blockTypeInserterItems = Object(external_this_wp_blocks_["getBlockTypes"])().filter(function (blockType) { + return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); + }).map(buildBlockTypeInserterItem); + var reusableBlockInserterItems = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; + return Object(external_this_lodash_["orderBy"])([].concat(Object(toConsumableArray["a" /* default */])(blockTypeInserterItems), Object(toConsumableArray["a" /* default */])(reusableBlockInserterItems)), ['frecency'], ['desc', 'desc']); +}, function (state, rootClientId) { + return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.blocks.order, state.preferences.insertUsage, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), Object(external_this_wp_blocks_["getBlockTypes"])()]; +}); +/** + * Determines whether there are items to show in the inserter. + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {boolean} Items that appear in inserter. + */ + +var selectors_hasInserterItems = Object(rememo["a" /* default */])(function (state) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var hasBlockType = Object(external_this_lodash_["some"])(Object(external_this_wp_blocks_["getBlockTypes"])(), function (blockType) { + return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); + }); + + if (hasBlockType) { + return true; + } + + var hasReusableBlock = selectors_canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) && getReusableBlocks(state).length > 0; + return hasReusableBlock; +}, function (state, rootClientId) { + return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), Object(external_this_wp_blocks_["getBlockTypes"])()]; +}); +/** + * Returns the list of allowed inserter blocks for inner blocks children + * + * @param {Object} state Editor state. + * @param {?string} rootClientId Optional root client ID of block list. + * + * @return {Array?} The list of allowed block types. + */ + +var selectors_experimentalGetAllowedBlocks = Object(rememo["a" /* default */])(function (state) { + var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + + if (!rootClientId) { + return; + } + + return Object(external_this_lodash_["filter"])(Object(external_this_wp_blocks_["getBlockTypes"])(), function (blockType) { + return selectors_canIncludeBlockTypeInInserter(state, blockType, rootClientId); + }); +}, function (state, rootClientId) { + return [state.blockListSettings[rootClientId], state.blocks.byClientId, state.settings.allowedBlockTypes, state.settings.templateLock, Object(external_this_wp_blocks_["getBlockTypes"])()]; +}); +/** + * Returns the Block List settings of a block, if any exist. + * + * @param {Object} state Editor state. + * @param {?string} clientId Block client ID. + * + * @return {?Object} Block settings of the block if set. + */ + +function selectors_getBlockListSettings(state, clientId) { + return state.blockListSettings[clientId]; +} +/** + * Returns the editor settings. + * + * @param {Object} state Editor state. + * + * @return {Object} The editor settings object. + */ + +function selectors_getSettings(state) { + return state.settings; +} +/** + * Returns true if the most recent block change is be considered persistent, or + * false otherwise. A persistent change is one committed by BlockEditorProvider + * via its `onChange` callback, in addition to `onInput`. + * + * @param {Object} state Block editor state. + * + * @return {boolean} Whether the most recent block change was persistent. + */ + +function isLastBlockChangePersistent(state) { + return state.blocks.isPersistentChange; +} +/** + * Returns the Block List settings for an array of blocks, if any exist. + * + * @param {Object} state Editor state. + * @param {Array} clientIds Block client IDs. + * + * @return {Array} Block List Settings for each of the found blocks + */ + +var selectors_experimentalGetBlockListSettingsForBlocks = Object(rememo["a" /* default */])(function (state, clientIds) { + return Object(external_this_lodash_["filter"])(state.blockListSettings, function (value, key) { + return clientIds.includes(key); + }); +}, function (state) { + return [state.blockListSettings]; +}); +/** + * Returns the parsed block saved as shared block with the given ID. + * + * @param {Object} state Global application state. + * @param {number|string} ref The shared block's ID. + * + * @return {Object} The parsed block. + */ + +var __experimentalGetParsedReusableBlock = Object(rememo["a" /* default */])(function (state, ref) { + var reusableBlock = Object(external_this_lodash_["find"])(getReusableBlocks(state), function (block) { + return block.id === ref; + }); + + if (!reusableBlock) { + return null; + } + + return Object(external_this_wp_blocks_["parse"])(reusableBlock.content); +}, function (state) { + return [getReusableBlocks(state)]; +}); +/** + * Returns true if the most recent block change is be considered ignored, or + * false otherwise. An ignored change is one not to be committed by + * BlockEditorProvider, neither via `onChange` nor `onInput`. + * + * @param {Object} state Block editor state. + * + * @return {boolean} Whether the most recent block change was ignored. + */ + +function __unstableIsLastBlockChangeIgnored(state) { + // TODO: Removal Plan: Changes incurred by RECEIVE_BLOCKS should not be + // ignored if in-fact they result in a change in blocks state. The current + // need to ignore changes not a result of user interaction should be + // accounted for in the refactoring of reusable blocks as occurring within + // their own separate block editor / state (#7119). + return state.blocks.isIgnoredChange; +} +/** + * Returns the block attributes changed as a result of the last dispatched + * action. + * + * @param {Object} state Block editor state. + * + * @return {Object} Subsets of block attributes changed, keyed + * by block client ID. + */ + +function __experimentalGetLastBlockAttributeChanges(state) { + return state.lastBlockAttributesChange; +} +/** + * Returns the available reusable blocks + * + * @param {Object} state Global application state. + * + * @return {Array} Reusable blocks + */ + +function getReusableBlocks(state) { + return Object(external_this_lodash_["get"])(state, ['settings', '__experimentalReusableBlocks'], selectors_EMPTY_ARRAY); +} +/** + * Returns whether the navigation mode is enabled. + * + * @param {Object} state Editor state. + * + * @return {boolean} Is navigation mode enabled. + */ + + +function selectors_isNavigationMode(state) { + return state.isNavigationMode; +} +/** + * Returns true if the last change was an automatic change, false otherwise. + * + * @param {Object} state Global application state. + * + * @return {boolean} Whether the last change was automatic. + */ + +function selectors_didAutomaticChange(state) { + return !!state.automaticChangeStatus; +} +/** + * Returns true if the current highlighted block matches the block clientId. + * + * @param {Object} state Global application state. + * @param {string} clientId The block to check. + * + * @return {boolean} Whether the block is currently highlighted. + */ + +function isBlockHighlighted(state, clientId) { + return state.highlightedBlock === clientId; +} +/** + * Checks if a given block has controlled inner blocks. + * + * @param {Object} state Global application state. + * @param {string} clientId The block to check. + * + * @return {boolean} True if the block has controlled inner blocks. + */ + +function areInnerBlocksControlled(state, clientId) { + return !!state.blocks.controlledInnerBlocks[clientId]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/effects.js + + + + + +function effects_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function effects_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { effects_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { effects_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +/** + * Block validity is a function of blocks state (at the point of a + * reset) and the template setting. As a compromise to its placement + * across distinct parts of state, it is implemented here as a side- + * effect of the block reset action. + * + * @param {Object} action RESET_BLOCKS action. + * @param {Object} store Store instance. + * + * @return {?Object} New validity set action if validity has changed. + */ + +function validateBlocksToTemplate(action, store) { + var state = store.getState(); + var template = getTemplate(state); + var templateLock = selectors_getTemplateLock(state); // Unlocked templates are considered always valid because they act + // as default values only. + + var isBlocksValidToTemplate = !template || templateLock !== 'all' || Object(external_this_wp_blocks_["doBlocksMatchTemplate"])(action.blocks, template); // Update if validity has changed. + + if (isBlocksValidToTemplate !== isValidTemplate(state)) { + return setTemplateValidity(isBlocksValidToTemplate); + } +} +/* harmony default export */ var effects = ({ + MERGE_BLOCKS: function MERGE_BLOCKS(action, store) { + var dispatch = store.dispatch; + var state = store.getState(); + + var _action$blocks = Object(slicedToArray["a" /* default */])(action.blocks, 2), + clientIdA = _action$blocks[0], + clientIdB = _action$blocks[1]; + + var blockA = selectors_getBlock(state, clientIdA); + var blockAType = Object(external_this_wp_blocks_["getBlockType"])(blockA.name); // Only focus the previous block if it's not mergeable + + if (!blockAType.merge) { + dispatch(actions_selectBlock(blockA.clientId)); + return; + } + + var blockB = selectors_getBlock(state, clientIdB); + var blockBType = Object(external_this_wp_blocks_["getBlockType"])(blockB.name); + + var _getSelectionStart = selectors_getSelectionStart(state), + clientId = _getSelectionStart.clientId, + attributeKey = _getSelectionStart.attributeKey, + offset = _getSelectionStart.offset; + + var selectedBlockType = clientId === clientIdA ? blockAType : blockBType; + var attributeDefinition = selectedBlockType.attributes[attributeKey]; + var canRestoreTextSelection = (clientId === clientIdA || clientId === clientIdB) && attributeKey !== undefined && offset !== undefined && // We cannot restore text selection if the RichText identifier + // is not a defined block attribute key. This can be the case if the + // fallback intance ID is used to store selection (and no RichText + // identifier is set), or when the identifier is wrong. + !!attributeDefinition; + + if (!attributeDefinition) { + if (typeof attributeKey === 'number') { + window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(esm_typeof["a" /* default */])(attributeKey))); + } else { + window.console.error('The RichText identifier prop does not match any attributes defined by the block.'); + } + } // A robust way to retain selection position through various transforms + // is to insert a special character at the position and then recover it. + + + var START_OF_SELECTED_AREA = "\x86"; // Clone the blocks so we don't insert the character in a "live" block. + + var cloneA = Object(external_this_wp_blocks_["cloneBlock"])(blockA); + var cloneB = Object(external_this_wp_blocks_["cloneBlock"])(blockB); + + if (canRestoreTextSelection) { + var selectedBlock = clientId === clientIdA ? cloneA : cloneB; + var html = selectedBlock.attributes[attributeKey]; + var multilineTag = attributeDefinition.multiline, + multilineWrapperTags = attributeDefinition.__unstableMultilineWrapperTags, + preserveWhiteSpace = attributeDefinition.__unstablePreserveWhiteSpace; + var value = Object(external_this_wp_richText_["insert"])(Object(external_this_wp_richText_["create"])({ + html: html, + multilineTag: multilineTag, + multilineWrapperTags: multilineWrapperTags, + preserveWhiteSpace: preserveWhiteSpace + }), START_OF_SELECTED_AREA, offset, offset); + selectedBlock.attributes[attributeKey] = Object(external_this_wp_richText_["toHTMLString"])({ + value: value, + multilineTag: multilineTag, + preserveWhiteSpace: preserveWhiteSpace + }); + } // We can only merge blocks with similar types + // thus, we transform the block to merge first + + + var blocksWithTheSameType = blockA.name === blockB.name ? [cloneB] : Object(external_this_wp_blocks_["switchToBlockType"])(cloneB, blockA.name); // If the block types can not match, do nothing + + if (!blocksWithTheSameType || !blocksWithTheSameType.length) { + return; + } // Calling the merge to update the attributes and remove the block to be merged + + + var updatedAttributes = blockAType.merge(cloneA.attributes, blocksWithTheSameType[0].attributes); + + if (canRestoreTextSelection) { + var newAttributeKey = Object(external_this_lodash_["findKey"])(updatedAttributes, function (v) { + return typeof v === 'string' && v.indexOf(START_OF_SELECTED_AREA) !== -1; + }); + var convertedHtml = updatedAttributes[newAttributeKey]; + var _blockAType$attribute = blockAType.attributes[newAttributeKey], + _multilineTag = _blockAType$attribute.multiline, + _multilineWrapperTags = _blockAType$attribute.__unstableMultilineWrapperTags, + _preserveWhiteSpace = _blockAType$attribute.__unstablePreserveWhiteSpace; + var convertedValue = Object(external_this_wp_richText_["create"])({ + html: convertedHtml, + multilineTag: _multilineTag, + multilineWrapperTags: _multilineWrapperTags, + preserveWhiteSpace: _preserveWhiteSpace + }); + var newOffset = convertedValue.text.indexOf(START_OF_SELECTED_AREA); + var newValue = Object(external_this_wp_richText_["remove"])(convertedValue, newOffset, newOffset + 1); + var newHtml = Object(external_this_wp_richText_["toHTMLString"])({ + value: newValue, + multilineTag: _multilineTag, + preserveWhiteSpace: _preserveWhiteSpace + }); + updatedAttributes[newAttributeKey] = newHtml; + dispatch(actions_selectionChange(blockA.clientId, newAttributeKey, newOffset, newOffset)); + } + + dispatch(actions_replaceBlocks([blockA.clientId, blockB.clientId], [effects_objectSpread({}, blockA, { + attributes: effects_objectSpread({}, blockA.attributes, {}, updatedAttributes) + })].concat(Object(toConsumableArray["a" /* default */])(blocksWithTheSameType.slice(1))))); + }, + RESET_BLOCKS: [validateBlocksToTemplate], + MULTI_SELECT: function MULTI_SELECT(action, _ref) { + var getState = _ref.getState; + var blockCount = selectors_getSelectedBlockCount(getState()); + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: number of selected blocks */ + Object(external_this_wp_i18n_["_n"])('%s block selected.', '%s blocks selected.', blockCount), blockCount), 'assertive'); + }, + SYNCHRONIZE_TEMPLATE: function SYNCHRONIZE_TEMPLATE(action, _ref2) { + var getState = _ref2.getState; + var state = getState(); + var blocks = selectors_getBlocks(state); + var template = getTemplate(state); + var updatedBlockList = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(blocks, template); + return actions_resetBlocks(updatedBlockList); + }, + MARK_AUTOMATIC_CHANGE: function MARK_AUTOMATIC_CHANGE(action, store) { + var _window = window, + setTimeout = _window.setTimeout, + _window$requestIdleCa = _window.requestIdleCallback, + requestIdleCallback = _window$requestIdleCa === void 0 ? function (callback) { + return setTimeout(callback, 100); + } : _window$requestIdleCa; + requestIdleCallback(function () { + store.dispatch({ + type: 'MARK_AUTOMATIC_CHANGE_FINAL' + }); + }); + } +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/middlewares.js + + +/** + * External dependencies + */ + + + +/** + * Internal dependencies + */ + + +/** + * Applies the custom middlewares used specifically in the editor module. + * + * @param {Object} store Store Object. + * + * @return {Object} Update Store Object. + */ + +function applyMiddlewares(store) { + var middlewares = [refx_default()(effects), redux_multi_lib_default.a]; + + var enhancedDispatch = function enhancedDispatch() { + throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); + }; + + var chain = []; + var middlewareAPI = { + getState: store.getState, + dispatch: function dispatch() { + return enhancedDispatch.apply(void 0, arguments); + } + }; + chain = middlewares.map(function (middleware) { + return middleware(middlewareAPI); + }); + enhancedDispatch = external_this_lodash_["flowRight"].apply(void 0, Object(toConsumableArray["a" /* default */])(chain))(store.dispatch); + store.dispatch = enhancedDispatch; + return store; +} + +/* harmony default export */ var store_middlewares = (applyMiddlewares); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/index.js + + +function store_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function store_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { store_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { store_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + + +/** + * Module Constants + */ + +var MODULE_KEY = 'core/block-editor'; +/** + * Block editor data store configuration. + * + * @see https://github.com/WordPress/gutenberg/blob/master/packages/data/README.md#registerStore + * + * @type {Object} + */ + +var storeConfig = { + reducer: store_reducer, + selectors: selectors_namespaceObject, + actions: actions_namespaceObject, + controls: store_controls +}; +var store_store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, store_objectSpread({}, storeConfig, { + persist: ['preferences'] +})); +store_middlewares(store_store); +/* harmony default export */ var build_module_store = (store_store); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/with-registry-provider.js + + + + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var withRegistryProvider = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return Object(external_this_wp_data_["withRegistry"])(function (_ref) { + var _ref$useSubRegistry = _ref.useSubRegistry, + useSubRegistry = _ref$useSubRegistry === void 0 ? true : _ref$useSubRegistry, + registry = _ref.registry, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["useSubRegistry", "registry"]); + + if (!useSubRegistry) { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({ + registry: registry + }, props)); + } + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + subRegistry = _useState2[0], + setSubRegistry = _useState2[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + var newRegistry = Object(external_this_wp_data_["createRegistry"])({}, registry); + var store = newRegistry.registerStore('core/block-editor', storeConfig); // This should be removed after the refactoring of the effects to controls. + + store_middlewares(store); + setSubRegistry(newRegistry); + }, [registry]); + + if (!subRegistry) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["RegistryProvider"], { + value: subRegistry + }, Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({ + registry: subRegistry + }, props))); + }); +}, 'withRegistryProvider'); +/* harmony default export */ var with_registry_provider = (withRegistryProvider); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/use-block-sync.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * A function to call when the block value has been updated in the block-editor + * store. + * + * @callback onBlockUpdate + * @param {Object[]} blocks The updated blocks. + * @param {Object} options The updated block options, such as selectionStart + * and selectionEnd. + */ + +/** + * useBlockSync is a side effect which handles bidirectional sync between the + * block-editor store and a controlling data source which provides blocks. This + * is most commonly used by the BlockEditorProvider to synchronize the contents + * of the block-editor store with the root entity, like a post. + * + * Another example would be the template part block, which provides blocks from + * a separate entity data source than a root entity. This hook syncs edits to + * the template part in the block editor back to the entity and vice-versa. + * + * Here are some of its basic functions: + * - Initalizes the block-editor store for the given clientID to the blocks + * given via props. + * - Adds incoming changes (like undo) to the block-editor store. + * - Adds outgoing changes (like editing content) to the controlling entity, + * determining if a change should be considered persistent or not. + * - Handles edge cases and race conditions which occur in those operations. + * - Ignores changes which happen to other entities (like nested inner block + * controllers. + * - Passes selection state from the block-editor store to the controlling entity. + * + * @param {Object} props Props for the block sync hook + * @param {string} props.clientId The client ID of the inner block controller. + * If none is passed, then it is assumed to be a + * root controller rather than an inner block + * controller. + * @param {Object[]} props.value The control value for the blocks. This value + * is used to initalize the block-editor store + * and for resetting the blocks to incoming + * changes like undo. + * @param {Object} props.selectionStart The selection start vlaue from the + * controlling component. + * @param {Object} props.selectionEnd The selection end vlaue from the + * controlling component. + * @param {onBlockUpdate} props.onChange Function to call when a persistent + * change has been made in the block-editor blocks + * for the given clientId. For example, after + * this function is called, an entity is marked + * dirty because it has changes to save. + * @param {onBlockUpdate} props.onInput Function to call when a non-persistent + * change has been made in the block-editor blocks + * for the given clientId. When this is called, + * controlling sources do not become dirty. + */ + +function useBlockSync(_ref) { + var _ref$clientId = _ref.clientId, + clientId = _ref$clientId === void 0 ? null : _ref$clientId, + controlledBlocks = _ref.value, + controlledSelectionStart = _ref.selectionStart, + controlledSelectionEnd = _ref.selectionEnd, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onInput = _ref.onInput, + onInput = _ref$onInput === void 0 ? external_this_lodash_["noop"] : _ref$onInput; + var registry = Object(external_this_wp_data_["useRegistry"])(); + + var _registry$dispatch = registry.dispatch('core/block-editor'), + resetBlocks = _registry$dispatch.resetBlocks, + resetSelection = _registry$dispatch.resetSelection, + replaceInnerBlocks = _registry$dispatch.replaceInnerBlocks, + setHasControlledInnerBlocks = _registry$dispatch.setHasControlledInnerBlocks, + __unstableMarkNextChangeAsNotPersistent = _registry$dispatch.__unstableMarkNextChangeAsNotPersistent; + + var _registry$select = registry.select('core/block-editor'), + getBlockName = _registry$select.getBlockName, + getBlocks = _registry$select.getBlocks; + + var pendingChanges = Object(external_this_wp_element_["useRef"])({ + incoming: null, + outgoing: [] + }); + + var setControlledBlocks = function setControlledBlocks() { + if (!controlledBlocks) { + return; + } // We don't need to persist this change because we only replace + // controlled inner blocks when the change was caused by an entity, + // and so it would already be persisted. + + + __unstableMarkNextChangeAsNotPersistent(); + + if (clientId) { + setHasControlledInnerBlocks(clientId, true); + + __unstableMarkNextChangeAsNotPersistent(); + + replaceInnerBlocks(clientId, controlledBlocks, false); + } else { + resetBlocks(controlledBlocks); + } + }; // Add a subscription to the block-editor registry to detect when changes + // have been made. This lets us inform the data source of changes. This + // is an effect so that the subscriber can run synchronously without + // waiting for React renders for changes. + + + var onInputRef = Object(external_this_wp_element_["useRef"])(onInput); + var onChangeRef = Object(external_this_wp_element_["useRef"])(onChange); + Object(external_this_wp_element_["useEffect"])(function () { + onInputRef.current = onInput; + onChangeRef.current = onChange; + }, [onInput, onChange]); + Object(external_this_wp_element_["useEffect"])(function () { + var _registry$select2 = registry.select('core/block-editor'), + getSelectionStart = _registry$select2.getSelectionStart, + getSelectionEnd = _registry$select2.getSelectionEnd, + isLastBlockChangePersistent = _registry$select2.isLastBlockChangePersistent, + __unstableIsLastBlockChangeIgnored = _registry$select2.__unstableIsLastBlockChangeIgnored; + + var blocks; + var isPersistent = isLastBlockChangePersistent(); + var previousAreBlocksDifferent = false; + var unsubscribe = registry.subscribe(function () { + // Sometimes, when changing block lists, lingering subscriptions + // might trigger before they are cleaned up. If the block for which + // the subscription runs is no longer in the store, this would clear + // its parent entity's block list. To avoid this, we bail out if + // the subscription is triggering for a block (`clientId !== null`) + // and its block name can't be found because it's not on the list. + // (`getBlockName( clientId ) === null`). + if (clientId !== null && getBlockName(clientId) === null) return; + var newIsPersistent = isLastBlockChangePersistent(); + var newBlocks = getBlocks(clientId); + var areBlocksDifferent = newBlocks !== blocks; + blocks = newBlocks; + + if (areBlocksDifferent && (pendingChanges.current.incoming || __unstableIsLastBlockChangeIgnored())) { + pendingChanges.current.incoming = null; + isPersistent = newIsPersistent; + return; + } // Since we often dispatch an action to mark the previous action as + // persistent, we need to make sure that the blocks changed on the + // previous action before committing the change. + + + var didPersistenceChange = previousAreBlocksDifferent && !areBlocksDifferent && newIsPersistent && !isPersistent; + + if (areBlocksDifferent || didPersistenceChange) { + isPersistent = newIsPersistent; // We know that onChange/onInput will update controlledBlocks. + // We need to be aware that it was caused by an outgoing change + // so that we do not treat it as an incoming change later on, + // which would cause a block reset. + + pendingChanges.current.outgoing.push(blocks); // Inform the controlling entity that changes have been made to + // the block-editor store they should be aware about. + + var updateParent = isPersistent ? onChange : onInput; + updateParent(blocks, { + selectionStart: getSelectionStart(), + selectionEnd: getSelectionEnd() + }); + } + + previousAreBlocksDifferent = areBlocksDifferent; + }); + return function () { + return unsubscribe(); + }; + }, [registry, clientId]); // Determine if blocks need to be reset when they change. + + Object(external_this_wp_element_["useEffect"])(function () { + if (pendingChanges.current.outgoing.includes(controlledBlocks)) { + // Skip block reset if the value matches expected outbound sync + // triggered by this component by a preceding change detection. + // Only skip if the value matches expectation, since a reset should + // still occur if the value is modified (not equal by reference), + // to allow that the consumer may apply modifications to reflect + // back on the editor. + if (Object(external_this_lodash_["last"])(pendingChanges.current.outgoing) === controlledBlocks) { + pendingChanges.current.outgoing = []; + } + } else if (getBlocks(clientId) !== controlledBlocks) { + // Reset changing value in all other cases than the sync described + // above. Since this can be reached in an update following an out- + // bound sync, unset the outbound value to avoid considering it in + // subsequent renders. + pendingChanges.current.outgoing = []; + pendingChanges.current.incoming = controlledBlocks; + setControlledBlocks(); + + if (controlledSelectionStart && controlledSelectionEnd) { + resetSelection(controlledSelectionStart, controlledSelectionEnd); + } + } + }, [controlledBlocks, clientId]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/index.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +/** @typedef {import('@wordpress/data').WPDataRegistry} WPDataRegistry */ + +function BlockEditorProvider(props) { + var children = props.children, + settings = props.settings; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateSettings = _useDispatch.updateSettings; + + Object(external_this_wp_element_["useEffect"])(function () { + updateSettings(settings); + }, [settings]); // Syncs the entity provider with changes in the block-editor store. + + useBlockSync(props); + return children; +} + +/* harmony default export */ var provider = (with_registry_provider(BlockEditorProvider)); + +// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} +var external_this_wp_htmlEntities_ = __webpack_require__(62); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +function default_block_appender_DefaultBlockAppender(_ref) { + var isLocked = _ref.isLocked, + isVisible = _ref.isVisible, + onAppend = _ref.onAppend, + showPrompt = _ref.showPrompt, + placeholder = _ref.placeholder, + rootClientId = _ref.rootClientId; + + if (isLocked || !isVisible) { + return null; + } + + var value = Object(external_this_wp_htmlEntities_["decodeEntities"])(placeholder) || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'); // The appender "button" is in-fact a text field so as to support + // transitions by WritingFlow occurring by arrow key press. WritingFlow + // only supports tab transitions into text fields and to the block focus + // boundary. + // + // See: https://github.com/WordPress/gutenberg/issues/4829#issuecomment-374213658 + // + // If it were ever to be made to be a proper `button` element, it is + // important to note that `onFocus` alone would not be sufficient to + // capture click events, notably in Firefox. + // + // See: https://gist.github.com/cvrebert/68659d0333a578d75372 + // The wp-block className is important for editor styles. + + + return Object(external_this_wp_element_["createElement"])("div", { + "data-root-client-id": rootClientId || '', + className: "wp-block block-editor-default-block-appender" + }, Object(external_this_wp_element_["createElement"])(lib_default.a, { + role: "button", + "aria-label": Object(external_this_wp_i18n_["__"])('Add block'), + className: "block-editor-default-block-appender__content", + readOnly: true, + onFocus: onAppend, + value: showPrompt ? value : '' + }), Object(external_this_wp_element_["createElement"])(inserter, { + rootClientId: rootClientId, + position: "top right", + isAppender: true + })); +} +/* harmony default export */ var default_block_appender = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/block-editor'), + getBlockCount = _select.getBlockCount, + getBlockName = _select.getBlockName, + isBlockValid = _select.isBlockValid, + getSettings = _select.getSettings, + getTemplateLock = _select.getTemplateLock; + + var isEmpty = !getBlockCount(ownProps.rootClientId); + var isLastBlockDefault = getBlockName(ownProps.lastBlockClientId) === Object(external_this_wp_blocks_["getDefaultBlockName"])(); + var isLastBlockValid = isBlockValid(ownProps.lastBlockClientId); + + var _getSettings = getSettings(), + bodyPlaceholder = _getSettings.bodyPlaceholder; + + return { + isVisible: isEmpty || !isLastBlockDefault || !isLastBlockValid, + showPrompt: isEmpty, + isLocked: !!getTemplateLock(ownProps.rootClientId), + placeholder: bodyPlaceholder + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/block-editor'), + insertDefaultBlock = _dispatch.insertDefaultBlock, + startTyping = _dispatch.startTyping; + + return { + onAppend: function onAppend() { + var rootClientId = ownProps.rootClientId; + insertDefaultBlock(undefined, rootClientId); + startTyping(); + } + }; +}))(default_block_appender_DefaultBlockAppender)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/button-block-appender/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +function button_block_appender_ButtonBlockAppender(_ref, ref) { + var rootClientId = _ref.rootClientId, + className = _ref.className, + selectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert, + onFocus = _ref.onFocus, + tabIndex = _ref.tabIndex; + return Object(external_this_wp_element_["createElement"])(inserter, { + position: "bottom center", + rootClientId: rootClientId, + __experimentalSelectBlockOnInsert: selectBlockOnInsert, + renderToggle: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + disabled = _ref2.disabled, + isOpen = _ref2.isOpen, + blockTitle = _ref2.blockTitle, + hasSingleBlockType = _ref2.hasSingleBlockType; + var label; + + if (hasSingleBlockType) { + label = Object(external_this_wp_i18n_["sprintf"])( // translators: %s: the name of the block when there is only one + Object(external_this_wp_i18n_["_x"])('Add %s', 'directly add the only allowed block'), blockTitle); + } else { + label = Object(external_this_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button'); + } + + var isToggleButton = !hasSingleBlockType; + var inserterButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + ref: ref, + onFocus: onFocus, + tabIndex: tabIndex, + className: classnames_default()(className, 'block-editor-button-block-appender'), + onClick: onToggle, + "aria-haspopup": isToggleButton ? 'true' : undefined, + "aria-expanded": isToggleButton ? isOpen : undefined, + disabled: disabled, + label: label + }, !hasSingleBlockType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "span" + }, label), Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + icon: plus["a" /* default */] + }), hasSingleBlockType && Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-button-block-appender__label" + }, label, ' ')); + + if (isToggleButton) { + inserterButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tooltip"], { + text: label + }, inserterButton); + } + + return inserterButton; + }, + isAppender: true + }); +} +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/button-block-appender/README.md + */ + + +/* harmony default export */ var button_block_appender = (Object(external_this_wp_element_["forwardRef"])(button_block_appender_ButtonBlockAppender)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list-appender/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +function block_list_appender_stopPropagation(event) { + event.stopPropagation(); +} + +function BlockListAppender(_ref) { + var blockClientIds = _ref.blockClientIds, + rootClientId = _ref.rootClientId, + canInsertDefaultBlock = _ref.canInsertDefaultBlock, + isLocked = _ref.isLocked, + CustomAppender = _ref.renderAppender, + className = _ref.className, + _ref$tagName = _ref.tagName, + TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName; + + if (isLocked || CustomAppender === false) { + return null; + } + + var appender; + + if (CustomAppender) { + // Prefer custom render prop if provided. + appender = Object(external_this_wp_element_["createElement"])(CustomAppender, null); + } else if (canInsertDefaultBlock) { + // Render the default block appender when renderAppender has not been + // provided and the context supports use of the default appender. + appender = Object(external_this_wp_element_["createElement"])(default_block_appender, { + rootClientId: rootClientId, + lastBlockClientId: Object(external_this_lodash_["last"])(blockClientIds) + }); + } else { + // Fallback in the case no renderAppender has been provided and the + // default block can't be inserted. + appender = Object(external_this_wp_element_["createElement"])(button_block_appender, { + rootClientId: rootClientId, + className: "block-list-appender__toggle" + }); + } + + return Object(external_this_wp_element_["createElement"])(TagName // A `tabIndex` is used on the wrapping `div` element in order to + // force a focus event to occur when an appender `button` element + // is clicked. In some browsers (Firefox, Safari), button clicks do + // not emit a focus event, which could cause this event to propagate + // unexpectedly. The `tabIndex` ensures that the interaction is + // captured as a focus, without also adding an extra tab stop. + // + // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + , { + tabIndex: -1 // Prevent the block from being selected when the appender is + // clicked. + , + onFocus: block_list_appender_stopPropagation, + className: classnames_default()('block-list-appender', className) + }, appender); +} + +/* harmony default export */ var block_list_appender = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var rootClientId = _ref2.rootClientId; + + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + canInsertBlockType = _select.canInsertBlockType, + getTemplateLock = _select.getTemplateLock; + + return { + isLocked: !!getTemplateLock(rootClientId), + blockClientIds: getBlockOrder(rootClientId), + canInsertDefaultBlock: canInsertBlockType(Object(external_this_wp_blocks_["getDefaultBlockName"])(), rootClientId) + }; +})(BlockListAppender)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-block-drop-zone/index.js + + +/** + * WordPress dependencies + */ + + + + +/** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ + +/** + * @typedef {Object} WPBlockDragPosition + * @property {number} x The horizontal position of a the block being dragged. + * @property {number} y The vertical position of the block being dragged. + */ + +/** + * The orientation of a block list. + * + * @typedef {'horizontal'|'vertical'|undefined} WPBlockListOrientation + */ + +/** + * Given a list of block DOM elements finds the index that a block should be dropped + * at. + * + * This function works for both horizontal and vertical block lists and uses the following + * terms for its variables: + * + * - Lateral, meaning the axis running horizontally when a block list is vertical and vertically when a block list is horizontal. + * - Forward, meaning the axis running vertically when a block list is vertical and horizontally + * when a block list is horizontal. + * + * + * @param {Element[]} elements Array of DOM elements that represent each block in a block list. + * @param {WPBlockDragPosition} position The position of the item being dragged. + * @param {WPBlockListOrientation} orientation The orientation of a block list. + * + * @return {number|undefined} The block index that's closest to the drag position. + */ + +function getNearestBlockIndex(elements, position, orientation) { + var x = position.x, + y = position.y; + var isHorizontal = orientation === 'horizontal'; + var candidateIndex; + var candidateDistance; + elements.forEach(function (element, index) { + // Ensure the element is a block. It should have the `data-block` attribute. + if (!element.dataset.block) { + return; + } + + var rect = element.getBoundingClientRect(); + var cursorLateralPosition = isHorizontal ? y : x; + var cursorForwardPosition = isHorizontal ? x : y; + var edgeLateralStart = isHorizontal ? rect.top : rect.left; + var edgeLateralEnd = isHorizontal ? rect.bottom : rect.right; // When the cursor position is within the lateral bounds of the block, + // measure the straight line distance to the nearest point on the + // block's edge, else measure diagonal distance to the nearest corner. + + var edgeLateralPosition; + + if (cursorLateralPosition >= edgeLateralStart && cursorLateralPosition <= edgeLateralEnd) { + edgeLateralPosition = cursorLateralPosition; + } else if (cursorLateralPosition < edgeLateralStart) { + edgeLateralPosition = edgeLateralStart; + } else { + edgeLateralPosition = edgeLateralEnd; + } + + var leadingEdgeForwardPosition = isHorizontal ? rect.left : rect.top; + var trailingEdgeForwardPosition = isHorizontal ? rect.right : rect.bottom; // First measure the distance to the leading edge of the block. + + var leadingEdgeDistance = Math.sqrt(Math.pow(cursorLateralPosition - edgeLateralPosition, 2) + Math.pow(cursorForwardPosition - leadingEdgeForwardPosition, 2)); // If no candidate has been assigned yet or this is the nearest + // block edge to the cursor, then assign it as the candidate. + + if (candidateDistance === undefined || Math.abs(leadingEdgeDistance) < candidateDistance) { + candidateDistance = leadingEdgeDistance; + candidateIndex = index; + } // Next measure the distance to the trailing edge of the block. + + + var trailingEdgeDistance = Math.sqrt(Math.pow(cursorLateralPosition - edgeLateralPosition, 2) + Math.pow(cursorForwardPosition - trailingEdgeForwardPosition, 2)); // If no candidate has been assigned yet or this is the nearest + // block edge to the cursor, then assign it as the candidate. + + if (Math.abs(trailingEdgeDistance) < candidateDistance) { + candidateDistance = trailingEdgeDistance; + candidateIndex = index + 1; + } + }); + return candidateIndex; +} +/** + * Retrieve the data for a block drop event. + * + * @param {WPSyntheticEvent} event The drop event. + * + * @return {Object} An object with block drag and drop data. + */ + +function parseDropEvent(event) { + var result = { + srcRootClientId: null, + srcClientId: null, + srcIndex: null, + type: null + }; + + if (!event.dataTransfer) { + return result; + } + + try { + result = Object.assign(result, JSON.parse(event.dataTransfer.getData('text'))); + } catch (err) { + return result; + } + + return result; +} +/** + * @typedef {Object} WPBlockDropZoneConfig + * @property {Object} element A React ref object pointing to the block list's DOM element. + * @property {string} rootClientId The root client id for the block list. + */ + +/** + * A React hook that can be used to make a block list handle drag and drop. + * + * @param {WPBlockDropZoneConfig} dropZoneConfig configuration data for the drop zone. + * + * @return {number|undefined} The block index that's closest to the drag position. + */ + + +function useBlockDropZone(_ref) { + var element = _ref.element, + targetRootClientId = _ref.rootClientId; + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + targetBlockIndex = _useState2[0], + setTargetBlockIndex = _useState2[1]; + + function selector(select) { + var _getBlockListSettings; + + var _select = select('core/block-editor'), + getBlockIndex = _select.getBlockIndex, + getBlockListSettings = _select.getBlockListSettings, + getClientIdsOfDescendants = _select.getClientIdsOfDescendants, + getSettings = _select.getSettings, + getTemplateLock = _select.getTemplateLock; + + return { + getBlockIndex: getBlockIndex, + moverDirection: (_getBlockListSettings = getBlockListSettings(targetRootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.__experimentalMoverDirection, + getClientIdsOfDescendants: getClientIdsOfDescendants, + hasUploadPermissions: !!getSettings().mediaUpload, + isLockedAll: getTemplateLock(targetRootClientId) === 'all' + }; + } + + var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, [targetRootClientId]), + getBlockIndex = _useSelect.getBlockIndex, + getClientIdsOfDescendants = _useSelect.getClientIdsOfDescendants, + hasUploadPermissions = _useSelect.hasUploadPermissions, + isLockedAll = _useSelect.isLockedAll, + moverDirection = _useSelect.moverDirection; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + insertBlocks = _useDispatch.insertBlocks, + updateBlockAttributes = _useDispatch.updateBlockAttributes, + moveBlockToPosition = _useDispatch.moveBlockToPosition; + + var onFilesDrop = Object(external_this_wp_element_["useCallback"])(function (files) { + if (!hasUploadPermissions) { + return; + } + + var transformation = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('from'), function (transform) { + return transform.type === 'files' && transform.isMatch(files); + }); + + if (transformation) { + var blocks = transformation.transform(files, updateBlockAttributes); + insertBlocks(blocks, targetBlockIndex, targetRootClientId); + } + }, [hasUploadPermissions, updateBlockAttributes, insertBlocks, targetBlockIndex, targetRootClientId]); + var onHTMLDrop = Object(external_this_wp_element_["useCallback"])(function (HTML) { + var blocks = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: HTML, + mode: 'BLOCKS' + }); + + if (blocks.length) { + insertBlocks(blocks, targetBlockIndex, targetRootClientId); + } + }, [insertBlocks, targetBlockIndex, targetRootClientId]); + var onDrop = Object(external_this_wp_element_["useCallback"])(function (event) { + var _parseDropEvent = parseDropEvent(event), + sourceRootClientId = _parseDropEvent.srcRootClientId, + sourceClientId = _parseDropEvent.srcClientId, + sourceBlockIndex = _parseDropEvent.srcIndex, + dropType = _parseDropEvent.type; // If the user isn't dropping a block, return early. + + + if (dropType !== 'block') { + return; + } // If the user is dropping to the same position, return early. + + + if (sourceRootClientId === targetRootClientId && sourceBlockIndex === targetBlockIndex) { + return; + } // If the user is attempting to drop a block within its own + // nested blocks, return early as this would create infinite + // recursion. + + + if (targetRootClientId === sourceClientId || getClientIdsOfDescendants([sourceClientId]).some(function (id) { + return id === targetRootClientId; + })) { + return; + } + + var isAtSameLevel = sourceRootClientId === targetRootClientId || sourceRootClientId === '' && targetRootClientId === undefined; // If the block is kept at the same level and moved downwards, + // subtract to account for blocks shifting upward to occupy its old position. + + var insertIndex = isAtSameLevel && sourceBlockIndex < targetBlockIndex ? targetBlockIndex - 1 : targetBlockIndex; + moveBlockToPosition(sourceClientId, sourceRootClientId, targetRootClientId, insertIndex); + }, [getClientIdsOfDescendants, getBlockIndex, targetBlockIndex, moveBlockToPosition, targetRootClientId]); + + var _useDropZone = Object(external_this_wp_components_["__unstableUseDropZone"])({ + element: element, + onFilesDrop: onFilesDrop, + onHTMLDrop: onHTMLDrop, + onDrop: onDrop, + isDisabled: isLockedAll, + withPosition: true + }), + position = _useDropZone.position; + + Object(external_this_wp_element_["useEffect"])(function () { + if (position) { + var blockElements = Array.from(element.current.children); + var targetIndex = getNearestBlockIndex(blockElements, position, moverDirection); + + if (targetIndex === undefined) { + return; + } + + setTargetBlockIndex(targetIndex); + } + }, [position]); + + if (position) { + return targetBlockIndex; + } +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + + +/** + * If the block count exceeds the threshold, we disable the reordering animation + * to avoid laginess. + */ + +var BLOCK_ANIMATION_THRESHOLD = 200; + +function BlockList(_ref, ref) { + var className = _ref.className, + rootClientId = _ref.rootClientId, + renderAppender = _ref.renderAppender, + _ref$__experimentalTa = _ref.__experimentalTagName, + __experimentalTagName = _ref$__experimentalTa === void 0 ? 'div' : _ref$__experimentalTa, + __experimentalAppenderTagName = _ref.__experimentalAppenderTagName, + _ref$__experimentalPa = _ref.__experimentalPassedProps, + __experimentalPassedProps = _ref$__experimentalPa === void 0 ? {} : _ref$__experimentalPa; + + function selector(select) { + var _getBlockListSettings; + + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + getBlockListSettings = _select.getBlockListSettings, + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + hasMultiSelection = _select.hasMultiSelection, + getGlobalBlockCount = _select.getGlobalBlockCount, + isTyping = _select.isTyping; + + return { + blockClientIds: getBlockOrder(rootClientId), + selectedBlockClientId: getSelectedBlockClientId(), + multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), + moverDirection: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.__experimentalMoverDirection, + hasMultiSelection: hasMultiSelection(), + enableAnimation: !isTyping() && getGlobalBlockCount() <= BLOCK_ANIMATION_THRESHOLD + }; + } + + var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, [rootClientId]), + blockClientIds = _useSelect.blockClientIds, + selectedBlockClientId = _useSelect.selectedBlockClientId, + multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds, + moverDirection = _useSelect.moverDirection, + hasMultiSelection = _useSelect.hasMultiSelection, + enableAnimation = _useSelect.enableAnimation; + + var Container = rootClientId ? __experimentalTagName : root_container; + var dropTargetIndex = useBlockDropZone({ + element: ref, + rootClientId: rootClientId + }); + var isAppenderDropTarget = dropTargetIndex === blockClientIds.length; + return Object(external_this_wp_element_["createElement"])(Container, Object(esm_extends["a" /* default */])({}, __experimentalPassedProps, { + ref: ref, + className: classnames_default()('block-editor-block-list__layout', className, __experimentalPassedProps.className) + }), blockClientIds.map(function (clientId, index) { + var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; + var isDropTarget = dropTargetIndex === index; + return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { + key: clientId, + value: !isBlockInSelection + }, Object(external_this_wp_element_["createElement"])(block_list_block, { + rootClientId: rootClientId, + clientId: clientId // This prop is explicitely computed and passed down + // to avoid being impacted by the async mode + // otherwise there might be a small delay to trigger the animation. + , + index: index, + enableAnimation: enableAnimation, + className: classnames_default()({ + 'is-drop-target': isDropTarget, + 'is-dropping-horizontally': isDropTarget && moverDirection === 'horizontal' + }) + })); + }), Object(external_this_wp_element_["createElement"])(block_list_appender, { + tagName: __experimentalAppenderTagName, + rootClientId: rootClientId, + renderAppender: renderAppender, + className: classnames_default()({ + 'is-drop-target': isAppenderDropTarget, + 'is-dropping-horizontally': isAppenderDropTarget && moverDirection === 'horizontal' + }) + })); +} + +var ForwardedBlockList = Object(external_this_wp_element_["forwardRef"])(BlockList); // This component needs to always be synchronous +// as it's the one changing the async mode +// depending on the block selection. + +/* harmony default export */ var block_list = (Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["AsyncModeProvider"], { + value: false + }, Object(external_this_wp_element_["createElement"])(ForwardedBlockList, Object(esm_extends["a" /* default */])({ + ref: ref || fallbackRef + }, props))); +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/live.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function LiveBlockPreview(_ref) { + var onClick = _ref.onClick; + return Object(external_this_wp_element_["createElement"])("div", { + tabIndex: 0, + role: "button", + onClick: onClick, + onKeyPress: onClick + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(block_list, null))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/auto.js + + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + // This is used to avoid rendering the block list if the sizes change. + +var MemoizedBlockList; + +function AutoBlockPreview(_ref) { + var viewportWidth = _ref.viewportWidth, + __experimentalPadding = _ref.__experimentalPadding; + + var _useResizeObserver = Object(external_this_wp_compose_["useResizeObserver"])(), + _useResizeObserver2 = Object(slicedToArray["a" /* default */])(_useResizeObserver, 2), + containerResizeListener = _useResizeObserver2[0], + containerWidth = _useResizeObserver2[1].width; + + var _useResizeObserver3 = Object(external_this_wp_compose_["useResizeObserver"])(), + _useResizeObserver4 = Object(slicedToArray["a" /* default */])(_useResizeObserver3, 2), + containtResizeListener = _useResizeObserver4[0], + contentHeight = _useResizeObserver4[1].height; // Initialize on render instead of module top level, to avoid circular dependency issues. + + + MemoizedBlockList = MemoizedBlockList || Object(external_this_wp_compose_["pure"])(block_list); + var scale = (containerWidth - 2 * __experimentalPadding) / viewportWidth; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-preview__container editor-styles-wrapper", + "aria-hidden": true, + style: { + height: contentHeight * scale + 2 * __experimentalPadding + } + }, containerResizeListener, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], { + style: { + transform: "scale(".concat(scale, ")"), + width: viewportWidth, + left: __experimentalPadding, + right: __experimentalPadding, + top: __experimentalPadding + }, + className: "block-editor-block-preview__content" + }, containtResizeListener, Object(external_this_wp_element_["createElement"])(MemoizedBlockList, null))); +} + +/* harmony default export */ var auto = (AutoBlockPreview); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +function BlockPreview(_ref) { + var blocks = _ref.blocks, + _ref$__experimentalPa = _ref.__experimentalPadding, + __experimentalPadding = _ref$__experimentalPa === void 0 ? 0 : _ref$__experimentalPa, + _ref$viewportWidth = _ref.viewportWidth, + viewportWidth = _ref$viewportWidth === void 0 ? 700 : _ref$viewportWidth, + _ref$__experimentalLi = _ref.__experimentalLive, + __experimentalLive = _ref$__experimentalLi === void 0 ? false : _ref$__experimentalLi, + __experimentalOnClick = _ref.__experimentalOnClick; + + var settings = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings(); + }); + var renderedBlocks = Object(external_this_wp_element_["useMemo"])(function () { + return Object(external_this_lodash_["castArray"])(blocks); + }, [blocks]); + + if (!blocks || blocks.length === 0) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(provider, { + value: renderedBlocks, + settings: settings + }, __experimentalLive ? Object(external_this_wp_element_["createElement"])(LiveBlockPreview, { + onClick: __experimentalOnClick + }) : Object(external_this_wp_element_["createElement"])(auto, { + viewportWidth: viewportWidth, + __experimentalPadding: __experimentalPadding + })); +} +/** + * BlockPreview renders a preview of a block or array of blocks. + * + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/block-preview/README.md + * + * @param {Object} preview options for how the preview should be shown + * @param {Array|Object} preview.blocks A block instance (object) or an array of blocks to be previewed. + * @param {number} preview.viewportWidth Width of the preview container in pixels. Controls at what size the blocks will be rendered inside the preview. Default: 700. + * + * @return {WPComponent} The component to be rendered. + */ + +/* harmony default export */ var block_preview = (Object(external_this_wp_element_["memo"])(BlockPreview)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/preview-panel.js + + + +function preview_panel_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function preview_panel_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { preview_panel_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { preview_panel_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + +function InserterPreviewPanel(_ref) { + var item = _ref.item; + var hoveredItemBlockType = Object(external_this_wp_blocks_["getBlockType"])(item.name); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__menu-preview-panel" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__preview" + }, Object(external_this_wp_blocks_["isReusableBlock"])(item) || hoveredItemBlockType.example ? Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__preview-content" + }, Object(external_this_wp_element_["createElement"])(block_preview, { + __experimentalPadding: 16, + viewportWidth: 500, + blocks: hoveredItemBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(item.name, { + attributes: preview_panel_objectSpread({}, hoveredItemBlockType.example.attributes, {}, item.initialAttributes), + innerBlocks: hoveredItemBlockType.example.innerBlocks + }) : Object(external_this_wp_blocks_["createBlock"])(item.name, item.initialAttributes) + })) : Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__preview-content-missing" + }, Object(external_this_wp_i18n_["__"])('No Preview Available.'))), !Object(external_this_wp_blocks_["isReusableBlock"])(item) && Object(external_this_wp_element_["createElement"])(block_card, { + blockType: item + })); +} + +/* harmony default export */ var preview_panel = (InserterPreviewPanel); + +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(30); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/controls-repeat.js + + +/** + * WordPress dependencies + */ + +var controlsRepeat = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z" +})); +/* harmony default export */ var controls_repeat = (controlsRepeat); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function InserterListItem(_ref) { + var icon = _ref.icon, + _onClick = _ref.onClick, + isDisabled = _ref.isDisabled, + title = _ref.title, + className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["icon", "onClick", "isDisabled", "title", "className"]); + + var itemIconStyle = icon ? { + backgroundColor: icon.background, + color: icon.foreground + } : {}; + return Object(external_this_wp_element_["createElement"])("li", { + className: "block-editor-block-types-list__list-item" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({ + className: classnames_default()('block-editor-block-types-list__item', className), + onClick: function onClick(event) { + event.preventDefault(); + + _onClick(); + }, + disabled: isDisabled + }, props), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-block-types-list__item-icon", + style: itemIconStyle + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + })), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-block-types-list__item-title" + }, title))); +} + +/* harmony default export */ var inserter_list_item = (InserterListItem); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-types-list/index.js + + + +function block_types_list_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_types_list_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_types_list_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_types_list_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function BlockTypesList(_ref) { + var _ref$items = _ref.items, + items = _ref$items === void 0 ? [] : _ref$items, + onSelect = _ref.onSelect, + _ref$onHover = _ref.onHover, + onHover = _ref$onHover === void 0 ? function () {} : _ref$onHover, + children = _ref.children; + var normalizedItems = items.reduce(function (result, item) { + var _item$variations = item.variations, + variations = _item$variations === void 0 ? [] : _item$variations; + var hasDefaultVariation = variations.some(function (_ref2) { + var isDefault = _ref2.isDefault; + return isDefault; + }); // If there is no default inserter variation provided, + // then default block type is displayed. + + if (!hasDefaultVariation) { + result.push(item); + } + + if (variations.length) { + result = result.concat(variations.map(function (variation) { + return block_types_list_objectSpread({}, item, { + id: "".concat(item.id, "-").concat(variation.name), + icon: variation.icon || item.icon, + title: variation.title || item.title, + description: variation.description || item.description, + // If `example` is explicitly undefined for the variation, the preview will not be shown. + example: variation.hasOwnProperty('example') ? variation.example : item.example, + initialAttributes: block_types_list_objectSpread({}, item.initialAttributes, {}, variation.attributes), + innerBlocks: variation.innerBlocks + }); + })); + } + + return result; + }, []); + return ( + /* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + + /* eslint-disable jsx-a11y/no-redundant-roles */ + Object(external_this_wp_element_["createElement"])("ul", { + role: "list", + className: "block-editor-block-types-list" + }, normalizedItems.map(function (item) { + return Object(external_this_wp_element_["createElement"])(inserter_list_item, { + key: item.id, + className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(item.id), + icon: item.icon, + onClick: function onClick() { + onSelect(item); + onHover(null); + }, + onFocus: function onFocus() { + return onHover(item); + }, + onMouseEnter: function onMouseEnter() { + return onHover(item); + }, + onMouseLeave: function onMouseLeave() { + return onHover(null); + }, + onBlur: function onBlur() { + return onHover(null); + }, + isDisabled: item.isDisabled, + title: item.title + }); + }), children) + /* eslint-enable jsx-a11y/no-redundant-roles */ + + ); +} + +/* harmony default export */ var block_types_list = (BlockTypesList); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/child-blocks.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function ChildBlocks(_ref) { + var rootClientId = _ref.rootClientId, + children = _ref.children; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/blocks'), + getBlockType = _select.getBlockType; + + var _select2 = select('core/block-editor'), + getBlockName = _select2.getBlockName; + + var rootBlockName = getBlockName(rootClientId); + var rootBlockType = getBlockType(rootBlockName); + return { + rootBlockTitle: rootBlockType && rootBlockType.title, + rootBlockIcon: rootBlockType && rootBlockType.icon + }; + }), + rootBlockTitle = _useSelect.rootBlockTitle, + rootBlockIcon = _useSelect.rootBlockIcon; + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__child-blocks" + }, (rootBlockIcon || rootBlockTitle) && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__parent-block-header" + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: rootBlockIcon, + showColors: true + }), rootBlockTitle && Object(external_this_wp_element_["createElement"])("h2", null, rootBlockTitle)), children); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-menu-extension/index.js +/** + * WordPress dependencies + */ + + +var inserter_menu_extension_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('__experimentalInserterMenuExtension'), + __experimentalInserterMenuExtension = inserter_menu_extension_createSlotFill.Fill, + inserter_menu_extension_Slot = inserter_menu_extension_createSlotFill.Slot; + +__experimentalInserterMenuExtension.Slot = inserter_menu_extension_Slot; +/* harmony default export */ var inserter_menu_extension = (__experimentalInserterMenuExtension); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-items.js + + + +function search_items_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function search_items_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { search_items_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { search_items_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * Converts the search term into a list of normalized terms. + * + * @param {string} term The search term to normalize. + * + * @return {string[]} The normalized list of search terms. + */ + +var search_items_normalizeSearchTerm = function normalizeSearchTerm() { + var term = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + // Disregard diacritics. + // Input: "média" + term = Object(external_this_lodash_["deburr"])(term); // Accommodate leading slash, matching autocomplete expectations. + // Input: "/media" + + term = term.replace(/^\//, ''); // Lowercase. + // Input: "MEDIA" + + term = term.toLowerCase(); // Extract words. + + return Object(external_this_lodash_["words"])(term); +}; + +var search_items_removeMatchingTerms = function removeMatchingTerms(unmatchedTerms, unprocessedTerms) { + return Object(external_this_lodash_["differenceWith"])(unmatchedTerms, search_items_normalizeSearchTerm(unprocessedTerms), function (unmatchedTerm, unprocessedTerm) { + return unprocessedTerm.includes(unmatchedTerm); + }); +}; + +var search_items_searchBlockItems = function searchBlockItems(items, categories, collections, searchTerm) { + var normalizedSearchTerms = search_items_normalizeSearchTerm(searchTerm); + + if (normalizedSearchTerms.length === 0) { + return items; + } + + return search_items_searchItems(items, searchTerm, { + getCategory: function getCategory(item) { + var _find; + + return (_find = Object(external_this_lodash_["find"])(categories, { + slug: item.category + })) === null || _find === void 0 ? void 0 : _find.title; + }, + getCollection: function getCollection(item) { + var _collections$item$nam; + + return (_collections$item$nam = collections[item.name.split('/')[0]]) === null || _collections$item$nam === void 0 ? void 0 : _collections$item$nam.title; + }, + getVariations: function getVariations(item) { + return (item.variations || []).map(function (variation) { + return variation.title; + }); + } + }).map(function (item) { + if (Object(external_this_lodash_["isEmpty"])(item.variations)) { + return item; + } + + var matchedVariations = item.variations.filter(function (variation) { + return Object(external_this_lodash_["intersectionWith"])(normalizedSearchTerms, search_items_normalizeSearchTerm(variation.title), function (termToMatch, labelTerm) { + return labelTerm.includes(termToMatch); + }).length > 0; + }); // When no variations matched, fallback to all variations. + + if (Object(external_this_lodash_["isEmpty"])(matchedVariations)) { + return item; + } + + return search_items_objectSpread({}, item, { + variations: matchedVariations + }); + }); +}; +/** + * Filters an item list given a search term. + * + * @param {Array} items Item list + * @param {string} searchTerm Search term. + * @param {Object} config Search Config. + * @return {Array} Filtered item list. + */ + +var search_items_searchItems = function searchItems(items, searchTerm) { + var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var normalizedSearchTerms = search_items_normalizeSearchTerm(searchTerm); + + if (normalizedSearchTerms.length === 0) { + return items; + } + + var defaultGetTitle = function defaultGetTitle(item) { + return item.title; + }; + + var defaultGetKeywords = function defaultGetKeywords(item) { + return item.keywords || []; + }; + + var defaultGetCategory = function defaultGetCategory(item) { + return item.category; + }; + + var defaultGetCollection = function defaultGetCollection() { + return null; + }; + + var defaultGetVariations = function defaultGetVariations() { + return []; + }; + + var _config$getTitle = config.getTitle, + getTitle = _config$getTitle === void 0 ? defaultGetTitle : _config$getTitle, + _config$getKeywords = config.getKeywords, + getKeywords = _config$getKeywords === void 0 ? defaultGetKeywords : _config$getKeywords, + _config$getCategory = config.getCategory, + getCategory = _config$getCategory === void 0 ? defaultGetCategory : _config$getCategory, + _config$getCollection = config.getCollection, + getCollection = _config$getCollection === void 0 ? defaultGetCollection : _config$getCollection, + _config$getVariations = config.getVariations, + getVariations = _config$getVariations === void 0 ? defaultGetVariations : _config$getVariations; + return items.filter(function (item) { + var title = getTitle(item); + var keywords = getKeywords(item); + var category = getCategory(item); + var collection = getCollection(item); + var variations = getVariations(item); + var terms = [title].concat(Object(toConsumableArray["a" /* default */])(keywords), [category, collection], Object(toConsumableArray["a" /* default */])(variations)).join(' '); + var unmatchedTerms = search_items_removeMatchingTerms(normalizedSearchTerms, terms); + return unmatchedTerms.length === 0; + }); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/panel.js + + +/** + * WordPress dependencies + */ + + +function InserterPanel(_ref) { + var title = _ref.title, + icon = _ref.icon, + children = _ref.children; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__panel-header" + }, Object(external_this_wp_element_["createElement"])("h2", { + className: "block-editor-inserter__panel-title" + }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + icon: icon + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__panel-content" + }, children)); +} + +/* harmony default export */ var panel = (InserterPanel); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/no-results.js + + +/** + * WordPress dependencies + */ + + + +function InserterNoResults() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__no-results" + }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + className: "block-editor-inserter__no-results-icon", + icon: block_default["a" /* default */] + }), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('No results found.'))); +} + +/* harmony default export */ var no_results = (InserterNoResults); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-block-types-state.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + // Copied over from the Columns block. It seems like it should become part of public API. + +var use_block_types_state_createBlocksFromInnerBlocksTemplate = function createBlocksFromInnerBlocksTemplate(innerBlocksTemplate) { + return Object(external_this_lodash_["map"])(innerBlocksTemplate, function (_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 3), + name = _ref2[0], + attributes = _ref2[1], + _ref2$ = _ref2[2], + innerBlocks = _ref2$ === void 0 ? [] : _ref2$; + + return Object(external_this_wp_blocks_["createBlock"])(name, attributes, createBlocksFromInnerBlocksTemplate(innerBlocks)); + }); +}; +/** + * Retrieves the block types inserter state. + * + * @param {string=} rootClientId Insertion's root client ID. + * @param {Function} onInsert function called when inserter a list of blocks. + * @return {Array} Returns the block types state. (block types, categories, collections, onSelect handler) + */ + + +var use_block_types_state_useBlockTypesState = function useBlockTypesState(rootClientId, onInsert) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getInserterItems = _select.getInserterItems, + getSettings = _select.getSettings; + + var _select2 = select('core/blocks'), + getCategories = _select2.getCategories, + getCollections = _select2.getCollections; + + var _getSettings = getSettings(), + __experimentalFetchReusableBlocks = _getSettings.__experimentalFetchReusableBlocks; + + return { + categories: getCategories(), + collections: getCollections(), + items: getInserterItems(rootClientId), + fetchReusableBlocks: __experimentalFetchReusableBlocks + }; + }, [rootClientId]), + categories = _useSelect.categories, + collections = _useSelect.collections, + items = _useSelect.items, + fetchReusableBlocks = _useSelect.fetchReusableBlocks; // Fetch resuable blocks on mount + + + Object(external_this_wp_element_["useEffect"])(function () { + if (fetchReusableBlocks) { + fetchReusableBlocks(); + } + }, []); + + var onSelectItem = function onSelectItem(_ref3) { + var name = _ref3.name, + initialAttributes = _ref3.initialAttributes, + innerBlocks = _ref3.innerBlocks; + var insertedBlock = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes, use_block_types_state_createBlocksFromInnerBlocksTemplate(innerBlocks)); + onInsert(insertedBlock); + }; + + return [items, categories, collections, onSelectItem]; +}; + +/* harmony default export */ var use_block_types_state = (use_block_types_state_useBlockTypesState); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-list.js + + + + +function block_list_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_list_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_list_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_list_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + + + + + + +var getBlockNamespace = function getBlockNamespace(item) { + return item.name.split('/')[0]; +}; + +var MAX_SUGGESTED_ITEMS = 6; +function InserterBlockList(_ref) { + var rootClientId = _ref.rootClientId, + onInsert = _ref.onInsert, + onHover = _ref.onHover, + filterValue = _ref.filterValue, + debouncedSpeak = _ref.debouncedSpeak; + + var _useBlockTypesState = use_block_types_state(rootClientId, onInsert), + _useBlockTypesState2 = Object(slicedToArray["a" /* default */])(_useBlockTypesState, 4), + items = _useBlockTypesState2[0], + categories = _useBlockTypesState2[1], + collections = _useBlockTypesState2[2], + onSelectItem = _useBlockTypesState2[3]; + + var hasChildItems = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName; + + var _select2 = select('core/blocks'), + getChildBlockNames = _select2.getChildBlockNames; + + var rootBlockName = getBlockName(rootClientId); + return !!getChildBlockNames(rootBlockName).length; + }, [rootClientId]); + var filteredItems = Object(external_this_wp_element_["useMemo"])(function () { + return search_items_searchBlockItems(items, categories, collections, filterValue); + }, [filterValue, items, categories, collections]); + var suggestedItems = Object(external_this_wp_element_["useMemo"])(function () { + return items.slice(0, MAX_SUGGESTED_ITEMS); + }, [items]); + var reusableItems = Object(external_this_wp_element_["useMemo"])(function () { + return filteredItems.filter(function (_ref2) { + var category = _ref2.category; + return category === 'reusable'; + }); + }, [filteredItems]); + var uncategorizedItems = Object(external_this_wp_element_["useMemo"])(function () { + return filteredItems.filter(function (item) { + return !item.category; + }); + }, [filteredItems]); + var itemsPerCategory = Object(external_this_wp_element_["useMemo"])(function () { + var getCategoryIndex = function getCategoryIndex(item) { + return Object(external_this_lodash_["findIndex"])(categories, function (category) { + return category.slug === item.category; + }); + }; + + return Object(external_this_lodash_["flow"])(function (itemList) { + return itemList.filter(function (item) { + return item.category && item.category !== 'reusable'; + }); + }, function (itemList) { + return Object(external_this_lodash_["sortBy"])(itemList, getCategoryIndex); + }, function (itemList) { + return Object(external_this_lodash_["groupBy"])(itemList, 'category'); + })(filteredItems); + }, [filteredItems, categories]); + var itemsPerCollection = Object(external_this_wp_element_["useMemo"])(function () { + // Create a new Object to avoid mutating collection + var result = block_list_objectSpread({}, collections); + + Object.keys(collections).forEach(function (namespace) { + result[namespace] = filteredItems.filter(function (item) { + return getBlockNamespace(item) === namespace; + }); + + if (result[namespace].length === 0) { + delete result[namespace]; + } + }); + return result; + }, [filteredItems, collections]); // Announce search results on change + + Object(external_this_wp_element_["useEffect"])(function () { + var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of results. */ + Object(external_this_wp_i18n_["_n"])('%d result found.', '%d results found.', filteredItems.length), filteredItems.length); + debouncedSpeak(resultsFoundMessage); + }, [filterValue, debouncedSpeak]); + var hasItems = !Object(external_this_lodash_["isEmpty"])(filteredItems); + return Object(external_this_wp_element_["createElement"])("div", null, hasChildItems && Object(external_this_wp_element_["createElement"])(ChildBlocks, { + rootClientId: rootClientId + }, Object(external_this_wp_element_["createElement"])(block_types_list // Pass along every block, as useBlockTypesState() and + // getInserterItems() will have already filtered out + // non-child blocks. + , { + items: filteredItems, + onSelect: onSelectItem, + onHover: onHover + })), !hasChildItems && !!suggestedItems.length && !filterValue && Object(external_this_wp_element_["createElement"])(panel, { + title: Object(external_this_wp_i18n_["_x"])('Most used', 'blocks') + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: suggestedItems, + onSelect: onSelectItem, + onHover: onHover + })), !hasChildItems && Object(external_this_lodash_["map"])(categories, function (category) { + var categoryItems = itemsPerCategory[category.slug]; + + if (!categoryItems || !categoryItems.length) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(panel, { + key: category.slug, + title: category.title, + icon: category.icon + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: categoryItems, + onSelect: onSelectItem, + onHover: onHover + })); + }), !hasChildItems && !!uncategorizedItems.length && Object(external_this_wp_element_["createElement"])(panel, { + className: "block-editor-inserter__uncategorized-blocks-panel", + title: Object(external_this_wp_i18n_["__"])('Uncategorized') + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: uncategorizedItems, + onSelect: onSelectItem, + onHover: onHover + })), !hasChildItems && Object(external_this_lodash_["map"])(collections, function (collection, namespace) { + var collectionItems = itemsPerCollection[namespace]; + + if (!collectionItems || !collectionItems.length) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(panel, { + key: namespace, + title: collection.title, + icon: collection.icon + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: collectionItems, + onSelect: onSelectItem, + onHover: onHover + })); + }), !hasChildItems && !!reusableItems.length && Object(external_this_wp_element_["createElement"])(panel, { + className: "block-editor-inserter__reusable-blocks-panel", + title: Object(external_this_wp_i18n_["__"])('Reusable'), + icon: controls_repeat + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: reusableItems, + onSelect: onSelectItem, + onHover: onHover + }), Object(external_this_wp_element_["createElement"])("a", { + className: "block-editor-inserter__manage-reusable-blocks", + href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { + post_type: 'wp_block' + }) + }, Object(external_this_wp_i18n_["__"])('Manage all reusable blocks'))), Object(external_this_wp_element_["createElement"])(inserter_menu_extension.Slot, { + fillProps: { + onSelect: onSelectItem, + onHover: onHover, + filterValue: filterValue, + hasItems: hasItems + } + }, function (fills) { + if (fills.length) { + return fills; + } + + if (!hasItems) { + return Object(external_this_wp_element_["createElement"])(no_results, null); + } + + return null; + })); +} +/* harmony default export */ var inserter_block_list = (Object(external_this_wp_compose_["compose"])(external_this_wp_components_["withSpokenMessages"])(InserterBlockList)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-patterns-state.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Retrieves the block patterns inserter state. + * + * @param {Function} onInsert function called when inserter a list of blocks. + * + * @return {Array} Returns the patterns state. (patterns, categories, onSelect handler) + */ + +var use_patterns_state_usePatternsState = function usePatternsState(onInsert) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select$getSettings = select('core/block-editor').getSettings(), + __experimentalBlockPatterns = _select$getSettings.__experimentalBlockPatterns, + __experimentalBlockPatternCategories = _select$getSettings.__experimentalBlockPatternCategories; + + return { + patterns: __experimentalBlockPatterns, + patternCategories: __experimentalBlockPatternCategories + }; + }, []), + patternCategories = _useSelect.patternCategories, + patterns = _useSelect.patterns; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'), + createSuccessNotice = _useDispatch.createSuccessNotice; + + var onClickPattern = Object(external_this_wp_element_["useCallback"])(function (pattern, blocks) { + onInsert(Object(external_this_lodash_["map"])(blocks, function (block) { + return Object(external_this_wp_blocks_["cloneBlock"])(block); + })); + createSuccessNotice(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: block pattern title. */ + Object(external_this_wp_i18n_["__"])('Pattern "%s" inserted.'), pattern.title), { + type: 'snackbar' + }); + }, []); + return [patterns, patternCategories, onClickPattern]; +}; + +/* harmony default export */ var use_patterns_state = (use_patterns_state_usePatternsState); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + + +function BlockPattern(_ref) { + var pattern = _ref.pattern, + _onClick = _ref.onClick; + var content = pattern.content, + viewportWidth = pattern.viewportWidth; + var blocks = Object(external_this_wp_element_["useMemo"])(function () { + return Object(external_this_wp_blocks_["parse"])(content); + }, [content]); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__patterns-item", + role: "button", + onClick: function onClick() { + return _onClick(pattern, blocks); + }, + onKeyDown: function onKeyDown(event) { + if (external_this_wp_keycodes_["ENTER"] === event.keyCode || external_this_wp_keycodes_["SPACE"] === event.keyCode) { + _onClick(pattern, blocks); + } + }, + tabIndex: 0, + "aria-label": pattern.title + }, Object(external_this_wp_element_["createElement"])(block_preview, { + blocks: blocks, + viewportWidth: viewportWidth + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__patterns-item-title" + }, pattern.title)); +} + +function BlockPatternPlaceholder() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__patterns-item is-placeholder" + }); +} + +function BlockPatternList(_ref2) { + var patterns = _ref2.patterns, + shownPatterns = _ref2.shownPatterns, + onClickPattern = _ref2.onClickPattern; + return patterns.map(function (pattern) { + var isShown = shownPatterns.includes(pattern); + return isShown ? Object(external_this_wp_element_["createElement"])(BlockPattern, { + key: pattern.name, + pattern: pattern, + onClick: onClickPattern + }) : Object(external_this_wp_element_["createElement"])(BlockPatternPlaceholder, { + key: pattern.name + }); + }); +} + +function BlockPatternsSearchResults(_ref3) { + var filterValue = _ref3.filterValue, + onInsert = _ref3.onInsert; + + var _usePatternsState = use_patterns_state(onInsert), + _usePatternsState2 = Object(slicedToArray["a" /* default */])(_usePatternsState, 3), + patterns = _usePatternsState2[0], + onClick = _usePatternsState2[2]; + + var currentShownPatterns = Object(external_this_wp_compose_["useAsyncList"])(patterns); + var filteredPatterns = Object(external_this_wp_element_["useMemo"])(function () { + return search_items_searchItems(patterns, filterValue); + }, [filterValue, patterns]); + + if (filterValue) { + return !!filteredPatterns.length ? Object(external_this_wp_element_["createElement"])(panel, { + title: Object(external_this_wp_i18n_["__"])('Search Results') + }, Object(external_this_wp_element_["createElement"])(BlockPatternList, { + shownPatterns: currentShownPatterns, + patterns: filteredPatterns, + onClickPattern: onClick + })) : Object(external_this_wp_element_["createElement"])(no_results, null); + } +} + +function BlockPatternsPerCategories(_ref4) { + var onInsert = _ref4.onInsert; + + var _usePatternsState3 = use_patterns_state(onInsert), + _usePatternsState4 = Object(slicedToArray["a" /* default */])(_usePatternsState3, 3), + patterns = _usePatternsState4[0], + categories = _usePatternsState4[1], + onClick = _usePatternsState4[2]; + + var getPatternIndex = Object(external_this_wp_element_["useCallback"])(function (pattern) { + if (!pattern.categories || !pattern.categories.length) { + return Infinity; + } + + var indexedCategories = Object(external_this_lodash_["fromPairs"])(categories.map(function (_ref5, index) { + var name = _ref5.name; + return [name, index]; + })); + return Math.min.apply(Math, Object(toConsumableArray["a" /* default */])(pattern.categories.map(function (category) { + return indexedCategories[category] !== undefined ? indexedCategories[category] : Infinity; + }))); + }, [categories]); // Ordering the patterns per category is important for the async rendering. + + var orderedPatterns = Object(external_this_wp_element_["useMemo"])(function () { + return patterns.sort(function (a, b) { + return getPatternIndex(a) - getPatternIndex(b); + }); + }, [patterns, getPatternIndex]); + var currentShownPatterns = Object(external_this_wp_compose_["useAsyncList"])(orderedPatterns); // Uncategorized Patterns + + var uncategorizedPatterns = Object(external_this_wp_element_["useMemo"])(function () { + return patterns.filter(function (pattern) { + return getPatternIndex(pattern) === Infinity; + }); + }, [patterns, getPatternIndex]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, categories.map(function (patternCategory) { + var categoryPatterns = patterns.filter(function (pattern) { + return pattern.categories && pattern.categories.includes(patternCategory.name); + }); + return !!categoryPatterns.length && Object(external_this_wp_element_["createElement"])(panel, { + key: patternCategory.name, + title: patternCategory.label + }, Object(external_this_wp_element_["createElement"])(BlockPatternList, { + shownPatterns: currentShownPatterns, + patterns: categoryPatterns, + onClickPattern: onClick + })); + }), !!uncategorizedPatterns.length && Object(external_this_wp_element_["createElement"])(panel, { + title: Object(external_this_wp_i18n_["_x"])('Uncategorized') + }, Object(external_this_wp_element_["createElement"])(BlockPatternList, { + shownPatterns: currentShownPatterns, + patterns: uncategorizedPatterns, + onClickPattern: onClick + }))); +} + +function BlockPatterns(_ref6) { + var onInsert = _ref6.onInsert, + filterValue = _ref6.filterValue; + return filterValue ? Object(external_this_wp_element_["createElement"])(BlockPatternsSearchResults, { + onInsert: onInsert, + filterValue: filterValue + }) : Object(external_this_wp_element_["createElement"])(BlockPatternsPerCategories, { + onInsert: onInsert + }); +} + +/* harmony default export */ var block_patterns = (BlockPatterns); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-insertion-point.js + + +function use_insertion_point_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function use_insertion_point_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { use_insertion_point_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { use_insertion_point_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * @typedef WPInserterConfig + * + * @property {string=} rootClientId Inserter Root Client ID. + * @property {string=} clientId Inserter Client ID. + * @property {boolean} isAppender Whether the inserter is an appender or not. + * @property {boolean} selectBlockOnInsert Whether the block should be selected on insert. + */ + +/** + * Returns the insertion point state given the inserter config. + * + * @param {WPInserterConfig} config Inserter Config. + * @return {Array} Insertion Point State (rootClientID, onInsertBlocks and onToggle). + */ + +function useInsertionPoint(_ref) { + var rootClientId = _ref.rootClientId, + clientId = _ref.clientId, + isAppender = _ref.isAppender, + selectBlockOnInsert = _ref.selectBlockOnInsert; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _getSettings$__experi; + + var _select = select('core/block-editor'), + getSettings = _select.getSettings, + getBlockRootClientId = _select.getBlockRootClientId, + _getBlockSelectionEnd = _select.getBlockSelectionEnd; + + var destRootClientId = rootClientId; + + if (!destRootClientId && !clientId && !isAppender) { + var end = _getBlockSelectionEnd(); + + if (end) { + destRootClientId = getBlockRootClientId(end); + } + } + + return use_insertion_point_objectSpread({ + hasPatterns: !!((_getSettings$__experi = getSettings().__experimentalBlockPatterns) === null || _getSettings$__experi === void 0 ? void 0 : _getSettings$__experi.length), + destinationRootClientId: destRootClientId + }, Object(external_this_lodash_["pick"])(select('core/block-editor'), ['getSelectedBlock', 'getBlockIndex', 'getBlockSelectionEnd', 'getBlockOrder'])); + }, [isAppender, clientId, rootClientId]), + destinationRootClientId = _useSelect.destinationRootClientId, + getSelectedBlock = _useSelect.getSelectedBlock, + getBlockIndex = _useSelect.getBlockIndex, + getBlockSelectionEnd = _useSelect.getBlockSelectionEnd, + getBlockOrder = _useSelect.getBlockOrder; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + replaceBlocks = _useDispatch.replaceBlocks, + insertBlocks = _useDispatch.insertBlocks, + showInsertionPoint = _useDispatch.showInsertionPoint, + hideInsertionPoint = _useDispatch.hideInsertionPoint; + + function getInsertionIndex() { + // If the clientId is defined, we insert at the position of the block. + if (clientId) { + return getBlockIndex(clientId, destinationRootClientId); + } // If there a selected block, we insert after the selected block. + + + var end = getBlockSelectionEnd(); + + if (!isAppender && end) { + return getBlockIndex(end, destinationRootClientId) + 1; + } // Otherwise, we insert at the end of the current rootClientId + + + return getBlockOrder(destinationRootClientId).length; + } + + var onInsertBlocks = function onInsertBlocks(blocks) { + var selectedBlock = getSelectedBlock(); + + if (!isAppender && selectedBlock && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(selectedBlock)) { + replaceBlocks(selectedBlock.clientId, blocks); + } else { + insertBlocks(blocks, getInsertionIndex(), destinationRootClientId, selectBlockOnInsert); + } + + if (!selectBlockOnInsert) { + // translators: %d: the name of the block that has been added + var message = Object(external_this_wp_i18n_["_n"])('%d block added.', '%d blocks added', blocks.length); + + Object(external_this_wp_a11y_["speak"])(message); + } + }; + + var onToggleInsertionPoint = function onToggleInsertionPoint(show) { + if (show) { + var index = getInsertionIndex(); + showInsertionPoint(destinationRootClientId, index); + } else { + hideInsertionPoint(); + } + }; + + return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint]; +} + +/* harmony default export */ var use_insertion_point = (useInsertionPoint); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/menu.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + + + +var stopKeyPropagation = function stopKeyPropagation(event) { + return event.stopPropagation(); +}; + +function InserterMenu(_ref) { + var rootClientId = _ref.rootClientId, + clientId = _ref.clientId, + isAppender = _ref.isAppender, + __experimentalSelectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert, + onSelect = _ref.onSelect, + showInserterHelpPanel = _ref.showInserterHelpPanel; + + var _useState = Object(external_this_wp_element_["useState"])(''), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + filterValue = _useState2[0], + setFilterValue = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(null), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + hoveredItem = _useState4[0], + setHoveredItem = _useState4[1]; + + var _useInsertionPoint = use_insertion_point({ + rootClientId: rootClientId, + clientId: clientId, + isAppender: isAppender, + selectBlockOnInsert: __experimentalSelectBlockOnInsert + }), + _useInsertionPoint2 = Object(slicedToArray["a" /* default */])(_useInsertionPoint, 3), + destinationRootClientId = _useInsertionPoint2[0], + onInsertBlocks = _useInsertionPoint2[1], + onToggleInsertionPoint = _useInsertionPoint2[2]; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _getSettings$__experi; + + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + hasPatterns: !!((_getSettings$__experi = getSettings().__experimentalBlockPatterns) === null || _getSettings$__experi === void 0 ? void 0 : _getSettings$__experi.length) + }; + }, [isAppender, clientId, rootClientId]), + hasPatterns = _useSelect.hasPatterns; + + var showPatterns = !destinationRootClientId && hasPatterns; + + var onKeyDown = function onKeyDown(event) { + if (Object(external_this_lodash_["includes"])([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]], event.keyCode)) { + // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. + event.stopPropagation(); + } + }; + + var onInsert = function onInsert(blocks) { + onInsertBlocks(blocks); + onSelect(); + }; + + var onHover = function onHover(item) { + onToggleInsertionPoint(!!item); + setHoveredItem(item); + }; + + var blocksTab = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__block-list" + }, Object(external_this_wp_element_["createElement"])(inserter_block_list, { + rootClientId: destinationRootClientId, + onInsert: onInsert, + onHover: onHover, + filterValue: filterValue + })), showInserterHelpPanel && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__tips" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "h2" + }, Object(external_this_wp_i18n_["__"])('A tip for using the block editor')), Object(external_this_wp_element_["createElement"])(tips, null))); + var patternsTab = Object(external_this_wp_element_["createElement"])(block_patterns, { + onInsert: onInsert, + filterValue: filterValue + }); // Disable reason (no-autofocus): The inserter menu is a modal display, not one which + // is always visible, and one which already incurs this behavior of autoFocus via + // Popover's focusOnMount. + // Disable reason (no-static-element-interactions): Navigational key-presses within + // the menu are prevented from triggering WritingFlow and ObserveTyping interactions. + + /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__menu", + onKeyPress: stopKeyPropagation, + onKeyDown: onKeyDown + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__main-area" + }, Object(external_this_wp_element_["createElement"])(search_form, { + onChange: setFilterValue + }), showPatterns && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TabPanel"], { + className: "block-editor-inserter__tabs", + tabs: [{ + name: 'blocks', + + /* translators: Blocks tab title in the block inserter. */ + title: Object(external_this_wp_i18n_["__"])('Blocks') + }, { + name: 'patterns', + + /* translators: Patterns tab title in the block inserter. */ + title: Object(external_this_wp_i18n_["__"])('Patterns') + }] + }, function (tab) { + if (tab.name === 'blocks') { + return blocksTab; + } + + return patternsTab; + }), !showPatterns && blocksTab), showInserterHelpPanel && hoveredItem && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inserter__preview-container" + }, Object(external_this_wp_element_["createElement"])(preview_panel, { + item: hoveredItem + }))); + /* eslint-enable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ +} + +/* harmony default export */ var menu = (InserterMenu); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/index.js + + + + + + + + + +function inserter_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (inserter_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function inserter_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Internal dependencies + */ + + + +var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) { + var onToggle = _ref.onToggle, + disabled = _ref.disabled, + isOpen = _ref.isOpen, + blockTitle = _ref.blockTitle, + hasSingleBlockType = _ref.hasSingleBlockType, + toggleProps = _ref.toggleProps; + var label; + + if (hasSingleBlockType) { + label = Object(external_this_wp_i18n_["sprintf"])( // translators: %s: the name of the block when there is only one + Object(external_this_wp_i18n_["_x"])('Add %s', 'directly add the only allowed block'), blockTitle); + } else { + label = Object(external_this_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button'); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({ + icon: plus["a" /* default */], + label: label, + tooltipPosition: "bottom", + onClick: onToggle, + className: "block-editor-inserter__toggle", + "aria-haspopup": !hasSingleBlockType ? 'true' : false, + "aria-expanded": !hasSingleBlockType ? isOpen : false, + disabled: disabled + }, toggleProps)); +}; + +var inserter_Inserter = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(Inserter, _Component); + + var _super = inserter_createSuper(Inserter); + + function Inserter() { + var _this; + + Object(classCallCheck["a" /* default */])(this, Inserter); + + _this = _super.apply(this, arguments); + _this.onToggle = _this.onToggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.renderToggle = _this.renderToggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.renderContent = _this.renderContent.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(Inserter, [{ + key: "onToggle", + value: function onToggle(isOpen) { + var onToggle = this.props.onToggle; // Surface toggle callback to parent component + + if (onToggle) { + onToggle(isOpen); + } + } + /** + * Render callback to display Dropdown toggle element. + * + * @param {Object} options + * @param {Function} options.onToggle Callback to invoke when toggle is + * pressed. + * @param {boolean} options.isOpen Whether dropdown is currently open. + * + * @return {WPElement} Dropdown toggle element. + */ + + }, { + key: "renderToggle", + value: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + isOpen = _ref2.isOpen; + var _this$props = this.props, + disabled = _this$props.disabled, + blockTitle = _this$props.blockTitle, + hasSingleBlockType = _this$props.hasSingleBlockType, + toggleProps = _this$props.toggleProps, + hasItems = _this$props.hasItems, + _this$props$renderTog = _this$props.renderToggle, + renderToggle = _this$props$renderTog === void 0 ? inserter_defaultRenderToggle : _this$props$renderTog; + return renderToggle({ + onToggle: onToggle, + isOpen: isOpen, + disabled: disabled || !hasItems, + blockTitle: blockTitle, + hasSingleBlockType: hasSingleBlockType, + toggleProps: toggleProps + }); + } + /** + * Render callback to display Dropdown content element. + * + * @param {Object} options + * @param {Function} options.onClose Callback to invoke when dropdown is + * closed. + * + * @return {WPElement} Dropdown content element. + */ + + }, { + key: "renderContent", + value: function renderContent(_ref3) { + var onClose = _ref3.onClose; + var _this$props2 = this.props, + rootClientId = _this$props2.rootClientId, + clientId = _this$props2.clientId, + isAppender = _this$props2.isAppender, + showInserterHelpPanel = _this$props2.showInserterHelpPanel, + selectBlockOnInsert = _this$props2.__experimentalSelectBlockOnInsert; + return Object(external_this_wp_element_["createElement"])(menu, { + onSelect: onClose, + rootClientId: rootClientId, + clientId: clientId, + isAppender: isAppender, + showInserterHelpPanel: showInserterHelpPanel, + __experimentalSelectBlockOnInsert: selectBlockOnInsert + }); + } + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + position = _this$props3.position, + hasSingleBlockType = _this$props3.hasSingleBlockType, + insertOnlyAllowedBlock = _this$props3.insertOnlyAllowedBlock; + + if (hasSingleBlockType) { + return this.renderToggle({ + onToggle: insertOnlyAllowedBlock + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + className: "block-editor-inserter", + contentClassName: "block-editor-inserter__popover", + position: position, + onToggle: this.onToggle, + expandOnMobile: true, + headerTitle: Object(external_this_wp_i18n_["__"])('Add a block'), + renderToggle: this.renderToggle, + renderContent: this.renderContent + }); + } + }]); + + return Inserter; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var inserter = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { + var clientId = _ref4.clientId, + rootClientId = _ref4.rootClientId; + + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId, + hasInserterItems = _select.hasInserterItems, + __experimentalGetAllowedBlocks = _select.__experimentalGetAllowedBlocks, + getBlockSelectionEnd = _select.getBlockSelectionEnd; + + var _select2 = select('core/blocks'), + getBlockVariations = _select2.getBlockVariations; + + rootClientId = rootClientId || getBlockRootClientId(clientId || getBlockSelectionEnd()) || undefined; + + var allowedBlocks = __experimentalGetAllowedBlocks(rootClientId); + + var hasSingleBlockType = Object(external_this_lodash_["size"])(allowedBlocks) === 1 && Object(external_this_lodash_["size"])(getBlockVariations(allowedBlocks[0].name, 'inserter')) === 0; + var allowedBlockType = false; + + if (hasSingleBlockType) { + allowedBlockType = allowedBlocks[0]; + } + + return { + hasItems: hasInserterItems(rootClientId), + hasSingleBlockType: hasSingleBlockType, + blockTitle: allowedBlockType ? allowedBlockType.title : '', + allowedBlockType: allowedBlockType, + rootClientId: rootClientId + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref5) { + var select = _ref5.select; + return { + insertOnlyAllowedBlock: function insertOnlyAllowedBlock() { + var rootClientId = ownProps.rootClientId, + clientId = ownProps.clientId, + isAppender = ownProps.isAppender; + var hasSingleBlockType = ownProps.hasSingleBlockType, + allowedBlockType = ownProps.allowedBlockType, + selectBlockOnInsert = ownProps.__experimentalSelectBlockOnInsert; + + if (!hasSingleBlockType) { + return; + } + + function getInsertionIndex() { + var _select3 = select('core/block-editor'), + getBlockIndex = _select3.getBlockIndex, + getBlockSelectionEnd = _select3.getBlockSelectionEnd, + getBlockOrder = _select3.getBlockOrder; // If the clientId is defined, we insert at the position of the block. + + + if (clientId) { + return getBlockIndex(clientId, rootClientId); + } // If there a selected block, we insert after the selected block. + + + var end = getBlockSelectionEnd(); + + if (!isAppender && end) { + return getBlockIndex(end, rootClientId) + 1; + } // Otherwise, we insert at the end of the current rootClientId + + + return getBlockOrder(rootClientId).length; + } + + var _dispatch = dispatch('core/block-editor'), + insertBlock = _dispatch.insertBlock; + + var blockToInsert = Object(external_this_wp_blocks_["createBlock"])(allowedBlockType.name); + insertBlock(blockToInsert, getInsertionIndex(), rootClientId, selectBlockOnInsert); + + if (!selectBlockOnInsert) { + var message = Object(external_this_wp_i18n_["sprintf"])( // translators: %s: the name of the block that has been added + Object(external_this_wp_i18n_["__"])('%s block added'), allowedBlockType.title); + Object(external_this_wp_a11y_["speak"])(message); + } + } + }; +}), // The global inserter should always be visible, we are using ( ! isAppender && ! rootClientId && ! clientId ) as +// a way to detect the global Inserter. +Object(external_this_wp_compose_["ifCondition"])(function (_ref6) { + var hasItems = _ref6.hasItems, + isAppender = _ref6.isAppender, + rootClientId = _ref6.rootClientId, + clientId = _ref6.clientId; + return hasItems || !isAppender && !rootClientId && !clientId; +})])(inserter_Inserter)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/focus-capture.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Renders focus capturing areas to redirect focus to the selected block if not + * in Navigation mode. + * + * @param {string} selectedClientId Client ID of the selected block. + * @param {boolean} isReverse Set to true if the component is rendered + * after the block list, false if rendered + * before. + * @param {Object} containerRef Reference containing the element reference + * of the block list container. + * @param {boolean} noCapture Reference containing the flag for enabling + * or disabling capturing. + * + * @return {WPElement} The focus capture element. + */ + +var FocusCapture = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { + var selectedClientId = _ref.selectedClientId, + isReverse = _ref.isReverse, + containerRef = _ref.containerRef, + noCapture = _ref.noCapture, + hasMultiSelection = _ref.hasMultiSelection, + multiSelectionContainer = _ref.multiSelectionContainer; + var isNavigationMode = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').isNavigationMode(); + }); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + setNavigationMode = _useDispatch.setNavigationMode; + + function onFocus() { + // Do not capture incoming focus if set by us in WritingFlow. + if (noCapture.current) { + noCapture.current = null; + return; + } // When focus coming in from out of the block list, and no block is + // selected, enable Navigation mode and select the first or last block + // depending on the direction. + + + if (!selectedClientId) { + if (hasMultiSelection) { + multiSelectionContainer.current.focus(); + return; + } + + setNavigationMode(true); + var tabbables = external_this_wp_dom_["focus"].tabbable.find(containerRef.current); + + if (tabbables.length) { + if (isReverse) { + Object(external_this_lodash_["last"])(tabbables).focus(); + } else { + Object(external_this_lodash_["first"])(tabbables).focus(); + } + } + + return; + } // If there is a selected block, move focus to the first or last + // tabbable element depending on the direction. + + + var wrapper = getBlockDOMNode(selectedClientId); + + if (isReverse) { + var _tabbables = external_this_wp_dom_["focus"].tabbable.find(wrapper); + + var lastTabbable = Object(external_this_lodash_["last"])(_tabbables) || wrapper; + lastTabbable.focus(); + } else { + wrapper.focus(); + } + } + + return Object(external_this_wp_element_["createElement"])("div", { + ref: ref // Don't allow tabbing to this element in Navigation mode. + , + tabIndex: !isNavigationMode ? '0' : undefined, + onFocus: onFocus // Needs to be positioned within the viewport, so focus to this + // element does not scroll the page. + , + style: { + position: 'fixed' + } + }); +}); +/* harmony default export */ var focus_capture = (FocusCapture); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +/** + * Browser constants + */ + +var writing_flow_window = window, + getSelection = writing_flow_window.getSelection, + writing_flow_getComputedStyle = writing_flow_window.getComputedStyle; +/** + * Given an element, returns true if the element is a tabbable text field, or + * false otherwise. + * + * @param {Element} element Element to test. + * + * @return {boolean} Whether element is a tabbable text field. + */ + +var isTabbableTextField = Object(external_this_lodash_["overEvery"])([external_this_wp_dom_["isTextField"], external_this_wp_dom_["focus"].tabbable.isTabbableIndex]); +/** + * Returns true if the element should consider edge navigation upon a keyboard + * event of the given directional key code, or false otherwise. + * + * @param {Element} element HTML element to test. + * @param {number} keyCode KeyboardEvent keyCode to test. + * @param {boolean} hasModifier Whether a modifier is pressed. + * + * @return {boolean} Whether element should consider edge navigation. + */ + +function isNavigationCandidate(element, keyCode, hasModifier) { + var isVertical = keyCode === external_this_wp_keycodes_["UP"] || keyCode === external_this_wp_keycodes_["DOWN"]; // Currently, all elements support unmodified vertical navigation. + + if (isVertical && !hasModifier) { + return true; + } // Native inputs should not navigate horizontally. + + + var tagName = element.tagName; + return tagName !== 'INPUT' && tagName !== 'TEXTAREA'; +} +/** + * Returns the optimal tab target from the given focused element in the + * desired direction. A preference is made toward text fields, falling back + * to the block focus stop if no other candidates exist for the block. + * + * @param {Element} target Currently focused text field. + * @param {boolean} isReverse True if considering as the first field. + * @param {Element} containerElement Element containing all blocks. + * @param {boolean} onlyVertical Wether to only consider tabbable elements + * that are visually above or under the + * target. + * + * @return {?Element} Optimal tab target, if one exists. + */ + +function getClosestTabbable(target, isReverse, containerElement, onlyVertical) { + // Since the current focus target is not guaranteed to be a text field, + // find all focusables. Tabbability is considered later. + var focusableNodes = external_this_wp_dom_["focus"].focusable.find(containerElement); + + if (isReverse) { + focusableNodes = Object(external_this_lodash_["reverse"])(focusableNodes); + } // Consider as candidates those focusables after the current target. + // It's assumed this can only be reached if the target is focusable + // (on its keydown event), so no need to verify it exists in the set. + + + focusableNodes = focusableNodes.slice(focusableNodes.indexOf(target) + 1); + var targetRect; + + if (onlyVertical) { + targetRect = target.getBoundingClientRect(); + } + + function isTabCandidate(node, i, array) { + // Not a candidate if the node is not tabbable. + if (!external_this_wp_dom_["focus"].tabbable.isTabbableIndex(node)) { + return false; + } + + if (onlyVertical) { + var nodeRect = node.getBoundingClientRect(); + + if (nodeRect.left >= targetRect.right || nodeRect.right <= targetRect.left) { + return false; + } + } // Prefer text fields... + + + if (Object(external_this_wp_dom_["isTextField"])(node)) { + return true; + } // ...but settle for block focus stop. + + + if (!isBlockFocusStop(node)) { + return false; + } // If element contains inner blocks, stop immediately at its focus + // wrapper. + + + if (hasInnerBlocksContext(node)) { + return true; + } // If navigating out of a block (in reverse), don't consider its + // block focus stop. + + + if (node.contains(target)) { + return false; + } // In case of block focus stop, check to see if there's a better + // text field candidate within. + + + for (var offset = 1, nextNode; nextNode = array[i + offset]; offset++) { + // Abort if no longer testing descendents of focus stop. + if (!node.contains(nextNode)) { + break; + } // Apply same tests by recursion. This is important to consider + // nestable blocks where we don't want to settle for the inner + // block focus stop. + + + if (isTabCandidate(nextNode, i + offset, array)) { + return false; + } + } + + return true; + } + + return Object(external_this_lodash_["find"])(focusableNodes, isTabCandidate); +} + +function writing_flow_selector(select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getMultiSelectedBlocksStartClientId = _select.getMultiSelectedBlocksStartClientId, + getMultiSelectedBlocksEndClientId = _select.getMultiSelectedBlocksEndClientId, + getPreviousBlockClientId = _select.getPreviousBlockClientId, + getNextBlockClientId = _select.getNextBlockClientId, + getFirstMultiSelectedBlockClientId = _select.getFirstMultiSelectedBlockClientId, + getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId, + hasMultiSelection = _select.hasMultiSelection, + getBlockOrder = _select.getBlockOrder, + isNavigationMode = _select.isNavigationMode, + getBlockRootClientId = _select.getBlockRootClientId, + getClientIdsOfDescendants = _select.getClientIdsOfDescendants, + isSelectionEnabled = _select.isSelectionEnabled, + getBlockSelectionStart = _select.getBlockSelectionStart, + isMultiSelecting = _select.isMultiSelecting; + + var selectedBlockClientId = getSelectedBlockClientId(); + var selectionStartClientId = getMultiSelectedBlocksStartClientId(); + var selectionEndClientId = getMultiSelectedBlocksEndClientId(); + return { + selectedBlockClientId: selectedBlockClientId, + selectionStartClientId: selectionStartClientId, + selectionBeforeEndClientId: getPreviousBlockClientId(selectionEndClientId || selectedBlockClientId), + selectionAfterEndClientId: getNextBlockClientId(selectionEndClientId || selectedBlockClientId), + selectedFirstClientId: getFirstMultiSelectedBlockClientId(), + selectedLastClientId: getLastMultiSelectedBlockClientId(), + hasMultiSelection: hasMultiSelection(), + blocks: getBlockOrder(), + isNavigationMode: isNavigationMode(), + getBlockRootClientId: getBlockRootClientId, + getClientIdsOfDescendants: getClientIdsOfDescendants, + isSelectionEnabled: isSelectionEnabled(), + blockSelectionStart: getBlockSelectionStart(), + isMultiSelecting: isMultiSelecting() + }; +} +/** + * Handles selection and navigation across blocks. This component should be + * wrapped around BlockList. + * + * @param {Object} props Component properties. + * @param {WPElement} props.children Children to be rendered. + */ + + +function WritingFlow(_ref) { + var children = _ref.children; + var container = Object(external_this_wp_element_["useRef"])(); + var focusCaptureBeforeRef = Object(external_this_wp_element_["useRef"])(); + var focusCaptureAfterRef = Object(external_this_wp_element_["useRef"])(); + var multiSelectionContainer = Object(external_this_wp_element_["useRef"])(); + var entirelySelected = Object(external_this_wp_element_["useRef"])(); // Reference that holds the a flag for enabling or disabling + // capturing on the focus capture elements. + + var noCapture = Object(external_this_wp_element_["useRef"])(); // Here a DOMRect is stored while moving the caret vertically so vertical + // position of the start position can be restored. This is to recreate + // browser behaviour across blocks. + + var verticalRect = Object(external_this_wp_element_["useRef"])(); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(writing_flow_selector, []), + selectedBlockClientId = _useSelect.selectedBlockClientId, + selectionStartClientId = _useSelect.selectionStartClientId, + selectionBeforeEndClientId = _useSelect.selectionBeforeEndClientId, + selectionAfterEndClientId = _useSelect.selectionAfterEndClientId, + selectedFirstClientId = _useSelect.selectedFirstClientId, + selectedLastClientId = _useSelect.selectedLastClientId, + hasMultiSelection = _useSelect.hasMultiSelection, + blocks = _useSelect.blocks, + isNavigationMode = _useSelect.isNavigationMode, + isSelectionEnabled = _useSelect.isSelectionEnabled, + blockSelectionStart = _useSelect.blockSelectionStart, + isMultiSelecting = _useSelect.isMultiSelecting, + getBlockRootClientId = _useSelect.getBlockRootClientId, + getClientIdsOfDescendants = _useSelect.getClientIdsOfDescendants; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + multiSelect = _useDispatch.multiSelect, + selectBlock = _useDispatch.selectBlock, + clearSelectedBlock = _useDispatch.clearSelectedBlock, + setNavigationMode = _useDispatch.setNavigationMode; + + function onMouseDown(event) { + verticalRect.current = null; // Clicking inside a selected block should exit navigation mode. + + if (isNavigationMode && selectedBlockClientId && isInsideRootBlock(getBlockDOMNode(selectedBlockClientId), event.target)) { + setNavigationMode(false); + } // Multi-select blocks when Shift+clicking. + + + if (isSelectionEnabled && // The main button. + // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button + event.button === 0) { + var clientId = getBlockClientId(event.target); + + if (clientId) { + if (event.shiftKey) { + if (blockSelectionStart !== clientId) { + multiSelect(blockSelectionStart, clientId); + event.preventDefault(); + } // Allow user to escape out of a multi-selection to a singular + // selection of a block via click. This is handled here since + // focus handling excludes blocks when there is multiselection, + // as focus can be incurred by starting a multiselection (focus + // moved to first block's multi-controls). + + } else if (hasMultiSelection) { + selectBlock(clientId); + } + } + } + } + + function expandSelection(isReverse) { + var nextSelectionEndClientId = isReverse ? selectionBeforeEndClientId : selectionAfterEndClientId; + + if (nextSelectionEndClientId) { + multiSelect(selectionStartClientId || selectedBlockClientId, nextSelectionEndClientId); + } + } + + function moveSelection(isReverse) { + var focusedBlockClientId = isReverse ? selectedFirstClientId : selectedLastClientId; + + if (focusedBlockClientId) { + selectBlock(focusedBlockClientId); + } + } + /** + * Returns true if the given target field is the last in its block which + * can be considered for tab transition. For example, in a block with two + * text fields, this would return true when reversing from the first of the + * two fields, but false when reversing from the second. + * + * @param {Element} target Currently focused text field. + * @param {boolean} isReverse True if considering as the first field. + * + * @return {boolean} Whether field is at edge for tab transition. + */ + + + function isTabbableEdge(target, isReverse) { + var closestTabbable = getClosestTabbable(target, isReverse, container.current); + return !closestTabbable || !isInSameBlock(target, closestTabbable); + } + + function onKeyDown(event) { + var keyCode = event.keyCode, + target = event.target; + var isUp = keyCode === external_this_wp_keycodes_["UP"]; + var isDown = keyCode === external_this_wp_keycodes_["DOWN"]; + var isLeft = keyCode === external_this_wp_keycodes_["LEFT"]; + var isRight = keyCode === external_this_wp_keycodes_["RIGHT"]; + var isTab = keyCode === external_this_wp_keycodes_["TAB"]; + var isEscape = keyCode === external_this_wp_keycodes_["ESCAPE"]; + var isReverse = isUp || isLeft; + var isHorizontal = isLeft || isRight; + var isVertical = isUp || isDown; + var isNav = isHorizontal || isVertical; + var isShift = event.shiftKey; + var hasModifier = isShift || event.ctrlKey || event.altKey || event.metaKey; + var isNavEdge = isVertical ? external_this_wp_dom_["isVerticalEdge"] : external_this_wp_dom_["isHorizontalEdge"]; // In navigation mode, tab and arrows navigate from block to block. + + if (isNavigationMode) { + var navigateUp = isTab && isShift || isUp; + var navigateDown = isTab && !isShift || isDown; // Move out of current nesting level (no effect if at root level). + + var navigateOut = isLeft; // Move into next nesting level (no effect if the current block has no innerBlocks). + + var navigateIn = isRight; + var focusedBlockUid; + + if (navigateUp) { + focusedBlockUid = selectionBeforeEndClientId; + } else if (navigateDown) { + focusedBlockUid = selectionAfterEndClientId; + } else if (navigateOut) { + var _getBlockRootClientId; + + focusedBlockUid = (_getBlockRootClientId = getBlockRootClientId(selectedBlockClientId)) !== null && _getBlockRootClientId !== void 0 ? _getBlockRootClientId : selectedBlockClientId; + } else if (navigateIn) { + var _getClientIdsOfDescen; + + focusedBlockUid = (_getClientIdsOfDescen = getClientIdsOfDescendants([selectedBlockClientId])[0]) !== null && _getClientIdsOfDescen !== void 0 ? _getClientIdsOfDescen : selectedBlockClientId; + } + + if (navigateDown || navigateUp || navigateOut || navigateIn) { + if (focusedBlockUid) { + event.preventDefault(); + selectBlock(focusedBlockUid); + } else if (isTab && selectedBlockClientId) { + var wrapper = getBlockDOMNode(selectedBlockClientId); + var nextTabbable; + + if (navigateDown) { + nextTabbable = external_this_wp_dom_["focus"].tabbable.findNext(wrapper); + } else { + nextTabbable = external_this_wp_dom_["focus"].tabbable.findPrevious(wrapper); + } + + if (nextTabbable) { + event.preventDefault(); + nextTabbable.focus(); + clearSelectedBlock(); + } + } + } + + return; + } // In Edit mode, Tab should focus the first tabbable element after the + // content, which is normally the sidebar (with block controls) and + // Shift+Tab should focus the first tabbable element before the content, + // which is normally the block toolbar. + // Arrow keys can be used, and Tab and arrow keys can be used in + // Navigation mode (press Esc), to navigate through blocks. + + + if (selectedBlockClientId) { + if (isTab) { + var _wrapper = getBlockDOMNode(selectedBlockClientId); + + if (isShift) { + if (target === _wrapper) { + // Disable focus capturing on the focus capture element, so + // it doesn't refocus this block and so it allows default + // behaviour (moving focus to the next tabbable element). + noCapture.current = true; + focusCaptureBeforeRef.current.focus(); + return; + } + } else { + var tabbables = external_this_wp_dom_["focus"].tabbable.find(_wrapper); + + var lastTabbable = Object(external_this_lodash_["last"])(tabbables) || _wrapper; + + if (target === lastTabbable) { + // See comment above. + noCapture.current = true; + focusCaptureAfterRef.current.focus(); + return; + } + } + } else if (isEscape) { + setNavigationMode(true); + } + } else if (hasMultiSelection && isTab && target === multiSelectionContainer.current) { + // See comment above. + noCapture.current = true; + + if (isShift) { + focusCaptureBeforeRef.current.focus(); + } else { + focusCaptureAfterRef.current.focus(); + } + + return; + } // When presing any key other than up or down, the initial vertical + // position must ALWAYS be reset. The vertical position is saved so it + // can be restored as well as possible on sebsequent vertical arrow key + // presses. It may not always be possible to restore the exact same + // position (such as at an empty line), so it wouldn't be good to + // compute the position right before any vertical arrow key press. + + + if (!isVertical) { + verticalRect.current = null; + } else if (!verticalRect.current) { + verticalRect.current = Object(external_this_wp_dom_["computeCaretRect"])(); + } // This logic inside this condition needs to be checked before + // the check for event.nativeEvent.defaultPrevented. + // The logic handles meta+a keypress and this event is default prevented + // by RichText. + + + if (!isNav) { + // Set immediately before the meta+a combination can be pressed. + if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event)) { + entirelySelected.current = Object(external_this_wp_dom_["isEntirelySelected"])(target); + } + + if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event, 'a')) { + // When the target is contentEditable, selection will already + // have been set by the browser earlier in this call stack. We + // need check the previous result, otherwise all blocks will be + // selected right away. + if (target.isContentEditable ? entirelySelected.current : Object(external_this_wp_dom_["isEntirelySelected"])(target)) { + multiSelect(Object(external_this_lodash_["first"])(blocks), Object(external_this_lodash_["last"])(blocks)); + event.preventDefault(); + } // After pressing primary + A we can assume isEntirelySelected is true. + // Calling right away isEntirelySelected after primary + A may still return false on some browsers. + + + entirelySelected.current = true; + } + + return; + } // Abort if navigation has already been handled (e.g. RichText inline + // boundaries). + + + if (event.nativeEvent.defaultPrevented) { + return; + } // Abort if our current target is not a candidate for navigation (e.g. + // preserve native input behaviors). + + + if (!isNavigationCandidate(target, keyCode, hasModifier)) { + return; + } // In the case of RTL scripts, right means previous and left means next, + // which is the exact reverse of LTR. + + + var _getComputedStyle = writing_flow_getComputedStyle(target), + direction = _getComputedStyle.direction; + + var isReverseDir = direction === 'rtl' ? !isReverse : isReverse; + + if (isShift) { + if ( // Ensure that there is a target block. + (isReverse && selectionBeforeEndClientId || !isReverse && selectionAfterEndClientId) && (hasMultiSelection || isTabbableEdge(target, isReverse) && isNavEdge(target, isReverse))) { + // Shift key is down, and there is multi selection or we're at + // the end of the current block. + expandSelection(isReverse); + event.preventDefault(); + } + } else if (hasMultiSelection) { + // Moving from block multi-selection to single block selection + moveSelection(isReverse); + event.preventDefault(); + } else if (isVertical && Object(external_this_wp_dom_["isVerticalEdge"])(target, isReverse)) { + var closestTabbable = getClosestTabbable(target, isReverse, container.current, true); + + if (closestTabbable) { + Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closestTabbable, isReverse, verticalRect.current); + event.preventDefault(); + } + } else if (isHorizontal && getSelection().isCollapsed && Object(external_this_wp_dom_["isHorizontalEdge"])(target, isReverseDir)) { + var _closestTabbable = getClosestTabbable(target, isReverseDir, container.current); + + Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(_closestTabbable, isReverseDir); + event.preventDefault(); + } + } + + function focusLastTextField() { + var focusableNodes = external_this_wp_dom_["focus"].focusable.find(container.current); + var target = Object(external_this_lodash_["findLast"])(focusableNodes, isTabbableTextField); + + if (target) { + Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, true); + } + } + + Object(external_this_wp_element_["useEffect"])(function () { + if (hasMultiSelection && !isMultiSelecting) { + multiSelectionContainer.current.focus(); + } + }, [hasMultiSelection, isMultiSelecting]); + var className = classnames_default()('block-editor-writing-flow', { + 'is-navigate-mode': isNavigationMode + }); // Disable reason: Wrapper itself is non-interactive, but must capture + // bubbling events from children to determine focus transition intents. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])(focus_capture, { + ref: focusCaptureBeforeRef, + selectedClientId: selectedBlockClientId, + containerRef: container, + noCapture: noCapture, + hasMultiSelection: hasMultiSelection, + multiSelectionContainer: multiSelectionContainer + }), Object(external_this_wp_element_["createElement"])("div", { + ref: container, + onKeyDown: onKeyDown, + onMouseDown: onMouseDown + }, Object(external_this_wp_element_["createElement"])("div", { + ref: multiSelectionContainer, + tabIndex: hasMultiSelection ? '0' : undefined, + "aria-label": hasMultiSelection ? Object(external_this_wp_i18n_["__"])('Multiple selected blocks') : undefined // Needs to be positioned within the viewport, so focus to this + // element does not scroll the page. + , + style: { + position: 'fixed' + } + }), children), Object(external_this_wp_element_["createElement"])(focus_capture, { + ref: focusCaptureAfterRef, + selectedClientId: selectedBlockClientId, + containerRef: container, + noCapture: noCapture, + hasMultiSelection: hasMultiSelection, + multiSelectionContainer: multiSelectionContainer, + isReverse: true + }), Object(external_this_wp_element_["createElement"])("div", { + "aria-hidden": true, + tabIndex: -1, + onClick: focusLastTextField, + className: "block-editor-writing-flow__click-redirect" + })); + /* eslint-enable jsx-a11y/no-static-element-interactions */ +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/insertion-point.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + + +function Indicator(_ref) { + var clientId = _ref.clientId; + var showInsertionPoint = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockIndex = _select.getBlockIndex, + getBlockInsertionPoint = _select.getBlockInsertionPoint, + isBlockInsertionPointVisible = _select.isBlockInsertionPointVisible, + getBlockRootClientId = _select.getBlockRootClientId; + + var rootClientId = getBlockRootClientId(clientId); + var blockIndex = getBlockIndex(clientId, rootClientId); + var insertionPoint = getBlockInsertionPoint(); + return isBlockInsertionPointVisible() && insertionPoint.index === blockIndex && insertionPoint.rootClientId === rootClientId; + }, [clientId]); + + if (!showInsertionPoint) { + return null; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-list__insertion-point-indicator" + }); +} + +function InsertionPoint(_ref2) { + var hasMultiSelection = _ref2.hasMultiSelection, + selectedBlockClientId = _ref2.selectedBlockClientId, + children = _ref2.children, + containerRef = _ref2.containerRef; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isInserterShown = _useState2[0], + setIsInserterShown = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isInserterForced = _useState4[0], + setIsInserterForced = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(null), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + inserterElement = _useState6[0], + setInserterElement = _useState6[1]; + + var _useState7 = Object(external_this_wp_element_["useState"])(null), + _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), + inserterClientId = _useState8[0], + setInserterClientId = _useState8[1]; + + var ref = Object(external_this_wp_element_["useRef"])(); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select2 = select('core/block-editor'), + getMultiSelectedBlockClientIds = _select2.getMultiSelectedBlockClientIds, + _isMultiSelecting = _select2.isMultiSelecting; + + return { + isMultiSelecting: _isMultiSelecting(), + multiSelectedBlockClientIds: getMultiSelectedBlockClientIds() + }; + }, []), + multiSelectedBlockClientIds = _useSelect.multiSelectedBlockClientIds, + isMultiSelecting = _useSelect.isMultiSelecting; + + function onMouseMove(event) { + if (!event.target.classList.contains('block-editor-block-list__layout')) { + if (isInserterShown) { + setIsInserterShown(false); + } + + return; + } + + var rect = event.target.getBoundingClientRect(); + var offset = event.clientY - rect.top; + var element = Array.from(event.target.children).find(function (blockEl) { + return blockEl.offsetTop > offset; + }); + + if (!element) { + return; + } + + var clientId = element.id.slice('block-'.length); + + if (!clientId) { + return; + } + + var elementRect = element.getBoundingClientRect(); + + if (event.clientX > elementRect.right || event.clientX < elementRect.left) { + if (isInserterShown) { + setIsInserterShown(false); + } + + return; + } + + setIsInserterShown(true); + setInserterElement(element); + setInserterClientId(clientId); + } + + function focusClosestTabbable(event) { + var clientX = event.clientX, + clientY = event.clientY, + target = event.target; // Only handle click on the wrapper specifically, and not an event + // bubbled from the inserter itself. + + if (target !== ref.current) { + return; + } + + var targetRect = target.getBoundingClientRect(); + var isReverse = clientY < targetRect.top + targetRect.height / 2; + var blockNode = getBlockDOMNode(inserterClientId); + var container = isReverse ? containerRef.current : blockNode; + var closest = getClosestTabbable(blockNode, true, container) || blockNode; + var rect = new window.DOMRect(clientX, clientY, 0, 16); + Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closest, isReverse, rect, false); + } // Hide the inserter above the selected block and during multi-selection. + + + var isInserterHidden = hasMultiSelection ? multiSelectedBlockClientIds.includes(inserterClientId) : inserterClientId === selectedBlockClientId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isMultiSelecting && (isInserterShown || isInserterForced) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + noArrow: true, + animate: false, + anchorRef: inserterElement, + position: "top right left", + focusOnMount: false, + className: "block-editor-block-list__insertion-point-popover", + __unstableSlotName: "block-toolbar", + __unstableFixedPosition: false + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-list__insertion-point", + style: { + width: inserterElement.offsetWidth + } + }, Object(external_this_wp_element_["createElement"])(Indicator, { + clientId: inserterClientId + }), Object(external_this_wp_element_["createElement"])("div", { + ref: ref, + onFocus: function onFocus() { + return setIsInserterForced(true); + }, + onBlur: function onBlur() { + return setIsInserterForced(false); + }, + onClick: focusClosestTabbable // While ideally it would be enough to capture the + // bubbling focus event from the Inserter, due to the + // characteristics of click focusing of `button`s in + // Firefox and Safari, it is not reliable. + // + // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + , + tabIndex: -1, + className: classnames_default()('block-editor-block-list__insertion-point-inserter', { + 'is-inserter-hidden': isInserterHidden + }) + }, Object(external_this_wp_element_["createElement"])(inserter, { + position: "bottom center", + clientId: inserterClientId + })))), Object(external_this_wp_element_["createElement"])("div", { + onMouseMove: !isInserterForced && !isMultiSelecting ? onMouseMove : undefined + }, children)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-selection-button.js + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/** + * Block selection button component, displaying the label of the block. If the block + * descends from a root block, a button is displayed enabling the user to select + * the root block. + * + * @param {string} props Component props. + * @param {string} props.clientId Client ID of block. + * + * @return {WPComponent} The component to be rendered. + */ + +function BlockSelectionButton(_ref) { + var clientId = _ref.clientId, + rootClientId = _ref.rootClientId, + moverDirection = _ref.moverDirection, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["clientId", "rootClientId", "moverDirection"]); + + var selected = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks, + getBlockIndex = _select.getBlockIndex; + + var index = getBlockIndex(clientId, rootClientId); + + var _unstableGetBlockWit = __unstableGetBlockWithoutInnerBlocks(clientId), + name = _unstableGetBlockWit.name, + attributes = _unstableGetBlockWit.attributes; + + return { + index: index, + name: name, + attributes: attributes + }; + }, [clientId, rootClientId]); + var index = selected.index, + name = selected.name, + attributes = selected.attributes; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + setNavigationMode = _useDispatch.setNavigationMode, + removeBlock = _useDispatch.removeBlock; + + var ref = Object(external_this_wp_element_["useRef"])(); // Focus the breadcrumb in navigation mode. + + Object(external_this_wp_element_["useEffect"])(function () { + ref.current.focus(); + }); + + function onKeyDown(event) { + var keyCode = event.keyCode; + + if (keyCode === external_this_wp_keycodes_["BACKSPACE"] || keyCode === external_this_wp_keycodes_["DELETE"]) { + removeBlock(clientId); + event.preventDefault(); + } + } + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + var label = Object(external_this_wp_blocks_["__experimentalGetAccessibleBlockLabel"])(blockType, attributes, index + 1, moverDirection); + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + className: "block-editor-block-list__block-selection-button" + }, props), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + ref: ref, + onClick: function onClick() { + return setNavigationMode(false); + }, + onKeyDown: onKeyDown, + label: label + }, Object(external_this_wp_element_["createElement"])(BlockTitle, { + clientId: clientId + }))); +} + +/* harmony default export */ var block_selection_button = (BlockSelectionButton); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/navigable-toolbar/index.js + + + + + +/** + * WordPress dependencies + */ + + + + + +function useUpdateLayoutEffect(effect, deps) { + var mounted = Object(external_this_wp_element_["useRef"])(false); + Object(external_this_wp_element_["useLayoutEffect"])(function () { + if (mounted.current) { + return effect(); + } + + mounted.current = true; + }, deps); +} + +function hasOnlyToolbarItem(elements) { + var dataProp = 'experimentalToolbarItem'; + return !elements.some(function (element) { + return !(dataProp in element.dataset); + }); +} + +function focusFirstTabbableIn(container) { + var _focus$tabbable$find = external_this_wp_dom_["focus"].tabbable.find(container), + _focus$tabbable$find2 = Object(slicedToArray["a" /* default */])(_focus$tabbable$find, 1), + firstTabbable = _focus$tabbable$find2[0]; + + if (firstTabbable) { + firstTabbable.focus(); + } +} + +function useIsAccessibleToolbar(ref) { + // By default, it's gonna render NavigableMenu. If all the tabbable elements + // inside the toolbar are ToolbarItem components (or derived components like + // ToolbarButton), then we can wrap them with the accessible Toolbar + // component. + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isAccessibleToolbar = _useState2[0], + setIsAccessibleToolbar = _useState2[1]; + + var determineIsAccessibleToolbar = Object(external_this_wp_element_["useCallback"])(function () { + var tabbables = external_this_wp_dom_["focus"].tabbable.find(ref.current); + setIsAccessibleToolbar(hasOnlyToolbarItem(tabbables)); + }, []); + Object(external_this_wp_element_["useLayoutEffect"])(determineIsAccessibleToolbar, []); + useUpdateLayoutEffect(function () { + // Toolbar buttons may be rendered asynchronously, so we use + // MutationObserver to check if the toolbar subtree has been modified + var observer = new window.MutationObserver(determineIsAccessibleToolbar); + observer.observe(ref.current, { + childList: true, + subtree: true + }); + return function () { + return observer.disconnect(); + }; + }, [isAccessibleToolbar]); + return isAccessibleToolbar; +} + +function useToolbarFocus(ref, focusOnMount, isAccessibleToolbar) { + // Make sure we don't use modified versions of this prop + var _useState3 = Object(external_this_wp_element_["useState"])(focusOnMount), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 1), + initialFocusOnMount = _useState4[0]; + + var focusToolbar = Object(external_this_wp_element_["useCallback"])(function () { + focusFirstTabbableIn(ref.current); + }, []); + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/focus-toolbar', focusToolbar, { + bindGlobal: true, + eventName: 'keydown' + }); + Object(external_this_wp_element_["useEffect"])(function () { + if (initialFocusOnMount) { + focusToolbar(); + } + }, [isAccessibleToolbar, initialFocusOnMount, focusToolbar]); +} + +function NavigableToolbar(_ref) { + var children = _ref.children, + focusOnMount = _ref.focusOnMount, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "focusOnMount"]); + + var wrapper = Object(external_this_wp_element_["useRef"])(); + var isAccessibleToolbar = useIsAccessibleToolbar(wrapper); + useToolbarFocus(wrapper, focusOnMount, isAccessibleToolbar); + + if (isAccessibleToolbar) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], Object(esm_extends["a" /* default */])({ + __experimentalAccessibilityLabel: props['aria-label'], + ref: wrapper + }, props), children); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], Object(esm_extends["a" /* default */])({ + orientation: "horizontal", + role: "toolbar", + ref: wrapper + }, props), children); +} + +/* harmony default export */ var navigable_toolbar = (NavigableToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js + + + + + + + + + +function block_mover_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_mover_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function block_mover_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var block_mover_BlockMover = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(BlockMover, _Component); + + var _super = block_mover_createSuper(BlockMover); + + function BlockMover() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockMover); + + _this = _super.apply(this, arguments); + _this.state = { + isFocused: false + }; + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(BlockMover, [{ + key: "onFocus", + value: function onFocus() { + this.setState({ + isFocused: true + }); + } + }, { + key: "onBlur", + value: function onBlur() { + this.setState({ + isFocused: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + isFirst = _this$props.isFirst, + isLast = _this$props.isLast, + clientIds = _this$props.clientIds, + isLocked = _this$props.isLocked, + isHidden = _this$props.isHidden, + rootClientId = _this$props.rootClientId, + orientation = _this$props.__experimentalOrientation; + var isFocused = this.state.isFocused; + + if (isLocked || isFirst && isLast && !rootClientId) { + return null; + } // We emulate a disabled state because forcefully applying the `disabled` + // attribute on the buttons while it has focus causes the screen to change + // to an unfocused state (body as active element) without firing blur on, + // the rendering parent, leaving it unable to react to focus out. + + + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('block-editor-block-mover', { + 'is-visible': isFocused || !isHidden, + 'is-horizontal': orientation === 'horizontal' + }) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], { + onFocus: this.onFocus, + onBlur: this.onBlur + }, function (itemProps) { + return Object(external_this_wp_element_["createElement"])(BlockMoverUpButton, Object(esm_extends["a" /* default */])({ + clientIds: clientIds + }, itemProps)); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], { + onFocus: this.onFocus, + onBlur: this.onBlur + }, function (itemProps) { + return Object(external_this_wp_element_["createElement"])(BlockMoverDownButton, Object(esm_extends["a" /* default */])({ + clientIds: clientIds + }, itemProps)); + }))); + } + }]); + + return BlockMover; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var block_mover = (Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientIds = _ref.clientIds; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock, + getBlockIndex = _select.getBlockIndex, + getTemplateLock = _select.getTemplateLock, + getBlockOrder = _select.getBlockOrder, + getBlockRootClientId = _select.getBlockRootClientId; + + var normalizedClientIds = Object(external_this_lodash_["castArray"])(clientIds); + var firstClientId = Object(external_this_lodash_["first"])(normalizedClientIds); + var block = getBlock(firstClientId); + var rootClientId = getBlockRootClientId(Object(external_this_lodash_["first"])(normalizedClientIds)); + var firstIndex = getBlockIndex(firstClientId, rootClientId); + var lastIndex = getBlockIndex(Object(external_this_lodash_["last"])(normalizedClientIds), rootClientId); + var blockOrder = getBlockOrder(rootClientId); + var isFirst = firstIndex === 0; + var isLast = lastIndex === blockOrder.length - 1; + return { + blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, + isLocked: getTemplateLock(rootClientId) === 'all', + rootClientId: rootClientId, + firstIndex: firstIndex, + isFirst: isFirst, + isLast: isLast + }; +})(block_mover_BlockMover)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-parent-selector/index.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Block parent selector component, displaying the hierarchy of the + * current block selection as a single icon to "go up" a level. + * + * @return {WPComponent} Parent block selector. + */ + +function BlockParentSelector() { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + selectBlock = _useDispatch.selectBlock; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName, + getBlockParents = _select.getBlockParents, + getSelectedBlockClientId = _select.getSelectedBlockClientId; + + var selectedBlockClientId = getSelectedBlockClientId(); + var parents = getBlockParents(selectedBlockClientId); + var _firstParentClientId = parents[parents.length - 1]; + var parentBlockName = getBlockName(_firstParentClientId); + return { + parentBlockType: Object(external_this_wp_blocks_["getBlockType"])(parentBlockName), + firstParentClientId: _firstParentClientId + }; + }, []), + parentBlockType = _useSelect.parentBlockType, + firstParentClientId = _useSelect.firstParentClientId; + + if (firstParentClientId !== undefined) { + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-parent-selector", + key: firstParentClientId + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + className: "block-editor-block-parent-selector__button", + onClick: function onClick() { + return selectBlock(firstParentClientId); + }, + label: Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: Name of the block's parent. */ + Object(external_this_wp_i18n_["__"])('Select parent (%s)'), parentBlockType.title), + showTooltip: true, + icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: parentBlockType.icon + }) + })); + } + + return null; +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js +var layout = __webpack_require__(286); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js + + + +function block_styles_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_styles_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_styles_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_styles_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function block_styles_createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = block_styles_unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function block_styles_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return block_styles_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return block_styles_arrayLikeToArray(o, minLen); } + +function block_styles_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Returns the active style from the given className. + * + * @param {Array} styles Block style variations. + * @param {string} className Class name + * + * @return {Object?} The active style. + */ + +function getActiveStyle(styles, className) { + var _iterator = block_styles_createForOfIteratorHelper(new external_this_wp_tokenList_default.a(className).values()), + _step; + + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var style = _step.value; + + if (style.indexOf('is-style-') === -1) { + continue; + } + + var potentialStyleName = style.substring(9); + var activeStyle = Object(external_this_lodash_["find"])(styles, { + name: potentialStyleName + }); + + if (activeStyle) { + return activeStyle; + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + + return Object(external_this_lodash_["find"])(styles, 'isDefault'); +} +/** + * Replaces the active style in the block's className. + * + * @param {string} className Class name. + * @param {Object?} activeStyle The replaced style. + * @param {Object} newStyle The replacing style. + * + * @return {string} The updated className. + */ + +function replaceActiveStyle(className, activeStyle, newStyle) { + var list = new external_this_wp_tokenList_default.a(className); + + if (activeStyle) { + list.remove('is-style-' + activeStyle.name); + } + + if (!newStyle.isDefault) { + list.add('is-style-' + newStyle.name); + } + + return list.value; +} + +var block_styles_useGenericPreviewBlock = function useGenericPreviewBlock(block, type) { + return Object(external_this_wp_element_["useMemo"])(function () { + return type.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(block.name, { + attributes: type.example.attributes, + innerBlocks: type.example.innerBlocks + }) : Object(external_this_wp_blocks_["cloneBlock"])(block); + }, [type.example ? block.name : block, type]); +}; + +function BlockStyles(_ref) { + var clientId = _ref.clientId, + _ref$onSwitch = _ref.onSwitch, + onSwitch = _ref$onSwitch === void 0 ? external_this_lodash_["noop"] : _ref$onSwitch, + _ref$onHoverClassName = _ref.onHoverClassName, + onHoverClassName = _ref$onHoverClassName === void 0 ? external_this_lodash_["noop"] : _ref$onHoverClassName; + + var selector = function selector(select) { + var _select = select('core/block-editor'), + getBlock = _select.getBlock; + + var _select2 = select('core/blocks'), + getBlockStyles = _select2.getBlockStyles; + + var block = getBlock(clientId); + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + return { + block: block, + type: blockType, + styles: getBlockStyles(block.name), + className: block.attributes.className || '' + }; + }; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, [clientId]), + styles = _useSelect.styles, + block = _useSelect.block, + type = _useSelect.type, + className = _useSelect.className; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateBlockAttributes = _useDispatch.updateBlockAttributes; + + var genericPreviewBlock = block_styles_useGenericPreviewBlock(block, type); + + if (!styles || styles.length === 0) { + return null; + } + + if (!type.styles && !Object(external_this_lodash_["find"])(styles, 'isDefault')) { + styles.unshift({ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }); + } + + var activeStyle = getActiveStyle(styles, className); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-styles" + }, styles.map(function (style) { + var styleClassName = replaceActiveStyle(className, activeStyle, style); + return Object(external_this_wp_element_["createElement"])(BlockStyleItem, { + genericPreviewBlock: genericPreviewBlock, + className: className, + isActive: activeStyle === style, + key: style.name, + onSelect: function onSelect() { + updateBlockAttributes(clientId, { + className: styleClassName + }); + onHoverClassName(null); + onSwitch(); + }, + onBlur: function onBlur() { + return onHoverClassName(null); + }, + onHover: function onHover() { + return onHoverClassName(styleClassName); + }, + style: style, + styleClassName: styleClassName + }); + })); +} + +function BlockStyleItem(_ref2) { + var genericPreviewBlock = _ref2.genericPreviewBlock, + style = _ref2.style, + isActive = _ref2.isActive, + onBlur = _ref2.onBlur, + onHover = _ref2.onHover, + onSelect = _ref2.onSelect, + styleClassName = _ref2.styleClassName; + var previewBlocks = Object(external_this_wp_element_["useMemo"])(function () { + return block_styles_objectSpread({}, genericPreviewBlock, { + attributes: block_styles_objectSpread({}, genericPreviewBlock.attributes, { + className: styleClassName + }) + }); + }, [genericPreviewBlock, styleClassName]); + return Object(external_this_wp_element_["createElement"])("div", { + key: style.name, + className: classnames_default()('block-editor-block-styles__item', { + 'is-active': isActive + }), + onClick: function onClick() { + return onSelect(); + }, + onKeyDown: function onKeyDown(event) { + if (external_this_wp_keycodes_["ENTER"] === event.keyCode || external_this_wp_keycodes_["SPACE"] === event.keyCode) { + event.preventDefault(); + onSelect(); + } + }, + onMouseEnter: onHover, + onMouseLeave: onBlur, + role: "button", + tabIndex: "0", + "aria-label": style.label || style.name + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-styles__item-preview" + }, Object(external_this_wp_element_["createElement"])(block_preview, { + viewportWidth: 500, + blocks: previewBlocks + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-styles__item-label" + }, style.label || style.name)); +} + +/* harmony default export */ var block_styles = (BlockStyles); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/index.js + + + + + + + + + +function block_switcher_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_switcher_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_switcher_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_switcher_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function block_switcher_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_switcher_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function block_switcher_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Internal dependencies + */ + + + + + +var block_switcher_POPOVER_PROPS = { + position: 'bottom right', + isAlternate: true +}; +var block_switcher_BlockSwitcher = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(BlockSwitcher, _Component); + + var _super = block_switcher_createSuper(BlockSwitcher); + + function BlockSwitcher() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockSwitcher); + + _this = _super.apply(this, arguments); + _this.state = { + hoveredClassName: null + }; + _this.onHoverClassName = _this.onHoverClassName.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(BlockSwitcher, [{ + key: "onHoverClassName", + value: function onHoverClassName(className) { + this.setState({ + hoveredClassName: className + }); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + blocks = _this$props.blocks, + onTransform = _this$props.onTransform, + inserterItems = _this$props.inserterItems, + hasBlockStyles = _this$props.hasBlockStyles; + var hoveredClassName = this.state.hoveredClassName; + + if (!blocks || !blocks.length) { + return null; + } + + var hoveredBlock = blocks[0]; + var hoveredBlockType = Object(external_this_wp_blocks_["getBlockType"])(hoveredBlock.name); + var itemsByName = Object(external_this_lodash_["mapKeys"])(inserterItems, function (_ref) { + var name = _ref.name; + return name; + }); + var possibleBlockTransformations = Object(external_this_lodash_["orderBy"])(Object(external_this_lodash_["filter"])(Object(external_this_wp_blocks_["getPossibleBlockTransformations"])(blocks), function (block) { + return block && !!itemsByName[block.name]; + }), function (block) { + return itemsByName[block.name].frecency; + }, 'desc'); // When selection consists of blocks of multiple types, display an + // appropriate icon to communicate the non-uniformity. + + var isSelectionOfSameType = Object(external_this_lodash_["uniq"])(Object(external_this_lodash_["map"])(blocks, 'name')).length === 1; + var icon; + + if (isSelectionOfSameType) { + var sourceBlockName = blocks[0].name; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(sourceBlockName); + icon = blockType.icon; + } else { + icon = layout["a" /* default */]; + } + + if (!hasBlockStyles && !possibleBlockTransformations.length) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + disabled: true, + className: "block-editor-block-switcher__no-switcher-icon", + title: Object(external_this_wp_i18n_["__"])('Block icon'), + icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + }) + })); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + popoverProps: block_switcher_POPOVER_PROPS, + className: "block-editor-block-switcher", + contentClassName: "block-editor-block-switcher__popover", + renderToggle: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + isOpen = _ref2.isOpen; + + var openOnArrowDown = function openOnArrowDown(event) { + if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { + event.preventDefault(); + event.stopPropagation(); + onToggle(); + } + }; + + var label = 1 === blocks.length ? Object(external_this_wp_i18n_["__"])('Change block type or style') : Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: number of blocks. */ + Object(external_this_wp_i18n_["_n"])('Change type of %d block', 'Change type of %d blocks', blocks.length), blocks.length); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + className: "block-editor-block-switcher__toggle", + onClick: onToggle, + "aria-haspopup": "true", + "aria-expanded": isOpen, + title: label, + onKeyDown: openOnArrowDown, + showTooltip: true, + icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + }) + })); + }, + renderContent: function renderContent(_ref3) { + var onClose = _ref3.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, (hasBlockStyles || possibleBlockTransformations.length !== 0) && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-switcher__container" + }, hasBlockStyles && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-switcher__label" + }, Object(external_this_wp_i18n_["__"])('Styles')), Object(external_this_wp_element_["createElement"])(block_styles, { + clientId: blocks[0].clientId, + onSwitch: onClose, + onHoverClassName: _this2.onHoverClassName + })), possibleBlockTransformations.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-switcher__label" + }, Object(external_this_wp_i18n_["__"])('Transform to')), Object(external_this_wp_element_["createElement"])(block_types_list, { + items: possibleBlockTransformations.map(function (destinationBlockType) { + return { + id: destinationBlockType.name, + icon: destinationBlockType.icon, + title: destinationBlockType.title + }; + }), + onSelect: function onSelect(item) { + onTransform(blocks, item.id); + onClose(); + } + }))), hoveredClassName !== null && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-switcher__preview" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-switcher__preview-title" + }, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(block_preview, { + viewportWidth: 500, + blocks: hoveredBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(hoveredBlock.name, { + attributes: block_switcher_objectSpread({}, hoveredBlockType.example.attributes, { + className: hoveredClassName + }), + innerBlocks: hoveredBlockType.example.innerBlocks + }) : Object(external_this_wp_blocks_["cloneBlock"])(hoveredBlock, { + className: hoveredClassName + }) + }))); + } + }); + } + }]); + + return BlockSwitcher; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var block_switcher = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { + var clientIds = _ref4.clientIds; + + var _select = select('core/block-editor'), + getBlocksByClientId = _select.getBlocksByClientId, + getBlockRootClientId = _select.getBlockRootClientId, + getInserterItems = _select.getInserterItems; + + var _select2 = select('core/blocks'), + getBlockStyles = _select2.getBlockStyles; + + var rootClientId = getBlockRootClientId(Object(external_this_lodash_["first"])(Object(external_this_lodash_["castArray"])(clientIds))); + var blocks = getBlocksByClientId(clientIds); + var firstBlock = blocks && blocks.length === 1 ? blocks[0] : null; + var styles = firstBlock && getBlockStyles(firstBlock.name); + return { + blocks: blocks, + inserterItems: getInserterItems(rootClientId), + hasBlockStyles: styles && styles.length > 0 + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + return { + onTransform: function onTransform(blocks, name) { + dispatch('core/block-editor').replaceBlocks(ownProps.clientIds, Object(external_this_wp_blocks_["switchToBlockType"])(blocks, name)); + } + }; +}))(block_switcher_BlockSwitcher)); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(44); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-paste-event-data.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function getPasteEventData(_ref) { + var clipboardData = _ref.clipboardData; + var items = clipboardData.items, + files = clipboardData.files; // In Edge these properties can be null instead of undefined, so a more + // rigorous test is required over using default values. + + items = Object(external_this_lodash_["isNil"])(items) ? [] : items; + files = Object(external_this_lodash_["isNil"])(files) ? [] : files; + var plainText = ''; + var html = ''; // IE11 only supports `Text` as an argument for `getData` and will + // otherwise throw an invalid argument error, so we try the standard + // arguments first, then fallback to `Text` if they fail. + + try { + plainText = clipboardData.getData('text/plain'); + html = clipboardData.getData('text/html'); + } catch (error1) { + try { + html = clipboardData.getData('Text'); + } catch (error2) { + // Some browsers like UC Browser paste plain text by default and + // don't support clipboardData at all, so allow default + // behaviour. + return; + } + } + + files = Array.from(files); + Array.from(items).forEach(function (item) { + if (!item.getAsFile) { + return; + } + + var file = item.getAsFile(); + + if (!file) { + return; + } + + var name = file.name, + type = file.type, + size = file.size; + + if (!Object(external_this_lodash_["find"])(files, { + name: name, + type: type, + size: size + })) { + files.push(file); + } + }); + files = files.filter(function (_ref2) { + var type = _ref2.type; + return /^image\/(?:jpe?g|png|gif)$/.test(type); + }); // Only process files if no HTML is present. + // A pasted file may have the URL as plain text. + + if (files.length && !html) { + html = files.map(function (file) { + return ""); + }).join(''); + plainText = ''; + } + + return { + html: html, + plainText: plainText + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/copy-handler/index.js + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +function useNotifyCopy() { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor'); + }, []), + getBlockName = _useSelect.getBlockName; + + var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/blocks'); + }, []), + getBlockType = _useSelect2.getBlockType; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'), + createSuccessNotice = _useDispatch.createSuccessNotice; + + return Object(external_this_wp_element_["useCallback"])(function (eventType, selectedBlockClientIds) { + var notice = ''; + + if (selectedBlockClientIds.length === 1) { + var clientId = selectedBlockClientIds[0]; + + var _getBlockType = getBlockType(getBlockName(clientId)), + title = _getBlockType.title; + + notice = eventType === 'copy' ? Object(external_this_wp_i18n_["sprintf"])( // Translators: Name of the block being copied, e.g. "Paragraph" + Object(external_this_wp_i18n_["__"])('Copied "%s" to clipboard.'), title) : Object(external_this_wp_i18n_["sprintf"])( // Translators: Name of the block being cut, e.g. "Paragraph" + Object(external_this_wp_i18n_["__"])('Moved "%s" to clipboard.'), title); + } else { + notice = eventType === 'copy' ? Object(external_this_wp_i18n_["sprintf"])( // Translators: Number of blocks being copied + Object(external_this_wp_i18n_["__"])('Copied %d blocks to clipboard.'), selectedBlockClientIds.length) : Object(external_this_wp_i18n_["sprintf"])( // Translators: Number of blocks being cut + Object(external_this_wp_i18n_["__"])('Moved %d blocks to clipboard.'), selectedBlockClientIds.length); + } + + createSuccessNotice(notice, { + type: 'snackbar' + }); + }, []); +} + +function CopyHandler(_ref) { + var children = _ref.children; + var containerRef = Object(external_this_wp_element_["useRef"])(); + + var _useSelect3 = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor'); + }, []), + getBlocksByClientId = _useSelect3.getBlocksByClientId, + getSelectedBlockClientIds = _useSelect3.getSelectedBlockClientIds, + hasMultiSelection = _useSelect3.hasMultiSelection, + getSettings = _useSelect3.getSettings; + + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + flashBlock = _useDispatch2.flashBlock, + removeBlocks = _useDispatch2.removeBlocks, + replaceBlocks = _useDispatch2.replaceBlocks; + + var notifyCopy = useNotifyCopy(); + + var _getSettings = getSettings(), + canUserUseUnfilteredHTML = _getSettings.__experimentalCanUserUseUnfilteredHTML; + + var handler = function handler(event) { + var selectedBlockClientIds = getSelectedBlockClientIds(); + + if (selectedBlockClientIds.length === 0) { + return; + } // Always handle multiple selected blocks. + + + if (!hasMultiSelection()) { + // If copying, only consider actual text selection as selection. + // Otherwise, any focus on an input field is considered. + var hasSelection = event.type === 'copy' || event.type === 'cut' ? Object(external_this_wp_dom_["documentHasUncollapsedSelection"])() : Object(external_this_wp_dom_["documentHasSelection"])(); // Let native copy behaviour take over in input fields. + + if (hasSelection) { + return; + } + } + + if (!containerRef.current.contains(event.target)) { + return; + } + + event.preventDefault(); + + if (event.type === 'copy' || event.type === 'cut') { + if (selectedBlockClientIds.length === 1) { + flashBlock(selectedBlockClientIds[0]); + } + + notifyCopy(event.type, selectedBlockClientIds); + var blocks = getBlocksByClientId(selectedBlockClientIds); + var serialized = Object(external_this_wp_blocks_["serialize"])(blocks); + event.clipboardData.setData('text/plain', serialized); + event.clipboardData.setData('text/html', serialized); + } + + if (event.type === 'cut') { + removeBlocks(selectedBlockClientIds); + } else if (event.type === 'paste') { + var _getPasteEventData = getPasteEventData(event), + plainText = _getPasteEventData.plainText, + html = _getPasteEventData.html; + + var _blocks = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: html, + plainText: plainText, + mode: 'BLOCKS', + canUserUseUnfilteredHTML: canUserUseUnfilteredHTML + }); + + replaceBlocks(selectedBlockClientIds, _blocks, _blocks.length - 1, -1); + } + }; + + return Object(external_this_wp_element_["createElement"])("div", { + ref: containerRef, + onCopy: handler, + onCut: handler, + onPaste: handler + }, children); +} + +/* harmony default export */ var copy_handler = (CopyHandler); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-actions/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +function BlockActions(_ref) { + var clientIds = _ref.clientIds, + children = _ref.children, + updateSelection = _ref.__experimentalUpdateSelection; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor'); + }, []), + canInsertBlockType = _useSelect.canInsertBlockType, + getBlockRootClientId = _useSelect.getBlockRootClientId, + getBlocksByClientId = _useSelect.getBlocksByClientId, + getTemplateLock = _useSelect.getTemplateLock; + + var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/blocks'); + }), + getDefaultBlockName = _useSelect2.getDefaultBlockName, + getGroupingBlockName = _useSelect2.getGroupingBlockName; + + var blocks = getBlocksByClientId(clientIds); + var rootClientId = getBlockRootClientId(clientIds[0]); + var canDuplicate = Object(external_this_lodash_["every"])(blocks, function (block) { + return !!block && Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true) && canInsertBlockType(block.name, rootClientId); + }); + var canInsertDefaultBlock = canInsertBlockType(getDefaultBlockName(), rootClientId); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + removeBlocks = _useDispatch.removeBlocks, + replaceBlocks = _useDispatch.replaceBlocks, + duplicateBlocks = _useDispatch.duplicateBlocks, + insertAfterBlock = _useDispatch.insertAfterBlock, + insertBeforeBlock = _useDispatch.insertBeforeBlock, + flashBlock = _useDispatch.flashBlock; + + var notifyCopy = useNotifyCopy(); + return children({ + canDuplicate: canDuplicate, + canInsertDefaultBlock: canInsertDefaultBlock, + isLocked: !!getTemplateLock(rootClientId), + rootClientId: rootClientId, + blocks: blocks, + onDuplicate: function onDuplicate() { + return duplicateBlocks(clientIds, updateSelection); + }, + onRemove: function onRemove() { + return removeBlocks(clientIds, updateSelection); + }, + onInsertBefore: function onInsertBefore() { + insertBeforeBlock(Object(external_this_lodash_["first"])(Object(external_this_lodash_["castArray"])(clientIds))); + }, + onInsertAfter: function onInsertAfter() { + insertAfterBlock(Object(external_this_lodash_["last"])(Object(external_this_lodash_["castArray"])(clientIds))); + }, + onGroup: function onGroup() { + if (!blocks.length) { + return; + } + + var groupingBlockName = getGroupingBlockName(); // Activate the `transform` on `core/group` which does the conversion + + var newBlocks = Object(external_this_wp_blocks_["switchToBlockType"])(blocks, groupingBlockName); + + if (!newBlocks) { + return; + } + + replaceBlocks(clientIds, newBlocks); + }, + onUngroup: function onUngroup() { + if (!blocks.length) { + return; + } + + var innerBlocks = blocks[0].innerBlocks; + + if (!innerBlocks.length) { + return; + } + + replaceBlocks(clientIds, innerBlocks); + }, + onCopy: function onCopy() { + var selectedBlockClientIds = blocks.map(function (_ref2) { + var clientId = _ref2.clientId; + return clientId; + }); + + if (blocks.length === 1) { + flashBlock(selectedBlockClientIds[0]); + } + + notifyCopy('copy', selectedBlockClientIds); + } + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function BlockModeToggle(_ref) { + var blockType = _ref.blockType, + mode = _ref.mode, + onToggleMode = _ref.onToggleMode, + _ref$small = _ref.small, + small = _ref$small === void 0 ? false : _ref$small, + _ref$isCodeEditingEna = _ref.isCodeEditingEnabled, + isCodeEditingEnabled = _ref$isCodeEditingEna === void 0 ? true : _ref$isCodeEditingEna; + + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'html', true) || !isCodeEditingEnabled) { + return null; + } + + var label = mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Edit as HTML') : Object(external_this_wp_i18n_["__"])('Edit visually'); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: onToggleMode + }, !small && label); +} +/* harmony default export */ var block_mode_toggle = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock, + getBlockMode = _select.getBlockMode, + getSettings = _select.getSettings; + + var block = getBlock(clientId); + var isCodeEditingEnabled = getSettings().codeEditingEnabled; + return { + mode: getBlockMode(clientId), + blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, + isCodeEditingEnabled: isCodeEditingEnabled + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var _ref3$onToggle = _ref3.onToggle, + onToggle = _ref3$onToggle === void 0 ? external_this_lodash_["noop"] : _ref3$onToggle, + clientId = _ref3.clientId; + return { + onToggleMode: function onToggleMode() { + dispatch('core/block-editor').toggleBlockMode(clientId); + onToggle(); + } + }; +})])(BlockModeToggle)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-convert-button.js + + +/** + * WordPress dependencies + */ + + +function BlockConvertButton(_ref) { + var shouldRender = _ref.shouldRender, + onClick = _ref.onClick, + small = _ref.small; + + if (!shouldRender) { + return null; + } + + var label = Object(external_this_wp_i18n_["__"])('Convert to Blocks'); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: onClick + }, !small && label); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-html-convert-button.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var block_html_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientId = _ref.clientId; + var block = select('core/block-editor').getBlock(clientId); + return { + block: block, + shouldRender: block && block.name === 'core/html' + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var block = _ref2.block; + return { + onClick: function onClick() { + return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ + HTML: Object(external_this_wp_blocks_["getBlockContent"])(block) + })); + } + }; +}))(BlockConvertButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-unknown-convert-button.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var block_unknown_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientId = _ref.clientId; + var block = select('core/block-editor').getBlock(clientId); + return { + block: block, + shouldRender: block && block.name === Object(external_this_wp_blocks_["getFreeformContentHandlerName"])() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var block = _ref2.block; + return { + onClick: function onClick() { + return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ + HTML: Object(external_this_wp_blocks_["serialize"])(block) + })); + } + }; +}))(BlockConvertButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js +/** + * WordPress dependencies + */ + + +var block_settings_menu_first_item_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('__experimentalBlockSettingsMenuFirstItem'), + __experimentalBlockSettingsMenuFirstItem = block_settings_menu_first_item_createSlotFill.Fill, + block_settings_menu_first_item_Slot = block_settings_menu_first_item_createSlotFill.Slot; + +__experimentalBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot; +/* harmony default export */ var block_settings_menu_first_item = (__experimentalBlockSettingsMenuFirstItem); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu-controls/index.js + + + +function block_settings_menu_controls_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_settings_menu_controls_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_settings_menu_controls_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_settings_menu_controls_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var block_settings_menu_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockSettingsMenuControls'), + BlockSettingsMenuControls = block_settings_menu_controls_createSlotFill.Fill, + block_settings_menu_controls_Slot = block_settings_menu_controls_createSlotFill.Slot; + +var block_settings_menu_controls_BlockSettingsMenuControlsSlot = function BlockSettingsMenuControlsSlot(_ref) { + var fillProps = _ref.fillProps, + _ref$clientIds = _ref.clientIds, + clientIds = _ref$clientIds === void 0 ? null : _ref$clientIds; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlocksByClientId = _select.getBlocksByClientId, + getSelectedBlockClientIds = _select.getSelectedBlockClientIds; + + var ids = clientIds !== null ? clientIds : getSelectedBlockClientIds(); + return { + selectedBlocks: Object(external_this_lodash_["map"])(getBlocksByClientId(ids), function (block) { + return block.name; + }) + }; + }, []), + selectedBlocks = _useSelect.selectedBlocks; + + return Object(external_this_wp_element_["createElement"])(block_settings_menu_controls_Slot, { + fillProps: block_settings_menu_controls_objectSpread({}, fillProps, { + selectedBlocks: selectedBlocks + }) + }, function (fills) { + return !Object(external_this_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, fills); + }); +}; + +BlockSettingsMenuControls.Slot = block_settings_menu_controls_BlockSettingsMenuControlsSlot; +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/block-settings-menu-controls/README.md + */ + +/* harmony default export */ var block_settings_menu_controls = (BlockSettingsMenuControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + + + + +var block_settings_dropdown_POPOVER_PROPS = { + className: 'block-editor-block-settings-menu__popover', + position: 'bottom right', + isAlternate: true +}; +function BlockSettingsDropdown(_ref) { + var clientIds = _ref.clientIds, + __experimentalSelectBlock = _ref.__experimentalSelectBlock, + children = _ref.children, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["clientIds", "__experimentalSelectBlock", "children"]); + + var blockClientIds = Object(external_this_lodash_["castArray"])(clientIds); + var count = blockClientIds.length; + var firstBlockClientId = blockClientIds[0]; + var shortcuts = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/keyboard-shortcuts'), + getShortcutRepresentation = _select.getShortcutRepresentation; + + return { + duplicate: getShortcutRepresentation('core/block-editor/duplicate'), + remove: getShortcutRepresentation('core/block-editor/remove'), + insertAfter: getShortcutRepresentation('core/block-editor/insert-after'), + insertBefore: getShortcutRepresentation('core/block-editor/insert-before') + }; + }, []); + var updateSelection = Object(external_this_wp_element_["useCallback"])(__experimentalSelectBlock ? /*#__PURE__*/function () { + var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(clientIdsPromise) { + var ids; + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return clientIdsPromise; + + case 2: + ids = _context.sent; + + if (ids && ids[0]) { + __experimentalSelectBlock(ids[0]); + } + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + + return function (_x) { + return _ref2.apply(this, arguments); + }; + }() : external_this_lodash_["noop"], [__experimentalSelectBlock]); + return Object(external_this_wp_element_["createElement"])(BlockActions, { + clientIds: clientIds, + __experimentalUpdateSelection: !__experimentalSelectBlock + }, function (_ref3) { + var canDuplicate = _ref3.canDuplicate, + canInsertDefaultBlock = _ref3.canInsertDefaultBlock, + isLocked = _ref3.isLocked, + onDuplicate = _ref3.onDuplicate, + onInsertAfter = _ref3.onInsertAfter, + onInsertBefore = _ref3.onInsertBefore, + onRemove = _ref3.onRemove, + onCopy = _ref3.onCopy, + blocks = _ref3.blocks; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], Object(esm_extends["a" /* default */])({ + icon: more_horizontal, + label: Object(external_this_wp_i18n_["__"])('More options'), + className: "block-editor-block-settings-menu", + popoverProps: block_settings_dropdown_POPOVER_PROPS, + noIcons: true + }, props), function (_ref4) { + var onClose = _ref4.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(block_settings_menu_first_item.Slot, { + fillProps: { + onClose: onClose + } + }), count === 1 && Object(external_this_wp_element_["createElement"])(block_unknown_convert_button, { + clientId: firstBlockClientId + }), count === 1 && Object(external_this_wp_element_["createElement"])(block_html_convert_button, { + clientId: firstBlockClientId + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + text: function text() { + return Object(external_this_wp_blocks_["serialize"])(blocks); + }, + role: "menuitem", + className: "components-menu-item__button", + onCopy: onCopy + }, Object(external_this_wp_i18n_["__"])('Copy')), canDuplicate && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: Object(external_this_lodash_["flow"])(onClose, onDuplicate, updateSelection), + shortcut: shortcuts.duplicate + }, Object(external_this_wp_i18n_["__"])('Duplicate')), canInsertDefaultBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: Object(external_this_lodash_["flow"])(onClose, onInsertBefore), + shortcut: shortcuts.insertBefore + }, Object(external_this_wp_i18n_["__"])('Insert Before')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: Object(external_this_lodash_["flow"])(onClose, onInsertAfter), + shortcut: shortcuts.insertAfter + }, Object(external_this_wp_i18n_["__"])('Insert After'))), count === 1 && Object(external_this_wp_element_["createElement"])(block_mode_toggle, { + clientId: firstBlockClientId, + onToggle: onClose + })), Object(external_this_wp_element_["createElement"])(block_settings_menu_controls.Slot, { + fillProps: { + onClose: onClose + }, + clientIds: clientIds + }), typeof children === 'function' ? children({ + onClose: onClose + }) : external_this_wp_element_["Children"].map(function (child) { + return Object(external_this_wp_element_["cloneElement"])(child, { + onClose: onClose + }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: Object(external_this_lodash_["flow"])(onClose, onRemove, updateSelection), + shortcut: shortcuts.remove + }, Object(external_this_wp_i18n_["_n"])('Remove Block', 'Remove Blocks', count)))); + }); + }); +} +/* harmony default export */ var block_settings_dropdown = (BlockSettingsDropdown); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/index.js + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function BlockSettingsMenu(_ref) { + var clientIds = _ref.clientIds, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["clientIds"]); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(block_settings_dropdown, Object(esm_extends["a" /* default */])({ + clientIds: clientIds, + toggleProps: toggleProps + }, props)); + })); +} +/* harmony default export */ var block_settings_menu = (BlockSettingsMenu); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/index.js + + +/** + * WordPress dependencies + */ + + + + +var block_draggable_BlockDraggable = function BlockDraggable(_ref) { + var children = _ref.children, + clientIds = _ref.clientIds, + cloneClassname = _ref.cloneClassname; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockIndex = _select.getBlockIndex, + getBlockRootClientId = _select.getBlockRootClientId, + getTemplateLock = _select.getTemplateLock; + + var rootClientId = clientIds.length === 1 ? getBlockRootClientId(clientIds[0]) : null; + var templateLock = rootClientId ? getTemplateLock(rootClientId) : null; + return { + index: getBlockIndex(clientIds[0], rootClientId), + srcRootClientId: rootClientId, + isDraggable: clientIds.length === 1 && 'all' !== templateLock + }; + }, [clientIds]), + srcRootClientId = _useSelect.srcRootClientId, + index = _useSelect.index, + isDraggable = _useSelect.isDraggable; + + var isDragging = Object(external_this_wp_element_["useRef"])(false); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + startDraggingBlocks = _useDispatch.startDraggingBlocks, + stopDraggingBlocks = _useDispatch.stopDraggingBlocks; // Stop dragging blocks if the block draggable is unmounted + + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + if (isDragging.current) { + stopDraggingBlocks(); + } + }; + }, []); + + if (!isDraggable) { + return children({ + isDraggable: false + }); + } + + var blockElementId = "block-".concat(clientIds[0]); + var transferData = { + type: 'block', + srcIndex: index, + srcClientId: clientIds[0], + srcRootClientId: srcRootClientId + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Draggable"], { + cloneClassname: cloneClassname, + elementId: blockElementId, + transferData: transferData, + onDragStart: function onDragStart() { + startDraggingBlocks(); + isDragging.current = true; + }, + onDragEnd: function onDragEnd() { + stopDraggingBlocks(); + isDragging.current = false; + } + }, function (_ref2) { + var onDraggableStart = _ref2.onDraggableStart, + onDraggableEnd = _ref2.onDraggableEnd; + return children({ + isDraggable: true, + onDraggableStart: onDraggableStart, + onDraggableEnd: onDraggableEnd + }); + }); +}; + +/* harmony default export */ var block_draggable = (block_draggable_BlockDraggable); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/utils.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var utils_window = window, + utils_clearTimeout = utils_window.clearTimeout, + requestAnimationFrame = utils_window.requestAnimationFrame, + cancelAnimationFrame = utils_window.cancelAnimationFrame, + utils_setTimeout = utils_window.setTimeout; +var DEBOUNCE_TIMEOUT = 250; +/** + * Hook that creates a showMover state, as well as debounced show/hide callbacks. + * + * @param {Object} props Component props. + * @param {Object} props.ref Element reference. + * @param {boolean} props.isFocused Whether the component has current focus. + * @param {number} [props.debounceTimeout=250] Debounce timeout in milliseconds. + * @param {Function} [props.onChange=noop] Callback function. + */ + +function useDebouncedShowMovers(_ref) { + var ref = _ref.ref, + isFocused = _ref.isFocused, + _ref$debounceTimeout = _ref.debounceTimeout, + debounceTimeout = _ref$debounceTimeout === void 0 ? DEBOUNCE_TIMEOUT : _ref$debounceTimeout, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + showMovers = _useState2[0], + setShowMovers = _useState2[1]; + + var timeoutRef = Object(external_this_wp_element_["useRef"])(); + + var handleOnChange = function handleOnChange(nextIsFocused) { + setShowMovers(nextIsFocused); + onChange(nextIsFocused); + }; + + var getIsHovered = function getIsHovered() { + return (ref === null || ref === void 0 ? void 0 : ref.current) && ref.current.matches(':hover'); + }; + + var shouldHideMovers = function shouldHideMovers() { + var isHovered = getIsHovered(); + return !isFocused && !isHovered; + }; + + var clearTimeoutRef = function clearTimeoutRef() { + var timeout = timeoutRef.current; + + if (timeout && utils_clearTimeout) { + utils_clearTimeout(timeout); + } + }; + + var debouncedShowMovers = function debouncedShowMovers(event) { + if (event) { + event.stopPropagation(); + } + + clearTimeoutRef(); + + if (!showMovers) { + handleOnChange(true); + } + }; + + var debouncedHideMovers = function debouncedHideMovers(event) { + if (event) { + event.stopPropagation(); + } + + clearTimeoutRef(); + timeoutRef.current = utils_setTimeout(function () { + if (shouldHideMovers()) { + handleOnChange(false); + } + }, debounceTimeout); + }; + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + return clearTimeoutRef(); + }; + }, []); + return { + showMovers: showMovers, + debouncedShowMovers: debouncedShowMovers, + debouncedHideMovers: debouncedHideMovers + }; +} +/** + * Hook that provides a showMovers state and gesture events for DOM elements + * that interact with the showMovers state. + * + * @param {Object} props Component props. + * @param {Object} props.ref Element reference. + * @param {number} [props.debounceTimeout=250] Debounce timeout in milliseconds. + * @param {Function} [props.onChange=noop] Callback function. + */ + +function useShowMoversGestures(_ref2) { + var ref = _ref2.ref, + _ref2$debounceTimeout = _ref2.debounceTimeout, + debounceTimeout = _ref2$debounceTimeout === void 0 ? DEBOUNCE_TIMEOUT : _ref2$debounceTimeout, + _ref2$onChange = _ref2.onChange, + onChange = _ref2$onChange === void 0 ? external_this_lodash_["noop"] : _ref2$onChange; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isFocused = _useState4[0], + setIsFocused = _useState4[1]; + + var _useDebouncedShowMove = useDebouncedShowMovers({ + ref: ref, + debounceTimeout: debounceTimeout, + isFocused: isFocused, + onChange: onChange + }), + showMovers = _useDebouncedShowMove.showMovers, + debouncedShowMovers = _useDebouncedShowMove.debouncedShowMovers, + debouncedHideMovers = _useDebouncedShowMove.debouncedHideMovers; + + var registerRef = Object(external_this_wp_element_["useRef"])(false); + + var isFocusedWithin = function isFocusedWithin() { + return (ref === null || ref === void 0 ? void 0 : ref.current) && ref.current.contains(document.activeElement); + }; + + Object(external_this_wp_element_["useEffect"])(function () { + var node = ref.current; + + var handleOnFocus = function handleOnFocus() { + if (isFocusedWithin()) { + setIsFocused(true); + debouncedShowMovers(); + } + }; + + var handleOnBlur = function handleOnBlur() { + if (!isFocusedWithin()) { + setIsFocused(false); + debouncedHideMovers(); + } + }; + /** + * Events are added via DOM events (vs. React synthetic events), + * as the child React components swallow mouse events. + */ + + + if (node && !registerRef.current) { + node.addEventListener('focus', handleOnFocus, true); + node.addEventListener('blur', handleOnBlur, true); + registerRef.current = true; + } + + return function () { + if (node) { + node.removeEventListener('focus', handleOnFocus); + node.removeEventListener('blur', handleOnBlur); + } + }; + }, [ref, registerRef, setIsFocused, debouncedShowMovers, debouncedHideMovers]); + return { + showMovers: showMovers, + gestures: { + onMouseMove: debouncedShowMovers, + onMouseLeave: debouncedHideMovers + } + }; +} +var requestAnimationFrameId; +/** + * Hook that toggles the highlight (outline) state of a block + * + * @param {string} clientId The block's clientId + * + * @return {Function} Callback function to toggle highlight state. + */ + +function useToggleBlockHighlight(clientId) { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + toggleBlockHighlight = _useDispatch.toggleBlockHighlight; + + var updateBlockHighlight = Object(external_this_wp_element_["useCallback"])(function (isFocused) { + toggleBlockHighlight(clientId, isFocused); + }, [clientId]); + Object(external_this_wp_element_["useEffect"])(function () { + // On mount, we make sure to cancel any pending animation frame request + // that hasn't been completed yet. Components like NavigableToolbar may + // mount and unmount quickly. + if (requestAnimationFrameId) { + cancelAnimationFrame(requestAnimationFrameId); + } + + return function () { + // Sequences state change to enable editor updates (e.g. cursor + // position) to render correctly. + requestAnimationFrameId = requestAnimationFrame(function () { + updateBlockHighlight(false); + }); + }; + }, []); + return updateBlockHighlight; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + + + + + + +function BlockToolbar(_ref) { + var hideDragHandle = _ref.hideDragHandle; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/blocks'), + getBlockType = _select.getBlockType; + + var _select2 = select('core/block-editor'), + getBlockName = _select2.getBlockName, + getBlockMode = _select2.getBlockMode, + getSelectedBlockClientIds = _select2.getSelectedBlockClientIds, + isBlockValid = _select2.isBlockValid, + getBlockRootClientId = _select2.getBlockRootClientId, + getBlockListSettings = _select2.getBlockListSettings, + getSettings = _select2.getSettings; + + var selectedBlockClientIds = getSelectedBlockClientIds(); + var selectedBlockClientId = selectedBlockClientIds[0]; + var blockRootClientId = getBlockRootClientId(selectedBlockClientId); + + var _ref2 = getBlockListSettings(blockRootClientId) || {}, + __experimentalMoverDirection = _ref2.__experimentalMoverDirection; + + return { + blockClientIds: selectedBlockClientIds, + blockClientId: selectedBlockClientId, + blockType: selectedBlockClientId && getBlockType(getBlockName(selectedBlockClientId)), + hasFixedToolbar: getSettings().hasFixedToolbar, + rootClientId: blockRootClientId, + isValid: selectedBlockClientIds.every(function (id) { + return isBlockValid(id); + }), + isVisual: selectedBlockClientIds.every(function (id) { + return getBlockMode(id) === 'visual'; + }), + moverDirection: __experimentalMoverDirection + }; + }, []), + blockClientIds = _useSelect.blockClientIds, + blockClientId = _useSelect.blockClientId, + blockType = _useSelect.blockType, + hasFixedToolbar = _useSelect.hasFixedToolbar, + isValid = _useSelect.isValid, + isVisual = _useSelect.isVisual, + moverDirection = _useSelect.moverDirection; + + var toggleBlockHighlight = useToggleBlockHighlight(blockClientId); + var nodeRef = Object(external_this_wp_element_["useRef"])(); + + var _useShowMoversGesture = useShowMoversGestures({ + ref: nodeRef, + onChange: toggleBlockHighlight + }), + showMovers = _useShowMoversGesture.showMovers, + showMoversGestures = _useShowMoversGesture.gestures; + + var displayHeaderToolbar = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<') || hasFixedToolbar; + + if (blockType) { + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, '__experimentalToolbar', true)) { + return null; + } + } + + var shouldShowMovers = displayHeaderToolbar || showMovers; + + if (blockClientIds.length === 0) { + return null; + } + + var shouldShowVisualToolbar = isValid && isVisual; + var isMultiToolbar = blockClientIds.length > 1; + var classes = classnames_default()('block-editor-block-toolbar', shouldShowMovers && 'is-showing-movers'); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-toolbar__mover-switcher-container", + ref: nodeRef + }, !isMultiToolbar && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-toolbar__block-parent-selector-wrapper" + }, Object(external_this_wp_element_["createElement"])(BlockParentSelector, { + clientIds: blockClientIds + })), (shouldShowVisualToolbar || isMultiToolbar) && Object(external_this_wp_element_["createElement"])(block_draggable, { + clientIds: blockClientIds, + cloneClassname: "block-editor-block-toolbar__drag-clone" + }, function (_ref3) { + var isDraggable = _ref3.isDraggable, + onDraggableStart = _ref3.onDraggableStart, + onDraggableEnd = _ref3.onDraggableEnd; + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, showMoversGestures, { + className: "block-editor-block-toolbar__block-switcher-wrapper", + draggable: isDraggable && !hideDragHandle, + onDragStart: onDraggableStart, + onDragEnd: onDraggableEnd + }), Object(external_this_wp_element_["createElement"])(block_switcher, { + clientIds: blockClientIds + }), Object(external_this_wp_element_["createElement"])(block_mover, { + clientIds: blockClientIds, + __experimentalOrientation: moverDirection + })); + })), shouldShowVisualToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_controls.Slot, { + bubblesVirtually: true, + className: "block-editor-block-toolbar__slot" + }), Object(external_this_wp_element_["createElement"])(block_format_controls.Slot, { + bubblesVirtually: true, + className: "block-editor-block-toolbar__slot" + })), Object(external_this_wp_element_["createElement"])(block_settings_menu, { + clientIds: blockClientIds + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-contextual-toolbar.js + + + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +function BlockContextualToolbar(_ref) { + var focusOnMount = _ref.focusOnMount, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["focusOnMount"]); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName, + getSelectedBlockClientIds = _select.getSelectedBlockClientIds; + + var _select2 = select('core/blocks'), + getBlockType = _select2.getBlockType; + + var selectedBlockClientIds = getSelectedBlockClientIds(); + var selectedBlockClientId = selectedBlockClientIds[0]; + return { + blockType: selectedBlockClientId && getBlockType(getBlockName(selectedBlockClientId)) + }; + }), + blockType = _useSelect.blockType; + + if (blockType) { + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, '__experimentalToolbar', true)) { + return null; + } + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-contextual-toolbar-wrapper" + }, Object(external_this_wp_element_["createElement"])(navigable_toolbar, Object(esm_extends["a" /* default */])({ + focusOnMount: focusOnMount, + className: "block-editor-block-contextual-toolbar" + /* translators: accessibility text for the block toolbar */ + , + "aria-label": Object(external_this_wp_i18n_["__"])('Block tools') + }, props), Object(external_this_wp_element_["createElement"])(BlockToolbar, null))); +} + +/* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-popover.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + + + +function block_popover_selector(select) { + var _select = select('core/block-editor'), + isNavigationMode = _select.isNavigationMode, + isMultiSelecting = _select.isMultiSelecting, + hasMultiSelection = _select.hasMultiSelection, + isTyping = _select.isTyping, + isCaretWithinFormattedText = _select.isCaretWithinFormattedText, + getSettings = _select.getSettings, + getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId; + + return { + isNavigationMode: isNavigationMode(), + isMultiSelecting: isMultiSelecting(), + isTyping: isTyping(), + isCaretWithinFormattedText: isCaretWithinFormattedText(), + hasMultiSelection: hasMultiSelection(), + hasFixedToolbar: getSettings().hasFixedToolbar, + lastClientId: getLastMultiSelectedBlockClientId() + }; +} + +function BlockPopover(_ref) { + var clientId = _ref.clientId, + rootClientId = _ref.rootClientId, + align = _ref.align, + isValid = _ref.isValid, + moverDirection = _ref.moverDirection, + isEmptyDefaultBlock = _ref.isEmptyDefaultBlock, + capturingClientId = _ref.capturingClientId; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(block_popover_selector, []), + isNavigationMode = _useSelect.isNavigationMode, + isMultiSelecting = _useSelect.isMultiSelecting, + isTyping = _useSelect.isTyping, + isCaretWithinFormattedText = _useSelect.isCaretWithinFormattedText, + hasMultiSelection = _useSelect.hasMultiSelection, + hasFixedToolbar = _useSelect.hasFixedToolbar, + lastClientId = _useSelect.lastClientId; + + var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium'); + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isToolbarForced = _useState2[0], + setIsToolbarForced = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isInserterShown = _useState4[0], + setIsInserterShown = _useState4[1]; + + var blockNodes = Object(external_this_wp_element_["useContext"])(BlockNodes); + var showEmptyBlockSideInserter = !isNavigationMode && isEmptyDefaultBlock && isValid; + var shouldShowBreadcrumb = isNavigationMode; + var shouldShowContextualToolbar = !isNavigationMode && !hasFixedToolbar && isLargeViewport && !showEmptyBlockSideInserter && !isMultiSelecting && (!isTyping || isCaretWithinFormattedText); + var canFocusHiddenToolbar = !isNavigationMode && !shouldShowContextualToolbar && !hasFixedToolbar && !isEmptyDefaultBlock; + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/focus-toolbar', Object(external_this_wp_element_["useCallback"])(function () { + return setIsToolbarForced(true); + }, []), { + bindGlobal: true, + eventName: 'keydown', + isDisabled: !canFocusHiddenToolbar + }); + + if (!shouldShowBreadcrumb && !shouldShowContextualToolbar && !isToolbarForced && !showEmptyBlockSideInserter) { + return null; + } + + var node = blockNodes[clientId]; + + if (capturingClientId) { + node = document.getElementById('block-' + capturingClientId); + } + + if (!node) { + return null; + } + + var anchorRef = node; + + if (hasMultiSelection) { + var bottomNode = blockNodes[lastClientId]; // Wait to render the popover until the bottom reference is available + // as well. + + if (!bottomNode) { + return null; + } + + anchorRef = { + top: node, + bottom: bottomNode + }; + } + + function onFocus() { + setIsInserterShown(true); + } + + function onBlur() { + setIsInserterShown(false); + } // Position above the anchor, pop out towards the right, and position in the + // left corner. For the side inserter, pop out towards the left, and + // position in the right corner. + // To do: refactor `Popover` to make this prop clearer. + + + var popoverPosition = showEmptyBlockSideInserter ? 'top left right' : 'top right left'; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + noArrow: true, + animate: false, + position: popoverPosition, + focusOnMount: false, + anchorRef: anchorRef, + className: "block-editor-block-list__block-popover", + __unstableSticky: !showEmptyBlockSideInserter, + __unstableSlotName: "block-toolbar", + __unstableBoundaryParent: true // Allow subpixel positioning for the block movement animation. + , + __unstableAllowVerticalSubpixelPosition: moverDirection !== 'horizontal' && node, + __unstableAllowHorizontalSubpixelPosition: moverDirection === 'horizontal' && node, + onBlur: function onBlur() { + return setIsToolbarForced(false); + }, + shouldAnchorIncludePadding: true // Popover calculates the width once. Trigger a reset by remounting + // the component. + , + key: shouldShowContextualToolbar + }, (shouldShowContextualToolbar || isToolbarForced) && Object(external_this_wp_element_["createElement"])("div", { + onFocus: onFocus, + onBlur: onBlur // While ideally it would be enough to capture the + // bubbling focus event from the Inserter, due to the + // characteristics of click focusing of `button`s in + // Firefox and Safari, it is not reliable. + // + // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + , + tabIndex: -1, + className: classnames_default()('block-editor-block-list__block-popover-inserter', { + 'is-visible': isInserterShown + }) + }, Object(external_this_wp_element_["createElement"])(inserter, { + clientId: clientId, + rootClientId: rootClientId + })), (shouldShowContextualToolbar || isToolbarForced) && Object(external_this_wp_element_["createElement"])(block_contextual_toolbar // If the toolbar is being shown because of being forced + // it should focus the toolbar right after the mount. + , { + focusOnMount: isToolbarForced, + "data-align": align + }), shouldShowBreadcrumb && Object(external_this_wp_element_["createElement"])(block_selection_button, { + clientId: clientId, + rootClientId: rootClientId, + moverDirection: moverDirection, + "data-align": align + }), showEmptyBlockSideInserter && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-list__empty-block-inserter" + }, Object(external_this_wp_element_["createElement"])(inserter, { + position: "top right", + rootClientId: rootClientId, + clientId: clientId + }))); +} + +function wrapperSelector(select) { + var _select2 = select('core/block-editor'), + getSelectedBlockClientId = _select2.getSelectedBlockClientId, + getFirstMultiSelectedBlockClientId = _select2.getFirstMultiSelectedBlockClientId, + getBlockRootClientId = _select2.getBlockRootClientId, + __unstableGetBlockWithoutInnerBlocks = _select2.__unstableGetBlockWithoutInnerBlocks, + getBlockParents = _select2.getBlockParents, + getBlockListSettings = _select2.getBlockListSettings, + __experimentalGetBlockListSettingsForBlocks = _select2.__experimentalGetBlockListSettingsForBlocks; + + var clientId = getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId(); + + if (!clientId) { + return; + } + + var rootClientId = getBlockRootClientId(clientId); + + var _ref2 = __unstableGetBlockWithoutInnerBlocks(clientId) || {}, + name = _ref2.name, + _ref2$attributes = _ref2.attributes, + attributes = _ref2$attributes === void 0 ? {} : _ref2$attributes, + isValid = _ref2.isValid; + + var blockParentsClientIds = getBlockParents(clientId); + + var _ref3 = getBlockListSettings(rootClientId) || {}, + __experimentalMoverDirection = _ref3.__experimentalMoverDirection; // Get Block List Settings for all ancestors of the current Block clientId + + + var ancestorBlockListSettings = __experimentalGetBlockListSettingsForBlocks(blockParentsClientIds); // Find the index of the first Block with the `captureDescendantsToolbars` prop defined + // This will be the top most ancestor because getBlockParents() returns tree from top -> bottom + + + var topmostAncestorWithCaptureDescendantsToolbarsIndex = Object(external_this_lodash_["findIndex"])(ancestorBlockListSettings, ['__experimentalCaptureToolbars', true]); + var capturingClientId; + + if (topmostAncestorWithCaptureDescendantsToolbarsIndex !== -1) { + capturingClientId = blockParentsClientIds[topmostAncestorWithCaptureDescendantsToolbarsIndex]; + } + + return { + clientId: clientId, + rootClientId: getBlockRootClientId(clientId), + name: name, + align: attributes.align, + isValid: isValid, + moverDirection: __experimentalMoverDirection, + isEmptyDefaultBlock: name && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])({ + name: name, + attributes: attributes + }), + capturingClientId: capturingClientId + }; +} + +function WrappedBlockPopover() { + var selected = Object(external_this_wp_data_["useSelect"])(wrapperSelector, []); + + if (!selected) { + return null; + } + + var clientId = selected.clientId, + rootClientId = selected.rootClientId, + name = selected.name, + align = selected.align, + isValid = selected.isValid, + moverDirection = selected.moverDirection, + isEmptyDefaultBlock = selected.isEmptyDefaultBlock, + capturingClientId = selected.capturingClientId; + + if (!name) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(BlockPopover, { + clientId: clientId, + rootClientId: rootClientId, + align: align, + isValid: isValid, + moverDirection: moverDirection, + isEmptyDefaultBlock: isEmptyDefaultBlock, + capturingClientId: capturingClientId + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/root-container.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + + +/** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ + +var root_container_Context = Object(external_this_wp_element_["createContext"])(); +var BlockNodes = Object(external_this_wp_element_["createContext"])(); +var SetBlockNodes = Object(external_this_wp_element_["createContext"])(); + +function root_container_selector(select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + hasMultiSelection = _select.hasMultiSelection; + + return { + selectedBlockClientId: getSelectedBlockClientId(), + hasMultiSelection: hasMultiSelection() + }; +} +/** + * Prevents default dragging behavior within a block. + * To do: we must handle this in the future and clean up the drag target. + * Previously dragging was prevented for multi-selected, but this is no longer + * needed. + * + * @param {WPSyntheticEvent} event Synthetic drag event. + */ + + +function onDragStart(event) { + // Ensure we target block content, not block controls. + if (getBlockClientId(event.target)) { + event.preventDefault(); + } +} + +function RootContainer(_ref, ref) { + var children = _ref.children, + className = _ref.className; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(root_container_selector, []), + selectedBlockClientId = _useSelect.selectedBlockClientId, + hasMultiSelection = _useSelect.hasMultiSelection; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + selectBlock = _useDispatch.selectBlock; + + var onSelectionStart = useMultiSelection(ref); + /** + * Marks the block as selected when focused and not already selected. This + * specifically handles the case where block does not set focus on its own + * (via `setFocus`), typically if there is no focusable input in the block. + * + * @param {WPSyntheticEvent} event + */ + + function onFocus(event) { + if (hasMultiSelection) { + return; + } + + var clientId = getBlockClientId(event.target); + + if (clientId && clientId !== selectedBlockClientId) { + selectBlock(clientId); + } + } + + var _useState = Object(external_this_wp_element_["useState"])({}), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + blockNodes = _useState2[0], + setBlockNodes = _useState2[1]; + + return Object(external_this_wp_element_["createElement"])(InsertionPoint, { + hasMultiSelection: hasMultiSelection, + selectedBlockClientId: selectedBlockClientId, + containerRef: ref + }, Object(external_this_wp_element_["createElement"])(BlockNodes.Provider, { + value: blockNodes + }, Object(external_this_wp_element_["createElement"])(WrappedBlockPopover, null), Object(external_this_wp_element_["createElement"])("div", { + ref: ref, + className: classnames_default()(className, 'is-root-container'), + onFocus: onFocus, + onDragStart: onDragStart + }, Object(external_this_wp_element_["createElement"])(SetBlockNodes.Provider, { + value: setBlockNodes + }, Object(external_this_wp_element_["createElement"])(root_container_Context.Provider, { + value: onSelectionStart + }, children))))); +} + +/* harmony default export */ var root_container = (Object(external_this_wp_element_["forwardRef"])(RootContainer)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-wrapper-elements.js +/** + * HTML elements that can be used as a block wrapper. + */ +var ELEMENTS = ['p', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'ul', 'li', 'figure', 'nav', 'pre', 'header', 'section', 'aside', 'footer', 'main']; +/* harmony default export */ var block_wrapper_elements = (ELEMENTS); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-wrapper.js + + + + + + +function block_wrapper_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_wrapper_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_wrapper_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_wrapper_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + +var BlockComponent = Object(external_this_wp_element_["forwardRef"])(function (_ref, wrapper) { + var children = _ref.children, + _ref$tagName = _ref.tagName, + TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName, + __unstableIsHtml = _ref.__unstableIsHtml, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "tagName", "__unstableIsHtml"]); + + var onSelectionStart = Object(external_this_wp_element_["useContext"])(root_container_Context); + var setBlockNodes = Object(external_this_wp_element_["useContext"])(SetBlockNodes); + + var _useContext = Object(external_this_wp_element_["useContext"])(BlockListBlockContext), + clientId = _useContext.clientId, + rootClientId = _useContext.rootClientId, + isSelected = _useContext.isSelected, + isFirstMultiSelected = _useContext.isFirstMultiSelected, + isLastMultiSelected = _useContext.isLastMultiSelected, + isPartOfMultiSelection = _useContext.isPartOfMultiSelection, + enableAnimation = _useContext.enableAnimation, + index = _useContext.index, + className = _useContext.className, + isLocked = _useContext.isLocked, + name = _useContext.name, + mode = _useContext.mode, + blockTitle = _useContext.blockTitle, + wrapperProps = _useContext.wrapperProps; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlocksInitialCaretPosition = _select.getSelectedBlocksInitialCaretPosition, + _isMultiSelecting = _select.isMultiSelecting, + _isNavigationMode = _select.isNavigationMode; + + return { + shouldFocusFirstElement: isSelected && !_isMultiSelecting() && !_isNavigationMode(), + initialPosition: isSelected ? getSelectedBlocksInitialCaretPosition() : undefined + }; + }, [isSelected]), + initialPosition = _useSelect.initialPosition, + shouldFocusFirstElement = _useSelect.shouldFocusFirstElement, + isNavigationMode = _useSelect.isNavigationMode; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + removeBlock = _useDispatch.removeBlock, + insertDefaultBlock = _useDispatch.insertDefaultBlock; + + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var isAligned = wrapperProps && !!wrapperProps['data-align']; + wrapper = wrapper || fallbackRef; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isHovered = _useState2[0], + setHovered = _useState2[1]; // Provide the selected node, or the first and last nodes of a multi- + // selection, so it can be used to position the contextual block toolbar. + // We only provide what is necessary, and remove the nodes again when they + // are no longer selected. + + + Object(external_this_wp_element_["useEffect"])(function () { + if (isSelected || isFirstMultiSelected || isLastMultiSelected) { + var node = wrapper.current; + setBlockNodes(function (nodes) { + return block_wrapper_objectSpread({}, nodes, Object(defineProperty["a" /* default */])({}, clientId, node)); + }); + return function () { + setBlockNodes(function (nodes) { + return Object(external_this_lodash_["omit"])(nodes, clientId); + }); + }; + } + }, [isSelected, isFirstMultiSelected, isLastMultiSelected]); // translators: %s: Type of block (i.e. Text, Image etc) + + var blockLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block: %s'), blockTitle); // Handing the focus of the block on creation and update + + /** + * When a block becomes selected, transition focus to an inner tabbable. + */ + + var focusTabbable = function focusTabbable() { + // Focus is captured by the wrapper node, so while focus transition + // should only consider tabbables within editable display, since it + // may be the wrapper itself or a side control which triggered the + // focus event, don't unnecessary transition to an inner tabbable. + if (document.activeElement && isInsideRootBlock(wrapper.current, document.activeElement)) { + return; + } // Find all tabbables within node. + + + var textInputs = external_this_wp_dom_["focus"].tabbable.find(wrapper.current).filter(external_this_wp_dom_["isTextField"]) // Exclude inner blocks and block appenders + .filter(function (node) { + return isInsideRootBlock(wrapper.current, node) && !node.closest('.block-list-appender'); + }); // If reversed (e.g. merge via backspace), use the last in the set of + // tabbables. + + var isReverse = -1 === initialPosition; + var target = (isReverse ? external_this_lodash_["last"] : external_this_lodash_["first"])(textInputs) || wrapper.current; + Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, isReverse); + }; + + Object(external_this_wp_element_["useEffect"])(function () { + if (shouldFocusFirstElement) { + focusTabbable(); + } + }, [shouldFocusFirstElement]); // Block Reordering animation + + use_moving_animation(wrapper, isSelected || isPartOfMultiSelection, isSelected || isFirstMultiSelected, enableAnimation, index); + /** + * Interprets keydown event intent to remove or insert after block if key + * event occurs on wrapper node. This can occur when the block has no text + * fields of its own, particularly after initial insertion, to allow for + * easy deletion and continuous writing flow to add additional content. + * + * @param {KeyboardEvent} event Keydown event. + */ + + var onKeyDown = function onKeyDown(event) { + var keyCode = event.keyCode, + target = event.target; + + if (props.onKeyDown) { + props.onKeyDown(event); + } + + if (keyCode !== external_this_wp_keycodes_["ENTER"] && keyCode !== external_this_wp_keycodes_["BACKSPACE"] && keyCode !== external_this_wp_keycodes_["DELETE"]) { + return; + } + + if (target !== wrapper.current || Object(external_this_wp_dom_["isTextField"])(target)) { + return; + } + + event.preventDefault(); + + if (keyCode === external_this_wp_keycodes_["ENTER"]) { + insertDefaultBlock({}, rootClientId, index + 1); + } else { + removeBlock(clientId); + } + }; + + var onMouseLeave = function onMouseLeave(_ref2) { + var which = _ref2.which, + buttons = _ref2.buttons; + + // The primary button must be pressed to initiate selection. Fall back + // to `which` if the standard `buttons` property is falsy. There are + // cases where Firefox might always set `buttons` to `0`. + // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons + // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which + if ((buttons || which) === 1) { + onSelectionStart(clientId); + } + }; + + var htmlSuffix = mode === 'html' && !__unstableIsHtml ? '-visual' : ''; + var blockElementId = "block-".concat(clientId).concat(htmlSuffix); + + function onMouseOver(event) { + if (event.defaultPrevented) { + return; + } + + event.preventDefault(); + + if (isHovered) { + return; + } + + setHovered(true); + } + + function onMouseOut(event) { + if (event.defaultPrevented) { + return; + } + + event.preventDefault(); + + if (!isHovered) { + return; + } + + setHovered(false); + } + + return (// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events + Object(external_this_wp_element_["createElement"])(TagName // Overrideable props. + , Object(esm_extends["a" /* default */])({ + "aria-label": blockLabel, + role: "group" + }, Object(external_this_lodash_["omit"])(wrapperProps, ['data-align']), props, { + id: blockElementId, + ref: wrapper, + className: classnames_default()(className, props.className, wrapperProps && wrapperProps.className, { + 'is-hovered': isHovered, + 'wp-block': !isAligned + }), + "data-block": clientId, + "data-type": name, + "data-title": blockTitle // Only allow shortcuts when a blocks is selected and not locked. + , + onKeyDown: isSelected && !isLocked ? onKeyDown : undefined // Only allow selection to be started from a selected block. + , + onMouseLeave: isSelected ? onMouseLeave : undefined // No need to have these listeners for hover class in edit mode. + , + onMouseOver: isNavigationMode ? onMouseOver : undefined, + onMouseOut: isNavigationMode ? onMouseOut : undefined, + tabIndex: "0", + style: block_wrapper_objectSpread({}, wrapperProps ? wrapperProps.style : {}, {}, props.style || {}) + }), children) + ); +}); +var ExtendedBlockComponent = block_wrapper_elements.reduce(function (acc, element) { + acc[element] = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + return Object(external_this_wp_element_["createElement"])(BlockComponent, Object(esm_extends["a" /* default */])({}, props, { + ref: ref, + tagName: element + })); + }); + return acc; +}, BlockComponent); +var Block = ExtendedBlockComponent; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block.js + + + + + +function block_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + + + + +var BlockListBlockContext = Object(external_this_wp_element_["createContext"])(); + +function block_BlockListBlock(_ref) { + var mode = _ref.mode, + isFocusMode = _ref.isFocusMode, + isLocked = _ref.isLocked, + clientId = _ref.clientId, + rootClientId = _ref.rootClientId, + isSelected = _ref.isSelected, + isMultiSelected = _ref.isMultiSelected, + isPartOfMultiSelection = _ref.isPartOfMultiSelection, + isFirstMultiSelected = _ref.isFirstMultiSelected, + isLastMultiSelected = _ref.isLastMultiSelected, + isTypingWithinBlock = _ref.isTypingWithinBlock, + isAncestorOfSelectedBlock = _ref.isAncestorOfSelectedBlock, + isSelectionEnabled = _ref.isSelectionEnabled, + className = _ref.className, + name = _ref.name, + isValid = _ref.isValid, + attributes = _ref.attributes, + wrapperProps = _ref.wrapperProps, + setAttributes = _ref.setAttributes, + onReplace = _ref.onReplace, + onInsertBlocksAfter = _ref.onInsertBlocksAfter, + onMerge = _ref.onMerge, + toggleSelection = _ref.toggleSelection, + index = _ref.index, + enableAnimation = _ref.enableAnimation; + + // In addition to withSelect, we should favor using useSelect in this + // component going forward to avoid leaking new props to the public API + // (editor.BlockListBlock filter) + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + isDraggingBlocks = _select.isDraggingBlocks, + isBlockHighlighted = _select.isBlockHighlighted; + + return { + isDragging: isDraggingBlocks(), + isHighlighted: isBlockHighlighted(clientId) + }; + }, []), + isDragging = _useSelect.isDragging, + isHighlighted = _useSelect.isHighlighted; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + removeBlock = _useDispatch.removeBlock; + + var onRemove = function onRemove() { + return removeBlock(clientId); + }; // Handling the error state + + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + hasError = _useState2[0], + setErrorState = _useState2[1]; + + var onBlockError = function onBlockError() { + return setErrorState(true); + }; + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + var lightBlockWrapper = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'lightBlockWrapper', false); + var isUnregisteredBlock = name === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); // Determine whether the block has props to apply to the wrapper. + + if (blockType.getEditWrapperProps) { + wrapperProps = block_objectSpread({}, wrapperProps, {}, blockType.getEditWrapperProps(attributes)); + } + + var generatedClassName = lightBlockWrapper && Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true) ? Object(external_this_wp_blocks_["getBlockDefaultClassName"])(name) : null; + var customClassName = lightBlockWrapper ? attributes.className : null; + var isAligned = wrapperProps && !!wrapperProps['data-align']; // The wp-block className is important for editor styles. + // Generate the wrapper class names handling the different states of the + // block. + + var wrapperClassName = classnames_default()(generatedClassName, customClassName, 'block-editor-block-list__block', { + 'wp-block': !isAligned, + 'has-warning': !isValid || !!hasError || isUnregisteredBlock, + 'is-selected': isSelected, + 'is-highlighted': isHighlighted, + 'is-multi-selected': isMultiSelected, + 'is-reusable': Object(external_this_wp_blocks_["isReusableBlock"])(blockType), + 'is-dragging': isDragging && (isSelected || isPartOfMultiSelection), + 'is-typing': isTypingWithinBlock, + 'is-focused': isFocusMode && (isSelected || isAncestorOfSelectedBlock), + 'is-focus-mode': isFocusMode, + 'has-child-selected': isAncestorOfSelectedBlock + }, className); // We wrap the BlockEdit component in a div that hides it when editing in + // HTML mode. This allows us to render all of the ancillary pieces + // (InspectorControls, etc.) which are inside `BlockEdit` but not + // `BlockHTML`, even in HTML mode. + + var blockEdit = Object(external_this_wp_element_["createElement"])(block_edit_BlockEdit, { + name: name, + isSelected: isSelected, + attributes: attributes, + setAttributes: setAttributes, + insertBlocksAfter: isLocked ? undefined : onInsertBlocksAfter, + onReplace: isLocked ? undefined : onReplace, + onRemove: isLocked ? undefined : onRemove, + mergeBlocks: isLocked ? undefined : onMerge, + clientId: clientId, + isSelectionEnabled: isSelectionEnabled, + toggleSelection: toggleSelection + }); // For aligned blocks, provide a wrapper element so the block can be + // positioned relative to the block column. + + if (isAligned) { + var alignmentWrapperProps = { + 'data-align': wrapperProps['data-align'] + }; + blockEdit = Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + className: "wp-block" + }, alignmentWrapperProps), blockEdit); + } + + if (mode !== 'visual') { + blockEdit = Object(external_this_wp_element_["createElement"])("div", { + style: { + display: 'none' + } + }, blockEdit); + } + + var value = { + clientId: clientId, + rootClientId: rootClientId, + isSelected: isSelected, + isFirstMultiSelected: isFirstMultiSelected, + isLastMultiSelected: isLastMultiSelected, + isPartOfMultiSelection: isPartOfMultiSelection, + enableAnimation: enableAnimation, + index: index, + className: wrapperClassName, + isLocked: isLocked, + name: name, + mode: mode, + blockTitle: blockType.title, + wrapperProps: wrapperProps + }; + var memoizedValue = Object(external_this_wp_element_["useMemo"])(function () { + return value; + }, Object.values(value)); + return Object(external_this_wp_element_["createElement"])(BlockListBlockContext.Provider, { + value: memoizedValue + }, Object(external_this_wp_element_["createElement"])(block_crash_boundary, { + onError: onBlockError + }, isValid && lightBlockWrapper && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, blockEdit, mode === 'html' && Object(external_this_wp_element_["createElement"])(Block.div, { + __unstableIsHtml: true + }, Object(external_this_wp_element_["createElement"])(block_html, { + clientId: clientId + }))), isValid && !lightBlockWrapper && Object(external_this_wp_element_["createElement"])(Block.div, wrapperProps, blockEdit, mode === 'html' && Object(external_this_wp_element_["createElement"])(block_html, { + clientId: clientId + })), !isValid && Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_invalid_warning, { + clientId: clientId + }), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes)))), !!hasError && Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_crash_warning, null))); +} + +var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId, + rootClientId = _ref2.rootClientId, + isLargeViewport = _ref2.isLargeViewport; + + var _select2 = select('core/block-editor'), + isBlockSelected = _select2.isBlockSelected, + isAncestorMultiSelected = _select2.isAncestorMultiSelected, + isBlockMultiSelected = _select2.isBlockMultiSelected, + isFirstMultiSelectedBlock = _select2.isFirstMultiSelectedBlock, + getLastMultiSelectedBlockClientId = _select2.getLastMultiSelectedBlockClientId, + isTyping = _select2.isTyping, + getBlockMode = _select2.getBlockMode, + isSelectionEnabled = _select2.isSelectionEnabled, + getSettings = _select2.getSettings, + hasSelectedInnerBlock = _select2.hasSelectedInnerBlock, + getTemplateLock = _select2.getTemplateLock, + __unstableGetBlockWithoutInnerBlocks = _select2.__unstableGetBlockWithoutInnerBlocks, + getMultiSelectedBlockClientIds = _select2.getMultiSelectedBlockClientIds; + + var block = __unstableGetBlockWithoutInnerBlocks(clientId); + + var isSelected = isBlockSelected(clientId); + + var _getSettings = getSettings(), + focusMode = _getSettings.focusMode, + isRTL = _getSettings.isRTL; + + var templateLock = getTemplateLock(rootClientId); + var checkDeep = true; // "ancestor" is the more appropriate label due to "deep" check + + var isAncestorOfSelectedBlock = hasSelectedInnerBlock(clientId, checkDeep); // The fallback to `{}` is a temporary fix. + // This function should never be called when a block is not present in + // the state. It happens now because the order in withSelect rendering + // is not correct. + + var _ref3 = block || {}, + name = _ref3.name, + attributes = _ref3.attributes, + isValid = _ref3.isValid; + + var isFirstMultiSelected = isFirstMultiSelectedBlock(clientId); // Do not add new properties here, use `useSelect` instead to avoid + // leaking new props to the public API (editor.BlockListBlock filter). + + return { + isMultiSelected: isBlockMultiSelected(clientId), + isPartOfMultiSelection: isBlockMultiSelected(clientId) || isAncestorMultiSelected(clientId), + isFirstMultiSelected: isFirstMultiSelected, + isLastMultiSelected: getLastMultiSelectedBlockClientId() === clientId, + multiSelectedClientIds: isFirstMultiSelected ? getMultiSelectedBlockClientIds() : undefined, + // We only care about this prop when the block is selected + // Thus to avoid unnecessary rerenders we avoid updating the prop if + // the block is not selected. + isTypingWithinBlock: (isSelected || isAncestorOfSelectedBlock) && isTyping(), + mode: getBlockMode(clientId), + isSelectionEnabled: isSelectionEnabled(), + isLocked: !!templateLock, + isFocusMode: focusMode && isLargeViewport, + isRTL: isRTL, + // Users of the editor.BlockListBlock filter used to be able to + // access the block prop. + // Ideally these blocks would rely on the clientId prop only. + // This is kept for backward compatibility reasons. + block: block, + name: name, + attributes: attributes, + isValid: isValid, + isSelected: isSelected, + isAncestorOfSelectedBlock: isAncestorOfSelectedBlock + }; +}); +var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref4) { + var select = _ref4.select; + + var _dispatch = dispatch('core/block-editor'), + updateBlockAttributes = _dispatch.updateBlockAttributes, + insertBlocks = _dispatch.insertBlocks, + mergeBlocks = _dispatch.mergeBlocks, + replaceBlocks = _dispatch.replaceBlocks, + _toggleSelection = _dispatch.toggleSelection, + __unstableMarkLastChangeAsPersistent = _dispatch.__unstableMarkLastChangeAsPersistent; // Do not add new properties here, use `useDispatch` instead to avoid + // leaking new props to the public API (editor.BlockListBlock filter). + + + return { + setAttributes: function setAttributes(newAttributes) { + var clientId = ownProps.clientId, + isFirstMultiSelected = ownProps.isFirstMultiSelected, + multiSelectedClientIds = ownProps.multiSelectedClientIds; + var clientIds = isFirstMultiSelected ? multiSelectedClientIds : [clientId]; + updateBlockAttributes(clientIds, newAttributes); + }, + onInsertBlocks: function onInsertBlocks(blocks, index) { + var rootClientId = ownProps.rootClientId; + insertBlocks(blocks, index, rootClientId); + }, + onInsertBlocksAfter: function onInsertBlocksAfter(blocks) { + var clientId = ownProps.clientId, + rootClientId = ownProps.rootClientId; + + var _select3 = select('core/block-editor'), + getBlockIndex = _select3.getBlockIndex; + + var index = getBlockIndex(clientId, rootClientId); + insertBlocks(blocks, index + 1, rootClientId); + }, + onMerge: function onMerge(forward) { + var clientId = ownProps.clientId; + + var _select4 = select('core/block-editor'), + getPreviousBlockClientId = _select4.getPreviousBlockClientId, + getNextBlockClientId = _select4.getNextBlockClientId; + + if (forward) { + var nextBlockClientId = getNextBlockClientId(clientId); + + if (nextBlockClientId) { + mergeBlocks(clientId, nextBlockClientId); + } + } else { + var previousBlockClientId = getPreviousBlockClientId(clientId); + + if (previousBlockClientId) { + mergeBlocks(previousBlockClientId, clientId); + } + } + }, + onReplace: function onReplace(blocks, indexToSelect, initialPosition) { + if (blocks.length && !Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(blocks[blocks.length - 1])) { + __unstableMarkLastChangeAsPersistent(); + } + + replaceBlocks([ownProps.clientId], blocks, indexToSelect, initialPosition); + }, + toggleSelection: function toggleSelection(selectionEnabled) { + _toggleSelection(selectionEnabled); + } + }; +}); +/* harmony default export */ var block_list_block = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], Object(external_this_wp_viewport_["withViewportMatch"])({ + isLargeViewport: 'medium' +}), applyWithSelect, applyWithDispatch, // block is sometimes not mounted at the right time, causing it be undefined +// see issue for more info +// https://github.com/WordPress/gutenberg/issues/17013 +Object(external_this_wp_compose_["ifCondition"])(function (_ref5) { + var block = _ref5.block; + return !!block; +}), Object(external_this_wp_components_["withFilters"])('editor.BlockListBlock'))(block_BlockListBlock)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/utils.js +/** + * WordPress dependencies + */ + +var utils_getBlockPositionDescription = function getBlockPositionDescription(position, siblingCount, level) { + return Object(external_this_wp_i18n_["sprintf"])( + /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */ + Object(external_this_wp_i18n_["__"])('Block %1$d of %2$d, Level %3$d'), position, siblingCount, level); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/block-select-button.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + +function BlockNavigationBlockSelectButton(_ref, ref) { + var className = _ref.className, + block = _ref.block, + isSelected = _ref.isSelected, + onClick = _ref.onClick, + position = _ref.position, + siblingCount = _ref.siblingCount, + level = _ref.level, + tabIndex = _ref.tabIndex, + onFocus = _ref.onFocus; + var name = block.name, + attributes = block.attributes; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + var blockDisplayName = Object(external_this_wp_blocks_["__experimentalGetBlockLabel"])(blockType, attributes); + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationBlockSelectButton); + var descriptionId = "block-navigation-block-select-button__".concat(instanceId); + var blockPositionDescription = utils_getBlockPositionDescription(position, siblingCount, level); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: classnames_default()('block-editor-block-navigation-block-select-button', className), + onClick: onClick, + "aria-describedby": descriptionId, + ref: ref, + tabIndex: tabIndex, + onFocus: onFocus + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: blockType.icon, + showColors: true + }), blockDisplayName, isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], null, Object(external_this_wp_i18n_["__"])('(selected block)'))), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-navigation-block-select-button__description", + id: descriptionId + }, blockPositionDescription)); +} + +/* harmony default export */ var block_select_button = (Object(external_this_wp_element_["forwardRef"])(BlockNavigationBlockSelectButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/block-slot.js + + + + +function block_slot_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_slot_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_slot_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_slot_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + +var getSlotName = function getSlotName(clientId) { + return "BlockNavigationBlock-".concat(clientId); +}; + +function BlockNavigationBlockSlot(props, ref) { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationBlockSlot); + var clientId = props.block.clientId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { + name: getSlotName(clientId) + }, function (fills) { + if (!fills.length) { + return Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({ + ref: ref + }, props)); + } + + var className = props.className, + block = props.block, + isSelected = props.isSelected, + position = props.position, + siblingCount = props.siblingCount, + level = props.level, + tabIndex = props.tabIndex, + onFocus = props.onFocus; + var name = block.name; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + var descriptionId = "block-navigation-block-slot__".concat(instanceId); + var blockPositionDescription = utils_getBlockPositionDescription(position, siblingCount, level); + var forwardedFillProps = { + // Ensure that the component in the slot can receive + // keyboard navigation. + tabIndex: tabIndex, + onFocus: onFocus, + ref: ref, + // Give the element rendered in the slot a description + // that describes its position. + 'aria-describedby': descriptionId + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('block-editor-block-navigation-block-slot', className) + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: blockType.icon, + showColors: true + }), external_this_wp_element_["Children"].map(fills, function (fill) { + return Object(external_this_wp_element_["cloneElement"])(fill, block_slot_objectSpread({}, fill.props, {}, forwardedFillProps)); + }), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], null, Object(external_this_wp_i18n_["__"])('(selected block)')), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-navigation-block-slot__description", + id: descriptionId + }, blockPositionDescription))); + }); +} + +/* harmony default export */ var block_slot = (Object(external_this_wp_element_["forwardRef"])(BlockNavigationBlockSlot)); +var block_slot_BlockNavigationBlockFill = function BlockNavigationBlockFill(props) { + var _useContext = Object(external_this_wp_element_["useContext"])(BlockListBlockContext), + clientId = _useContext.clientId; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Fill"], Object(esm_extends["a" /* default */])({}, props, { + name: getSlotName(clientId) + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/block-contents.js + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { + var onClick = _ref.onClick, + block = _ref.block, + isSelected = _ref.isSelected, + position = _ref.position, + siblingCount = _ref.siblingCount, + level = _ref.level, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onClick", "block", "isSelected", "position", "siblingCount", "level"]); + + var _useBlockNavigationCo = context_useBlockNavigationContext(), + withBlockNavigationSlots = _useBlockNavigationCo.__experimentalFeatures; + + return withBlockNavigationSlots ? Object(external_this_wp_element_["createElement"])(block_slot, Object(esm_extends["a" /* default */])({ + ref: ref, + className: "block-editor-block-navigation-block-contents", + block: block, + onClick: onClick, + isSelected: isSelected, + position: position, + siblingCount: siblingCount, + level: level + }, props)) : Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({ + ref: ref, + className: "block-editor-block-navigation-block-contents", + block: block, + onClick: onClick, + isSelected: isSelected, + position: position, + siblingCount: siblingCount, + level: level + }, props)); +}); +/* harmony default export */ var block_contents = (BlockNavigationBlockContents); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/block.js + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + + +function BlockNavigationBlock(_ref) { + var block = _ref.block, + isSelected = _ref.isSelected, + _onClick = _ref.onClick, + position = _ref.position, + level = _ref.level, + rowCount = _ref.rowCount, + showBlockMovers = _ref.showBlockMovers, + terminatedLevels = _ref.terminatedLevels, + path = _ref.path; + var cellRef = Object(external_this_wp_element_["useRef"])(null); + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isHovered = _useState2[0], + setIsHovered = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isFocused = _useState4[0], + setIsFocused = _useState4[1]; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + selectEditorBlock = _useDispatch.selectBlock; + + var clientId = block.clientId; // Subtract 1 from rowCount, as it includes the block appender. + + var siblingCount = rowCount - 1; + var hasSiblings = siblingCount > 1; + var hasRenderedMovers = showBlockMovers && hasSiblings; + var hasVisibleMovers = isHovered || isFocused; + var moverCellClassName = classnames_default()('block-editor-block-navigation-block__mover-cell', { + 'is-visible': hasVisibleMovers + }); + + var _useBlockNavigationCo = context_useBlockNavigationContext(), + withExperimentalFeatures = _useBlockNavigationCo.__experimentalFeatures; + + var blockNavigationBlockSettingsClassName = classnames_default()('block-editor-block-navigation-block__menu-cell', { + 'is-visible': hasVisibleMovers + }); + Object(external_this_wp_element_["useEffect"])(function () { + if (withExperimentalFeatures && isSelected) { + cellRef.current.focus(); + } + }, [withExperimentalFeatures, isSelected]); + return Object(external_this_wp_element_["createElement"])(BlockNavigationLeaf, { + className: classnames_default()({ + 'is-selected': isSelected + }), + onMouseEnter: function onMouseEnter() { + return setIsHovered(true); + }, + onMouseLeave: function onMouseLeave() { + return setIsHovered(false); + }, + onFocus: function onFocus() { + return setIsFocused(true); + }, + onBlur: function onBlur() { + return setIsFocused(false); + }, + level: level, + position: position, + rowCount: rowCount, + path: path + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridCell"], { + className: "block-editor-block-navigation-block__contents-cell", + colSpan: hasRenderedMovers ? undefined : 2, + ref: cellRef + }, function (_ref2) { + var ref = _ref2.ref, + tabIndex = _ref2.tabIndex, + onFocus = _ref2.onFocus; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-navigation-block__contents-container" + }, Object(external_this_wp_element_["createElement"])(DescenderLines, { + level: level, + isLastRow: position === rowCount, + terminatedLevels: terminatedLevels + }), Object(external_this_wp_element_["createElement"])(block_contents, { + block: block, + onClick: function onClick() { + return _onClick(block.clientId); + }, + isSelected: isSelected, + position: position, + siblingCount: siblingCount, + level: level, + ref: ref, + tabIndex: tabIndex, + onFocus: onFocus + })); + }), hasRenderedMovers && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridCell"], { + className: moverCellClassName, + withoutGridItem: true + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridItem"], null, function (_ref3) { + var ref = _ref3.ref, + tabIndex = _ref3.tabIndex, + onFocus = _ref3.onFocus; + return Object(external_this_wp_element_["createElement"])(BlockMoverUpButton, { + __experimentalOrientation: "vertical", + clientIds: [clientId], + ref: ref, + tabIndex: tabIndex, + onFocus: onFocus + }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridItem"], null, function (_ref4) { + var ref = _ref4.ref, + tabIndex = _ref4.tabIndex, + onFocus = _ref4.onFocus; + return Object(external_this_wp_element_["createElement"])(BlockMoverDownButton, { + __experimentalOrientation: "vertical", + clientIds: [clientId], + ref: ref, + tabIndex: tabIndex, + onFocus: onFocus + }); + }))), withExperimentalFeatures && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridCell"], { + className: blockNavigationBlockSettingsClassName + }, function (_ref5) { + var ref = _ref5.ref, + tabIndex = _ref5.tabIndex, + onFocus = _ref5.onFocus; + return Object(external_this_wp_element_["createElement"])(block_settings_dropdown, { + clientIds: [clientId], + icon: more_vertical["a" /* default */], + toggleProps: { + ref: ref, + tabIndex: tabIndex, + onFocus: onFocus + }, + disableOpenOnArrowDown: true, + __experimentalSelectBlock: _onClick + }, function (_ref6) { + var onClose = _ref6.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee() { + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return selectEditorBlock(null); + + case 2: + _context.next = 4; + return selectEditorBlock(clientId); + + case 4: + onClose(); + + case 5: + case "end": + return _context.stop(); + } + } + }, _callee); + })) + }, Object(external_this_wp_i18n_["__"])('Go to block'))); + }); + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/appender.js + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + +function BlockNavigationAppender(_ref) { + var parentBlockClientId = _ref.parentBlockClientId, + position = _ref.position, + level = _ref.level, + rowCount = _ref.rowCount, + terminatedLevels = _ref.terminatedLevels, + path = _ref.path; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationAppender); + var descriptionId = "block-navigation-appender-row__description_".concat(instanceId); + var appenderPositionDescription = Object(external_this_wp_i18n_["sprintf"])( + /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */ + Object(external_this_wp_i18n_["__"])('Add block at position %1$d, Level %2$d'), position, level); + return Object(external_this_wp_element_["createElement"])(BlockNavigationLeaf, { + level: level, + position: position, + rowCount: rowCount, + path: path + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGridCell"], { + className: "block-editor-block-navigation-appender__cell", + colSpan: "3" + }, function (_ref2) { + var ref = _ref2.ref, + tabIndex = _ref2.tabIndex, + onFocus = _ref2.onFocus; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-navigation-appender__container" + }, Object(external_this_wp_element_["createElement"])(DescenderLines, { + level: level, + isLastRow: position === rowCount, + terminatedLevels: terminatedLevels + }), Object(external_this_wp_element_["createElement"])(inserter, { + rootClientId: parentBlockClientId, + __experimentalSelectBlockOnInsert: false, + "aria-describedby": descriptionId, + toggleProps: { + ref: ref, + tabIndex: tabIndex, + onFocus: onFocus + } + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-navigation-appender__description", + id: descriptionId + }, appenderPositionDescription)); + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/branch.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function BlockNavigationBranch(props) { + var blocks = props.blocks, + selectBlock = props.selectBlock, + selectedBlockClientId = props.selectedBlockClientId, + showAppender = props.showAppender, + showBlockMovers = props.showBlockMovers, + showNestedBlocks = props.showNestedBlocks, + parentBlockClientId = props.parentBlockClientId, + _props$level = props.level, + level = _props$level === void 0 ? 1 : _props$level, + _props$terminatedLeve = props.terminatedLevels, + terminatedLevels = _props$terminatedLeve === void 0 ? [] : _props$terminatedLeve, + _props$path = props.path, + path = _props$path === void 0 ? [] : _props$path; + var isTreeRoot = !parentBlockClientId; + var filteredBlocks = Object(external_this_lodash_["compact"])(blocks); + + var itemHasAppender = function itemHasAppender(parentClientId) { + return showAppender && !isTreeRoot && selectedBlockClientId === parentClientId; + }; + + var hasAppender = itemHasAppender(parentBlockClientId); // Add +1 to the rowCount to take the block appender into account. + + var rowCount = hasAppender ? filteredBlocks.length + 1 : filteredBlocks.length; + var appenderPosition = rowCount; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_lodash_["map"])(filteredBlocks, function (block, index) { + var clientId = block.clientId, + innerBlocks = block.innerBlocks; + var position = index + 1; + var isLastRowAtLevel = rowCount === position; + var updatedTerminatedLevels = isLastRowAtLevel ? [].concat(Object(toConsumableArray["a" /* default */])(terminatedLevels), [level]) : terminatedLevels; + var updatedPath = [].concat(Object(toConsumableArray["a" /* default */])(path), [position]); + var hasNestedBlocks = showNestedBlocks && !!innerBlocks && !!innerBlocks.length; + var hasNestedAppender = itemHasAppender(clientId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], { + key: clientId + }, Object(external_this_wp_element_["createElement"])(BlockNavigationBlock, { + block: block, + onClick: selectBlock, + isSelected: selectedBlockClientId === clientId, + level: level, + position: position, + rowCount: rowCount, + showBlockMovers: showBlockMovers, + terminatedLevels: terminatedLevels, + path: updatedPath + }), (hasNestedBlocks || hasNestedAppender) && Object(external_this_wp_element_["createElement"])(BlockNavigationBranch, { + blocks: innerBlocks, + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock, + showAppender: showAppender, + showBlockMovers: showBlockMovers, + showNestedBlocks: showNestedBlocks, + parentBlockClientId: clientId, + level: level + 1, + terminatedLevels: updatedTerminatedLevels, + path: updatedPath + })); + }), hasAppender && Object(external_this_wp_element_["createElement"])(BlockNavigationAppender, { + parentBlockClientId: parentBlockClientId, + position: rowCount, + rowCount: appenderPosition, + level: level, + terminatedLevels: terminatedLevels, + path: [].concat(Object(toConsumableArray["a" /* default */])(path), [appenderPosition]) + })); +} +BlockNavigationBranch.defaultProps = { + selectBlock: function selectBlock() {} +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/tree.js + + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +/** + * Wrap `BlockNavigationRows` with `TreeGrid`. BlockNavigationRows is a + * recursive component (it renders itself), so this ensures TreeGrid is only + * present at the very top of the navigation grid. + * + * @param {Object} props Components props. + * @param {Object} props.__experimentalFeatures Object used in context provider. + */ + +function BlockNavigationTree(_ref) { + var __experimentalFeatures = _ref.__experimentalFeatures, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__experimentalFeatures"]); + + var contextValue = Object(external_this_wp_element_["useMemo"])(function () { + return { + __experimentalFeatures: __experimentalFeatures + }; + }, [__experimentalFeatures]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalTreeGrid"], { + className: "block-editor-block-navigation-tree", + "aria-label": Object(external_this_wp_i18n_["__"])('Block navigation structure') + }, Object(external_this_wp_element_["createElement"])(BlockNavigationContext.Provider, { + value: contextValue + }, Object(external_this_wp_element_["createElement"])(BlockNavigationBranch, props))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +function BlockNavigation(_ref) { + var rootBlock = _ref.rootBlock, + rootBlocks = _ref.rootBlocks, + selectedBlockClientId = _ref.selectedBlockClientId, + selectBlock = _ref.selectBlock, + __experimentalFeatures = _ref.__experimentalFeatures; + + if (!rootBlocks || rootBlocks.length === 0) { + return null; + } + + var hasHierarchy = rootBlock && (rootBlock.clientId !== selectedBlockClientId || rootBlock.innerBlocks && rootBlock.innerBlocks.length !== 0); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-navigation__container" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "block-editor-block-navigation__label" + }, Object(external_this_wp_i18n_["__"])('Block navigation')), hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationTree, { + blocks: [rootBlock], + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock, + __experimentalFeatures: __experimentalFeatures, + showNestedBlocks: true + }), !hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationTree, { + blocks: rootBlocks, + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock, + __experimentalFeatures: __experimentalFeatures + })); +} + +/* harmony default export */ var block_navigation = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getBlockHierarchyRootClientId = _select.getBlockHierarchyRootClientId, + getBlock = _select.getBlock, + getBlocks = _select.getBlocks; + + var selectedBlockClientId = getSelectedBlockClientId(); + return { + rootBlocks: getBlocks(), + rootBlock: selectedBlockClientId ? getBlock(getBlockHierarchyRootClientId(selectedBlockClientId)) : null, + selectedBlockClientId: selectedBlockClientId + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var _ref2$onSelect = _ref2.onSelect, + onSelect = _ref2$onSelect === void 0 ? external_this_lodash_["noop"] : _ref2$onSelect; + return { + selectBlock: function selectBlock(clientId) { + dispatch('core/block-editor').selectBlock(clientId); + onSelect(clientId); + } + }; +}))(BlockNavigation)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/dropdown.js + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var MenuIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24", + width: "24", + height: "24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z" +})); + +function BlockNavigationDropdownToggle(_ref) { + var isEnabled = _ref.isEnabled, + onToggle = _ref.onToggle, + isOpen = _ref.isOpen, + innerRef = _ref.innerRef, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["isEnabled", "onToggle", "isOpen", "innerRef"]); + + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/edit-post/toggle-block-navigation', Object(external_this_wp_element_["useCallback"])(onToggle, [onToggle]), { + bindGlobal: true, + isDisabled: !isEnabled + }); + var shortcut = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/keyboard-shortcuts').getShortcutRepresentation('core/edit-post/toggle-block-navigation'); + }, []); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, props, { + ref: innerRef, + icon: MenuIcon, + "aria-expanded": isOpen, + onClick: isEnabled ? onToggle : undefined, + label: Object(external_this_wp_i18n_["__"])('Block navigation'), + className: "block-editor-block-navigation", + shortcut: shortcut, + "aria-disabled": !isEnabled + })); +} + +function BlockNavigationDropdown(_ref2, ref) { + var isDisabled = _ref2.isDisabled, + __experimentalFeatures = _ref2.__experimentalFeatures, + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["isDisabled", "__experimentalFeatures"]); + + var hasBlocks = Object(external_this_wp_data_["useSelect"])(function (select) { + return !!select('core/block-editor').getBlockCount(); + }, []); + var isEnabled = hasBlocks && !isDisabled; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + contentClassName: "block-editor-block-navigation__popover", + position: "bottom right", + renderToggle: function renderToggle(_ref3) { + var isOpen = _ref3.isOpen, + onToggle = _ref3.onToggle; + return Object(external_this_wp_element_["createElement"])(BlockNavigationDropdownToggle, Object(esm_extends["a" /* default */])({}, props, { + innerRef: ref, + isOpen: isOpen, + onToggle: onToggle, + isEnabled: isEnabled + })); + }, + renderContent: function renderContent(_ref4) { + var onClose = _ref4.onClose; + return Object(external_this_wp_element_["createElement"])(block_navigation, { + onSelect: onClose, + __experimentalFeatures: __experimentalFeatures + }); + } + }); +} + +/* harmony default export */ var dropdown = (Object(external_this_wp_element_["forwardRef"])(BlockNavigationDropdown)); + +// EXTERNAL MODULE: external {"this":["wp","shortcode"]} +var external_this_wp_shortcode_ = __webpack_require__(117); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/remove-browser-shortcuts.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Set of keyboard shortcuts handled internally by RichText. + * + * @type {Array} + */ + +var HANDLED_SHORTCUTS = [external_this_wp_keycodes_["rawShortcut"].primary('z'), external_this_wp_keycodes_["rawShortcut"].primaryShift('z'), external_this_wp_keycodes_["rawShortcut"].primary('y')]; +/** + * An instance of a KeyboardShortcuts element pre-bound for the handled + * shortcuts. Since shortcuts never change, the element can be considered + * static, and can be skipped in reconciliation. + * + * @type {WPElement} + */ + +var SHORTCUTS_ELEMENT = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + shortcuts: Object(external_this_lodash_["fromPairs"])(HANDLED_SHORTCUTS.map(function (shortcut) { + return [shortcut, function (event) { + return event.preventDefault(); + }]; + })) +}); +/** + * Component which registered keyboard event handlers to prevent default + * behaviors for key combinations otherwise handled internally by RichText. + * + * @return {WPComponent} The component to be rendered. + */ + +var RemoveBrowserShortcuts = function RemoveBrowserShortcuts() { + return SHORTCUTS_ELEMENT; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/file-paste-handler.js +/** + * WordPress dependencies + */ + +function filePasteHandler(files) { + return files.filter(function (_ref) { + var type = _ref.type; + return /^image\/(?:jpe?g|png|gif)$/.test(type); + }).map(function (file) { + return ""); + }).join(''); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var format_toolbar_POPOVER_PROPS = { + position: 'bottom right', + isAlternate: true +}; + +var format_toolbar_FormatToolbar = function FormatToolbar() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-format-toolbar" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, ['bold', 'italic', 'link', 'text-color'].map(function (format) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { + name: "RichText.ToolbarControls.".concat(format), + key: format + }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { + name: "RichText.ToolbarControls" + }, function (fills) { + return fills.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + icon: chevron_down["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('More rich text controls'), + toggleProps: toggleProps, + controls: Object(external_this_lodash_["orderBy"])(fills.map(function (_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + props = _ref2[0].props; + + return props; + }), 'title'), + popoverProps: format_toolbar_POPOVER_PROPS + }); + }); + }))); +}; + +/* harmony default export */ var format_toolbar = (format_toolbar_FormatToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar-container.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var format_toolbar_container_FormatToolbarContainer = function FormatToolbarContainer(_ref) { + var inline = _ref.inline, + anchorRef = _ref.anchorRef; + + if (inline) { + // Render in popover + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + noArrow: true, + position: "top center", + focusOnMount: false, + anchorRef: anchorRef, + className: "block-editor-rich-text__inline-format-toolbar" + }, Object(external_this_wp_element_["createElement"])(format_toolbar, null)); + } // Render regular toolbar + + + return Object(external_this_wp_element_["createElement"])(block_format_controls, null, Object(external_this_wp_element_["createElement"])(format_toolbar, null)); +}; + +/* harmony default export */ var format_toolbar_container = (format_toolbar_container_FormatToolbarContainer); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/index.js + + + + + + + +function rich_text_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function rich_text_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { rich_text_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { rich_text_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Internal dependencies + */ + + + + + + +var wrapperClasses = 'block-editor-rich-text'; +var rich_text_classes = 'block-editor-rich-text__editable'; +/** + * Get the multiline tag based on the multiline prop. + * + * @param {?(string|boolean)} multiline The multiline prop. + * + * @return {?string} The multiline tag. + */ + +function getMultilineTag(multiline) { + if (multiline !== true && multiline !== 'p' && multiline !== 'li') { + return; + } + + return multiline === true ? 'p' : multiline; +} + +function getAllowedFormats(_ref) { + var allowedFormats = _ref.allowedFormats, + formattingControls = _ref.formattingControls, + disableFormats = _ref.disableFormats; + + if (disableFormats) { + return getAllowedFormats.EMPTY_ARRAY; + } + + if (!allowedFormats && !formattingControls) { + return; + } + + if (allowedFormats) { + return allowedFormats; + } + + external_this_wp_deprecated_default()('wp.blockEditor.RichText formattingControls prop', { + alternative: 'allowedFormats' + }); + return formattingControls.map(function (name) { + return "core/".concat(name); + }); +} + +getAllowedFormats.EMPTY_ARRAY = []; + +var rich_text_isShortcode = function isShortcode(text) { + return Object(external_this_wp_shortcode_["regexp"])('.*').test(text); +}; + +function RichTextWrapper(_ref2, forwardedRef) { + var children = _ref2.children, + tagName = _ref2.tagName, + originalValue = _ref2.value, + originalOnChange = _ref2.onChange, + originalIsSelected = _ref2.isSelected, + multiline = _ref2.multiline, + inlineToolbar = _ref2.inlineToolbar, + wrapperClassName = _ref2.wrapperClassName, + className = _ref2.className, + autocompleters = _ref2.autocompleters, + onReplace = _ref2.onReplace, + placeholder = _ref2.placeholder, + keepPlaceholderOnFocus = _ref2.keepPlaceholderOnFocus, + allowedFormats = _ref2.allowedFormats, + formattingControls = _ref2.formattingControls, + withoutInteractiveFormatting = _ref2.withoutInteractiveFormatting, + onRemove = _ref2.onRemove, + onMerge = _ref2.onMerge, + onSplit = _ref2.onSplit, + onSplitAtEnd = _ref2.__unstableOnSplitAtEnd, + onSplitMiddle = _ref2.__unstableOnSplitMiddle, + identifier = _ref2.identifier, + startAttr = _ref2.start, + reversed = _ref2.reversed, + style = _ref2.style, + preserveWhiteSpace = _ref2.preserveWhiteSpace, + __unstableEmbedURLOnPaste = _ref2.__unstableEmbedURLOnPaste, + disableFormats = _ref2.__unstableDisableFormats, + disableLineBreaks = _ref2.disableLineBreaks, + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "className", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitAtEnd", "__unstableOnSplitMiddle", "identifier", "start", "reversed", "style", "preserveWhiteSpace", "__unstableEmbedURLOnPaste", "__unstableDisableFormats", "disableLineBreaks"]); + + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(RichTextWrapper); + identifier = identifier || instanceId; + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + var ref = forwardedRef || fallbackRef; + + var _useBlockEditContext = useBlockEditContext(), + clientId = _useBlockEditContext.clientId, + onCaretVerticalPositionChange = _useBlockEditContext.onCaretVerticalPositionChange, + blockIsSelected = _useBlockEditContext.isSelected; + + var selector = function selector(select) { + var _select = select('core/block-editor'), + isCaretWithinFormattedText = _select.isCaretWithinFormattedText, + getSelectionStart = _select.getSelectionStart, + getSelectionEnd = _select.getSelectionEnd, + getSettings = _select.getSettings, + didAutomaticChange = _select.didAutomaticChange, + __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks, + isMultiSelecting = _select.isMultiSelecting, + hasMultiSelection = _select.hasMultiSelection; + + var selectionStart = getSelectionStart(); + var selectionEnd = getSelectionEnd(); + + var _getSettings = getSettings(), + undo = _getSettings.__experimentalUndo; + + var isSelected; + + if (originalIsSelected === undefined) { + isSelected = selectionStart.clientId === clientId && selectionStart.attributeKey === identifier; + } else if (originalIsSelected) { + isSelected = selectionStart.clientId === clientId; + } + + var extraProps = {}; + + if (external_this_wp_element_["Platform"].OS === 'native') { + // If the block of this RichText is unmodified then it's a candidate for replacing when adding a new block. + // In order to fix https://github.com/wordpress-mobile/gutenberg-mobile/issues/1126, let's blur on unmount in that case. + // This apparently assumes functionality the BlockHlder actually + var block = clientId && __unstableGetBlockWithoutInnerBlocks(clientId); + + var _shouldBlurOnUnmount = block && isSelected && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(block); + + extraProps = { + shouldBlurOnUnmount: _shouldBlurOnUnmount + }; + } + + return rich_text_objectSpread({ + isCaretWithinFormattedText: isCaretWithinFormattedText(), + selectionStart: isSelected ? selectionStart.offset : undefined, + selectionEnd: isSelected ? selectionEnd.offset : undefined, + isSelected: isSelected, + didAutomaticChange: didAutomaticChange(), + disabled: isMultiSelecting() || hasMultiSelection(), + undo: undo + }, extraProps); + }; // This selector must run on every render so the right selection state is + // retreived from the store on merge. + // To do: fix this somehow. + + + var _useSelect = Object(external_this_wp_data_["useSelect"])(selector), + isCaretWithinFormattedText = _useSelect.isCaretWithinFormattedText, + selectionStart = _useSelect.selectionStart, + selectionEnd = _useSelect.selectionEnd, + isSelected = _useSelect.isSelected, + didAutomaticChange = _useSelect.didAutomaticChange, + disabled = _useSelect.disabled, + undo = _useSelect.undo, + shouldBlurOnUnmount = _useSelect.shouldBlurOnUnmount; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + __unstableMarkLastChangeAsPersistent = _useDispatch.__unstableMarkLastChangeAsPersistent, + enterFormattedText = _useDispatch.enterFormattedText, + exitFormattedText = _useDispatch.exitFormattedText, + selectionChange = _useDispatch.selectionChange, + __unstableMarkAutomaticChange = _useDispatch.__unstableMarkAutomaticChange; + + var multilineTag = getMultilineTag(multiline); + var adjustedAllowedFormats = getAllowedFormats({ + allowedFormats: allowedFormats, + formattingControls: formattingControls, + disableFormats: disableFormats + }); + var hasFormats = !adjustedAllowedFormats || adjustedAllowedFormats.length > 0; + var adjustedValue = originalValue; + var adjustedOnChange = originalOnChange; // Handle deprecated format. + + if (Array.isArray(originalValue)) { + adjustedValue = external_this_wp_blocks_["children"].toHTML(originalValue); + + adjustedOnChange = function adjustedOnChange(newValue) { + return originalOnChange(external_this_wp_blocks_["children"].fromDOM(Object(external_this_wp_richText_["__unstableCreateElement"])(document, newValue).childNodes)); + }; + } + + var onSelectionChange = Object(external_this_wp_element_["useCallback"])(function (start, end) { + selectionChange(clientId, identifier, start, end); + }, [clientId, identifier]); + var onDelete = Object(external_this_wp_element_["useCallback"])(function (_ref3) { + var value = _ref3.value, + isReverse = _ref3.isReverse; + + if (onMerge) { + onMerge(!isReverse); + } // Only handle remove on Backspace. This serves dual-purpose of being + // an intentional user interaction distinguishing between Backspace and + // Delete to remove the empty field, but also to avoid merge & remove + // causing destruction of two fields (merge, then removed merged). + + + if (onRemove && Object(external_this_wp_richText_["isEmpty"])(value) && isReverse) { + onRemove(!isReverse); + } + }, [onMerge, onRemove]); + /** + * Signals to the RichText owner that the block can be replaced with two + * blocks as a result of splitting the block by pressing enter, or with + * blocks as a result of splitting the block by pasting block content in the + * instance. + * + * @param {Object} record The rich text value to split. + * @param {Array} pastedBlocks The pasted blocks to insert, if any. + */ + + var splitValue = Object(external_this_wp_element_["useCallback"])(function (record) { + var pastedBlocks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + + if (!onReplace || !onSplit) { + return; + } + + var blocks = []; + + var _split = Object(external_this_wp_richText_["split"])(record), + _split2 = Object(slicedToArray["a" /* default */])(_split, 2), + before = _split2[0], + after = _split2[1]; + + var hasPastedBlocks = pastedBlocks.length > 0; + var lastPastedBlockIndex = -1; // Create a block with the content before the caret if there's no pasted + // blocks, or if there are pasted blocks and the value is not empty. + // We do not want a leading empty block on paste, but we do if split + // with e.g. the enter key. + + if (!hasPastedBlocks || !Object(external_this_wp_richText_["isEmpty"])(before)) { + blocks.push(onSplit(Object(external_this_wp_richText_["toHTMLString"])({ + value: before, + multilineTag: multilineTag + }))); + lastPastedBlockIndex += 1; + } + + if (hasPastedBlocks) { + blocks.push.apply(blocks, Object(toConsumableArray["a" /* default */])(pastedBlocks)); + lastPastedBlockIndex += pastedBlocks.length; + } else if (onSplitMiddle) { + blocks.push(onSplitMiddle()); + } // If there's pasted blocks, append a block with non empty content + /// after the caret. Otherwise, do append an empty block if there + // is no `onSplitMiddle` prop, but if there is and the content is + // empty, the middle block is enough to set focus in. + + + if (hasPastedBlocks ? !Object(external_this_wp_richText_["isEmpty"])(after) : !onSplitMiddle || !Object(external_this_wp_richText_["isEmpty"])(after)) { + blocks.push(onSplit(Object(external_this_wp_richText_["toHTMLString"])({ + value: after, + multilineTag: multilineTag + }))); + } // If there are pasted blocks, set the selection to the last one. + // Otherwise, set the selection to the second block. + + + var indexToSelect = hasPastedBlocks ? lastPastedBlockIndex : 1; // If there are pasted blocks, move the caret to the end of the selected block + // Otherwise, retain the default value. + + var initialPosition = hasPastedBlocks ? -1 : null; + onReplace(blocks, indexToSelect, initialPosition); + }, [onReplace, onSplit, multilineTag, onSplitMiddle]); + var onEnter = Object(external_this_wp_element_["useCallback"])(function (_ref4) { + var value = _ref4.value, + onChange = _ref4.onChange, + shiftKey = _ref4.shiftKey; + var canSplit = onReplace && onSplit; + + if (onReplace) { + var transforms = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref5) { + var type = _ref5.type; + return type === 'enter'; + }); + var transformation = Object(external_this_wp_blocks_["findTransform"])(transforms, function (item) { + return item.regExp.test(value.text); + }); + + if (transformation) { + onReplace([transformation.transform({ + content: value.text + })]); + + __unstableMarkAutomaticChange(); + } + } + + if (multiline) { + if (shiftKey) { + if (!disableLineBreaks) { + onChange(Object(external_this_wp_richText_["insert"])(value, '\n')); + } + } else if (canSplit && Object(external_this_wp_richText_["__unstableIsEmptyLine"])(value)) { + splitValue(value); + } else { + onChange(Object(external_this_wp_richText_["__unstableInsertLineSeparator"])(value)); + } + } else if (shiftKey || !canSplit && !onSplitAtEnd) { + if (!disableLineBreaks) { + onChange(Object(external_this_wp_richText_["insert"])(value, '\n')); + } + } else if (onSplitAtEnd && !canSplit) { + var text = value.text, + start = value.start, + end = value.end; + + if (start === end && end === text.length) { + onSplitAtEnd(); + } + } else if (canSplit) { + splitValue(value); + } + }, [onReplace, onSplit, __unstableMarkAutomaticChange, multiline, splitValue, onSplitAtEnd]); + var onPaste = Object(external_this_wp_element_["useCallback"])(function (_ref6) { + var value = _ref6.value, + onChange = _ref6.onChange, + html = _ref6.html, + plainText = _ref6.plainText, + files = _ref6.files, + activeFormats = _ref6.activeFormats; + + // Only process file if no HTML is present. + // Note: a pasted file may have the URL as plain text. + if (files && files.length && !html) { + var _content = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: filePasteHandler(files), + mode: 'BLOCKS', + tagName: tagName + }); // Allows us to ask for this information when we get a report. + // eslint-disable-next-line no-console + + + window.console.log('Received items:\n\n', files); + + if (onReplace && Object(external_this_wp_richText_["isEmpty"])(value)) { + onReplace(_content); + } else { + splitValue(value, _content); + } + + return; + } + + var mode = onReplace && onSplit ? 'AUTO' : 'INLINE'; // Force the blocks mode when the user is pasting + // on a new line & the content resembles a shortcode. + // Otherwise it's going to be detected as inline + // and the shortcode won't be replaced. + + if (mode === 'AUTO' && Object(external_this_wp_richText_["isEmpty"])(value) && rich_text_isShortcode(plainText)) { + mode = 'BLOCKS'; + } + + if (__unstableEmbedURLOnPaste && Object(external_this_wp_richText_["isEmpty"])(value) && Object(external_this_wp_url_["isURL"])(plainText.trim())) { + mode = 'BLOCKS'; + } + + var content = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: html, + plainText: plainText, + mode: mode, + tagName: tagName + }); + + if (typeof content === 'string') { + var valueToInsert = Object(external_this_wp_richText_["create"])({ + html: content + }); // If there are active formats, merge them with the pasted formats. + + if (activeFormats.length) { + var index = valueToInsert.formats.length; + + while (index--) { + valueToInsert.formats[index] = [].concat(Object(toConsumableArray["a" /* default */])(activeFormats), Object(toConsumableArray["a" /* default */])(valueToInsert.formats[index] || [])); + } + } // If the content should be multiline, we should process text + // separated by a line break as separate lines. + + + if (multiline) { + valueToInsert = Object(external_this_wp_richText_["replace"])(valueToInsert, /\n+/g, external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]); + } + + onChange(Object(external_this_wp_richText_["insert"])(value, valueToInsert)); + } else if (content.length > 0) { + if (onReplace && Object(external_this_wp_richText_["isEmpty"])(value)) { + onReplace(content, content.length - 1, -1); + } else { + splitValue(value, content); + } + } + }, [tagName, onReplace, onSplit, splitValue, __unstableEmbedURLOnPaste, multiline]); + var inputRule = Object(external_this_wp_element_["useCallback"])(function (value, valueToFormat) { + if (!onReplace) { + return; + } + + var start = value.start, + text = value.text; + var characterBefore = text.slice(start - 1, start); // The character right before the caret must be a plain space. + + if (characterBefore !== ' ') { + return; + } + + var trimmedTextBefore = text.slice(0, start).trim(); + var prefixTransforms = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref7) { + var type = _ref7.type; + return type === 'prefix'; + }); + var transformation = Object(external_this_wp_blocks_["findTransform"])(prefixTransforms, function (_ref8) { + var prefix = _ref8.prefix; + return trimmedTextBefore === prefix; + }); + + if (!transformation) { + return; + } + + var content = valueToFormat(Object(external_this_wp_richText_["slice"])(value, start, text.length)); + var block = transformation.transform(content); + onReplace([block]); + + __unstableMarkAutomaticChange(); + }, [onReplace, __unstableMarkAutomaticChange]); + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_richText_["__experimentalRichText"], Object(esm_extends["a" /* default */])({}, props, { + clientId: clientId, + identifier: identifier, + ref: ref, + value: adjustedValue, + onChange: adjustedOnChange, + selectionStart: selectionStart, + selectionEnd: selectionEnd, + onSelectionChange: onSelectionChange, + tagName: tagName, + className: classnames_default()(rich_text_classes, className, { + 'keep-placeholder-on-focus': keepPlaceholderOnFocus + }), + placeholder: placeholder, + allowedFormats: adjustedAllowedFormats, + withoutInteractiveFormatting: withoutInteractiveFormatting, + onEnter: onEnter, + onDelete: onDelete, + onPaste: onPaste, + __unstableIsSelected: isSelected, + __unstableInputRule: inputRule, + __unstableMultilineTag: multilineTag, + __unstableIsCaretWithinFormattedText: isCaretWithinFormattedText, + __unstableOnEnterFormattedText: enterFormattedText, + __unstableOnExitFormattedText: exitFormattedText, + __unstableOnCreateUndoLevel: __unstableMarkLastChangeAsPersistent, + __unstableMarkAutomaticChange: __unstableMarkAutomaticChange, + __unstableDidAutomaticChange: didAutomaticChange, + __unstableUndo: undo, + __unstableDisableFormats: disableFormats, + style: style, + preserveWhiteSpace: preserveWhiteSpace, + disabled: disabled, + start: startAttr, + reversed: reversed // Native props. + , + onCaretVerticalPositionChange: onCaretVerticalPositionChange, + blockIsSelected: originalIsSelected !== undefined ? originalIsSelected : blockIsSelected, + shouldBlurOnUnmount: shouldBlurOnUnmount + }), function (_ref9) { + var nestedIsSelected = _ref9.isSelected, + value = _ref9.value, + onChange = _ref9.onChange, + onFocus = _ref9.onFocus, + editableProps = _ref9.editableProps, + TagName = _ref9.editableTagName; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children && children({ + value: value, + onChange: onChange, + onFocus: onFocus + }), nestedIsSelected && hasFormats && Object(external_this_wp_element_["createElement"])(format_toolbar_container, { + inline: inlineToolbar, + anchorRef: ref.current + }), nestedIsSelected && Object(external_this_wp_element_["createElement"])(RemoveBrowserShortcuts, null), Object(external_this_wp_element_["createElement"])(autocomplete, { + onReplace: onReplace, + completers: autocompleters, + record: value, + onChange: onChange, + isSelected: nestedIsSelected + }, function (_ref10) { + var listBoxId = _ref10.listBoxId, + activeId = _ref10.activeId, + _onKeyDown = _ref10.onKeyDown; + return Object(external_this_wp_element_["createElement"])(TagName, Object(esm_extends["a" /* default */])({}, editableProps, { + "aria-autocomplete": listBoxId ? 'list' : undefined, + "aria-owns": listBoxId, + "aria-activedescendant": activeId, + start: startAttr, + reversed: reversed, + onKeyDown: function onKeyDown(event) { + _onKeyDown(event); + + editableProps.onKeyDown(event); + } + })); + })); + }); + + if (!wrapperClassName) { + return content; + } + + external_this_wp_deprecated_default()('wp.blockEditor.RichText wrapperClassName prop', { + alternative: 'className prop or create your own wrapper div' + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()(wrapperClasses, wrapperClassName) + }, content); +} + +var ForwardedRichTextContainer = Object(external_this_wp_element_["forwardRef"])(RichTextWrapper); + +ForwardedRichTextContainer.Content = function (_ref11) { + var value = _ref11.value, + Tag = _ref11.tagName, + multiline = _ref11.multiline, + props = Object(objectWithoutProperties["a" /* default */])(_ref11, ["value", "tagName", "multiline"]); + + // Handle deprecated `children` and `node` sources. + if (Array.isArray(value)) { + value = external_this_wp_blocks_["children"].toHTML(value); + } + + var MultilineTag = getMultilineTag(multiline); + + if (!value && MultilineTag) { + value = "<".concat(MultilineTag, ">"); + } + + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, value); + + if (Tag) { + return Object(external_this_wp_element_["createElement"])(Tag, Object(external_this_lodash_["omit"])(props, ['format']), content); + } + + return content; +}; + +ForwardedRichTextContainer.isEmpty = function (value) { + return !value || value.length === 0; +}; + +ForwardedRichTextContainer.Content.defaultProps = { + format: 'string', + value: '' +}; +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/rich-text/README.md + */ + +/* harmony default export */ var rich_text = (ForwardedRichTextContainer); + + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/editor.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function BlockNavigationEditor(_ref) { + var value = _ref.value, + onChange = _ref.onChange; + return Object(external_this_wp_element_["createElement"])(block_slot_BlockNavigationBlockFill, null, Object(external_this_wp_element_["createElement"])(rich_text, { + value: value, + onChange: onChange, + placeholder: Object(external_this_wp_i18n_["__"])('Navigation item'), + keepPlaceholderOnFocus: true, + withoutInteractiveFormatting: true, + allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough'] + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-picker/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function BlockVariationPicker(_ref) { + var _ref$icon = _ref.icon, + icon = _ref$icon === void 0 ? layout["a" /* default */] : _ref$icon, + _ref$label = _ref.label, + label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Choose variation') : _ref$label, + _ref$instructions = _ref.instructions, + instructions = _ref$instructions === void 0 ? Object(external_this_wp_i18n_["__"])('Select a variation to start with.') : _ref$instructions, + variations = _ref.variations, + onSelect = _ref.onSelect, + allowSkip = _ref.allowSkip; + var classes = classnames_default()('block-editor-block-variation-picker', { + 'has-many-variations': variations.length > 4 + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: icon, + label: label, + instructions: instructions, + className: classes + }, Object(external_this_wp_element_["createElement"])("ul", { + className: "block-editor-block-variation-picker__variations", + role: "list", + "aria-label": Object(external_this_wp_i18n_["__"])('Block variations') + }, variations.map(function (variation) { + return Object(external_this_wp_element_["createElement"])("li", { + key: variation.name + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSecondary: true, + icon: variation.icon, + iconSize: 48, + onClick: function onClick() { + return onSelect(variation); + }, + className: "block-editor-block-variation-picker__variation", + label: variation.description || variation.title + }), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-block-variation-picker__variation-label", + role: "presentation" + }, variation.title)); + })), allowSkip && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-variation-picker__skip" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLink: true, + onClick: function onClick() { + return onSelect(); + } + }, Object(external_this_wp_i18n_["__"])('Skip')))); +} + +/* harmony default export */ var block_variation_picker = (BlockVariationPicker); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-toolbar/icons.js + + +/** + * WordPress dependencies + */ + +var alignBottom = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z" +})); +var alignCenter = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z" +})); +var alignTop = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z" +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-toolbar/index.js + + + +function block_vertical_alignment_toolbar_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function block_vertical_alignment_toolbar_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { block_vertical_alignment_toolbar_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { block_vertical_alignment_toolbar_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS = { + top: { + icon: alignTop, + title: Object(external_this_wp_i18n_["_x"])('Vertically Align Top', 'Block vertical alignment setting') + }, + center: { + icon: alignCenter, + title: Object(external_this_wp_i18n_["_x"])('Vertically Align Middle', 'Block vertical alignment setting') + }, + bottom: { + icon: alignBottom, + title: Object(external_this_wp_i18n_["_x"])('Vertically Align Bottom', 'Block vertical alignment setting') + } +}; +var block_vertical_alignment_toolbar_DEFAULT_CONTROLS = ['top', 'center', 'bottom']; +var block_vertical_alignment_toolbar_DEFAULT_CONTROL = 'top'; +var block_vertical_alignment_toolbar_POPOVER_PROPS = { + isAlternate: true +}; +function BlockVerticalAlignmentToolbar(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + _ref$controls = _ref.controls, + controls = _ref$controls === void 0 ? block_vertical_alignment_toolbar_DEFAULT_CONTROLS : _ref$controls, + _ref$isCollapsed = _ref.isCollapsed, + isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed; + + function applyOrUnset(align) { + return function () { + return onChange(value === align ? undefined : align); + }; + } + + var activeAlignment = block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[value]; + var defaultAlignmentControl = block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[block_vertical_alignment_toolbar_DEFAULT_CONTROL]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + popoverProps: block_vertical_alignment_toolbar_POPOVER_PROPS, + isCollapsed: isCollapsed, + icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon, + label: Object(external_this_wp_i18n_["_x"])('Change vertical alignment', 'Block vertical alignment setting label'), + controls: controls.map(function (control) { + return block_vertical_alignment_toolbar_objectSpread({}, block_vertical_alignment_toolbar_BLOCK_ALIGNMENTS_CONTROLS[control], { + isActive: value === control, + role: isCollapsed ? 'menuitemradio' : undefined, + onClick: applyOrUnset(control) + }); + }) + }); +} +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/block-vertical-alignment-toolbar/README.md + */ + +/* harmony default export */ var block_vertical_alignment_toolbar = (BlockVerticalAlignmentToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/with-color-context.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/* harmony default export */ var with_color_context = (Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var settings = select('core/block-editor').getSettings(); + var colors = ownProps.colors === undefined ? settings.colors : ownProps.colors; + var disableCustomColors = ownProps.disableCustomColors === undefined ? settings.disableCustomColors : ownProps.disableCustomColors; + return { + colors: colors, + disableCustomColors: disableCustomColors, + hasColorsToChoose: !Object(external_this_lodash_["isEmpty"])(colors) || !disableCustomColors + }; +}), 'withColorContext')); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +/* harmony default export */ var color_palette = (with_color_context(external_this_wp_components_["ColorPalette"])); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/control.js + + + + +/** + * Internal dependencies + */ + +function ColorPaletteControl(_ref) { + var onChange = _ref.onChange, + value = _ref.value, + otherProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "value"]); + + return Object(external_this_wp_element_["createElement"])(control, Object(esm_extends["a" /* default */])({}, otherProps, { + onColorChange: onChange, + colorValue: value, + gradients: [], + disableCustomGradients: true + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradient-picker/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +function GradientPickerWithGradients(props) { + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return Object(external_this_lodash_["pick"])(select('core/block-editor').getSettings(), ['gradients', 'disableCustomGradients']); + }, []), + gradients = _useSelect.gradients, + disableCustomGradients = _useSelect.disableCustomGradients; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalGradientPicker"], Object(esm_extends["a" /* default */])({ + gradients: props.gradients !== undefined ? props.gradient : gradients, + disableCustomGradients: props.disableCustomGradients !== undefined ? props.disableCustomGradients : disableCustomGradients + }, props)); +} + +/* harmony default export */ var gradient_picker = (function (props) { + var ComponentToUse = props.gradients !== undefined && props.disableCustomGradients !== undefined ? external_this_wp_components_["__experimentalGradientPicker"] : GradientPickerWithGradients; + return Object(external_this_wp_element_["createElement"])(ComponentToUse, props); +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradient-picker/control.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function GradientPickerControl(_ref) { + var className = _ref.className, + value = _ref.value, + onChange = _ref.onChange, + _ref$label = _ref.label, + label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Gradient Presets') : _ref$label, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "value", "onChange", "label"]); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return Object(external_this_lodash_["pick"])(select('core/block-editor').getSettings(), ['gradients', 'disableCustomGradients']); + }, []), + _useSelect$gradients = _useSelect.gradients, + gradients = _useSelect$gradients === void 0 ? [] : _useSelect$gradients, + disableCustomGradients = _useSelect.disableCustomGradients; + + if (Object(external_this_lodash_["isEmpty"])(gradients) && disableCustomGradients) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: classnames_default()('block-editor-gradient-picker-control', className) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, label), Object(external_this_wp_element_["createElement"])(gradient_picker, Object(esm_extends["a" /* default */])({ + value: value, + onChange: onChange, + className: "block-editor-gradient-picker-control__gradient-picker-presets", + gradients: gradients, + disableCustomGradients: disableCustomGradients + }, props))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/gradient-picker/panel.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function GradientPanel(props) { + var gradients = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings().gradients; + }, []); + + if (Object(external_this_lodash_["isEmpty"])(gradients)) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Gradient') + }, Object(external_this_wp_element_["createElement"])(GradientPickerControl, props)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/image-size-control/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var IMAGE_SIZE_PRESETS = [25, 50, 75, 100]; +function ImageSizeControl(_ref) { + var _ref2, _ref3; + + var imageWidth = _ref.imageWidth, + imageHeight = _ref.imageHeight, + _ref$imageSizeOptions = _ref.imageSizeOptions, + imageSizeOptions = _ref$imageSizeOptions === void 0 ? [] : _ref$imageSizeOptions, + _ref$isResizable = _ref.isResizable, + isResizable = _ref$isResizable === void 0 ? true : _ref$isResizable, + slug = _ref.slug, + width = _ref.width, + height = _ref.height, + _onChange = _ref.onChange, + _ref$onChangeImage = _ref.onChangeImage, + onChangeImage = _ref$onChangeImage === void 0 ? external_this_lodash_["noop"] : _ref$onChangeImage; + + function updateDimensions(nextWidth, nextHeight) { + return function () { + _onChange({ + width: nextWidth, + height: nextHeight + }); + }; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !Object(external_this_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Image size'), + value: slug, + options: imageSizeOptions, + onChange: onChangeImage + }), isResizable && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-image-size-control" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "block-editor-image-size-control__row" + }, Object(external_this_wp_i18n_["__"])('Image dimensions')), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-image-size-control__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + className: "block-editor-image-size-control__width", + label: Object(external_this_wp_i18n_["__"])('Width'), + value: (_ref2 = width !== null && width !== void 0 ? width : imageWidth) !== null && _ref2 !== void 0 ? _ref2 : '', + min: 1, + onChange: function onChange(value) { + return _onChange({ + width: parseInt(value, 10) + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + className: "block-editor-image-size-control__height", + label: Object(external_this_wp_i18n_["__"])('Height'), + value: (_ref3 = height !== null && height !== void 0 ? height : imageHeight) !== null && _ref3 !== void 0 ? _ref3 : '', + min: 1, + onChange: function onChange(value) { + return _onChange({ + height: parseInt(value, 10) + }); + } + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-image-size-control__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { + "aria-label": Object(external_this_wp_i18n_["__"])('Image size presets') + }, IMAGE_SIZE_PRESETS.map(function (scale) { + var scaledWidth = Math.round(imageWidth * (scale / 100)); + var scaledHeight = Math.round(imageHeight * (scale / 100)); + var isCurrent = width === scaledWidth && height === scaledHeight; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: scale, + isSmall: true, + isPrimary: isCurrent, + isPressed: isCurrent, + onClick: updateDimensions(scaledWidth, scaledHeight) + }, scale, "%"); + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSmall: true, + onClick: updateDimensions() + }, Object(external_this_wp_i18n_["__"])('Reset'))))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/with-client-id.js + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var withClientId = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return function (props) { + var _useBlockEditContext = useBlockEditContext(), + clientId = _useBlockEditContext.clientId; + + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { + clientId: clientId + })); + }; +}, 'withClientId'); +/* harmony default export */ var with_client_id = (withClientId); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/button-block-appender.js + + +/** + * Internal dependencies + */ + + +var inner_blocks_button_block_appender_ButtonBlockAppender = function ButtonBlockAppender(_ref) { + var clientId = _ref.clientId, + showSeparator = _ref.showSeparator, + isFloating = _ref.isFloating, + onAddBlock = _ref.onAddBlock; + return Object(external_this_wp_element_["createElement"])(button_block_appender, { + rootClientId: clientId, + showSeparator: showSeparator, + isFloating: isFloating, + onAddBlock: onAddBlock + }); +}; +/* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(inner_blocks_button_block_appender_ButtonBlockAppender)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/default-block-appender.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var inner_blocks_default_block_appender_DefaultBlockAppender = function DefaultBlockAppender(_ref) { + var clientId = _ref.clientId, + lastBlockClientId = _ref.lastBlockClientId; + return Object(external_this_wp_element_["createElement"])(default_block_appender, { + rootClientId: clientId, + lastBlockClientId: lastBlockClientId + }); +}; +/* harmony default export */ var inner_blocks_default_block_appender = (Object(external_this_wp_compose_["compose"])([with_client_id, Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder; + + var blockClientIds = getBlockOrder(clientId); + return { + lastBlockClientId: Object(external_this_lodash_["last"])(blockClientIds) + }; +})])(inner_blocks_default_block_appender_DefaultBlockAppender)); + +// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} +var external_this_wp_isShallowEqual_ = __webpack_require__(55); +var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/use-nested-settings-update.js +/** + * WordPress dependencies + */ + + + +/** + * This hook is a side efect which updates the block-editor store when changes + * happen to inner block settings. The given props are transformed into a + * settings object, and if that is different from the current settings object in + * the block-ediotr store, then the store is updated with the new settings which + * came from props. + * + * @param {string} clientId The client ID of the block to update. + * @param {string[]} allowedBlocks An array of block names which are permitted + * in inner blocks. + * @param {string} [templateLock] The template lock specified for the inner + * blocks component. (e.g. "all") + * @param {boolean} captureToolbars Whether or children toolbars should be shown + * in the inner blocks component rather than on + * the child block. + * @param {string} __experimentalMoverDirection The direction in which the block + * should face. + */ + +function useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, __experimentalMoverDirection) { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateBlockListSettings = _useDispatch.updateBlockListSettings; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var rootClientId = select('core/block-editor').getBlockRootClientId(clientId); + return { + blockListSettings: select('core/block-editor').getBlockListSettings(clientId), + parentLock: select('core/block-editor').getTemplateLock(rootClientId) + }; + }, [clientId]), + blockListSettings = _useSelect.blockListSettings, + parentLock = _useSelect.parentLock; + + Object(external_this_wp_element_["useLayoutEffect"])(function () { + var newSettings = { + allowedBlocks: allowedBlocks, + templateLock: templateLock === undefined ? parentLock : templateLock + }; // These values are not defined for RN, so only include them if they + // are defined. + + if (captureToolbars !== undefined) { + newSettings.__experimentalCaptureToolbars = captureToolbars; + } + + if (__experimentalMoverDirection !== undefined) { + newSettings.__experimentalMoverDirection = __experimentalMoverDirection; + } + + if (!external_this_wp_isShallowEqual_default()(blockListSettings, newSettings)) { + updateBlockListSettings(clientId, newSettings); + } + }, [clientId, blockListSettings, allowedBlocks, templateLock, parentLock, captureToolbars, __experimentalMoverDirection, updateBlockListSettings]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * This hook makes sure that a block's inner blocks stay in sync with the given + * block "template". The template is a block hierarchy to which inner blocks must + * conform. If the blocks get "out of sync" with the template and the template + * is meant to be locked (e.g. templateLock = "all"), then we replace the inner + * blocks with the correct value after synchronizing it with the template. + * + * @param {string} clientId The block client ID. + * @param {Object} template The template to match. + * @param {string} templateLock The template lock state for the inner blocks. For + * example, if the template lock is set to "all", + * then the inner blocks will stay in sync with the + * template. If not defined or set to false, then + * the inner blocks will not be synchronized with + * the given template. + * @param {boolean} templateInsertUpdatesSelection Whether or not to update the + * block-editor selection state when inner blocks + * are replaced after template synchronization. + */ + +function useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection) { + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + replaceInnerBlocks = _useDispatch.replaceInnerBlocks; + + var innerBlocks = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getBlocks(clientId); + }, [clientId]); // Maintain a reference to the previous value so we can do a deep equality check. + + var existingTemplate = Object(external_this_wp_element_["useRef"])(null); + Object(external_this_wp_element_["useLayoutEffect"])(function () { + // Only synchronize innerBlocks with template if innerBlocks are empty or + // a locking all exists directly on the block. + if (innerBlocks.length === 0 || templateLock === 'all') { + var hasTemplateChanged = !Object(external_this_lodash_["isEqual"])(template, existingTemplate.current); + + if (hasTemplateChanged) { + existingTemplate.current = template; + var nextBlocks = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(innerBlocks, template); + + if (!Object(external_this_lodash_["isEqual"])(nextBlocks, innerBlocks)) { + replaceInnerBlocks(clientId, nextBlocks, innerBlocks.length === 0 && templateInsertUpdatesSelection && nextBlocks.length !== 0); + } + } + } + }, [innerBlocks, templateLock, clientId]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/get-block-context.js +/** + * External dependencies + */ + +/** + * Block context cache, implemented as a WeakMap mapping block types to a + * WeakMap mapping attributes object to context value. + * + * @type {WeakMap>} + */ + +var BLOCK_CONTEXT_CACHE = new WeakMap(); +/** + * Returns a cached context object value for a given set of attributes for the + * block type. + * + * @param {Record} attributes Block attributes object. + * @param {WPBlockType} blockType Block type settings. + * + * @return {Record} Context value. + */ + +function getBlockContext(attributes, blockType) { + if (!BLOCK_CONTEXT_CACHE.has(blockType)) { + BLOCK_CONTEXT_CACHE.set(blockType, new WeakMap()); + } + + var blockTypeCache = BLOCK_CONTEXT_CACHE.get(blockType); + + if (!blockTypeCache.has(attributes)) { + var context = Object(external_this_lodash_["mapValues"])(blockType.providesContext, function (attributeName) { + return attributes[attributeName]; + }); + blockTypeCache.set(attributes, context); + } + + return blockTypeCache.get(attributes); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/index.js + + + + +function inner_blocks_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function inner_blocks_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { inner_blocks_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { inner_blocks_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + +/** + * InnerBlocks is a component which allows a single block to have multiple blocks + * as children. The UncontrolledInnerBlocks component is used whenever the inner + * blocks are not controlled by another entity. In other words, it is normally + * used for inner blocks in the post editor + * + * @param {Object} props The component props. + */ + +function UncontrolledInnerBlocks(props) { + var clientId = props.clientId, + allowedBlocks = props.allowedBlocks, + template = props.template, + templateLock = props.templateLock, + forwardedRef = props.forwardedRef, + templateInsertUpdatesSelection = props.templateInsertUpdatesSelection, + captureToolbars = props.__experimentalCaptureToolbars, + __experimentalMoverDirection = props.__experimentalMoverDirection; + var isSmallScreen = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<'); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlock = _select.getBlock, + isBlockSelected = _select.isBlockSelected, + hasSelectedInnerBlock = _select.hasSelectedInnerBlock, + isNavigationMode = _select.isNavigationMode; + + var theBlock = getBlock(clientId); + return { + block: theBlock, + hasOverlay: theBlock.name !== 'core/template' && !isBlockSelected(clientId) && !hasSelectedInnerBlock(clientId, true), + enableClickThrough: isNavigationMode() || isSmallScreen + }; + }), + hasOverlay = _useSelect.hasOverlay, + block = _useSelect.block, + enableClickThrough = _useSelect.enableClickThrough; + + useNestedSettingsUpdate(clientId, allowedBlocks, templateLock, captureToolbars, __experimentalMoverDirection); + useInnerBlockTemplateSync(clientId, template, templateLock, templateInsertUpdatesSelection); + var classes = classnames_default()({ + 'has-overlay': enableClickThrough && hasOverlay, + 'is-capturing-toolbar': captureToolbars + }); + var blockList = Object(external_this_wp_element_["createElement"])(block_list, Object(esm_extends["a" /* default */])({}, props, { + ref: forwardedRef, + rootClientId: clientId, + className: classes + })); // Wrap context provider if (and only if) block has context to provide. + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + + if (blockType && blockType.providesContext) { + var context = getBlockContext(block.attributes, blockType); + blockList = Object(external_this_wp_element_["createElement"])(BlockContextProvider, { + value: context + }, blockList); + } + + if (props.__experimentalTagName) { + return blockList; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-inner-blocks" + }, blockList); +} +/** + * The controlled inner blocks component wraps the uncontrolled inner blocks + * component with the blockSync hook. This keeps the innerBlocks of the block in + * the block-editor store in sync with the blocks of the controlling entity. An + * example of an inner block controller is a template part block, which provides + * its own blocks from the template part entity data source. + * + * @param {Object} props The component props. + */ + + +function ControlledInnerBlocks(props) { + useBlockSync(props); + return Object(external_this_wp_element_["createElement"])(UncontrolledInnerBlocks, props); +} +/** + * Wrapped InnerBlocks component which detects whether to use the controlled or + * uncontrolled variations of the InnerBlocks component. This is the component + * which should be used throughout the application. + */ + + +var ForwardedInnerBlocks = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + var _useBlockEditContext = useBlockEditContext(), + clientId = _useBlockEditContext.clientId; + + var fallbackRef = Object(external_this_wp_element_["useRef"])(); + + var allProps = inner_blocks_objectSpread({ + clientId: clientId, + forwardedRef: ref || fallbackRef + }, props); // Detects if the InnerBlocks should be controlled by an incoming value. + + + if (props.value && props.onChange) { + return Object(external_this_wp_element_["createElement"])(ControlledInnerBlocks, allProps); + } + + return Object(external_this_wp_element_["createElement"])(UncontrolledInnerBlocks, allProps); +}); // Expose default appender placeholders as components. + +ForwardedInnerBlocks.DefaultBlockAppender = inner_blocks_default_block_appender; +ForwardedInnerBlocks.ButtonBlockAppender = inner_blocks_button_block_appender; +ForwardedInnerBlocks.Content = Object(external_this_wp_blocks_["withBlockContentContext"])(function (_ref) { + var BlockContent = _ref.BlockContent; + return Object(external_this_wp_element_["createElement"])(BlockContent, null); +}); +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/inner-blocks/README.md + */ + +/* harmony default export */ var inner_blocks = (ForwardedInnerBlocks); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js + + + +function settings_drawer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function settings_drawer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { settings_drawer_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { settings_drawer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var defaultSettings = [{ + id: 'opensInNewTab', + title: Object(external_this_wp_i18n_["__"])('Open in new tab') +}]; + +var settings_drawer_LinkControlSettingsDrawer = function LinkControlSettingsDrawer(_ref) { + var value = _ref.value, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$settings = _ref.settings, + settings = _ref$settings === void 0 ? defaultSettings : _ref$settings; + + if (!settings || !settings.length) { + return null; + } + + var handleSettingChange = function handleSettingChange(setting) { + return function (newValue) { + onChange(settings_drawer_objectSpread({}, value, Object(defineProperty["a" /* default */])({}, setting.id, newValue))); + }; + }; + + var theSettings = settings.map(function (setting) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + className: "block-editor-link-control__setting", + key: setting.id, + label: setting.title, + onChange: handleSettingChange(setting), + checked: value ? !!value[setting.id] : false + }); + }); + return Object(external_this_wp_element_["createElement"])("fieldset", { + className: "block-editor-link-control__settings" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "legend" + }, Object(external_this_wp_i18n_["__"])('Currently selected link settings')), theSettings); +}; + +/* harmony default export */ var settings_drawer = (settings_drawer_LinkControlSettingsDrawer); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/globe.js + + +/** + * WordPress dependencies + */ + +var globe = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z" +})); +/* harmony default export */ var library_globe = (globe); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +var search_item_LinkControlSearchItem = function LinkControlSearchItem(_ref) { + var itemProps = _ref.itemProps, + suggestion = _ref.suggestion, + _ref$isSelected = _ref.isSelected, + isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected, + onClick = _ref.onClick, + _ref$isURL = _ref.isURL, + isURL = _ref$isURL === void 0 ? false : _ref$isURL, + _ref$searchTerm = _ref.searchTerm, + searchTerm = _ref$searchTerm === void 0 ? '' : _ref$searchTerm; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, itemProps, { + onClick: onClick, + className: classnames_default()('block-editor-link-control__search-item', { + 'is-selected': isSelected, + 'is-url': isURL, + 'is-entity': !isURL + }) + }), isURL && Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + className: "block-editor-link-control__search-item-icon", + icon: library_globe + }), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-header" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-title" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextHighlight"], { + text: suggestion.title, + highlight: searchTerm + })), Object(external_this_wp_element_["createElement"])("span", { + "aria-hidden": !isURL, + className: "block-editor-link-control__search-item-info" + }, !isURL && (Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(suggestion.url)) || ''), isURL && Object(external_this_wp_i18n_["__"])('Press ENTER to add this link'))), suggestion.type && Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-type" + }, suggestion.type)); +}; +/* harmony default export */ var search_item = (search_item_LinkControlSearchItem); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js +var keyboard_return = __webpack_require__(195); + +// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js +var dom_scroll_into_view_lib = __webpack_require__(114); +var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/index.js + + + + + + + + + +function url_input_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (url_input_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function url_input_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + + + + + // Since URLInput is rendered in the context of other inputs, but should be +// considered a separate modal node, prevent keyboard events from propagating +// as being considered from the input. + +var stopEventPropagation = function stopEventPropagation(event) { + return event.stopPropagation(); +}; + +var url_input_URLInput = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(URLInput, _Component); + + var _super = url_input_createSuper(URLInput); + + function URLInput(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, URLInput); + + _this = _super.call(this, props); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.selectLink = _this.selectLink.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.handleOnClick = _this.handleOnClick.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.bindSuggestionNode = _this.bindSuggestionNode.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.autocompleteRef = props.autocompleteRef || Object(external_this_wp_element_["createRef"])(); + _this.inputRef = Object(external_this_wp_element_["createRef"])(); + _this.updateSuggestions = Object(external_this_lodash_["throttle"])(_this.updateSuggestions.bind(Object(assertThisInitialized["a" /* default */])(_this)), 200); + _this.suggestionNodes = []; + _this.isUpdatingSuggestions = false; + _this.state = { + suggestions: [], + showSuggestions: false, + selectedSuggestion: null + }; + return _this; + } + + Object(createClass["a" /* default */])(URLInput, [{ + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this2 = this; + + var _this$state = this.state, + showSuggestions = _this$state.showSuggestions, + selectedSuggestion = _this$state.selectedSuggestion; + var value = this.props.value; // only have to worry about scrolling selected suggestion into view + // when already expanded + + if (showSuggestions && selectedSuggestion !== null && !this.scrollingIntoView) { + this.scrollingIntoView = true; + dom_scroll_into_view_lib_default()(this.suggestionNodes[selectedSuggestion], this.autocompleteRef.current, { + onlyScrollIfNeeded: true + }); + this.props.setTimeout(function () { + _this2.scrollingIntoView = false; + }, 100); + } // Only attempt an update on suggestions if the input value has actually changed. + + + if (prevProps.value !== value && this.shouldShowInitialSuggestions()) { + this.updateSuggestions(); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this.shouldShowInitialSuggestions()) { + this.updateSuggestions(); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + delete this.suggestionsRequest; + } + }, { + key: "bindSuggestionNode", + value: function bindSuggestionNode(index) { + var _this3 = this; + + return function (ref) { + _this3.suggestionNodes[index] = ref; + }; + } + }, { + key: "shouldShowInitialSuggestions", + value: function shouldShowInitialSuggestions() { + var suggestions = this.state.suggestions; + + var _this$props = this.props, + _this$props$__experim = _this$props.__experimentalShowInitialSuggestions, + __experimentalShowInitialSuggestions = _this$props$__experim === void 0 ? false : _this$props$__experim, + value = _this$props.value; + + return !this.isUpdatingSuggestions && __experimentalShowInitialSuggestions && !(value && value.length) && !(suggestions && suggestions.length); + } + }, { + key: "updateSuggestions", + value: function updateSuggestions() { + var _this4 = this; + + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var _this$props2 = this.props, + fetchLinkSuggestions = _this$props2.__experimentalFetchLinkSuggestions, + handleURLSuggestions = _this$props2.__experimentalHandleURLSuggestions; + + if (!fetchLinkSuggestions) { + return; + } + + var isInitialSuggestions = !(value && value.length); // Allow a suggestions request if: + // - there are at least 2 characters in the search input (except manual searches where + // search input length is not required to trigger a fetch) + // - this is a direct entry (eg: a URL) + + if (!isInitialSuggestions && (value.length < 2 || !handleURLSuggestions && Object(external_this_wp_url_["isURL"])(value))) { + this.setState({ + showSuggestions: false, + selectedSuggestion: null, + loading: false + }); + return; + } + + this.isUpdatingSuggestions = true; + this.setState({ + selectedSuggestion: null, + loading: true + }); + var request = fetchLinkSuggestions(value, { + isInitialSuggestions: isInitialSuggestions + }); + request.then(function (suggestions) { + // A fetch Promise doesn't have an abort option. It's mimicked by + // comparing the request reference in on the instance, which is + // reset or deleted on subsequent requests or unmounting. + if (_this4.suggestionsRequest !== request) { + return; + } + + _this4.setState({ + suggestions: suggestions, + loading: false, + showSuggestions: !!suggestions.length + }); + + if (!!suggestions.length) { + _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: number of results. */ + Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', suggestions.length), suggestions.length), 'assertive'); + } else { + _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); + } + + _this4.isUpdatingSuggestions = false; + }).catch(function () { + if (_this4.suggestionsRequest === request) { + _this4.setState({ + loading: false + }); + + _this4.isUpdatingSuggestions = false; + } + }); // Note that this assignment is handled *before* the async search request + // as a Promise always resolves on the next tick of the event loop. + + this.suggestionsRequest = request; + } + }, { + key: "onChange", + value: function onChange(event) { + var inputValue = event.target.value; + this.props.onChange(inputValue); + + if (!this.props.disableSuggestions) { + this.updateSuggestions(inputValue.trim()); + } + } + }, { + key: "onFocus", + value: function onFocus() { + var suggestions = this.state.suggestions; + var _this$props3 = this.props, + disableSuggestions = _this$props3.disableSuggestions, + value = _this$props3.value; // When opening the link editor, if there's a value present, we want to load the suggestions pane with the results for this input search value + // Don't re-run the suggestions on focus if there are already suggestions present (prevents searching again when tabbing between the input and buttons) + + if (value && !disableSuggestions && !this.isUpdatingSuggestions && !(suggestions && suggestions.length)) { + // Ensure the suggestions are updated with the current input value + this.updateSuggestions(value.trim()); + } + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var _this$state2 = this.state, + showSuggestions = _this$state2.showSuggestions, + selectedSuggestion = _this$state2.selectedSuggestion, + suggestions = _this$state2.suggestions, + loading = _this$state2.loading; // If the suggestions are not shown or loading, we shouldn't handle the arrow keys + // We shouldn't preventDefault to allow block arrow keys navigation + + if (!showSuggestions || !suggestions.length || loading) { + // In the Windows version of Firefox the up and down arrows don't move the caret + // within an input field like they do for Mac Firefox/Chrome/Safari. This causes + // a form of focus trapping that is disruptive to the user experience. This disruption + // only happens if the caret is not in the first or last position in the text input. + // See: https://github.com/WordPress/gutenberg/issues/5693#issuecomment-436684747 + switch (event.keyCode) { + // When UP is pressed, if the caret is at the start of the text, move it to the 0 + // position. + case external_this_wp_keycodes_["UP"]: + { + if (0 !== event.target.selectionStart) { + event.stopPropagation(); + event.preventDefault(); // Set the input caret to position 0 + + event.target.setSelectionRange(0, 0); + } + + break; + } + // When DOWN is pressed, if the caret is not at the end of the text, move it to the + // last position. + + case external_this_wp_keycodes_["DOWN"]: + { + if (this.props.value.length !== event.target.selectionStart) { + event.stopPropagation(); + event.preventDefault(); // Set the input caret to the last position + + event.target.setSelectionRange(this.props.value.length, this.props.value.length); + } + + break; + } + } + + return; + } + + var suggestion = this.state.suggestions[this.state.selectedSuggestion]; + + switch (event.keyCode) { + case external_this_wp_keycodes_["UP"]: + { + event.stopPropagation(); + event.preventDefault(); + var previousIndex = !selectedSuggestion ? suggestions.length - 1 : selectedSuggestion - 1; + this.setState({ + selectedSuggestion: previousIndex + }); + break; + } + + case external_this_wp_keycodes_["DOWN"]: + { + event.stopPropagation(); + event.preventDefault(); + var nextIndex = selectedSuggestion === null || selectedSuggestion === suggestions.length - 1 ? 0 : selectedSuggestion + 1; + this.setState({ + selectedSuggestion: nextIndex + }); + break; + } + + case external_this_wp_keycodes_["TAB"]: + { + if (this.state.selectedSuggestion !== null) { + this.selectLink(suggestion); // Announce a link has been selected when tabbing away from the input field. + + this.props.speak(Object(external_this_wp_i18n_["__"])('Link selected.')); + } + + break; + } + + case external_this_wp_keycodes_["ENTER"]: + { + if (this.state.selectedSuggestion !== null) { + event.stopPropagation(); + this.selectLink(suggestion); + } + + break; + } + } + } + }, { + key: "selectLink", + value: function selectLink(suggestion) { + this.props.onChange(suggestion.url, suggestion); + this.setState({ + selectedSuggestion: null, + showSuggestions: false + }); + } + }, { + key: "handleOnClick", + value: function handleOnClick(suggestion) { + this.selectLink(suggestion); // Move focus to the input field when a link suggestion is clicked. + + this.inputRef.current.focus(); + } + }, { + key: "render", + value: function render() { + var _this5 = this; + + var _this$props4 = this.props, + label = _this$props4.label, + instanceId = _this$props4.instanceId, + className = _this$props4.className, + isFullWidth = _this$props4.isFullWidth, + renderSuggestions = _this$props4.__experimentalRenderSuggestions, + _this$props4$placehol = _this$props4.placeholder, + placeholder = _this$props4$placehol === void 0 ? Object(external_this_wp_i18n_["__"])('Paste URL or type to search') : _this$props4$placehol, + _this$props4$value = _this$props4.value, + value = _this$props4$value === void 0 ? '' : _this$props4$value, + _this$props4$autoFocu = _this$props4.autoFocus, + autoFocus = _this$props4$autoFocu === void 0 ? true : _this$props4$autoFocu, + _this$props4$__experi = _this$props4.__experimentalShowInitialSuggestions, + __experimentalShowInitialSuggestions = _this$props4$__experi === void 0 ? false : _this$props4$__experi; + + var _this$state3 = this.state, + showSuggestions = _this$state3.showSuggestions, + suggestions = _this$state3.suggestions, + selectedSuggestion = _this$state3.selectedSuggestion, + loading = _this$state3.loading; + var id = "url-input-control-".concat(instanceId); + var suggestionsListboxId = "block-editor-url-input-suggestions-".concat(instanceId); + var suggestionOptionIdPrefix = "block-editor-url-input-suggestion-".concat(instanceId); + var suggestionsListProps = { + id: suggestionsListboxId, + ref: this.autocompleteRef, + role: 'listbox' + }; + + var buildSuggestionItemProps = function buildSuggestionItemProps(suggestion, index) { + return { + role: 'option', + tabIndex: '-1', + id: "".concat(suggestionOptionIdPrefix, "-").concat(index), + ref: _this5.bindSuggestionNode(index), + 'aria-selected': index === selectedSuggestion + }; + }; + /* eslint-disable jsx-a11y/no-autofocus */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + label: label, + id: id, + className: classnames_default()('block-editor-url-input', className, { + 'is-full-width': isFullWidth + }) + }, Object(external_this_wp_element_["createElement"])("input", { + className: "block-editor-url-input__input", + autoFocus: autoFocus, + type: "text", + "aria-label": Object(external_this_wp_i18n_["__"])('URL'), + required: true, + value: value, + onChange: this.onChange, + onFocus: this.onFocus, + onInput: stopEventPropagation, + placeholder: placeholder, + onKeyDown: this.onKeyDown, + role: "combobox", + "aria-expanded": showSuggestions, + "aria-autocomplete": "list", + "aria-owns": suggestionsListboxId, + "aria-activedescendant": selectedSuggestion !== null ? "".concat(suggestionOptionIdPrefix, "-").concat(selectedSuggestion) : undefined, + ref: this.inputRef + }), loading && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length && renderSuggestions({ + suggestions: suggestions, + selectedSuggestion: selectedSuggestion, + suggestionsListProps: suggestionsListProps, + buildSuggestionItemProps: buildSuggestionItemProps, + isLoading: loading, + handleSuggestionClick: this.handleOnClick, + isInitialSuggestions: __experimentalShowInitialSuggestions && !(value && value.length) + }), !Object(external_this_lodash_["isFunction"])(renderSuggestions) && showSuggestions && !!suggestions.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + position: "bottom", + noArrow: true, + focusOnMount: false + }, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { + className: classnames_default()('block-editor-url-input__suggestions', "".concat(className, "__suggestions")) + }), suggestions.map(function (suggestion, index) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, buildSuggestionItemProps(suggestion, index), { + key: suggestion.id, + className: classnames_default()('block-editor-url-input__suggestion', { + 'is-selected': index === selectedSuggestion + }), + onClick: function onClick() { + return _this5.handleOnClick(suggestion); + } + }), suggestion.title); + })))); + /* eslint-enable jsx-a11y/no-autofocus */ + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(_ref, _ref2) { + var value = _ref.value, + disableSuggestions = _ref.disableSuggestions, + _ref$__experimentalSh = _ref.__experimentalShowInitialSuggestions, + __experimentalShowInitialSuggestions = _ref$__experimentalSh === void 0 ? false : _ref$__experimentalSh; + + var showSuggestions = _ref2.showSuggestions; + var shouldShowSuggestions = showSuggestions; + var hasValue = value && value.length; + + if (!__experimentalShowInitialSuggestions && !hasValue) { + shouldShowSuggestions = false; + } + + if (disableSuggestions === true) { + shouldShowSuggestions = false; + } + + return { + showSuggestions: shouldShowSuggestions + }; + } + }]); + + return URLInput; +}(external_this_wp_element_["Component"]); +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-input/README.md + */ + + +/* harmony default export */ var url_input = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["withSafeTimeout"], external_this_wp_components_["withSpokenMessages"], external_this_wp_compose_["withInstanceId"], Object(external_this_wp_data_["withSelect"])(function (select, props) { + // If a link suggestions handler is already provided then + // bail + if (Object(external_this_lodash_["isFunction"])(props.__experimentalFetchLinkSuggestions)) { + return; + } + + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + __experimentalFetchLinkSuggestions: getSettings().__experimentalFetchLinkSuggestions + }; +}))(url_input_URLInput)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var search_input_LinkControlSearchInput = function LinkControlSearchInput(_ref) { + var placeholder = _ref.placeholder, + value = _ref.value, + onChange = _ref.onChange, + onSelect = _ref.onSelect, + renderSuggestions = _ref.renderSuggestions, + fetchSuggestions = _ref.fetchSuggestions, + showInitialSuggestions = _ref.showInitialSuggestions, + errorMessage = _ref.errorMessage; + + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + selectedSuggestion = _useState2[0], + setSelectedSuggestion = _useState2[1]; + /** + * Handles the user moving between different suggestions. Does not handle + * choosing an individual item. + * + * @param {string} selection the url of the selected suggestion. + * @param {Object} suggestion the suggestion object. + */ + + + var selectItemHandler = function selectItemHandler(selection, suggestion) { + onChange(selection); + setSelectedSuggestion(suggestion); + }; + + function selectSuggestionOrCurrentInputValue(event) { + // Avoid default forms behavior, since it's being handled custom here. + event.preventDefault(); // Interpret the selected value as either the selected suggestion, if + // exists, or otherwise the current input value as entered. + + onSelect(selectedSuggestion || { + url: value + }); + } + + return Object(external_this_wp_element_["createElement"])("form", { + onSubmit: selectSuggestionOrCurrentInputValue + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__search-input-wrapper" + }, Object(external_this_wp_element_["createElement"])(url_input, { + className: "block-editor-link-control__search-input", + value: value, + onChange: selectItemHandler, + placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : Object(external_this_wp_i18n_["__"])('Search or type url'), + __experimentalRenderSuggestions: renderSuggestions, + __experimentalFetchLinkSuggestions: fetchSuggestions, + __experimentalHandleURLSuggestions: true, + __experimentalShowInitialSuggestions: showInitialSuggestions + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__search-actions" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + type: "submit", + label: Object(external_this_wp_i18n_["__"])('Submit'), + icon: keyboard_return["a" /* default */], + className: "block-editor-link-control__search-submit" + }))), errorMessage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { + className: "block-editor-link-control__search-error", + status: "error", + isDismissible: false + }, errorMessage)); +}; + +/* harmony default export */ var search_input = (search_input_LinkControlSearchInput); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-create-button.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var search_create_button_LinkControlSearchCreate = function LinkControlSearchCreate(_ref) { + var searchTerm = _ref.searchTerm, + onClick = _ref.onClick, + itemProps = _ref.itemProps, + isSelected = _ref.isSelected; + + if (!searchTerm) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, itemProps, { + className: classnames_default()('block-editor-link-control__search-create block-editor-link-control__search-item', { + 'is-selected': isSelected + }), + onClick: onClick + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + className: "block-editor-link-control__search-item-icon", + icon: "insert" + }), Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-header" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-title" + }, Object(external_this_wp_element_["createInterpolateElement"])(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: search term. */ + Object(external_this_wp_i18n_["__"])('New page: %s'), searchTerm), { + mark: Object(external_this_wp_element_["createElement"])("mark", null) + })))); +}; +/* harmony default export */ var search_create_button = (search_create_button_LinkControlSearchCreate); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/index.js + + + + + + +function link_control_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function link_control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { link_control_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { link_control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + + + +var link_control_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockEditorLinkControlViewer'), + ViewerSlot = link_control_createSlotFill.Slot, + ViewerFill = link_control_createSlotFill.Fill; // Used as a unique identifier for the "Create" option within search results. +// Used to help distinguish the "Create" suggestion within the search results in +// order to handle it as a unique case. + + +var CREATE_TYPE = '__CREATE__'; +/** + * Creates a wrapper around a promise which allows it to be programmatically + * cancelled. + * See: https://reactjs.org/blog/2015/12/16/ismounted-antipattern.html + * + * @param {Promise} promise the Promise to make cancelable + */ + +var makeCancelable = function makeCancelable(promise) { + var hasCanceled_ = false; + var wrappedPromise = new Promise(function (resolve, reject) { + promise.then(function (val) { + return hasCanceled_ ? reject({ + isCanceled: true + }) : resolve(val); + }, function (error) { + return hasCanceled_ ? reject({ + isCanceled: true + }) : reject(error); + }); + }); + return { + promise: wrappedPromise, + cancel: function cancel() { + hasCanceled_ = true; + } + }; +}; +/** + * Default properties associated with a link control value. + * + * @typedef WPLinkControlDefaultValue + * + * @property {string} url Link URL. + * @property {string=} title Link title. + * @property {boolean=} opensInNewTab Whether link should open in a new browser + * tab. This value is only assigned if not + * providing a custom `settings` prop. + */ + +/* eslint-disable jsdoc/valid-types */ + +/** + * Custom settings values associated with a link. + * + * @typedef {{[setting:string]:any}} WPLinkControlSettingsValue + */ + +/* eslint-enable */ + +/** + * Custom settings values associated with a link. + * + * @typedef WPLinkControlSetting + * + * @property {string} id Identifier to use as property for setting value. + * @property {string} title Human-readable label to show in user interface. + */ + +/* eslint-disable jsdoc/valid-types */ + +/** + * Properties associated with a link control value, composed as a union of the + * default properties and any custom settings values. + * + * @typedef {WPLinkControlDefaultValue&WPLinkControlSettingsValue} WPLinkControlValue + */ + +/* eslint-enable */ + +/** @typedef {(nextValue:WPLinkControlValue)=>void} WPLinkControlOnChangeProp */ + +/** + * Properties associated with a search suggestion used within the LinkControl. + * + * @typedef WPLinkControlSuggestion + * + * @property {string} id Identifier to use to uniquely identify the suggestion. + * @property {string} type Identifies the type of the suggestion (eg: `post`, + * `page`, `url`...etc) + * @property {string} title Human-readable label to show in user interface. + * @property {string} url A URL for the suggestion. + */ + +/** @typedef {(title:string)=>WPLinkControlSuggestion} WPLinkControlCreateSuggestionProp */ + +/** + * @typedef WPLinkControlProps + * + * @property {(WPLinkControlSetting[])=} settings An array of settings objects. Each object will used to + * render a `ToggleControl` for that setting. + * @property {boolean=} forceIsEditingLink If passed as either `true` or `false`, controls the + * internal editing state of the component to respective + * show or not show the URL input field. + * @property {WPLinkControlValue=} value Current link value. + * @property {WPLinkControlOnChangeProp=} onChange Value change handler, called with the updated value if + * the user selects a new link or updates settings. + * @property {boolean=} noDirectEntry Whether to disable direct entries or not. + * @property {boolean=} showSuggestions Whether to present suggestions when typing the URL. + * @property {boolean=} showInitialSuggestions Whether to present initial suggestions immediately. + * @property {WPLinkControlCreateSuggestionProp=} createSuggestion Handler to manage creation of link value from suggestion. + */ + +/** + * Renders a link control. A link control is a controlled input which maintains + * a value associated with a link (HTML anchor element) and relevant settings + * for how that link is expected to behave. + * + * @param {WPLinkControlProps} props Component props. + */ + + +function LinkControl(_ref) { + var searchInputPlaceholder = _ref.searchInputPlaceholder, + value = _ref.value, + settings = _ref.settings, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$noDirectEntry = _ref.noDirectEntry, + noDirectEntry = _ref$noDirectEntry === void 0 ? false : _ref$noDirectEntry, + _ref$showSuggestions = _ref.showSuggestions, + showSuggestions = _ref$showSuggestions === void 0 ? true : _ref$showSuggestions, + showInitialSuggestions = _ref.showInitialSuggestions, + forceIsEditingLink = _ref.forceIsEditingLink, + createSuggestion = _ref.createSuggestion; + var cancelableOnCreate = Object(external_this_wp_element_["useRef"])(); + var cancelableCreateSuggestion = Object(external_this_wp_element_["useRef"])(); + var wrapperNode = Object(external_this_wp_element_["useRef"])(); + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(LinkControl); + + var _useState = Object(external_this_wp_element_["useState"])(value && value.url || ''), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + inputValue = _useState2[0], + setInputValue = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(forceIsEditingLink !== undefined ? forceIsEditingLink : !value || !value.url), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isEditingLink = _useState4[0], + setIsEditingLink = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(false), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + isResolvingLink = _useState6[0], + setIsResolvingLink = _useState6[1]; + + var _useState7 = Object(external_this_wp_element_["useState"])(null), + _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), + errorMessage = _useState8[0], + setErrorMessage = _useState8[1]; + + var isEndingEditWithFocus = Object(external_this_wp_element_["useRef"])(false); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + fetchSearchSuggestions: getSettings().__experimentalFetchLinkSuggestions + }; + }, []), + fetchSearchSuggestions = _useSelect.fetchSearchSuggestions; + + var displayURL = value && Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(value.url)) || ''; + Object(external_this_wp_element_["useEffect"])(function () { + if (forceIsEditingLink !== undefined && forceIsEditingLink !== isEditingLink) { + setIsEditingLink(forceIsEditingLink); + } + }, [forceIsEditingLink]); + Object(external_this_wp_element_["useEffect"])(function () { + // When `isEditingLink` is set to `false`, a focus loss could occur + // since the link input may be removed from the DOM. To avoid this, + // reinstate focus to a suitable target if focus has in-fact been lost. + // Note that the check is necessary because while typically unsetting + // edit mode would render the read-only mode's link element, it isn't + // guaranteed. The link input may continue to be shown if the next value + // is still unassigned after calling `onChange`. + var hadFocusLoss = isEndingEditWithFocus.current && wrapperNode.current && !wrapperNode.current.contains(document.activeElement); + + if (hadFocusLoss) { + // Prefer to focus a natural focusable descendent of the wrapper, + // but settle for the wrapper if there are no other options. + var nextFocusTarget = external_this_wp_dom_["focus"].focusable.find(wrapperNode.current)[0] || wrapperNode.current; + nextFocusTarget.focus(); + } + + isEndingEditWithFocus.current = false; + }, [isEditingLink]); + /** + * Handles cancelling any pending Promises that have been made cancelable. + */ + + Object(external_this_wp_element_["useEffect"])(function () { + return function () { + // componentDidUnmount + if (cancelableOnCreate.current) { + cancelableOnCreate.current.cancel(); + } + + if (cancelableCreateSuggestion.current) { + cancelableCreateSuggestion.current.cancel(); + } + }; + }, []); + /** + * onChange LinkControlSearchInput event handler + * + * @param {string} val Current value returned by the search. + */ + + var onInputChange = function onInputChange() { + var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + setInputValue(val); + }; + + var handleDirectEntry = noDirectEntry ? function () { + return Promise.resolve([]); + } : function (val) { + var type = 'URL'; + var protocol = Object(external_this_wp_url_["getProtocol"])(val) || ''; + + if (protocol.includes('mailto')) { + type = 'mailto'; + } + + if (protocol.includes('tel')) { + type = 'tel'; + } + + if (Object(external_this_lodash_["startsWith"])(val, '#')) { + type = 'internal'; + } + + return Promise.resolve([{ + id: val, + title: val, + url: type === 'URL' ? Object(external_this_wp_url_["prependHTTP"])(val) : val, + type: type + }]); + }; + + var handleEntitySearch = /*#__PURE__*/function () { + var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee(val, args) { + var results, couldBeURL; + return external_this_regeneratorRuntime_default.a.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return Promise.all([fetchSearchSuggestions(val, link_control_objectSpread({}, args.isInitialSuggestions ? { + perPage: 3 + } : {})), handleDirectEntry(val)]); + + case 2: + results = _context.sent; + couldBeURL = !val.includes(' '); // If it's potentially a URL search then concat on a URL search suggestion + // just for good measure. That way once the actual results run out we always + // have a URL option to fallback on. + + results = couldBeURL && !args.isInitialSuggestions ? results[0].concat(results[1]) : results[0]; // If displaying initial suggestions just return plain results. + + if (!args.isInitialSuggestions) { + _context.next = 7; + break; + } + + return _context.abrupt("return", results); + + case 7: + return _context.abrupt("return", isURLLike(val) ? results : results.concat({ + // the `id` prop is intentionally ommitted here because it + // is never exposed as part of the component's public API. + // see: https://github.com/WordPress/gutenberg/pull/19775#discussion_r378931316. + title: val, + // must match the existing ``s text value + url: val, + // must match the existing ``s text value + type: CREATE_TYPE + })); + + case 8: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + + return function handleEntitySearch(_x, _x2) { + return _ref2.apply(this, arguments); + }; + }(); + /** + * Cancels editing state and marks that focus may need to be restored after + * the next render, if focus was within the wrapper when editing finished. + */ + + + function stopEditing() { + var _wrapperNode$current; + + isEndingEditWithFocus.current = !!((_wrapperNode$current = wrapperNode.current) === null || _wrapperNode$current === void 0 ? void 0 : _wrapperNode$current.contains(document.activeElement)); + setIsEditingLink(false); + } + /** + * Determines whether a given value could be a URL. Note this does not + * guarantee the value is a URL only that it looks like it might be one. For + * example, just because a string has `www.` in it doesn't make it a URL, + * but it does make it highly likely that it will be so in the context of + * creating a link it makes sense to treat it like one. + * + * @param {string} val the candidate for being URL-like (or not). + * @return {boolean} whether or not the value is potentially a URL. + */ + + + function isURLLike(val) { + var isInternal = Object(external_this_lodash_["startsWith"])(val, '#'); + return Object(external_this_wp_url_["isURL"])(val) || val && val.includes('www.') || isInternal; + } // Effects + + + var getSearchHandler = Object(external_this_wp_element_["useCallback"])(function (val, args) { + if (!showSuggestions) { + return Promise.resolve([]); + } + + return isURLLike(val) ? handleDirectEntry(val, args) : handleEntitySearch(val, args); + }, [handleDirectEntry, fetchSearchSuggestions]); + + var handleOnCreate = /*#__PURE__*/function () { + var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee2(suggestionTitle) { + var newSuggestion; + return external_this_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + setIsResolvingLink(true); + setErrorMessage(null); + _context2.prev = 2; + // Make cancellable in order that we can avoid setting State + // if the component unmounts during the call to `createSuggestion` + cancelableCreateSuggestion.current = makeCancelable( // Using Promise.resolve to allow createSuggestion to return a + // non-Promise based value. + Promise.resolve(createSuggestion(suggestionTitle))); + _context2.next = 6; + return cancelableCreateSuggestion.current.promise; + + case 6: + newSuggestion = _context2.sent; + // ******** + // NOTE: if the above Promise rejects then code below here will never run + // ******** + setIsResolvingLink(false); // Only set link if request is resolved, otherwise enable edit mode. + + if (newSuggestion) { + onChange(newSuggestion); + stopEditing(); + } else { + setIsEditingLink(true); + } + + _context2.next = 18; + break; + + case 11: + _context2.prev = 11; + _context2.t0 = _context2["catch"](2); + + if (!(_context2.t0 && _context2.t0.isCanceled)) { + _context2.next = 15; + break; + } + + return _context2.abrupt("return"); + + case 15: + setErrorMessage(_context2.t0.message || Object(external_this_wp_i18n_["__"])('An unknown error occurred during creation. Please try again.')); + setIsResolvingLink(false); + setIsEditingLink(true); + + case 18: + case "end": + return _context2.stop(); + } + } + }, _callee2, null, [[2, 11]]); + })); + + return function handleOnCreate(_x3) { + return _ref3.apply(this, arguments); + }; + }(); + + var handleSelectSuggestion = function handleSelectSuggestion(suggestion) { + var _value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + setIsEditingLink(false); + + var __value = link_control_objectSpread({}, _value); // Some direct entries don't have types or IDs, and we still need to clear the previous ones. + + + delete __value.type; + delete __value.id; + onChange(link_control_objectSpread({}, __value, {}, suggestion)); + }; // Render Components + + + var renderSearchResults = function renderSearchResults(_ref4) { + var suggestionsListProps = _ref4.suggestionsListProps, + buildSuggestionItemProps = _ref4.buildSuggestionItemProps, + suggestions = _ref4.suggestions, + selectedSuggestion = _ref4.selectedSuggestion, + isLoading = _ref4.isLoading, + isInitialSuggestions = _ref4.isInitialSuggestions; + var resultsListClasses = classnames_default()('block-editor-link-control__search-results', { + 'is-loading': isLoading + }); + var directLinkEntryTypes = ['url', 'mailto', 'tel', 'internal']; + var isSingleDirectEntryResult = suggestions.length === 1 && directLinkEntryTypes.includes(suggestions[0].type.toLowerCase()); + var shouldShowCreateSuggestion = createSuggestion && !isSingleDirectEntryResult && !isInitialSuggestions; // According to guidelines aria-label should be added if the label + // itself is not visible. + // See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role + + var searchResultsLabelId = "block-editor-link-control-search-results-label-".concat(instanceId); + var labelText = isInitialSuggestions ? Object(external_this_wp_i18n_["__"])('Recently updated') : Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: search term. */ + Object(external_this_wp_i18n_["__"])('Search results for "%s"'), inputValue); // VisuallyHidden rightly doesn't accept custom classNames + // so we conditionally render it as a wrapper to visually hide the label + // when that is required. + + var searchResultsLabel = Object(external_this_wp_element_["createElement"])(isInitialSuggestions ? external_this_wp_element_["Fragment"] : external_this_wp_components_["VisuallyHidden"], {}, // empty props + Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-results-label", + id: searchResultsLabelId + }, labelText)); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__search-results-wrapper" + }, searchResultsLabel, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, suggestionsListProps, { + className: resultsListClasses, + "aria-labelledby": searchResultsLabelId + }), suggestions.map(function (suggestion, index) { + if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) { + return Object(external_this_wp_element_["createElement"])(search_create_button, { + searchTerm: inputValue, + onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee3() { + return external_this_regeneratorRuntime_default.a.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return handleOnCreate(suggestion.title); + + case 2: + case "end": + return _context3.stop(); + } + } + }, _callee3); + })) // Intentionally only using `type` here as + // the constant is enough to uniquely + // identify the single "CREATE" suggestion. + , + key: suggestion.type, + itemProps: buildSuggestionItemProps(suggestion, index), + isSelected: index === selectedSuggestion + }); + } // If we're not handling "Create" suggestions above then + // we don't want them in the main results so exit early + + + if (CREATE_TYPE === suggestion.type) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(search_item, { + key: "".concat(suggestion.id, "-").concat(suggestion.type), + itemProps: buildSuggestionItemProps(suggestion, index), + suggestion: suggestion, + index: index, + onClick: function onClick() { + stopEditing(); + onChange(link_control_objectSpread({}, value, {}, suggestion)); + }, + isSelected: index === selectedSuggestion, + isURL: directLinkEntryTypes.includes(suggestion.type.toLowerCase()), + searchTerm: inputValue + }); + }))); + }; + + return Object(external_this_wp_element_["createElement"])("div", { + tabIndex: -1, + ref: wrapperNode, + className: "block-editor-link-control" + }, isResolvingLink && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-link-control__loading" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), " ", Object(external_this_wp_i18n_["__"])('Creating'), "\u2026"), (isEditingLink || !value) && !isResolvingLink && Object(external_this_wp_element_["createElement"])(search_input, { + placeholder: searchInputPlaceholder, + value: inputValue, + onChange: onInputChange, + onSelect: /*#__PURE__*/function () { + var _ref6 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_this_regeneratorRuntime_default.a.mark(function _callee4(suggestion) { + return external_this_regeneratorRuntime_default.a.wrap(function _callee4$(_context4) { + while (1) { + switch (_context4.prev = _context4.next) { + case 0: + if (!(CREATE_TYPE === suggestion.type)) { + _context4.next = 5; + break; + } + + _context4.next = 3; + return handleOnCreate(inputValue); + + case 3: + _context4.next = 6; + break; + + case 5: + if (!noDirectEntry || Object.keys(suggestion).length > 1) { + handleSelectSuggestion(suggestion, value); + stopEditing(); + } + + case 6: + case "end": + return _context4.stop(); + } + } + }, _callee4); + })); + + return function (_x4) { + return _ref6.apply(this, arguments); + }; + }(), + renderSuggestions: showSuggestions ? renderSearchResults : null, + fetchSuggestions: getSearchHandler, + showInitialSuggestions: showInitialSuggestions, + errorMessage: errorMessage + }), value && !isEditingLink && !isResolvingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + "aria-label": Object(external_this_wp_i18n_["__"])('Currently selected'), + "aria-selected": "true", + className: classnames_default()('block-editor-link-control__search-item', { + 'is-current': true + }) + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-header" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + className: "block-editor-link-control__search-item-title", + href: value.url + }, value && value.title || displayURL), value && value.title && Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-link-control__search-item-info" + }, displayURL)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSecondary: true, + onClick: function onClick() { + return setIsEditingLink(true); + }, + className: "block-editor-link-control__search-item-action" + }, Object(external_this_wp_i18n_["__"])('Edit')), Object(external_this_wp_element_["createElement"])(ViewerSlot, { + fillProps: value + }))), Object(external_this_wp_element_["createElement"])(settings_drawer, { + value: value, + settings: settings, + onChange: onChange + })); +} + +LinkControl.ViewerFill = ViewerFill; +/* harmony default export */ var link_control = (LinkControl); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js + + +/** + * WordPress dependencies + */ + +var media_media = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z" +})); +/* harmony default export */ var library_media = (media_media); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js +var upload = __webpack_require__(293); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js +/** + * WordPress dependencies + */ + +/** + * This is a placeholder for the media upload component necessary to make it possible to provide + * an integration with the core blocks that handle media files. By default it renders nothing but + * it provides a way to have it overridden with the `editor.MediaUpload` filter. + * + * @return {WPComponent} The component to be rendered. + */ + +var MediaUpload = function MediaUpload() { + return null; +}; +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-upload/README.md + */ + + +/* harmony default export */ var media_upload = (Object(external_this_wp_components_["withFilters"])('editor.MediaUpload')(MediaUpload)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/check.js +/** + * WordPress dependencies + */ + +function MediaUploadCheck(_ref) { + var hasUploadPermissions = _ref.hasUploadPermissions, + _ref$fallback = _ref.fallback, + fallback = _ref$fallback === void 0 ? null : _ref$fallback, + children = _ref.children; + return hasUploadPermissions ? children : fallback; +} +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-upload/README.md + */ + +/* harmony default export */ var check = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + hasUploadPermissions: !!getSettings().mediaUpload + }; +})(MediaUploadCheck)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-replace-flow/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Internal dependencies + */ + + + + + +var media_replace_flow_MediaReplaceFlow = function MediaReplaceFlow(_ref) { + var mediaURL = _ref.mediaURL, + mediaId = _ref.mediaId, + allowedTypes = _ref.allowedTypes, + accept = _ref.accept, + onSelect = _ref.onSelect, + onSelectURL = _ref.onSelectURL, + _ref$onFilesUpload = _ref.onFilesUpload, + onFilesUpload = _ref$onFilesUpload === void 0 ? external_this_lodash_["noop"] : _ref$onFilesUpload, + _ref$name = _ref.name, + name = _ref$name === void 0 ? Object(external_this_wp_i18n_["__"])('Replace') : _ref$name, + createNotice = _ref.createNotice, + removeNotice = _ref.removeNotice; + + var _useState = Object(external_this_wp_element_["useState"])(mediaURL), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + mediaURLValue = _useState2[0], + setMediaURLValue = _useState2[1]; + + var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings().mediaUpload; + }, []); + var editMediaButtonRef = Object(external_this_wp_element_["createRef"])(); + var errorNoticeID = Object(external_this_lodash_["uniqueId"])('block-editor/media-replace-flow/error-notice/'); + + var onError = function onError(message) { + var errorElement = document.createElement('div'); + errorElement.innerHTML = Object(external_this_wp_element_["renderToString"])(message); // The default error contains some HTML that, + // for example, makes the filename bold. + // The notice, by default, accepts strings only and so + // we need to remove the html from the error. + + var renderMsg = errorElement.textContent || errorElement.innerText || ''; // We need to set a timeout for showing the notice + // so that VoiceOver and possibly other screen readers + // can announce the error afer the toolbar button + // regains focus once the upload dialog closes. + // Otherwise VO simply skips over the notice and announces + // the focused element and the open menu. + + setTimeout(function () { + createNotice('error', renderMsg, { + speak: true, + id: errorNoticeID, + isDismissible: true + }); + }, 1000); + }; + + var selectMedia = function selectMedia(media) { + onSelect(media); + setMediaURLValue(media.url); + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('The media file has been replaced')); + removeNotice(errorNoticeID); + }; + + var selectURL = function selectURL(newURL) { + onSelectURL(newURL); + }; + + var uploadFiles = function uploadFiles(event) { + var files = event.target.files; + onFilesUpload(files); + + var setMedia = function setMedia(_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + media = _ref3[0]; + + selectMedia(media); + }; + + mediaUpload({ + allowedTypes: allowedTypes, + filesList: files, + onFileChange: setMedia, + onError: onError + }); + }; + + var openOnArrowDown = function openOnArrowDown(event) { + if (event.keyCode === external_this_wp_keycodes_["DOWN"]) { + event.preventDefault(); + event.stopPropagation(); + event.target.click(); + } + }; + + var POPOVER_PROPS = { + isAlternate: true + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + popoverProps: POPOVER_PROPS, + contentClassName: "block-editor-media-replace-flow__options", + renderToggle: function renderToggle(_ref4) { + var isOpen = _ref4.isOpen, + onToggle = _ref4.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + className: "media-replace-flow" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + ref: editMediaButtonRef, + "aria-expanded": isOpen, + onClick: onToggle, + onKeyDown: openOnArrowDown + }, name)); + }, + renderContent: function renderContent(_ref5) { + var onClose = _ref5.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { + className: "block-editor-media-replace-flow__media-upload-menu" + }, Object(external_this_wp_element_["createElement"])(media_upload, { + value: mediaId, + onSelect: function onSelect(media) { + return selectMedia(media); + }, + allowedTypes: allowedTypes, + render: function render(_ref6) { + var open = _ref6.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: library_media, + onClick: open + }, Object(external_this_wp_i18n_["__"])('Open Media Library')); + } + }), Object(external_this_wp_element_["createElement"])(check, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + onChange: function onChange(event) { + uploadFiles(event, onClose); + }, + accept: accept, + render: function render(_ref7) { + var openFileDialog = _ref7.openFileDialog; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: upload["a" /* default */], + onClick: function onClick() { + openFileDialog(); + } + }, Object(external_this_wp_i18n_["__"])('Upload')); + } + }))), onSelectURL && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions + Object(external_this_wp_element_["createElement"])("form", { + className: "block-editor-media-flow__url-input", + onKeyDown: function onKeyDown(event) { + event.stopPropagation(); + }, + onKeyPress: function onKeyPress(event) { + event.stopPropagation(); + } + }, Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-media-replace-flow__image-url-label" + }, Object(external_this_wp_i18n_["__"])('Current media URL:')), Object(external_this_wp_element_["createElement"])(link_control, { + value: { + url: mediaURLValue + }, + settings: [], + showSuggestions: false, + onChange: function onChange(_ref8) { + var url = _ref8.url; + setMediaURLValue(url); + selectURL(url); + editMediaButtonRef.current.focus(); + } + }))); + } + }); +}; + +/* harmony default export */ var media_replace_flow = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/notices'), + createNotice = _dispatch.createNotice, + removeNotice = _dispatch.removeNotice; + + return { + createNotice: createNotice, + removeNotice: removeNotice + }; +}), Object(external_this_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(media_replace_flow_MediaReplaceFlow)); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js +var pencil = __webpack_require__(294); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer-url.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +function LinkViewerURL(_ref) { + var url = _ref.url, + urlLabel = _ref.urlLabel, + className = _ref.className; + var linkClassName = classnames_default()(className, 'block-editor-url-popover__link-viewer-url'); + + if (!url) { + return Object(external_this_wp_element_["createElement"])("span", { + className: linkClassName + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + className: linkClassName, + href: url + }, urlLabel || Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(url))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-viewer.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function LinkViewer(_ref) { + var className = _ref.className, + linkClassName = _ref.linkClassName, + onEditLinkClick = _ref.onEditLinkClick, + url = _ref.url, + urlLabel = _ref.urlLabel, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "linkClassName", "onEditLinkClick", "url", "urlLabel"]); + + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + className: classnames_default()('block-editor-url-popover__link-viewer', className) + }, props), Object(external_this_wp_element_["createElement"])(LinkViewerURL, { + url: url, + urlLabel: urlLabel, + className: linkClassName + }), onEditLinkClick && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: pencil["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Edit'), + onClick: onEditLinkClick + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/link-editor.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function LinkEditor(_ref) { + var autocompleteRef = _ref.autocompleteRef, + className = _ref.className, + onChangeInputValue = _ref.onChangeInputValue, + value = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["autocompleteRef", "className", "onChangeInputValue", "value"]); + + return Object(external_this_wp_element_["createElement"])("form", Object(esm_extends["a" /* default */])({ + className: classnames_default()('block-editor-url-popover__link-editor', className) + }, props), Object(external_this_wp_element_["createElement"])(url_input, { + value: value, + onChange: onChangeInputValue, + autocompleteRef: autocompleteRef + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: keyboard_return["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Apply'), + type: "submit" + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/index.js + + + + + + + + + + +function url_popover_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (url_popover_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function url_popover_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + +var url_popover_URLPopover = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(URLPopover, _Component); + + var _super = url_popover_createSuper(URLPopover); + + function URLPopover() { + var _this; + + Object(classCallCheck["a" /* default */])(this, URLPopover); + + _this = _super.apply(this, arguments); + _this.toggleSettingsVisibility = _this.toggleSettingsVisibility.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + isSettingsExpanded: false + }; + return _this; + } + + Object(createClass["a" /* default */])(URLPopover, [{ + key: "toggleSettingsVisibility", + value: function toggleSettingsVisibility() { + this.setState({ + isSettingsExpanded: !this.state.isSettingsExpanded + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + additionalControls = _this$props.additionalControls, + children = _this$props.children, + renderSettings = _this$props.renderSettings, + _this$props$position = _this$props.position, + position = _this$props$position === void 0 ? 'bottom center' : _this$props$position, + _this$props$focusOnMo = _this$props.focusOnMount, + focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo, + popoverProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["additionalControls", "children", "renderSettings", "position", "focusOnMount"]); + + var isSettingsExpanded = this.state.isSettingsExpanded; + var showSettings = !!renderSettings && isSettingsExpanded; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], Object(esm_extends["a" /* default */])({ + className: "block-editor-url-popover", + focusOnMount: focusOnMount, + position: position + }, popoverProps), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__input-container" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__row" + }, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-url-popover__settings-toggle", + icon: chevron_down["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Link settings'), + onClick: this.toggleSettingsVisibility, + "aria-expanded": isSettingsExpanded + })), showSettings && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__row block-editor-url-popover__settings" + }, renderSettings())), additionalControls && !showSettings && Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-popover__additional-controls" + }, additionalControls)); + } + }]); + + return URLPopover; +}(external_this_wp_element_["Component"]); + +url_popover_URLPopover.LinkEditor = LinkEditor; +url_popover_URLPopover.LinkViewer = LinkViewer; +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-popover/README.md + */ + +/* harmony default export */ var url_popover = (url_popover_URLPopover); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-placeholder/index.js + + + + + + + + + +function media_placeholder_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (media_placeholder_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function media_placeholder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + + +var media_placeholder_InsertFromURLPopover = function InsertFromURLPopover(_ref) { + var src = _ref.src, + onChange = _ref.onChange, + onSubmit = _ref.onSubmit, + onClose = _ref.onClose; + return Object(external_this_wp_element_["createElement"])(url_popover, { + onClose: onClose + }, Object(external_this_wp_element_["createElement"])("form", { + className: "block-editor-media-placeholder__url-input-form", + onSubmit: onSubmit + }, Object(external_this_wp_element_["createElement"])("input", { + className: "block-editor-media-placeholder__url-input-field", + type: "url", + "aria-label": Object(external_this_wp_i18n_["__"])('URL'), + placeholder: Object(external_this_wp_i18n_["__"])('Paste or type URL'), + onChange: onChange, + value: src + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-media-placeholder__url-input-submit-button", + icon: keyboard_return["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Apply'), + type: "submit" + }))); +}; + +var media_placeholder_MediaPlaceholder = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(MediaPlaceholder, _Component); + + var _super = media_placeholder_createSuper(MediaPlaceholder); + + function MediaPlaceholder() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MediaPlaceholder); + + _this = _super.apply(this, arguments); + _this.state = { + src: '', + isURLInputVisible: false + }; + _this.onChangeSrc = _this.onChangeSrc.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSubmitSrc = _this.onSubmitSrc.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUpload = _this.onUpload.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onFilesUpload = _this.onFilesUpload.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.openURLInput = _this.openURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.closeURLInput = _this.closeURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(MediaPlaceholder, [{ + key: "onlyAllowsImages", + value: function onlyAllowsImages() { + var allowedTypes = this.props.allowedTypes; + + if (!allowedTypes) { + return false; + } + + return Object(external_this_lodash_["every"])(allowedTypes, function (allowedType) { + return allowedType === 'image' || Object(external_this_lodash_["startsWith"])(allowedType, 'image/'); + }); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this.setState({ + src: Object(external_this_lodash_["get"])(this.props.value, ['src'], '') + }); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (Object(external_this_lodash_["get"])(prevProps.value, ['src'], '') !== Object(external_this_lodash_["get"])(this.props.value, ['src'], '')) { + this.setState({ + src: Object(external_this_lodash_["get"])(this.props.value, ['src'], '') + }); + } + } + }, { + key: "onChangeSrc", + value: function onChangeSrc(event) { + this.setState({ + src: event.target.value + }); + } + }, { + key: "onSubmitSrc", + value: function onSubmitSrc(event) { + event.preventDefault(); + + if (this.state.src && this.props.onSelectURL) { + this.props.onSelectURL(this.state.src); + this.closeURLInput(); + } + } + }, { + key: "onUpload", + value: function onUpload(event) { + this.onFilesUpload(event.target.files); + } + }, { + key: "onFilesUpload", + value: function onFilesUpload(files) { + var _this2 = this; + + var _this$props = this.props, + addToGallery = _this$props.addToGallery, + allowedTypes = _this$props.allowedTypes, + mediaUpload = _this$props.mediaUpload, + multiple = _this$props.multiple, + onError = _this$props.onError, + onSelect = _this$props.onSelect, + _this$props$onFilesPr = _this$props.onFilesPreUpload, + onFilesPreUpload = _this$props$onFilesPr === void 0 ? external_this_lodash_["noop"] : _this$props$onFilesPr; + onFilesPreUpload(files); + var setMedia; + + if (multiple) { + if (addToGallery) { + // To allow changes to a gallery to be made while uploads are in progress + // (including trigging multiple upload groups and removing already in place images), + // we must be able to add newMedia based on the current value of the Gallery + // whenever the setMedia function runs (not destructuring 'value' from props). + // Additionally, since the setMedia function runs multiple times per upload group + // and is passed newMedia containing every item in its group each time, we must + // also filter out whatever this upload group had previously returned to the + // gallery before adding and returning the image array with replacement newMedia + // values. + // Define an array to store urls from newMedia between subsequent function calls. + var lastMediaPassed = []; + + setMedia = function setMedia(newMedia) { + // Remove any images this upload group is responsible for (lastMediaPassed). + // Their replacements are contained in newMedia. + var filteredMedia = (_this2.props.value || []).filter(function (item) { + // If Item has id, only remove it if lastMediaPassed has an item with that id. + if (item.id) { + return !lastMediaPassed.some( // Be sure to convert to number for comparison. + function (_ref2) { + var id = _ref2.id; + return Number(id) === Number(item.id); + }); + } // Compare transient images via .includes since gallery may append extra info onto the url. + + + return !lastMediaPassed.some(function (_ref3) { + var urlSlug = _ref3.urlSlug; + return item.url.includes(urlSlug); + }); + }); // Return the filtered media array along with newMedia. + + onSelect(filteredMedia.concat(newMedia)); // Reset lastMediaPassed and set it with ids and urls from newMedia. + + lastMediaPassed = newMedia.map(function (media) { + // Add everything up to '.fileType' to compare via .includes. + var cutOffIndex = media.url.lastIndexOf('.'); + var urlSlug = media.url.slice(0, cutOffIndex); + return { + id: media.id, + urlSlug: urlSlug + }; + }); + }; + } else { + setMedia = onSelect; + } + } else { + setMedia = function setMedia(_ref4) { + var _ref5 = Object(slicedToArray["a" /* default */])(_ref4, 1), + media = _ref5[0]; + + return onSelect(media); + }; + } + + mediaUpload({ + allowedTypes: allowedTypes, + filesList: files, + onFileChange: setMedia, + onError: onError + }); + } + }, { + key: "openURLInput", + value: function openURLInput() { + this.setState({ + isURLInputVisible: true + }); + } + }, { + key: "closeURLInput", + value: function closeURLInput() { + this.setState({ + isURLInputVisible: false + }); + } + }, { + key: "renderPlaceholder", + value: function renderPlaceholder(content, onClick) { + var _this$props2 = this.props, + _this$props2$allowedT = _this$props2.allowedTypes, + allowedTypes = _this$props2$allowedT === void 0 ? [] : _this$props2$allowedT, + className = _this$props2.className, + icon = _this$props2.icon, + isAppender = _this$props2.isAppender, + _this$props2$labels = _this$props2.labels, + labels = _this$props2$labels === void 0 ? {} : _this$props2$labels, + onDoubleClick = _this$props2.onDoubleClick, + mediaPreview = _this$props2.mediaPreview, + notices = _this$props2.notices, + onSelectURL = _this$props2.onSelectURL, + mediaUpload = _this$props2.mediaUpload, + children = _this$props2.children; + var instructions = labels.instructions; + var title = labels.title; + + if (!mediaUpload && !onSelectURL) { + instructions = Object(external_this_wp_i18n_["__"])('To edit this block, you need permission to upload media.'); + } + + if (instructions === undefined || title === undefined) { + var isOneType = 1 === allowedTypes.length; + var isAudio = isOneType && 'audio' === allowedTypes[0]; + var isImage = isOneType && 'image' === allowedTypes[0]; + var isVideo = isOneType && 'video' === allowedTypes[0]; + + if (instructions === undefined && mediaUpload) { + instructions = Object(external_this_wp_i18n_["__"])('Upload a media file or pick one from your media library.'); + + if (isAudio) { + instructions = Object(external_this_wp_i18n_["__"])('Upload an audio file, pick one from your media library, or add one with a URL.'); + } else if (isImage) { + instructions = Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.'); + } else if (isVideo) { + instructions = Object(external_this_wp_i18n_["__"])('Upload a video file, pick one from your media library, or add one with a URL.'); + } + } + + if (title === undefined) { + title = Object(external_this_wp_i18n_["__"])('Media'); + + if (isAudio) { + title = Object(external_this_wp_i18n_["__"])('Audio'); + } else if (isImage) { + title = Object(external_this_wp_i18n_["__"])('Image'); + } else if (isVideo) { + title = Object(external_this_wp_i18n_["__"])('Video'); + } + } + } + + var placeholderClassName = classnames_default()('block-editor-media-placeholder', className, { + 'is-appender': isAppender + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: icon, + label: title, + instructions: instructions, + className: placeholderClassName, + notices: notices, + onClick: onClick, + onDoubleClick: onDoubleClick, + preview: mediaPreview + }, content, children); + } + }, { + key: "renderDropZone", + value: function renderDropZone() { + var _this$props3 = this.props, + disableDropZone = _this$props3.disableDropZone, + _this$props3$onHTMLDr = _this$props3.onHTMLDrop, + onHTMLDrop = _this$props3$onHTMLDr === void 0 ? external_this_lodash_["noop"] : _this$props3$onHTMLDr; + + if (disableDropZone) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { + onFilesDrop: this.onFilesUpload, + onHTMLDrop: onHTMLDrop + }); + } + }, { + key: "renderCancelLink", + value: function renderCancelLink() { + var onCancel = this.props.onCancel; + return onCancel && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-media-placeholder__cancel-button", + title: Object(external_this_wp_i18n_["__"])('Cancel'), + isLink: true, + onClick: onCancel + }, Object(external_this_wp_i18n_["__"])('Cancel')); + } + }, { + key: "renderUrlSelectionUI", + value: function renderUrlSelectionUI() { + var onSelectURL = this.props.onSelectURL; + + if (!onSelectURL) { + return null; + } + + var _this$state = this.state, + isURLInputVisible = _this$state.isURLInputVisible, + src = _this$state.src; + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-media-placeholder__url-input-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-media-placeholder__button", + onClick: this.openURLInput, + isPressed: isURLInputVisible, + isTertiary: true + }, Object(external_this_wp_i18n_["__"])('Insert from URL')), isURLInputVisible && Object(external_this_wp_element_["createElement"])(media_placeholder_InsertFromURLPopover, { + src: src, + onChange: this.onChangeSrc, + onSubmit: this.onSubmitSrc, + onClose: this.closeURLInput + })); + } + }, { + key: "renderMediaUploadChecked", + value: function renderMediaUploadChecked() { + var _this3 = this; + + var _this$props4 = this.props, + accept = _this$props4.accept, + addToGallery = _this$props4.addToGallery, + _this$props4$allowedT = _this$props4.allowedTypes, + allowedTypes = _this$props4$allowedT === void 0 ? [] : _this$props4$allowedT, + isAppender = _this$props4.isAppender, + mediaUpload = _this$props4.mediaUpload, + _this$props4$multiple = _this$props4.multiple, + multiple = _this$props4$multiple === void 0 ? false : _this$props4$multiple, + onSelect = _this$props4.onSelect, + _this$props4$value = _this$props4.value, + value = _this$props4$value === void 0 ? {} : _this$props4$value; + var mediaLibraryButton = Object(external_this_wp_element_["createElement"])(media_upload, { + addToGallery: addToGallery, + gallery: multiple && this.onlyAllowsImages(), + multiple: multiple, + onSelect: onSelect, + allowedTypes: allowedTypes, + value: Object(external_this_lodash_["isArray"])(value) ? value.map(function (_ref6) { + var id = _ref6.id; + return id; + }) : value.id, + render: function render(_ref7) { + var open = _ref7.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isTertiary: true, + onClick: function onClick(event) { + event.stopPropagation(); + open(); + } + }, Object(external_this_wp_i18n_["__"])('Media Library')); + } + }); + + if (mediaUpload && isAppender) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + onChange: this.onUpload, + accept: accept, + multiple: multiple, + render: function render(_ref8) { + var openFileDialog = _ref8.openFileDialog; + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isPrimary: true, + className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button') + }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, _this3.renderUrlSelectionUI(), _this3.renderCancelLink()); + return _this3.renderPlaceholder(content, openFileDialog); + } + })); + } + + if (mediaUpload) { + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderDropZone(), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + isPrimary: true, + className: classnames_default()('block-editor-media-placeholder__button', 'block-editor-media-placeholder__upload-button'), + onChange: this.onUpload, + accept: accept, + multiple: multiple + }, Object(external_this_wp_i18n_["__"])('Upload')), mediaLibraryButton, this.renderUrlSelectionUI(), this.renderCancelLink()); + return this.renderPlaceholder(content); + } + + return this.renderPlaceholder(mediaLibraryButton); + } + }, { + key: "render", + value: function render() { + var _this$props5 = this.props, + disableMediaButtons = _this$props5.disableMediaButtons, + dropZoneUIOnly = _this$props5.dropZoneUIOnly; + + if (dropZoneUIOnly || disableMediaButtons) { + if (dropZoneUIOnly) { + external_this_wp_deprecated_default()('wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop', { + alternative: 'disableMediaButtons' + }); + } + + return Object(external_this_wp_element_["createElement"])(check, null, this.renderDropZone()); + } + + return Object(external_this_wp_element_["createElement"])(check, { + fallback: this.renderPlaceholder(this.renderUrlSelectionUI()) + }, this.renderMediaUploadChecked()); + } + }]); + + return MediaPlaceholder; +}(external_this_wp_element_["Component"]); +var media_placeholder_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + mediaUpload: getSettings().mediaUpload + }; +}); +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/media-placeholder/README.md + */ + +/* harmony default export */ var media_placeholder = (Object(external_this_wp_compose_["compose"])(media_placeholder_applyWithSelect, Object(external_this_wp_components_["withFilters"])('editor.MediaPlaceholder'))(media_placeholder_MediaPlaceholder)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editable-text/index.js + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var EditableText = Object(external_this_wp_element_["forwardRef"])(function (props, ref) { + return Object(external_this_wp_element_["createElement"])(rich_text, Object(esm_extends["a" /* default */])({ + ref: ref + }, props, { + __unstableDisableFormats: true, + preserveWhiteSpace: true + })); +}); + +EditableText.Content = function (_ref) { + var _ref$value = _ref.value, + value = _ref$value === void 0 ? '' : _ref$value, + _ref$tagName = _ref.tagName, + Tag = _ref$tagName === void 0 ? 'div' : _ref$tagName, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["value", "tagName"]); + + return Object(external_this_wp_element_["createElement"])(Tag, props, value); +}; +/** + * Renders an editable text input in which text formatting is not allowed. + */ + + +/* harmony default export */ var editable_text = (EditableText); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/plain-text/index.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/plain-text/README.md + */ + +var PlainText = Object(external_this_wp_element_["forwardRef"])(function (_ref, ref) { + var __experimentalVersion = _ref.__experimentalVersion, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__experimentalVersion"]); + + if (__experimentalVersion === 2) { + return Object(external_this_wp_element_["createElement"])(editable_text, Object(esm_extends["a" /* default */])({ + ref: ref + }, props)); + } + + var className = props.className, + _onChange = props.onChange, + remainingProps = Object(objectWithoutProperties["a" /* default */])(props, ["className", "onChange"]); + + return Object(external_this_wp_element_["createElement"])(lib_default.a, Object(esm_extends["a" /* default */])({ + ref: ref, + className: classnames_default()('block-editor-plain-text', className), + onChange: function onChange(event) { + return _onChange(event.target.value); + } + }, remainingProps)); +}); +/* harmony default export */ var plain_text = (PlainText); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/label.js + + +/** + * WordPress dependencies + */ + + + + +function ResponsiveBlockControlLabel(_ref) { + var property = _ref.property, + viewport = _ref.viewport, + desc = _ref.desc; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(ResponsiveBlockControlLabel); + var accessibleLabel = desc || Object(external_this_wp_i18n_["sprintf"])( + /* translators: 1: property name. 2: viewport name. */ + Object(external_this_wp_i18n_["_x"])('Controls the %1$s property for %2$s viewports.', 'Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size.'), property, viewport.label); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("span", { + "aria-describedby": "rbc-desc-".concat(instanceId) + }, viewport.label), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "span", + id: "rbc-desc-".concat(instanceId) + }, accessibleLabel)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +function ResponsiveBlockControl(props) { + var title = props.title, + property = props.property, + toggleLabel = props.toggleLabel, + onIsResponsiveChange = props.onIsResponsiveChange, + renderDefaultControl = props.renderDefaultControl, + renderResponsiveControls = props.renderResponsiveControls, + _props$isResponsive = props.isResponsive, + isResponsive = _props$isResponsive === void 0 ? false : _props$isResponsive, + _props$defaultLabel = props.defaultLabel, + defaultLabel = _props$defaultLabel === void 0 ? { + id: 'all', + + /* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */ + label: Object(external_this_wp_i18n_["__"])('All') + } : _props$defaultLabel, + _props$viewports = props.viewports, + viewports = _props$viewports === void 0 ? [{ + id: 'small', + label: Object(external_this_wp_i18n_["__"])('Small screens') + }, { + id: 'medium', + label: Object(external_this_wp_i18n_["__"])('Medium screens') + }, { + id: 'large', + label: Object(external_this_wp_i18n_["__"])('Large screens') + }] : _props$viewports; + + if (!title || !property || !renderDefaultControl) { + return null; + } + + var toggleControlLabel = toggleLabel || Object(external_this_wp_i18n_["sprintf"])( + /* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */ + Object(external_this_wp_i18n_["__"])('Use the same %s on all screensizes.'), property); + /* translators: 'Help text for the responsive mode toggle control.' */ + + var toggleHelpText = Object(external_this_wp_i18n_["__"])('Toggle between using the same value for all screen sizes or using a unique value per screen size.'); + + var defaultControl = renderDefaultControl(Object(external_this_wp_element_["createElement"])(ResponsiveBlockControlLabel, { + property: property, + viewport: defaultLabel + }), defaultLabel); + + var defaultResponsiveControls = function defaultResponsiveControls() { + return viewports.map(function (viewport) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], { + key: viewport.id + }, renderDefaultControl(Object(external_this_wp_element_["createElement"])(ResponsiveBlockControlLabel, { + property: property, + viewport: viewport + }), viewport)); + }); + }; + + return Object(external_this_wp_element_["createElement"])("fieldset", { + className: "block-editor-responsive-block-control" + }, Object(external_this_wp_element_["createElement"])("legend", { + className: "block-editor-responsive-block-control__title" + }, title), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-responsive-block-control__inner" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + className: "block-editor-responsive-block-control__toggle", + label: toggleControlLabel, + checked: !isResponsive, + onChange: onIsResponsiveChange, + help: toggleHelpText + }), Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('block-editor-responsive-block-control__group', { + 'is-responsive': isResponsive + }) + }, !isResponsive && defaultControl, isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls())))); +} + +/* harmony default export */ var responsive_block_control = (ResponsiveBlockControl); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/shortcut.js + + + + + + + + + +function shortcut_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (shortcut_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function shortcut_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + + +var shortcut_RichTextShortcut = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(RichTextShortcut, _Component); + + var _super = shortcut_createSuper(RichTextShortcut); + + function RichTextShortcut() { + var _this; + + Object(classCallCheck["a" /* default */])(this, RichTextShortcut); + + _this = _super.apply(this, arguments); + _this.onUse = _this.onUse.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(RichTextShortcut, [{ + key: "onUse", + value: function onUse() { + this.props.onUse(); + return false; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + character = _this$props.character, + type = _this$props.type; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"][type](character), this.onUse) + }); + } + }]); + + return RichTextShortcut; +}(external_this_wp_element_["Component"]); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/toolbar-button.js + + + + +/** + * WordPress dependencies + */ + + +function RichTextToolbarButton(_ref) { + var name = _ref.name, + shortcutType = _ref.shortcutType, + shortcutCharacter = _ref.shortcutCharacter, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["name", "shortcutType", "shortcutCharacter"]); + + var shortcut; + var fillName = 'RichText.ToolbarControls'; + + if (name) { + fillName += ".".concat(name); + } + + if (shortcutType && shortcutCharacter) { + shortcut = external_this_wp_keycodes_["displayShortcut"][shortcutType](shortcutCharacter); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Fill"], { + name: fillName + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], Object(esm_extends["a" /* default */])({}, props, { + shortcut: shortcut + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/input-event.js + + + + + + + +function input_event_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (input_event_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function input_event_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + +var input_event_unstableRichTextInputEvent = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(__unstableRichTextInputEvent, _Component); + + var _super = input_event_createSuper(__unstableRichTextInputEvent); + + function __unstableRichTextInputEvent() { + var _this; + + Object(classCallCheck["a" /* default */])(this, __unstableRichTextInputEvent); + + _this = _super.apply(this, arguments); + _this.onInput = _this.onInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(__unstableRichTextInputEvent, [{ + key: "onInput", + value: function onInput(event) { + if (event.inputType === this.props.inputType) { + this.props.onInput(); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + document.addEventListener('input', this.onInput, true); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + document.removeEventListener('input', this.onInput, true); + } + }, { + key: "render", + value: function render() { + return null; + } + }]); + + return __unstableRichTextInputEvent; +}(external_this_wp_element_["Component"]); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/tool-selector/index.js + + + +/** + * WordPress dependencies + */ + + + + +var editIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + width: "24", + height: "24", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z" +})); +var selectIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + width: "24", + height: "24", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z" +})); + +function ToolSelector(props, ref) { + var isNavigationTool = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').isNavigationMode(); + }, []); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + setNavigationMode = _useDispatch.setNavigationMode; + + var onSwitchMode = function onSwitchMode(mode) { + setNavigationMode(mode === 'edit' ? false : true); + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + renderToggle: function renderToggle(_ref) { + var isOpen = _ref.isOpen, + onToggle = _ref.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], Object(esm_extends["a" /* default */])({}, props, { + ref: ref, + icon: isNavigationTool ? selectIcon : editIcon, + "aria-expanded": isOpen, + onClick: onToggle, + label: Object(external_this_wp_i18n_["__"])('Tools') + })); + }, + position: "bottom right", + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { + role: "menu", + "aria-label": Object(external_this_wp_i18n_["__"])('Tools') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItemsChoice"], { + value: isNavigationTool ? 'select' : 'edit', + onSelect: onSwitchMode, + choices: [{ + value: 'edit', + label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, editIcon, Object(external_this_wp_i18n_["__"])('Edit')) + }, { + value: 'select', + label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, selectIcon, Object(external_this_wp_i18n_["__"])('Select')) + }] + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-tool-selector__help" + }, Object(external_this_wp_i18n_["__"])('Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.'))); + } + }); +} + +/* harmony default export */ var tool_selector = (Object(external_this_wp_element_["forwardRef"])(ToolSelector)); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js +var library_link = __webpack_require__(170); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js + + +/** + * WordPress dependencies + */ + +var arrowLeft = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z" +})); +/* harmony default export */ var arrow_left = (arrowLeft); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/button.js + + + + + + + + +function button_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (button_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function button_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var button_URLInputButton = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(URLInputButton, _Component); + + var _super = button_createSuper(URLInputButton); + + function URLInputButton() { + var _this; + + Object(classCallCheck["a" /* default */])(this, URLInputButton); + + _this = _super.apply(this, arguments); + _this.toggle = _this.toggle.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.submitLink = _this.submitLink.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + expanded: false + }; + return _this; + } + + Object(createClass["a" /* default */])(URLInputButton, [{ + key: "toggle", + value: function toggle() { + this.setState({ + expanded: !this.state.expanded + }); + } + }, { + key: "submitLink", + value: function submitLink(event) { + event.preventDefault(); + this.toggle(); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + url = _this$props.url, + onChange = _this$props.onChange; + var expanded = this.state.expanded; + var buttonLabel = url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-input__button" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: library_link["a" /* default */], + label: buttonLabel, + onClick: this.toggle, + className: "components-toolbar__control", + isPressed: !!url + }), expanded && Object(external_this_wp_element_["createElement"])("form", { + className: "block-editor-url-input__button-modal", + onSubmit: this.submitLink + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-url-input__button-modal-line" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "block-editor-url-input__back", + icon: arrow_left, + label: Object(external_this_wp_i18n_["__"])('Close'), + onClick: this.toggle + }), Object(external_this_wp_element_["createElement"])(url_input, { + value: url || '', + onChange: onChange + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: keyboard_return["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Submit'), + type: "submit" + })))); + } + }]); + + return URLInputButton; +}(external_this_wp_element_["Component"]); +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/url-input/README.md + */ + + +/* harmony default export */ var url_input_button = (button_URLInputButton); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js +var library_close = __webpack_require__(133); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/image-url-input-ui.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +var LINK_DESTINATION_NONE = 'none'; +var LINK_DESTINATION_CUSTOM = 'custom'; +var LINK_DESTINATION_MEDIA = 'media'; +var LINK_DESTINATION_ATTACHMENT = 'attachment'; +var NEW_TAB_REL = ['noreferrer', 'noopener']; +var image_url_input_ui_icon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" +})); + +var image_url_input_ui_ImageURLInputUI = function ImageURLInputUI(_ref) { + var linkDestination = _ref.linkDestination, + onChangeUrl = _ref.onChangeUrl, + url = _ref.url, + _ref$mediaType = _ref.mediaType, + mediaType = _ref$mediaType === void 0 ? 'image' : _ref$mediaType, + mediaUrl = _ref.mediaUrl, + mediaLink = _ref.mediaLink, + linkTarget = _ref.linkTarget, + linkClass = _ref.linkClass, + rel = _ref.rel; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isOpen = _useState2[0], + setIsOpen = _useState2[1]; + + var openLinkUI = Object(external_this_wp_element_["useCallback"])(function () { + setIsOpen(true); + }); + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isEditingLink = _useState4[0], + setIsEditingLink = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(null), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + urlInput = _useState6[0], + setUrlInput = _useState6[1]; + + var autocompleteRef = Object(external_this_wp_element_["useRef"])(null); + + var stopPropagation = function stopPropagation(event) { + event.stopPropagation(); + }; + + var stopPropagationRelevantKeys = function stopPropagationRelevantKeys(event) { + if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) { + // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. + event.stopPropagation(); + } + }; + + var startEditLink = Object(external_this_wp_element_["useCallback"])(function () { + if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) { + setUrlInput(''); + } + + setIsEditingLink(true); + }); + var stopEditLink = Object(external_this_wp_element_["useCallback"])(function () { + setIsEditingLink(false); + }); + var closeLinkUI = Object(external_this_wp_element_["useCallback"])(function () { + setUrlInput(null); + stopEditLink(); + setIsOpen(false); + }); + + var removeNewTabRel = function removeNewTabRel(currentRel) { + var newRel = currentRel; + + if (currentRel !== undefined && !Object(external_this_lodash_["isEmpty"])(newRel)) { + if (!Object(external_this_lodash_["isEmpty"])(newRel)) { + Object(external_this_lodash_["each"])(NEW_TAB_REL, function (relVal) { + var regExp = new RegExp('\\b' + relVal + '\\b', 'gi'); + newRel = newRel.replace(regExp, ''); + }); // Only trim if NEW_TAB_REL values was replaced. + + if (newRel !== currentRel) { + newRel = newRel.trim(); + } + + if (Object(external_this_lodash_["isEmpty"])(newRel)) { + newRel = undefined; + } + } + } + + return newRel; + }; + + var getUpdatedLinkTargetSettings = function getUpdatedLinkTargetSettings(value) { + var newLinkTarget = value ? '_blank' : undefined; + var updatedRel; + + if (!newLinkTarget && !rel) { + updatedRel = undefined; + } else { + updatedRel = removeNewTabRel(rel); + } + + return { + linkTarget: newLinkTarget, + rel: updatedRel + }; + }; + + var onFocusOutside = Object(external_this_wp_element_["useCallback"])(function () { + return function (event) { + // The autocomplete suggestions list renders in a separate popover (in a portal), + // so onFocusOutside fails to detect that a click on a suggestion occurred in the + // LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and + // return to avoid the popover being closed. + var autocompleteElement = autocompleteRef.current; + + if (autocompleteElement && autocompleteElement.contains(event.target)) { + return; + } + + setIsOpen(false); + setUrlInput(null); + stopEditLink(); + }; + }); + var onSubmitLinkChange = Object(external_this_wp_element_["useCallback"])(function () { + return function (event) { + if (urlInput) { + onChangeUrl({ + href: urlInput + }); + } + + stopEditLink(); + setUrlInput(null); + event.preventDefault(); + }; + }); + var onLinkRemove = Object(external_this_wp_element_["useCallback"])(function () { + onChangeUrl({ + linkDestination: LINK_DESTINATION_NONE, + href: '' + }); + }); + + var getLinkDestinations = function getLinkDestinations() { + return [{ + linkDestination: LINK_DESTINATION_MEDIA, + title: Object(external_this_wp_i18n_["__"])('Media File'), + url: mediaType === 'image' ? mediaUrl : undefined, + icon: image_url_input_ui_icon + }, { + linkDestination: LINK_DESTINATION_ATTACHMENT, + title: Object(external_this_wp_i18n_["__"])('Attachment Page'), + url: mediaType === 'image' ? mediaLink : undefined, + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0 0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" + })) + }]; + }; + + var onSetHref = function onSetHref(value) { + var linkDestinations = getLinkDestinations(); + var linkDestinationInput; + + if (!value) { + linkDestinationInput = LINK_DESTINATION_NONE; + } else { + linkDestinationInput = (Object(external_this_lodash_["find"])(linkDestinations, function (destination) { + return destination.url === value; + }) || { + linkDestination: LINK_DESTINATION_CUSTOM + }).linkDestination; + } + + onChangeUrl({ + linkDestination: linkDestinationInput, + href: value + }); + }; + + var onSetNewTab = function onSetNewTab(value) { + var updatedLinkTarget = getUpdatedLinkTargetSettings(value); + onChangeUrl(updatedLinkTarget); + }; + + var onSetLinkRel = function onSetLinkRel(value) { + onChangeUrl({ + rel: value + }); + }; + + var onSetLinkClass = function onSetLinkClass(value) { + onChangeUrl({ + linkClass: value + }); + }; + + var advancedOptions = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open in new tab'), + onChange: onSetNewTab, + checked: linkTarget === '_blank' + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link Rel'), + value: removeNewTabRel(rel) || '', + onChange: onSetLinkRel, + onKeyPress: stopPropagation, + onKeyDown: stopPropagationRelevantKeys + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link CSS Class'), + value: linkClass || '', + onKeyPress: stopPropagation, + onKeyDown: stopPropagationRelevantKeys, + onChange: onSetLinkClass + })); + var linkEditorValue = urlInput !== null ? urlInput : url; + var urlLabel = (Object(external_this_lodash_["find"])(getLinkDestinations(), ['linkDestination', linkDestination]) || {}).title; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + icon: library_link["a" /* default */], + className: "components-toolbar__control", + label: url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'), + "aria-expanded": isOpen, + onClick: openLinkUI + }), isOpen && Object(external_this_wp_element_["createElement"])(url_popover, { + onFocusOutside: onFocusOutside(), + onClose: closeLinkUI, + renderSettings: function renderSettings() { + return advancedOptions; + }, + additionalControls: !linkEditorValue && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_lodash_["map"])(getLinkDestinations(), function (link) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + key: link.linkDestination, + icon: link.icon, + onClick: function onClick() { + setUrlInput(null); + onSetHref(link.url); + stopEditLink(); + } + }, link.title); + })) + }, (!url || isEditingLink) && Object(external_this_wp_element_["createElement"])(url_popover.LinkEditor, { + className: "block-editor-format-toolbar__link-container-content", + value: linkEditorValue, + onChangeInputValue: setUrlInput, + onKeyDown: stopPropagationRelevantKeys, + onKeyPress: stopPropagation, + onSubmit: onSubmitLinkChange(), + autocompleteRef: autocompleteRef + }), url && !isEditingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(url_popover.LinkViewer, { + className: "block-editor-format-toolbar__link-container-content", + onKeyPress: stopPropagation, + url: url, + onEditLinkClick: startEditLink, + urlLabel: urlLabel + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + icon: library_close["a" /* default */], + label: Object(external_this_wp_i18n_["__"])('Remove link'), + onClick: onLinkRemove + })))); +}; + + + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js +var library_check = __webpack_require__(171); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preview-options/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +function PreviewOptions(_ref) { + var children = _ref.children, + className = _ref.className, + _ref$isEnabled = _ref.isEnabled, + isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled, + deviceType = _ref.deviceType, + setDeviceType = _ref.setDeviceType; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + className: "block-editor-post-preview__dropdown", + contentClassName: classnames_default()(className, 'block-editor-post-preview__dropdown-content'), + popoverProps: { + role: 'menu' + }, + position: "bottom left", + renderToggle: function renderToggle(_ref2) { + var isOpen = _ref2.isOpen, + onToggle = _ref2.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + onClick: onToggle, + className: "block-editor-post-preview__button-toggle", + "aria-expanded": isOpen, + disabled: !isEnabled + }, Object(external_this_wp_i18n_["__"])('Preview'), Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + icon: chevron_down["a" /* default */] + })); + }, + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "block-editor-post-preview__button-resize", + onClick: function onClick() { + return setDeviceType('Desktop'); + }, + icon: deviceType === 'Desktop' && library_check["a" /* default */] + }, Object(external_this_wp_i18n_["__"])('Desktop')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "block-editor-post-preview__button-resize", + onClick: function onClick() { + return setDeviceType('Tablet'); + }, + icon: deviceType === 'Tablet' && library_check["a" /* default */] + }, Object(external_this_wp_i18n_["__"])('Tablet')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "block-editor-post-preview__button-resize", + onClick: function onClick() { + return setDeviceType('Mobile'); + }, + icon: deviceType === 'Mobile' && library_check["a" /* default */] + }, Object(external_this_wp_i18n_["__"])('Mobile'))), children); + } + }); +} + +// EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js +var css_mediaquery = __webpack_require__(256); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-simulated-media-query/index.js +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +var ENABLED_MEDIA_QUERY = '(min-width:0px)'; +var DISABLED_MEDIA_QUERY = '(min-width:999999px)'; +var VALID_MEDIA_QUERY_REGEX = /\((min|max)-width:[^\(]*?\)/g; + +function getStyleSheetsThatMatchHostname() { + if (typeof window === 'undefined') { + return []; + } + + return Object(external_this_lodash_["filter"])(Object(external_this_lodash_["get"])(window, ['document', 'styleSheets'], []), function (styleSheet) { + if (!styleSheet.href) { + return false; + } + + return Object(external_this_wp_url_["getProtocol"])(styleSheet.href) === window.location.protocol && Object(external_this_wp_url_["getAuthority"])(styleSheet.href) === window.location.host; + }); +} + +function isReplaceableMediaRule(rule) { + if (!rule.media) { + return false; + } // Need to use "media.mediaText" instead of "conditionText" for IE support. + + + return !!rule.media.mediaText.match(VALID_MEDIA_QUERY_REGEX); +} + +function replaceRule(styleSheet, newRuleText, index) { + styleSheet.deleteRule(index); + styleSheet.insertRule(newRuleText, index); +} + +function replaceMediaQueryWithWidthEvaluation(ruleText, widthValue) { + return ruleText.replace(VALID_MEDIA_QUERY_REGEX, function (matchedSubstring) { + if (Object(css_mediaquery["match"])(matchedSubstring, { + type: 'screen', + width: widthValue + })) { + return ENABLED_MEDIA_QUERY; + } + + return DISABLED_MEDIA_QUERY; + }); +} +/** + * Function that manipulates media queries from stylesheets to simulate a given + * viewport width. + * + * @param {string} marker CSS selector string defining start and end of + * manipulable styles. + * @param {number?} width Viewport width to simulate. If provided null, the + * stylesheets will not be modified. + */ + + +function useSimulatedMediaQuery(marker, width) { + Object(external_this_wp_element_["useEffect"])(function () { + if (!width) { + return; + } + + var styleSheets = getStyleSheetsThatMatchHostname(); + var originalStyles = []; + styleSheets.forEach(function (styleSheet, styleSheetIndex) { + var relevantSection = false; + + for (var ruleIndex = 0; ruleIndex < styleSheet.cssRules.length; ++ruleIndex) { + var rule = styleSheet.cssRules[ruleIndex]; + + if (rule.type !== window.CSSRule.STYLE_RULE && rule.type !== window.CSSRule.MEDIA_RULE) { + continue; + } + + if (!relevantSection && !!rule.cssText.match(new RegExp("#start-".concat(marker)))) { + relevantSection = true; + } + + if (relevantSection && !!rule.cssText.match(new RegExp("#end-".concat(marker)))) { + relevantSection = false; + } + + if (!relevantSection || !isReplaceableMediaRule(rule)) { + continue; + } + + var ruleText = rule.cssText; + + if (!originalStyles[styleSheetIndex]) { + originalStyles[styleSheetIndex] = []; + } + + originalStyles[styleSheetIndex][ruleIndex] = ruleText; + replaceRule(styleSheet, replaceMediaQueryWithWidthEvaluation(ruleText, width), ruleIndex); + } + }); + return function () { + originalStyles.forEach(function (rulesCollection, styleSheetIndex) { + if (!rulesCollection) { + return; + } + + for (var ruleIndex = 0; ruleIndex < rulesCollection.length; ++ruleIndex) { + var originalRuleText = rulesCollection[ruleIndex]; + + if (originalRuleText) { + replaceRule(styleSheets[styleSheetIndex], originalRuleText, ruleIndex); + } + } + }); + }; + }, [width]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-resize-canvas/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * Function to resize the editor window. + * + * @param {string} deviceType Used for determining the size of the container (e.g. Desktop, Tablet, Mobile) + * + * @return {Object} Inline styles to be added to resizable container. + */ + +function useResizeCanvas(deviceType) { + var _useState = Object(external_this_wp_element_["useState"])(window.innerWidth), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + actualWidth = _useState2[0], + updateActualWidth = _useState2[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + if (deviceType === 'Desktop') { + return; + } + + var resizeListener = function resizeListener() { + return updateActualWidth(window.innerWidth); + }; + + window.addEventListener('resize', resizeListener); + return function () { + window.removeEventListener('resize', resizeListener); + }; + }, [deviceType]); + + var getCanvasWidth = function getCanvasWidth(device) { + var deviceWidth; + + switch (device) { + case 'Tablet': + deviceWidth = 780; + break; + + case 'Mobile': + deviceWidth = 360; + break; + + default: + return null; + } + + return deviceWidth < actualWidth ? deviceWidth : actualWidth; + }; + + var marginValue = function marginValue() { + return window.innerHeight < 800 ? 36 : 72; + }; + + var contentInlineStyles = function contentInlineStyles(device) { + switch (device) { + case 'Tablet': + case 'Mobile': + return { + width: getCanvasWidth(device), + margin: marginValue() + 'px auto', + flexGrow: 0, + maxHeight: device === 'Mobile' ? '768px' : '1024px', + overflowY: 'auto' + }; + + default: + return null; + } + }; + + useSimulatedMediaQuery('resizable-editor-section', getCanvasWidth(deviceType)); + return contentInlineStyles(deviceType); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/skip-to-selected-block/index.js + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_ref) { + var selectedBlockClientId = _ref.selectedBlockClientId; + + var onClick = function onClick() { + var selectedBlockElement = getBlockDOMNode(selectedBlockClientId); + selectedBlockElement.focus(); + }; + + return selectedBlockClientId && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSecondary: true, + className: "block-editor-skip-to-selected-block", + onClick: onClick + }, Object(external_this_wp_i18n_["__"])('Skip to the selected block')); +}; + +/* harmony default export */ var skip_to_selected_block = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + selectedBlockClientId: select('core/block-editor').getBlockSelectionStart() + }; +})(skip_to_selected_block_SkipToSelectedBlock)); + +// EXTERNAL MODULE: external {"this":["wp","wordcount"]} +var external_this_wp_wordcount_ = __webpack_require__(141); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +function MultiSelectionInspector(_ref) { + var blocks = _ref.blocks; + var words = Object(external_this_wp_wordcount_["count"])(Object(external_this_wp_blocks_["serialize"])(blocks), 'words'); + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-multi-selection-inspector__card" + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" + })), + showColors: true + }), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-multi-selection-inspector__card-content" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-multi-selection-inspector__card-title" + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of blocks */ + Object(external_this_wp_i18n_["_n"])('%d block', '%d blocks', blocks.length), blocks.length)), Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-multi-selection-inspector__card-description" + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of words */ + Object(external_this_wp_i18n_["_n"])('%d word', '%d words', words), words)))); +} + +/* harmony default export */ var multi_selection_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getMultiSelectedBlocks = _select.getMultiSelectedBlocks; + + return { + blocks: getMultiSelectedBlocks() + }; +})(MultiSelectionInspector)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-style-picker/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function DefaultStylePicker(_ref) { + var blockName = _ref.blockName; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var settings = select('core/block-editor').getSettings(); + var preferredStyleVariations = settings.__experimentalPreferredStyleVariations; + return { + preferredStyle: Object(external_this_lodash_["get"])(preferredStyleVariations, ['value', blockName]), + onUpdatePreferredStyleVariations: Object(external_this_lodash_["get"])(preferredStyleVariations, ['onChange'], null), + styles: select('core/blocks').getBlockStyles(blockName) + }; + }, [blockName]), + preferredStyle = _useSelect.preferredStyle, + onUpdatePreferredStyleVariations = _useSelect.onUpdatePreferredStyleVariations, + styles = _useSelect.styles; + + var selectOptions = Object(external_this_wp_element_["useMemo"])(function () { + return [{ + label: Object(external_this_wp_i18n_["__"])('Not set'), + value: '' + }].concat(Object(toConsumableArray["a" /* default */])(styles.map(function (_ref2) { + var label = _ref2.label, + name = _ref2.name; + return { + label: label, + value: name + }; + }))); + }, [styles]); + var selectOnChange = Object(external_this_wp_element_["useCallback"])(function (blockStyle) { + onUpdatePreferredStyleVariations(blockName, blockStyle); + }, [blockName, onUpdatePreferredStyleVariations]); + return onUpdatePreferredStyleVariations && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + options: selectOptions, + value: preferredStyle || '', + label: Object(external_this_wp_i18n_["__"])('Default Style'), + onChange: selectOnChange + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-inspector/index.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + + + + + +var block_inspector_BlockInspector = function BlockInspector(_ref) { + var blockType = _ref.blockType, + count = _ref.count, + hasBlockStyles = _ref.hasBlockStyles, + selectedBlockClientId = _ref.selectedBlockClientId, + selectedBlockName = _ref.selectedBlockName, + _ref$showNoBlockSelec = _ref.showNoBlockSelectedMessage, + showNoBlockSelectedMessage = _ref$showNoBlockSelec === void 0 ? true : _ref$showNoBlockSelec; + + if (count > 1) { + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-inspector" + }, Object(external_this_wp_element_["createElement"])(multi_selection_inspector, null), Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, { + bubblesVirtually: true + })); + } + + var isSelectedBlockUnregistered = selectedBlockName === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); + /* + * If the selected block is of an unregistered type, avoid showing it as an actual selection + * because we want the user to focus on the unregistered block warning, not block settings. + */ + + if (!blockType || !selectedBlockClientId || isSelectedBlockUnregistered) { + if (showNoBlockSelectedMessage) { + return Object(external_this_wp_element_["createElement"])("span", { + className: "block-editor-block-inspector__no-blocks" + }, Object(external_this_wp_i18n_["__"])('No block selected.')); + } + + return null; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-editor-block-inspector" + }, Object(external_this_wp_element_["createElement"])(block_card, { + blockType: blockType + }), hasBlockStyles && Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Styles') + }, Object(external_this_wp_element_["createElement"])(block_styles, { + clientId: selectedBlockClientId + }), Object(external_this_wp_blocks_["hasBlockSupport"])(blockType.name, 'defaultStylePicker', true) && Object(external_this_wp_element_["createElement"])(DefaultStylePicker, { + blockName: blockType.name + }))), Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, { + bubblesVirtually: true + }), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(block_inspector_AdvancedControls, { + slotName: inspector_advanced_controls.slotName + })), Object(external_this_wp_element_["createElement"])(skip_to_selected_block, { + key: "back" + })); +}; + +var block_inspector_AdvancedControls = function AdvancedControls(_ref2) { + var slotName = _ref2.slotName; + var slot = Object(external_this_wp_components_["__experimentalUseSlot"])(slotName); + var hasFills = Boolean(slot.fills && slot.fills.length); + + if (!hasFills) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + className: "block-editor-block-inspector__advanced", + title: Object(external_this_wp_i18n_["__"])('Advanced'), + initialOpen: false + }, Object(external_this_wp_element_["createElement"])(inspector_advanced_controls.Slot, { + bubblesVirtually: true + })); +}; + +/* harmony default export */ var block_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getSelectedBlockCount = _select.getSelectedBlockCount, + getBlockName = _select.getBlockName; + + var _select2 = select('core/blocks'), + getBlockStyles = _select2.getBlockStyles; + + var selectedBlockClientId = getSelectedBlockClientId(); + var selectedBlockName = selectedBlockClientId && getBlockName(selectedBlockClientId); + var blockType = selectedBlockClientId && Object(external_this_wp_blocks_["getBlockType"])(selectedBlockName); + var blockStyles = selectedBlockClientId && getBlockStyles(selectedBlockName); + return { + count: getSelectedBlockCount(), + hasBlockStyles: blockStyles && blockStyles.length > 0, + selectedBlockName: selectedBlockName, + selectedBlockClientId: selectedBlockClientId, + blockType: blockType + }; +})(block_inspector_BlockInspector)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-selection-clearer/index.js + + + + + + + + + +function block_selection_clearer_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_selection_clearer_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function block_selection_clearer_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +var block_selection_clearer_BlockSelectionClearer = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(BlockSelectionClearer, _Component); + + var _super = block_selection_clearer_createSuper(BlockSelectionClearer); + + function BlockSelectionClearer() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockSelectionClearer); + + _this = _super.apply(this, arguments); + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.clearSelectionIfFocusTarget = _this.clearSelectionIfFocusTarget.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(BlockSelectionClearer, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + /** + * Clears the selected block on focus if the container is the target of the + * focus. This assumes no other descendents have received focus until event + * has bubbled to the container. + * + * @param {FocusEvent} event Focus event. + */ + + }, { + key: "clearSelectionIfFocusTarget", + value: function clearSelectionIfFocusTarget(event) { + var _this$props = this.props, + hasSelectedBlock = _this$props.hasSelectedBlock, + hasMultiSelection = _this$props.hasMultiSelection, + clearSelectedBlock = _this$props.clearSelectedBlock; + var hasSelection = hasSelectedBlock || hasMultiSelection; + + if (event.target === this.container && hasSelection) { + clearSelectedBlock(); + } + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + tabIndex: -1, + onFocus: this.clearSelectionIfFocusTarget, + ref: this.bindContainer + }, Object(external_this_lodash_["omit"])(this.props, ['clearSelectedBlock', 'hasSelectedBlock', 'hasMultiSelection']))); + } + }]); + + return BlockSelectionClearer; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_selection_clearer = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + hasSelectedBlock = _select.hasSelectedBlock, + hasMultiSelection = _select.hasMultiSelection; + + return { + hasSelectedBlock: hasSelectedBlock(), + hasMultiSelection: hasMultiSelection() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + clearSelectedBlock = _dispatch.clearSelectedBlock; + + return { + clearSelectedBlock: clearSelectedBlock + }; +})])(block_selection_clearer_BlockSelectionClearer)); + +// EXTERNAL MODULE: ./node_modules/traverse/index.js +var traverse = __webpack_require__(257); +var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/parse.js + + +/* eslint-disable @wordpress/no-unused-vars-before-return */ +// Adapted from https://github.com/reworkcss/css +// because we needed to remove source map support. +// http://www.w3.org/TR/CSS21/grammar.htm +// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027 +var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g; +/* harmony default export */ var parse = (function (css, options) { + options = options || {}; + /** + * Positional. + */ + + var lineno = 1; + var column = 1; + /** + * Update lineno and column based on `str`. + */ + + function updatePosition(str) { + var lines = str.match(/\n/g); + + if (lines) { + lineno += lines.length; + } + + var i = str.lastIndexOf('\n'); // eslint-disable-next-line no-bitwise + + column = ~i ? str.length - i : column + str.length; + } + /** + * Mark position and patch `node.position`. + */ + + + function position() { + var start = { + line: lineno, + column: column + }; + return function (node) { + node.position = new Position(start); + whitespace(); + return node; + }; + } + /** + * Store position information for a node + */ + + + function Position(start) { + this.start = start; + this.end = { + line: lineno, + column: column + }; + this.source = options.source; + } + /** + * Non-enumerable source string + */ + + + Position.prototype.content = css; + /** + * Error `msg`. + */ + + var errorsList = []; + + function error(msg) { + var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg); + err.reason = msg; + err.filename = options.source; + err.line = lineno; + err.column = column; + err.source = css; + + if (options.silent) { + errorsList.push(err); + } else { + throw err; + } + } + /** + * Parse stylesheet. + */ + + + function stylesheet() { + var rulesList = rules(); + return { + type: 'stylesheet', + stylesheet: { + source: options.source, + rules: rulesList, + parsingErrors: errorsList + } + }; + } + /** + * Opening brace. + */ + + + function open() { + return match(/^{\s*/); + } + /** + * Closing brace. + */ + + + function close() { + return match(/^}/); + } + /** + * Parse ruleset. + */ + + + function rules() { + var node; + var accumulator = []; + whitespace(); + comments(accumulator); + + while (css.length && css.charAt(0) !== '}' && (node = atrule() || rule())) { + if (node !== false) { + accumulator.push(node); + comments(accumulator); + } + } + + return accumulator; + } + /** + * Match `re` and return captures. + */ + + + function match(re) { + var m = re.exec(css); + + if (!m) { + return; + } + + var str = m[0]; + updatePosition(str); + css = css.slice(str.length); + return m; + } + /** + * Parse whitespace. + */ + + + function whitespace() { + match(/^\s*/); + } + /** + * Parse comments; + */ + + + function comments(accumulator) { + var c; + accumulator = accumulator || []; // eslint-disable-next-line no-cond-assign + + while (c = comment()) { + if (c !== false) { + accumulator.push(c); + } + } + + return accumulator; + } + /** + * Parse comment. + */ + + + function comment() { + var pos = position(); + + if ('/' !== css.charAt(0) || '*' !== css.charAt(1)) { + return; + } + + var i = 2; + + while ('' !== css.charAt(i) && ('*' !== css.charAt(i) || '/' !== css.charAt(i + 1))) { + ++i; + } + + i += 2; + + if ('' === css.charAt(i - 1)) { + return error('End of comment missing'); + } + + var str = css.slice(2, i - 2); + column += 2; + updatePosition(str); + css = css.slice(i); + column += 2; + return pos({ + type: 'comment', + comment: str + }); + } + /** + * Parse selector. + */ + + + function selector() { + var m = match(/^([^{]+)/); + + if (!m) { + return; + } // FIXME: Remove all comments from selectors http://ostermiller.org/findcomment.html + + + return trim(m[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, '').replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function (matched) { + return matched.replace(/,/g, "\u200C"); + }).split(/\s*(?![^(]*\)),\s*/).map(function (s) { + return s.replace(/\u200C/g, ','); + }); + } + /** + * Parse declaration. + */ + + + function declaration() { + var pos = position(); // prop + + var prop = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/); + + if (!prop) { + return; + } + + prop = trim(prop[0]); // : + + if (!match(/^:\s*/)) { + return error("property missing ':'"); + } // val + + + var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/); + var ret = pos({ + type: 'declaration', + property: prop.replace(commentre, ''), + value: val ? trim(val[0]).replace(commentre, '') : '' + }); // ; + + match(/^[;\s]*/); + return ret; + } + /** + * Parse declarations. + */ + + + function declarations() { + var decls = []; + + if (!open()) { + return error("missing '{'"); + } + + comments(decls); // declarations + + var decl; // eslint-disable-next-line no-cond-assign + + while (decl = declaration()) { + if (decl !== false) { + decls.push(decl); + comments(decls); + } + } + + if (!close()) { + return error("missing '}'"); + } + + return decls; + } + /** + * Parse keyframe. + */ + + + function keyframe() { + var m; + var vals = []; + var pos = position(); // eslint-disable-next-line no-cond-assign + + while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) { + vals.push(m[1]); + match(/^,\s*/); + } + + if (!vals.length) { + return; + } + + return pos({ + type: 'keyframe', + values: vals, + declarations: declarations() + }); + } + /** + * Parse keyframes. + */ + + + function atkeyframes() { + var pos = position(); + var m = match(/^@([-\w]+)?keyframes\s*/); + + if (!m) { + return; + } + + var vendor = m[1]; // identifier + + m = match(/^([-\w]+)\s*/); + + if (!m) { + return error('@keyframes missing name'); + } + + var name = m[1]; + + if (!open()) { + return error("@keyframes missing '{'"); + } + + var frame; + var frames = comments(); // eslint-disable-next-line no-cond-assign + + while (frame = keyframe()) { + frames.push(frame); + frames = frames.concat(comments()); + } + + if (!close()) { + return error("@keyframes missing '}'"); + } + + return pos({ + type: 'keyframes', + name: name, + vendor: vendor, + keyframes: frames + }); + } + /** + * Parse supports. + */ + + + function atsupports() { + var pos = position(); + var m = match(/^@supports *([^{]+)/); + + if (!m) { + return; + } + + var supports = trim(m[1]); + + if (!open()) { + return error("@supports missing '{'"); + } + + var style = comments().concat(rules()); + + if (!close()) { + return error("@supports missing '}'"); + } + + return pos({ + type: 'supports', + supports: supports, + rules: style + }); + } + /** + * Parse host. + */ + + + function athost() { + var pos = position(); + var m = match(/^@host\s*/); + + if (!m) { + return; + } + + if (!open()) { + return error("@host missing '{'"); + } + + var style = comments().concat(rules()); + + if (!close()) { + return error("@host missing '}'"); + } + + return pos({ + type: 'host', + rules: style + }); + } + /** + * Parse media. + */ + + + function atmedia() { + var pos = position(); + var m = match(/^@media *([^{]+)/); + + if (!m) { + return; + } + + var media = trim(m[1]); + + if (!open()) { + return error("@media missing '{'"); + } + + var style = comments().concat(rules()); + + if (!close()) { + return error("@media missing '}'"); + } + + return pos({ + type: 'media', + media: media, + rules: style + }); + } + /** + * Parse custom-media. + */ + + + function atcustommedia() { + var pos = position(); + var m = match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/); + + if (!m) { + return; + } + + return pos({ + type: 'custom-media', + name: trim(m[1]), + media: trim(m[2]) + }); + } + /** + * Parse paged media. + */ + + + function atpage() { + var pos = position(); + var m = match(/^@page */); + + if (!m) { + return; + } + + var sel = selector() || []; + + if (!open()) { + return error("@page missing '{'"); + } + + var decls = comments(); // declarations + + var decl; // eslint-disable-next-line no-cond-assign + + while (decl = declaration()) { + decls.push(decl); + decls = decls.concat(comments()); + } + + if (!close()) { + return error("@page missing '}'"); + } + + return pos({ + type: 'page', + selectors: sel, + declarations: decls + }); + } + /** + * Parse document. + */ + + + function atdocument() { + var pos = position(); + var m = match(/^@([-\w]+)?document *([^{]+)/); + + if (!m) { + return; + } + + var vendor = trim(m[1]); + var doc = trim(m[2]); + + if (!open()) { + return error("@document missing '{'"); + } + + var style = comments().concat(rules()); + + if (!close()) { + return error("@document missing '}'"); + } + + return pos({ + type: 'document', + document: doc, + vendor: vendor, + rules: style + }); + } + /** + * Parse font-face. + */ + + + function atfontface() { + var pos = position(); + var m = match(/^@font-face\s*/); + + if (!m) { + return; + } + + if (!open()) { + return error("@font-face missing '{'"); + } + + var decls = comments(); // declarations + + var decl; // eslint-disable-next-line no-cond-assign + + while (decl = declaration()) { + decls.push(decl); + decls = decls.concat(comments()); + } + + if (!close()) { + return error("@font-face missing '}'"); + } + + return pos({ + type: 'font-face', + declarations: decls + }); + } + /** + * Parse import + */ + + + var atimport = _compileAtrule('import'); + /** + * Parse charset + */ + + + var atcharset = _compileAtrule('charset'); + /** + * Parse namespace + */ + + + var atnamespace = _compileAtrule('namespace'); + /** + * Parse non-block at-rules + */ + + + function _compileAtrule(name) { + var re = new RegExp('^@' + name + '\\s*([^;]+);'); + return function () { + var pos = position(); + var m = match(re); + + if (!m) { + return; + } + + var ret = { + type: name + }; + ret[name] = m[1].trim(); + return pos(ret); + }; + } + /** + * Parse at rule. + */ + + + function atrule() { + if (css[0] !== '@') { + return; + } + + return atkeyframes() || atmedia() || atcustommedia() || atsupports() || atimport() || atcharset() || atnamespace() || atdocument() || atpage() || athost() || atfontface(); + } + /** + * Parse rule. + */ + + + function rule() { + var pos = position(); + var sel = selector(); + + if (!sel) { + return error('selector missing'); + } + + comments(); + return pos({ + type: 'rule', + selectors: sel, + declarations: declarations() + }); + } + + return addParent(stylesheet()); +}); +/** + * Trim `str`. + */ + +function trim(str) { + return str ? str.replace(/^\s+|\s+$/g, '') : ''; +} +/** + * Adds non-enumerable parent node reference to each node. + */ + + +function addParent(obj, parent) { + var isNode = obj && typeof obj.type === 'string'; + var childParent = isNode ? obj : parent; + + for (var k in obj) { + var value = obj[k]; + + if (Array.isArray(value)) { + value.forEach(function (v) { + addParent(v, childParent); + }); + } else if (value && Object(esm_typeof["a" /* default */])(value) === 'object') { + addParent(value, childParent); + } + } + + if (isNode) { + Object.defineProperty(obj, 'parent', { + configurable: true, + writable: true, + enumerable: false, + value: parent || null + }); + } + + return obj; +} +/* eslint-enable @wordpress/no-unused-vars-before-return */ + +// EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js +var inherits_browser = __webpack_require__(156); +var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js +// Adapted from https://github.com/reworkcss/css +// because we needed to remove source map support. + +/** + * Expose `Compiler`. + */ +/* harmony default export */ var stringify_compiler = (Compiler); +/** + * Initialize a compiler. + */ + +function Compiler(opts) { + this.options = opts || {}; +} +/** + * Emit `str` + */ + + +Compiler.prototype.emit = function (str) { + return str; +}; +/** + * Visit `node`. + */ + + +Compiler.prototype.visit = function (node) { + return this[node.type](node); +}; +/** + * Map visit over array of `nodes`, optionally using a `delim` + */ + + +Compiler.prototype.mapVisit = function (nodes, delim) { + var buf = ''; + delim = delim || ''; + + for (var i = 0, length = nodes.length; i < length; i++) { + buf += this.visit(nodes[i]); + + if (delim && i < length - 1) { + buf += this.emit(delim); + } + } + + return buf; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compress.js +// Adapted from https://github.com/reworkcss/css +// because we needed to remove source map support. + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * Expose compiler. + */ + +/* harmony default export */ var compress = (compress_Compiler); +/** + * Initialize a new `Compiler`. + */ + +function compress_Compiler(options) { + stringify_compiler.call(this, options); +} +/** + * Inherit from `Base.prototype`. + */ + + +inherits_browser_default()(compress_Compiler, stringify_compiler); +/** + * Compile `node`. + */ + +compress_Compiler.prototype.compile = function (node) { + return node.stylesheet.rules.map(this.visit, this).join(''); +}; +/** + * Visit comment node. + */ + + +compress_Compiler.prototype.comment = function (node) { + return this.emit('', node.position); +}; +/** + * Visit import node. + */ + + +compress_Compiler.prototype.import = function (node) { + return this.emit('@import ' + node.import + ';', node.position); +}; +/** + * Visit media node. + */ + + +compress_Compiler.prototype.media = function (node) { + return this.emit('@media ' + node.media, node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); +}; +/** + * Visit document node. + */ + + +compress_Compiler.prototype.document = function (node) { + var doc = '@' + (node.vendor || '') + 'document ' + node.document; + return this.emit(doc, node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); +}; +/** + * Visit charset node. + */ + + +compress_Compiler.prototype.charset = function (node) { + return this.emit('@charset ' + node.charset + ';', node.position); +}; +/** + * Visit namespace node. + */ + + +compress_Compiler.prototype.namespace = function (node) { + return this.emit('@namespace ' + node.namespace + ';', node.position); +}; +/** + * Visit supports node. + */ + + +compress_Compiler.prototype.supports = function (node) { + return this.emit('@supports ' + node.supports, node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); +}; +/** + * Visit keyframes node. + */ + + +compress_Compiler.prototype.keyframes = function (node) { + return this.emit('@' + (node.vendor || '') + 'keyframes ' + node.name, node.position) + this.emit('{') + this.mapVisit(node.keyframes) + this.emit('}'); +}; +/** + * Visit keyframe node. + */ + + +compress_Compiler.prototype.keyframe = function (node) { + var decls = node.declarations; + return this.emit(node.values.join(','), node.position) + this.emit('{') + this.mapVisit(decls) + this.emit('}'); +}; +/** + * Visit page node. + */ + + +compress_Compiler.prototype.page = function (node) { + var sel = node.selectors.length ? node.selectors.join(', ') : ''; + return this.emit('@page ' + sel, node.position) + this.emit('{') + this.mapVisit(node.declarations) + this.emit('}'); +}; +/** + * Visit font-face node. + */ + + +compress_Compiler.prototype['font-face'] = function (node) { + return this.emit('@font-face', node.position) + this.emit('{') + this.mapVisit(node.declarations) + this.emit('}'); +}; +/** + * Visit host node. + */ + + +compress_Compiler.prototype.host = function (node) { + return this.emit('@host', node.position) + this.emit('{') + this.mapVisit(node.rules) + this.emit('}'); +}; +/** + * Visit custom-media node. + */ + + +compress_Compiler.prototype['custom-media'] = function (node) { + return this.emit('@custom-media ' + node.name + ' ' + node.media + ';', node.position); +}; +/** + * Visit rule node. + */ + + +compress_Compiler.prototype.rule = function (node) { + var decls = node.declarations; + + if (!decls.length) { + return ''; + } + + return this.emit(node.selectors.join(','), node.position) + this.emit('{') + this.mapVisit(decls) + this.emit('}'); +}; +/** + * Visit declaration node. + */ + + +compress_Compiler.prototype.declaration = function (node) { + return this.emit(node.property + ':' + node.value, node.position) + this.emit(';'); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/identity.js +/* eslint-disable @wordpress/no-unused-vars-before-return */ +// Adapted from https://github.com/reworkcss/css +// because we needed to remove source map support. + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * Expose compiler. + */ + +/* harmony default export */ var identity = (identity_Compiler); +/** + * Initialize a new `Compiler`. + */ + +function identity_Compiler(options) { + options = options || {}; + stringify_compiler.call(this, options); + this.indentation = options.indent; +} +/** + * Inherit from `Base.prototype`. + */ + + +inherits_browser_default()(identity_Compiler, stringify_compiler); +/** + * Compile `node`. + */ + +identity_Compiler.prototype.compile = function (node) { + return this.stylesheet(node); +}; +/** + * Visit stylesheet node. + */ + + +identity_Compiler.prototype.stylesheet = function (node) { + return this.mapVisit(node.stylesheet.rules, '\n\n'); +}; +/** + * Visit comment node. + */ + + +identity_Compiler.prototype.comment = function (node) { + return this.emit(this.indent() + '/*' + node.comment + '*/', node.position); +}; +/** + * Visit import node. + */ + + +identity_Compiler.prototype.import = function (node) { + return this.emit('@import ' + node.import + ';', node.position); +}; +/** + * Visit media node. + */ + + +identity_Compiler.prototype.media = function (node) { + return this.emit('@media ' + node.media, node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); +}; +/** + * Visit document node. + */ + + +identity_Compiler.prototype.document = function (node) { + var doc = '@' + (node.vendor || '') + 'document ' + node.document; + return this.emit(doc, node.position) + this.emit(' ' + ' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); +}; +/** + * Visit charset node. + */ + + +identity_Compiler.prototype.charset = function (node) { + return this.emit('@charset ' + node.charset + ';', node.position); +}; +/** + * Visit namespace node. + */ + + +identity_Compiler.prototype.namespace = function (node) { + return this.emit('@namespace ' + node.namespace + ';', node.position); +}; +/** + * Visit supports node. + */ + + +identity_Compiler.prototype.supports = function (node) { + return this.emit('@supports ' + node.supports, node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); +}; +/** + * Visit keyframes node. + */ + + +identity_Compiler.prototype.keyframes = function (node) { + return this.emit('@' + (node.vendor || '') + 'keyframes ' + node.name, node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.keyframes, '\n') + this.emit(this.indent(-1) + '}'); +}; +/** + * Visit keyframe node. + */ + + +identity_Compiler.prototype.keyframe = function (node) { + var decls = node.declarations; + return this.emit(this.indent()) + this.emit(node.values.join(', '), node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(decls, '\n') + this.emit(this.indent(-1) + '\n' + this.indent() + '}\n'); +}; +/** + * Visit page node. + */ + + +identity_Compiler.prototype.page = function (node) { + var sel = node.selectors.length ? node.selectors.join(', ') + ' ' : ''; + return this.emit('@page ' + sel, node.position) + this.emit('{\n') + this.emit(this.indent(1)) + this.mapVisit(node.declarations, '\n') + this.emit(this.indent(-1)) + this.emit('\n}'); +}; +/** + * Visit font-face node. + */ + + +identity_Compiler.prototype['font-face'] = function (node) { + return this.emit('@font-face ', node.position) + this.emit('{\n') + this.emit(this.indent(1)) + this.mapVisit(node.declarations, '\n') + this.emit(this.indent(-1)) + this.emit('\n}'); +}; +/** + * Visit host node. + */ + + +identity_Compiler.prototype.host = function (node) { + return this.emit('@host', node.position) + this.emit(' {\n' + this.indent(1)) + this.mapVisit(node.rules, '\n\n') + this.emit(this.indent(-1) + '\n}'); +}; +/** + * Visit custom-media node. + */ + + +identity_Compiler.prototype['custom-media'] = function (node) { + return this.emit('@custom-media ' + node.name + ' ' + node.media + ';', node.position); +}; +/** + * Visit rule node. + */ + + +identity_Compiler.prototype.rule = function (node) { + var indent = this.indent(); + var decls = node.declarations; + + if (!decls.length) { + return ''; + } + + return this.emit(node.selectors.map(function (s) { + return indent + s; + }).join(',\n'), node.position) + this.emit(' {\n') + this.emit(this.indent(1)) + this.mapVisit(decls, '\n') + this.emit(this.indent(-1)) + this.emit('\n' + this.indent() + '}'); +}; +/** + * Visit declaration node. + */ + + +identity_Compiler.prototype.declaration = function (node) { + return this.emit(this.indent()) + this.emit(node.property + ': ' + node.value, node.position) + this.emit(';'); +}; +/** + * Increase, decrease or return current indentation. + */ + + +identity_Compiler.prototype.indent = function (level) { + this.level = this.level || 1; + + if (null !== level) { + this.level += level; + return ''; + } + + return Array(this.level).join(this.indentation || ' '); +}; +/* eslint-enable @wordpress/no-unused-vars-before-return */ + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/index.js +// Adapted from https://github.com/reworkcss/css +// because we needed to remove source map support. + +/** + * Internal dependencies + */ + + +/** + * Stringfy the given AST `node`. + * + * Options: + * + * - `compress` space-optimized output + * - `sourcemap` return an object with `.code` and `.map` + * + * @param {Object} node + * @param {Object} [options] + * @return {string} + */ + +/* harmony default export */ var stringify = (function (node, options) { + options = options || {}; + var compiler = options.compress ? new compress(options) : new identity(options); + var code = compiler.compile(node); + return code; +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/traverse.js +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +function traverseCSS(css, callback) { + try { + var parsed = parse(css); + var updated = traverse_default.a.map(parsed, function (node) { + if (!node) { + return node; + } + + var updatedNode = callback(node); + return this.update(updatedNode); + }); + return stringify(updated); + } catch (err) { + // eslint-disable-next-line no-console + console.warn('Error while traversing the CSS: ' + err); + return null; + } +} + +/* harmony default export */ var transform_styles_traverse = (traverseCSS); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js + + +function url_rewrite_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function url_rewrite_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { url_rewrite_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { url_rewrite_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * Return `true` if the given path is http/https. + * + * @param {string} filePath path + * + * @return {boolean} is remote path. + */ +function isRemotePath(filePath) { + return /^(?:https?:)?\/\//.test(filePath); +} +/** + * Return `true` if the given filePath is an absolute url. + * + * @param {string} filePath path + * + * @return {boolean} is absolute path. + */ + + +function isAbsolutePath(filePath) { + return /^\/(?!\/)/.test(filePath); +} +/** + * Whether or not the url should be inluded. + * + * @param {Object} meta url meta info + * + * @return {boolean} is valid. + */ + + +function isValidURL(meta) { + // ignore hashes or data uris + if (meta.value.indexOf('data:') === 0 || meta.value.indexOf('#') === 0) { + return false; + } + + if (isAbsolutePath(meta.value)) { + return false; + } // do not handle the http/https urls if `includeRemote` is false + + + if (isRemotePath(meta.value)) { + return false; + } + + return true; +} +/** + * Get the absolute path of the url, relative to the basePath + * + * @param {string} str the url + * @param {string} baseURL base URL + * + * @return {string} the full path to the file + */ + + +function getResourcePath(str, baseURL) { + return new URL(str, baseURL).toString(); +} +/** + * Process the single `url()` pattern + * + * @param {string} baseURL the base URL for relative URLs + * @return {Promise} the Promise + */ + + +function processURL(baseURL) { + return function (meta) { + return url_rewrite_objectSpread({}, meta, { + newUrl: 'url(' + meta.before + meta.quote + getResourcePath(meta.value, baseURL) + meta.quote + meta.after + ')' + }); + }; +} +/** + * Get all `url()`s, and return the meta info + * + * @param {string} value decl.value + * + * @return {Array} the urls + */ + + +function getURLs(value) { + var reg = /url\((\s*)(['"]?)(.+?)\2(\s*)\)/g; + var match; + var URLs = []; + + while ((match = reg.exec(value)) !== null) { + var meta = { + source: match[0], + before: match[1], + quote: match[2], + value: match[3], + after: match[4] + }; + + if (isValidURL(meta)) { + URLs.push(meta); + } + } + + return URLs; +} +/** + * Replace the raw value's `url()` segment to the new value + * + * @param {string} raw the raw value + * @param {Array} URLs the URLs to replace + * + * @return {string} the new value + */ + + +function replaceURLs(raw, URLs) { + URLs.forEach(function (item) { + raw = raw.replace(item.source, item.newUrl); + }); + return raw; +} + +var rewrite = function rewrite(rootURL) { + return function (node) { + if (node.type === 'declaration') { + var updatedURLs = getURLs(node.value).map(processURL(rootURL)); + return url_rewrite_objectSpread({}, node, { + value: replaceURLs(node.value, updatedURLs) + }); + } + + return node; + }; +}; + +/* harmony default export */ var url_rewrite = (rewrite); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/transforms/wrap.js + + +function wrap_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function wrap_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { wrap_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { wrap_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * @constant string IS_ROOT_TAG Regex to check if the selector is a root tag selector. + */ + +var IS_ROOT_TAG = /^(body|html|:root).*$/; + +var wrap_wrap = function wrap(namespace) { + var ignore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + return function (node) { + var updateSelector = function updateSelector(selector) { + if (Object(external_this_lodash_["includes"])(ignore, selector.trim())) { + return selector; + } // Anything other than a root tag is always prefixed. + + + { + if (!selector.match(IS_ROOT_TAG)) { + return namespace + ' ' + selector; + } + } // HTML and Body elements cannot be contained within our container so lets extract their styles. + + return selector.replace(/^(body|html|:root)/, namespace); + }; + + if (node.type === 'rule') { + return wrap_objectSpread({}, node, { + selectors: node.selectors.map(updateSelector) + }); + } + + return node; + }; +}; + +/* harmony default export */ var transforms_wrap = (wrap_wrap); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + +/** + * Applies a series of CSS rule transforms to wrap selectors inside a given class and/or rewrite URLs depending on the parameters passed. + * + * @param {Array} styles CSS rules. + * @param {string} wrapperClassName Wrapper Class Name. + * @return {Array} converted rules. + */ + +var transform_styles_transformStyles = function transformStyles(styles) { + var wrapperClassName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + return Object(external_this_lodash_["map"])(styles, function (_ref) { + var css = _ref.css, + baseURL = _ref.baseURL; + var transforms = []; + + if (wrapperClassName) { + transforms.push(transforms_wrap(wrapperClassName)); + } + + if (baseURL) { + transforms.push(url_rewrite(baseURL)); + } + + if (transforms.length) { + return transform_styles_traverse(css, Object(external_this_wp_compose_["compose"])(transforms)); + } + + return css; + }); +}; + +/* harmony default export */ var transform_styles = (transform_styles_transformStyles); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editor-styles/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function EditorStyles(_ref) { + var styles = _ref.styles; + Object(external_this_wp_element_["useEffect"])(function () { + var updatedStyles = transform_styles(styles, '.editor-styles-wrapper'); + var nodes = Object(external_this_lodash_["map"])(Object(external_this_lodash_["compact"])(updatedStyles), function (updatedCSS) { + var node = document.createElement('style'); + node.innerHTML = updatedCSS; + document.body.appendChild(node); + return node; + }); + return function () { + return nodes.forEach(function (node) { + return document.body.removeChild(node); + }); + }; + }, [styles]); + return null; +} + +/* harmony default export */ var editor_styles = (EditorStyles); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/library.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function InserterLibrary(_ref) { + var rootClientId = _ref.rootClientId, + clientId = _ref.clientId, + isAppender = _ref.isAppender, + showInserterHelpPanel = _ref.showInserterHelpPanel, + selectBlockOnInsert = _ref.__experimentalSelectBlockOnInsert, + _ref$onSelect = _ref.onSelect, + onSelect = _ref$onSelect === void 0 ? external_this_lodash_["noop"] : _ref$onSelect; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId; + + rootClientId = rootClientId || getBlockRootClientId(clientId) || undefined; + return { + rootClientId: rootClientId + }; + }), + destinationRootClientId = _useSelect.destinationRootClientId; + + return Object(external_this_wp_element_["createElement"])(menu, { + onSelect: onSelect, + rootClientId: destinationRootClientId, + clientId: clientId, + isAppender: isAppender, + showInserterHelpPanel: showInserterHelpPanel, + __experimentalSelectBlockOnInsert: selectBlockOnInsert + }); +} + +/* harmony default export */ var library = (InserterLibrary); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/keyboard-shortcuts/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function KeyboardShortcuts() { + // Shortcuts Logic + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientIds = _select.getSelectedBlockClientIds, + getBlockOrder = _select.getBlockOrder; + + return { + clientIds: getSelectedBlockClientIds(), + rootBlocksClientIds: getBlockOrder() + }; + }, []), + clientIds = _useSelect.clientIds, + rootBlocksClientIds = _useSelect.rootBlocksClientIds; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + duplicateBlocks = _useDispatch.duplicateBlocks, + removeBlocks = _useDispatch.removeBlocks, + insertAfterBlock = _useDispatch.insertAfterBlock, + insertBeforeBlock = _useDispatch.insertBeforeBlock, + multiSelect = _useDispatch.multiSelect, + clearSelectedBlock = _useDispatch.clearSelectedBlock; // Prevents bookmark all Tabs shortcut in Chrome when devtools are closed. + // Prevents reposition Chrome devtools pane shortcut when devtools are open. + + + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/duplicate', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + duplicateBlocks(clientIds); + }, [clientIds, duplicateBlocks]), { + bindGlobal: true, + isDisabled: clientIds.length === 0 + }); // Does not clash with any known browser/native shortcuts, but preventDefault + // is used to prevent any obscure unknown shortcuts from triggering. + + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/remove', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + removeBlocks(clientIds); + }, [clientIds, removeBlocks]), { + bindGlobal: true, + isDisabled: clientIds.length === 0 + }); // Does not clash with any known browser/native shortcuts, but preventDefault + // is used to prevent any obscure unknown shortcuts from triggering. + + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/insert-after', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + insertAfterBlock(Object(external_this_lodash_["last"])(clientIds)); + }, [clientIds, insertAfterBlock]), { + bindGlobal: true, + isDisabled: clientIds.length === 0 + }); // Prevent 'view recently closed tabs' in Opera using preventDefault. + + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/insert-before', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + insertBeforeBlock(Object(external_this_lodash_["first"])(clientIds)); + }, [clientIds, insertBeforeBlock]), { + bindGlobal: true, + isDisabled: clientIds.length === 0 + }); + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/delete-multi-selection', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + removeBlocks(clientIds); + }, [clientIds, removeBlocks]), { + isDisabled: clientIds.length < 1 + }); + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/select-all', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + multiSelect(Object(external_this_lodash_["first"])(rootBlocksClientIds), Object(external_this_lodash_["last"])(rootBlocksClientIds)); + }, [rootBlocksClientIds, multiSelect])); + Object(external_this_wp_keyboardShortcuts_["useShortcut"])('core/block-editor/unselect', Object(external_this_wp_element_["useCallback"])(function (event) { + event.preventDefault(); + clearSelectedBlock(); + window.getSelection().removeAllRanges(); + }, [clientIds, clearSelectedBlock]), { + isDisabled: clientIds.length < 2 + }); + return null; +} + +function KeyboardShortcutsRegister() { + // Registering the shortcuts + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/keyboard-shortcuts'), + registerShortcut = _useDispatch2.registerShortcut; + + Object(external_this_wp_element_["useEffect"])(function () { + registerShortcut({ + name: 'core/block-editor/duplicate', + category: 'block', + description: Object(external_this_wp_i18n_["__"])('Duplicate the selected block(s).'), + keyCombination: { + modifier: 'primaryShift', + character: 'd' + } + }); + registerShortcut({ + name: 'core/block-editor/remove', + category: 'block', + description: Object(external_this_wp_i18n_["__"])('Remove the selected block(s).'), + keyCombination: { + modifier: 'access', + character: 'z' + } + }); + registerShortcut({ + name: 'core/block-editor/insert-before', + category: 'block', + description: Object(external_this_wp_i18n_["__"])('Insert a new block before the selected block(s).'), + keyCombination: { + modifier: 'primaryAlt', + character: 't' + } + }); + registerShortcut({ + name: 'core/block-editor/insert-after', + category: 'block', + description: Object(external_this_wp_i18n_["__"])('Insert a new block after the selected block(s).'), + keyCombination: { + modifier: 'primaryAlt', + character: 'y' + } + }); + registerShortcut({ + name: 'core/block-editor/delete-multi-selection', + category: 'block', + description: Object(external_this_wp_i18n_["__"])('Remove multiple selected blocks.'), + keyCombination: { + character: 'del' + }, + aliases: [{ + character: 'backspace' + }] + }); + registerShortcut({ + name: 'core/block-editor/select-all', + category: 'selection', + description: Object(external_this_wp_i18n_["__"])('Select all text when typing. Press again to select all blocks.'), + keyCombination: { + modifier: 'primary', + character: 'a' + } + }); + registerShortcut({ + name: 'core/block-editor/unselect', + category: 'selection', + description: Object(external_this_wp_i18n_["__"])('Clear selection.'), + keyCombination: { + character: 'escape' + } + }); + registerShortcut({ + name: 'core/block-editor/focus-toolbar', + category: 'global', + description: Object(external_this_wp_i18n_["__"])('Navigate to the nearest toolbar.'), + keyCombination: { + modifier: 'alt', + character: 'F10' + } + }); + }, [registerShortcut]); + return null; +} + +KeyboardShortcuts.Register = KeyboardShortcutsRegister; +/* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-select-scroll-into-view/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Scrolls the multi block selection end into view if not in view already. This + * is important to do after selection by keyboard. + */ + +function MultiSelectScrollIntoView() { + var selector = function selector(select) { + var _select = select('core/block-editor'), + getBlockSelectionEnd = _select.getBlockSelectionEnd, + hasMultiSelection = _select.hasMultiSelection, + isMultiSelecting = _select.isMultiSelecting; + + return { + selectionEnd: getBlockSelectionEnd(), + isMultiSelection: hasMultiSelection(), + isMultiSelecting: isMultiSelecting() + }; + }; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, []), + isMultiSelection = _useSelect.isMultiSelection, + selectionEnd = _useSelect.selectionEnd, + isMultiSelecting = _useSelect.isMultiSelecting; + + Object(external_this_wp_element_["useEffect"])(function () { + if (!selectionEnd || isMultiSelecting || !isMultiSelection) { + return; + } + + var extentNode = getBlockDOMNode(selectionEnd); + + if (!extentNode) { + return; + } + + var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(extentNode); // If there's no scroll container, it follows that there's no scrollbar + // and thus there's no need to try to scroll into view. + + if (!scrollContainer) { + return; + } + + dom_scroll_into_view_lib_default()(extentNode, scrollContainer, { + onlyScrollIfNeeded: true + }); + }, [isMultiSelection, selectionEnd, isMultiSelecting]); + return null; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/observe-typing/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Set of key codes upon which typing is to be initiated on a keydown event. + * + * @type {number[]} + */ + +var KEY_DOWN_ELIGIBLE_KEY_CODES = [external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["ENTER"], external_this_wp_keycodes_["BACKSPACE"]]; +/** + * Returns true if a given keydown event can be inferred as intent to start + * typing, or false otherwise. A keydown is considered eligible if it is a + * text navigation without shift active. + * + * @param {KeyboardEvent} event Keydown event to test. + * + * @return {boolean} Whether event is eligible to start typing. + */ + +function isKeyDownEligibleForStartTyping(event) { + var keyCode = event.keyCode, + shiftKey = event.shiftKey; + return !shiftKey && Object(external_this_lodash_["includes"])(KEY_DOWN_ELIGIBLE_KEY_CODES, keyCode); +} + +function ObserveTyping(_ref) { + var children = _ref.children, + setSafeTimeout = _ref.setTimeout; + var typingContainer = Object(external_this_wp_element_["useRef"])(); + var lastMouseMove = Object(external_this_wp_element_["useRef"])(); + var isTyping = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').isTyping(); + }); + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + startTyping = _useDispatch.startTyping, + stopTyping = _useDispatch.stopTyping; + + Object(external_this_wp_element_["useEffect"])(function () { + toggleEventBindings(isTyping); + return function () { + return toggleEventBindings(false); + }; + }, [isTyping]); + /** + * Bind or unbind events to the document when typing has started or stopped + * respectively, or when component has become unmounted. + * + * @param {boolean} isBound Whether event bindings should be applied. + */ + + function toggleEventBindings(isBound) { + var bindFn = isBound ? 'addEventListener' : 'removeEventListener'; + document[bindFn]('selectionchange', stopTypingOnSelectionUncollapse); + document[bindFn]('mousemove', stopTypingOnMouseMove); + } + /** + * On mouse move, unset typing flag if user has moved cursor. + * + * @param {MouseEvent} event Mousemove event. + */ + + + function stopTypingOnMouseMove(event) { + var clientX = event.clientX, + clientY = event.clientY; // We need to check that the mouse really moved because Safari triggers + // mousemove events when shift or ctrl are pressed. + + if (lastMouseMove.current) { + var _lastMouseMove$curren = lastMouseMove.current, + lastClientX = _lastMouseMove$curren.clientX, + lastClientY = _lastMouseMove$curren.clientY; + + if (lastClientX !== clientX || lastClientY !== clientY) { + stopTyping(); + } + } + + lastMouseMove.current = { + clientX: clientX, + clientY: clientY + }; + } + /** + * On selection change, unset typing flag if user has made an uncollapsed + * (shift) selection. + */ + + + function stopTypingOnSelectionUncollapse() { + var selection = window.getSelection(); + var isCollapsed = selection.rangeCount > 0 && selection.getRangeAt(0).collapsed; + + if (!isCollapsed) { + stopTyping(); + } + } + /** + * Unsets typing flag if user presses Escape while typing flag is active. + * + * @param {KeyboardEvent} event Keypress or keydown event to interpret. + */ + + + function stopTypingOnEscapeKey(event) { + if (isTyping && (event.keyCode === external_this_wp_keycodes_["ESCAPE"] || event.keyCode === external_this_wp_keycodes_["TAB"])) { + stopTyping(); + } + } + /** + * Handles a keypress or keydown event to infer intention to start typing. + * + * @param {KeyboardEvent} event Keypress or keydown event to interpret. + */ + + + function startTypingInTextField(event) { + var type = event.type, + target = event.target; // Abort early if already typing, or key press is incurred outside a + // text field (e.g. arrow-ing through toolbar buttons). + // Ignore typing if outside the current DOM container + + if (isTyping || !Object(external_this_wp_dom_["isTextField"])(target) || !typingContainer.current.contains(target)) { + return; + } // Special-case keydown because certain keys do not emit a keypress + // event. Conversely avoid keydown as the canonical event since there + // are many keydown which are explicitly not targeted for typing. + + + if (type === 'keydown' && !isKeyDownEligibleForStartTyping(event)) { + return; + } + + startTyping(); + } + /** + * Stops typing when focus transitions to a non-text field element. + * + * @param {FocusEvent} event Focus event. + */ + + + function stopTypingOnNonTextField(event) { + var target = event.target; // Since focus to a non-text field via arrow key will trigger before + // the keydown event, wait until after current stack before evaluating + // whether typing is to be stopped. Otherwise, typing will re-start. + + setSafeTimeout(function () { + if (isTyping && !Object(external_this_wp_dom_["isTextField"])(target)) { + stopTyping(); + } + }); + } // Disable reason: This component is responsible for capturing bubbled + // keyboard events which are interpreted as typing intent. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + + return Object(external_this_wp_element_["createElement"])("div", { + ref: typingContainer, + onFocus: stopTypingOnNonTextField, + onKeyPress: startTypingInTextField, + onKeyDown: Object(external_this_lodash_["over"])([startTypingInTextField, stopTypingOnEscapeKey]) + }, children); + /* eslint-enable jsx-a11y/no-static-element-interactions */ +} +/** + * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/observe-typing/README.md + */ + + +/* harmony default export */ var observe_typing = (Object(external_this_wp_compose_["withSafeTimeout"])(ObserveTyping)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preserve-scroll-in-reorder/index.js +/** + * WordPress dependencies + */ + +function PreserveScrollInReorder() { + external_this_wp_deprecated_default()('PreserveScrollInReorder component', { + hint: 'This behavior is now built-in the block list' + }); + return null; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/typewriter/index.js + + + + + + + + +function typewriter_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (typewriter_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function typewriter_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + + + +/** @typedef {import('@wordpress/element').WPSyntheticEvent} WPSyntheticEvent */ + +var isIE = window.navigator.userAgent.indexOf('Trident') !== -1; +var arrowKeyCodes = new Set([external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["RIGHT"]]); +var initialTriggerPercentage = 0.75; + +var typewriter_Typewriter = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(Typewriter, _Component); + + var _super = typewriter_createSuper(Typewriter); + + function Typewriter() { + var _this; + + Object(classCallCheck["a" /* default */])(this, Typewriter); + + _this = _super.apply(this, arguments); + _this.ref = Object(external_this_wp_element_["createRef"])(); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.addSelectionChangeListener = _this.addSelectionChangeListener.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.computeCaretRectOnSelectionChange = _this.computeCaretRectOnSelectionChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.maintainCaretPosition = _this.maintainCaretPosition.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.computeCaretRect = _this.computeCaretRect.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onScrollResize = _this.onScrollResize.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.isSelectionEligibleForScroll = _this.isSelectionEligibleForScroll.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(Typewriter, [{ + key: "componentDidMount", + value: function componentDidMount() { + // When the user scrolls or resizes, the scroll position should be + // reset. + window.addEventListener('scroll', this.onScrollResize, true); + window.addEventListener('resize', this.onScrollResize, true); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + window.removeEventListener('scroll', this.onScrollResize, true); + window.removeEventListener('resize', this.onScrollResize, true); + document.removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); + + if (this.onScrollResize.rafId) { + window.cancelAnimationFrame(this.onScrollResize.rafId); + } + + if (this.onKeyDown.rafId) { + window.cancelAnimationFrame(this.onKeyDown.rafId); + } + } + /** + * Resets the scroll position to be maintained. + */ + + }, { + key: "computeCaretRect", + value: function computeCaretRect() { + if (this.isSelectionEligibleForScroll()) { + this.caretRect = Object(external_this_wp_dom_["computeCaretRect"])(); + } + } + /** + * Resets the scroll position to be maintained during a `selectionchange` + * event. Also removes the listener, so it acts as a one-time listener. + */ + + }, { + key: "computeCaretRectOnSelectionChange", + value: function computeCaretRectOnSelectionChange() { + document.removeEventListener('selectionchange', this.computeCaretRectOnSelectionChange); + this.computeCaretRect(); + } + }, { + key: "onScrollResize", + value: function onScrollResize() { + var _this2 = this; + + if (this.onScrollResize.rafId) { + return; + } + + this.onScrollResize.rafId = window.requestAnimationFrame(function () { + _this2.computeCaretRect(); + + delete _this2.onScrollResize.rafId; + }); + } + /** + * Checks if the current situation is elegible for scroll: + * - There should be one and only one block selected. + * - The component must contain the selection. + * - The active element must be contenteditable. + */ + + }, { + key: "isSelectionEligibleForScroll", + value: function isSelectionEligibleForScroll() { + return this.props.selectedBlockClientId && this.ref.current.contains(document.activeElement) && document.activeElement.isContentEditable; + } + }, { + key: "isLastEditableNode", + value: function isLastEditableNode() { + var editableNodes = this.ref.current.querySelectorAll('[contenteditable="true"]'); + var lastEditableNode = editableNodes[editableNodes.length - 1]; + return lastEditableNode === document.activeElement; + } + /** + * Maintains the scroll position after a selection change caused by a + * keyboard event. + * + * @param {WPSyntheticEvent} event Synthetic keyboard event. + */ + + }, { + key: "maintainCaretPosition", + value: function maintainCaretPosition(_ref) { + var keyCode = _ref.keyCode; + + if (!this.isSelectionEligibleForScroll()) { + return; + } + + var currentCaretRect = Object(external_this_wp_dom_["computeCaretRect"])(); + + if (!currentCaretRect) { + return; + } // If for some reason there is no position set to be scrolled to, let + // this be the position to be scrolled to in the future. + + + if (!this.caretRect) { + this.caretRect = currentCaretRect; + return; + } // Even though enabling the typewriter effect for arrow keys results in + // a pleasant experience, it may not be the case for everyone, so, for + // now, let's disable it. + + + if (arrowKeyCodes.has(keyCode)) { + // Reset the caret position to maintain. + this.caretRect = currentCaretRect; + return; + } + + var diff = currentCaretRect.top - this.caretRect.top; + + if (diff === 0) { + return; + } + + var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(this.ref.current); // The page must be scrollable. + + if (!scrollContainer) { + return; + } + + var windowScroll = scrollContainer === document.body; + var scrollY = windowScroll ? window.scrollY : scrollContainer.scrollTop; + var scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().top; + var relativeScrollPosition = windowScroll ? this.caretRect.top / window.innerHeight : (this.caretRect.top - scrollContainerY) / (window.innerHeight - scrollContainerY); // If the scroll position is at the start, the active editable element + // is the last one, and the caret is positioned within the initial + // trigger percentage of the page, do not scroll the page. + // The typewriter effect should not kick in until an empty page has been + // filled with the initial trigger percentage or the user scrolls + // intentionally down. + + if (scrollY === 0 && relativeScrollPosition < initialTriggerPercentage && this.isLastEditableNode()) { + // Reset the caret position to maintain. + this.caretRect = currentCaretRect; + return; + } + + var scrollContainerHeight = windowScroll ? window.innerHeight : scrollContainer.clientHeight; // Abort if the target scroll position would scroll the caret out of + // view. + + if ( // The caret is under the lower fold. + this.caretRect.top + this.caretRect.height > scrollContainerY + scrollContainerHeight || // The caret is above the upper fold. + this.caretRect.top < scrollContainerY) { + // Reset the caret position to maintain. + this.caretRect = currentCaretRect; + return; + } + + if (windowScroll) { + window.scrollBy(0, diff); + } else { + scrollContainer.scrollTop += diff; + } + } + /** + * Adds a `selectionchange` listener to reset the scroll position to be + * maintained. + */ + + }, { + key: "addSelectionChangeListener", + value: function addSelectionChangeListener() { + document.addEventListener('selectionchange', this.computeCaretRectOnSelectionChange); + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var _this3 = this; + + event.persist(); // Ensure the any remaining request is cancelled. + + if (this.onKeyDown.rafId) { + window.cancelAnimationFrame(this.onKeyDown.rafId); + } // Use an animation frame for a smooth result. + + + this.onKeyDown.rafId = window.requestAnimationFrame(function () { + _this3.maintainCaretPosition(event); + + delete _this3.onKeyDown.rafId; + }); + } + }, { + key: "render", + value: function render() { + // Disable reason: Wrapper itself is non-interactive, but must capture + // bubbling events from children to determine focus transition intents. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + return Object(external_this_wp_element_["createElement"])("div", { + ref: this.ref, + onKeyDown: this.onKeyDown, + onKeyUp: this.maintainCaretPosition, + onMouseDown: this.addSelectionChangeListener, + onTouchStart: this.addSelectionChangeListener, + className: "block-editor__typewriter" + }, this.props.children); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return Typewriter; +}(external_this_wp_element_["Component"]); +/** + * The exported component. The implementation of Typewriter faced technical + * challenges in Internet Explorer, and is simply skipped, rendering the given + * props children instead. + * + * @type {WPComponent} + */ + + +var TypewriterOrIEBypass = isIE ? function (props) { + return props.children; +} : Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId; + + return { + selectedBlockClientId: getSelectedBlockClientId() + }; +})(typewriter_Typewriter); +/** + * Ensures that the text selection keeps the same vertical distance from the + * viewport during keyboard events within this component. The vertical distance + * can vary. It is the last clicked or scrolled to position. + */ + +/* harmony default export */ var typewriter = (TypewriterOrIEBypass); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/index.js +/* + * Block Creation Components + */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/* + * Content Related Components + */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/* + * State Related Components + */ + + + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/index.js + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js +/* concated harmony reexport __experimentalAlignmentHookSettingsProvider */__webpack_require__.d(__webpack_exports__, "__experimentalAlignmentHookSettingsProvider", function() { return AlignmentHookSettingsProvider; }); +/* concated harmony reexport AlignmentToolbar */__webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return alignment_toolbar; }); +/* concated harmony reexport Autocomplete */__webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return autocomplete; }); +/* concated harmony reexport BlockAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() { return block_alignment_toolbar; }); +/* concated harmony reexport __experimentalBlockAlignmentMatrixToolbar */__webpack_require__.d(__webpack_exports__, "__experimentalBlockAlignmentMatrixToolbar", function() { return block_alignment_matrix_toolbar; }); +/* concated harmony reexport BlockBreadcrumb */__webpack_require__.d(__webpack_exports__, "BlockBreadcrumb", function() { return block_breadcrumb; }); +/* concated harmony reexport BlockContextProvider */__webpack_require__.d(__webpack_exports__, "BlockContextProvider", function() { return BlockContextProvider; }); +/* concated harmony reexport BlockControls */__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return block_controls; }); +/* concated harmony reexport BlockColorsStyleSelector */__webpack_require__.d(__webpack_exports__, "BlockColorsStyleSelector", function() { return color_style_selector; }); +/* concated harmony reexport BlockEdit */__webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return block_edit_BlockEdit; }); +/* concated harmony reexport useBlockEditContext */__webpack_require__.d(__webpack_exports__, "useBlockEditContext", function() { return useBlockEditContext; }); +/* concated harmony reexport BlockFormatControls */__webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return block_format_controls; }); +/* concated harmony reexport BlockIcon */__webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return BlockIcon; }); +/* concated harmony reexport BlockNavigationDropdown */__webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return dropdown; }); +/* concated harmony reexport __experimentalBlockNavigationBlockFill */__webpack_require__.d(__webpack_exports__, "__experimentalBlockNavigationBlockFill", function() { return block_slot_BlockNavigationBlockFill; }); +/* concated harmony reexport __experimentalBlockNavigationEditor */__webpack_require__.d(__webpack_exports__, "__experimentalBlockNavigationEditor", function() { return BlockNavigationEditor; }); +/* concated harmony reexport __experimentalBlockNavigationTree */__webpack_require__.d(__webpack_exports__, "__experimentalBlockNavigationTree", function() { return BlockNavigationTree; }); +/* concated harmony reexport __experimentalBlockVariationPicker */__webpack_require__.d(__webpack_exports__, "__experimentalBlockVariationPicker", function() { return block_variation_picker; }); +/* concated harmony reexport BlockVerticalAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockVerticalAlignmentToolbar", function() { return block_vertical_alignment_toolbar; }); +/* concated harmony reexport ButtonBlockerAppender */__webpack_require__.d(__webpack_exports__, "ButtonBlockerAppender", function() { return button_block_appender; }); +/* concated harmony reexport ColorPalette */__webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return color_palette; }); +/* concated harmony reexport ColorPaletteControl */__webpack_require__.d(__webpack_exports__, "ColorPaletteControl", function() { return ColorPaletteControl; }); +/* concated harmony reexport ContrastChecker */__webpack_require__.d(__webpack_exports__, "ContrastChecker", function() { return contrast_checker; }); +/* concated harmony reexport __experimentalGradientPicker */__webpack_require__.d(__webpack_exports__, "__experimentalGradientPicker", function() { return gradient_picker; }); +/* concated harmony reexport __experimentalGradientPickerControl */__webpack_require__.d(__webpack_exports__, "__experimentalGradientPickerControl", function() { return GradientPickerControl; }); +/* concated harmony reexport __experimentalGradientPickerPanel */__webpack_require__.d(__webpack_exports__, "__experimentalGradientPickerPanel", function() { return GradientPanel; }); +/* concated harmony reexport __experimentalColorGradientControl */__webpack_require__.d(__webpack_exports__, "__experimentalColorGradientControl", function() { return control; }); +/* concated harmony reexport __experimentalPanelColorGradientSettings */__webpack_require__.d(__webpack_exports__, "__experimentalPanelColorGradientSettings", function() { return panel_color_gradient_settings; }); +/* concated harmony reexport __experimentalImageSizeControl */__webpack_require__.d(__webpack_exports__, "__experimentalImageSizeControl", function() { return ImageSizeControl; }); +/* concated harmony reexport InnerBlocks */__webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return inner_blocks; }); +/* concated harmony reexport InspectorAdvancedControls */__webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return inspector_advanced_controls; }); +/* concated harmony reexport InspectorControls */__webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return inspector_controls; }); +/* concated harmony reexport __experimentalLinkControl */__webpack_require__.d(__webpack_exports__, "__experimentalLinkControl", function() { return link_control; }); +/* concated harmony reexport __experimentalLineHeightControl */__webpack_require__.d(__webpack_exports__, "__experimentalLineHeightControl", function() { return LineHeightControl; }); +/* concated harmony reexport MediaReplaceFlow */__webpack_require__.d(__webpack_exports__, "MediaReplaceFlow", function() { return media_replace_flow; }); +/* concated harmony reexport MediaPlaceholder */__webpack_require__.d(__webpack_exports__, "MediaPlaceholder", function() { return media_placeholder; }); +/* concated harmony reexport MediaUpload */__webpack_require__.d(__webpack_exports__, "MediaUpload", function() { return media_upload; }); +/* concated harmony reexport MediaUploadCheck */__webpack_require__.d(__webpack_exports__, "MediaUploadCheck", function() { return check; }); +/* concated harmony reexport PanelColorSettings */__webpack_require__.d(__webpack_exports__, "PanelColorSettings", function() { return panel_color_settings; }); +/* concated harmony reexport PlainText */__webpack_require__.d(__webpack_exports__, "PlainText", function() { return plain_text; }); +/* concated harmony reexport __experimentalResponsiveBlockControl */__webpack_require__.d(__webpack_exports__, "__experimentalResponsiveBlockControl", function() { return responsive_block_control; }); +/* concated harmony reexport RichText */__webpack_require__.d(__webpack_exports__, "RichText", function() { return rich_text; }); +/* concated harmony reexport RichTextShortcut */__webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return shortcut_RichTextShortcut; }); +/* concated harmony reexport RichTextToolbarButton */__webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return RichTextToolbarButton; }); +/* concated harmony reexport __unstableRichTextInputEvent */__webpack_require__.d(__webpack_exports__, "__unstableRichTextInputEvent", function() { return input_event_unstableRichTextInputEvent; }); +/* concated harmony reexport ToolSelector */__webpack_require__.d(__webpack_exports__, "ToolSelector", function() { return tool_selector; }); +/* concated harmony reexport __experimentalUnitControl */__webpack_require__.d(__webpack_exports__, "__experimentalUnitControl", function() { return UnitControl; }); +/* concated harmony reexport URLInput */__webpack_require__.d(__webpack_exports__, "URLInput", function() { return url_input; }); +/* concated harmony reexport URLInputButton */__webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return url_input_button; }); +/* concated harmony reexport URLPopover */__webpack_require__.d(__webpack_exports__, "URLPopover", function() { return url_popover; }); +/* concated harmony reexport __experimentalImageURLInputUI */__webpack_require__.d(__webpack_exports__, "__experimentalImageURLInputUI", function() { return image_url_input_ui_ImageURLInputUI; }); +/* concated harmony reexport withColorContext */__webpack_require__.d(__webpack_exports__, "withColorContext", function() { return with_color_context; }); +/* concated harmony reexport __experimentalBlockSettingsMenuFirstItem */__webpack_require__.d(__webpack_exports__, "__experimentalBlockSettingsMenuFirstItem", function() { return block_settings_menu_first_item; }); +/* concated harmony reexport __experimentalInserterMenuExtension */__webpack_require__.d(__webpack_exports__, "__experimentalInserterMenuExtension", function() { return inserter_menu_extension; }); +/* concated harmony reexport __experimentalPreviewOptions */__webpack_require__.d(__webpack_exports__, "__experimentalPreviewOptions", function() { return PreviewOptions; }); +/* concated harmony reexport __experimentalUseResizeCanvas */__webpack_require__.d(__webpack_exports__, "__experimentalUseResizeCanvas", function() { return useResizeCanvas; }); +/* concated harmony reexport BlockInspector */__webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return block_inspector; }); +/* concated harmony reexport BlockList */__webpack_require__.d(__webpack_exports__, "BlockList", function() { return block_list; }); +/* concated harmony reexport __experimentalBlock */__webpack_require__.d(__webpack_exports__, "__experimentalBlock", function() { return Block; }); +/* concated harmony reexport BlockMover */__webpack_require__.d(__webpack_exports__, "BlockMover", function() { return block_mover; }); +/* concated harmony reexport BlockPreview */__webpack_require__.d(__webpack_exports__, "BlockPreview", function() { return block_preview; }); +/* concated harmony reexport BlockSelectionClearer */__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return block_selection_clearer; }); +/* concated harmony reexport BlockSettingsMenu */__webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return block_settings_menu; }); +/* concated harmony reexport BlockSettingsMenuControls */__webpack_require__.d(__webpack_exports__, "BlockSettingsMenuControls", function() { return block_settings_menu_controls; }); +/* concated harmony reexport BlockTitle */__webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return BlockTitle; }); +/* concated harmony reexport BlockToolbar */__webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return BlockToolbar; }); +/* concated harmony reexport CopyHandler */__webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return copy_handler; }); +/* concated harmony reexport DefaultBlockAppender */__webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return default_block_appender; }); +/* concated harmony reexport __unstableEditorStyles */__webpack_require__.d(__webpack_exports__, "__unstableEditorStyles", function() { return editor_styles; }); +/* concated harmony reexport Inserter */__webpack_require__.d(__webpack_exports__, "Inserter", function() { return inserter; }); +/* concated harmony reexport __experimentalLibrary */__webpack_require__.d(__webpack_exports__, "__experimentalLibrary", function() { return library; }); +/* concated harmony reexport BlockEditorKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "BlockEditorKeyboardShortcuts", function() { return keyboard_shortcuts; }); +/* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return MultiSelectScrollIntoView; }); +/* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return navigable_toolbar; }); +/* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return observe_typing; }); +/* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return PreserveScrollInReorder; }); +/* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return skip_to_selected_block; }); +/* concated harmony reexport Typewriter */__webpack_require__.d(__webpack_exports__, "Typewriter", function() { return typewriter; }); +/* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return warning; }); +/* concated harmony reexport WritingFlow */__webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return WritingFlow; }); +/* concated harmony reexport BlockEditorProvider */__webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return provider; }); +/* concated harmony reexport useSimulatedMediaQuery */__webpack_require__.d(__webpack_exports__, "useSimulatedMediaQuery", function() { return useSimulatedMediaQuery; }); +/* concated harmony reexport __experimentalUseEditorFeature */__webpack_require__.d(__webpack_exports__, "__experimentalUseEditorFeature", function() { return useEditorFeature; }); +/* concated harmony reexport getColorClassName */__webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return getColorClassName; }); +/* concated harmony reexport getColorObjectByAttributeValues */__webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return utils_getColorObjectByAttributeValues; }); +/* concated harmony reexport getColorObjectByColorValue */__webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return utils_getColorObjectByColorValue; }); +/* concated harmony reexport createCustomColorsHOC */__webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return createCustomColorsHOC; }); +/* concated harmony reexport withColors */__webpack_require__.d(__webpack_exports__, "withColors", function() { return withColors; }); +/* concated harmony reexport __experimentalUseColors */__webpack_require__.d(__webpack_exports__, "__experimentalUseColors", function() { return __experimentalUseColors; }); +/* concated harmony reexport getFontSize */__webpack_require__.d(__webpack_exports__, "getFontSize", function() { return utils_getFontSize; }); +/* concated harmony reexport getFontSizeClass */__webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return getFontSizeClass; }); +/* concated harmony reexport getFontSizeObjectByValue */__webpack_require__.d(__webpack_exports__, "getFontSizeObjectByValue", function() { return getFontSizeObjectByValue; }); +/* concated harmony reexport FontSizePicker */__webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return font_size_picker; }); +/* concated harmony reexport withFontSizes */__webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return with_font_sizes; }); +/* concated harmony reexport __experimentalGetGradientClass */__webpack_require__.d(__webpack_exports__, "__experimentalGetGradientClass", function() { return __experimentalGetGradientClass; }); +/* concated harmony reexport getGradientValueBySlug */__webpack_require__.d(__webpack_exports__, "getGradientValueBySlug", function() { return getGradientValueBySlug; }); +/* concated harmony reexport __experimentalGetGradientObjectByGradientValue */__webpack_require__.d(__webpack_exports__, "__experimentalGetGradientObjectByGradientValue", function() { return __experimentalGetGradientObjectByGradientValue; }); +/* concated harmony reexport getGradientSlugByValue */__webpack_require__.d(__webpack_exports__, "getGradientSlugByValue", function() { return getGradientSlugByValue; }); +/* concated harmony reexport __experimentalUseGradient */__webpack_require__.d(__webpack_exports__, "__experimentalUseGradient", function() { return __experimentalUseGradient; }); +/* concated harmony reexport transformStyles */__webpack_require__.d(__webpack_exports__, "transformStyles", function() { return transform_styles; }); +/* concated harmony reexport storeConfig */__webpack_require__.d(__webpack_exports__, "storeConfig", function() { return storeConfig; }); +/* concated harmony reexport SETTINGS_DEFAULTS */__webpack_require__.d(__webpack_exports__, "SETTINGS_DEFAULTS", function() { return SETTINGS_DEFAULTS; }); +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + + + + + +/***/ }), + +/***/ 44: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 46: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} + +/***/ }), + +/***/ 47: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keyboardShortcuts"]; }()); + +/***/ }), + +/***/ 49: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), + +/***/ 5: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +/***/ }), + +/***/ 50: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Memize options object. + * + * @typedef MemizeOptions + * + * @property {number} [maxSize] Maximum size of the cache. + */ + +/** + * Internal cache entry. + * + * @typedef MemizeCacheNode + * + * @property {?MemizeCacheNode|undefined} [prev] Previous node. + * @property {?MemizeCacheNode|undefined} [next] Next node. + * @property {Array<*>} args Function arguments for cache + * entry. + * @property {*} val Function result. + */ + +/** + * Properties of the enhanced function for controlling cache. + * + * @typedef MemizeMemoizedFunction + * + * @property {()=>void} clear Clear the cache. + */ + +/** + * Accepts a function to be memoized, and returns a new memoized function, with + * optional options. + * + * @template {Function} F + * + * @param {F} fn Function to memoize. + * @param {MemizeOptions} [options] Options object. + * + * @return {F & MemizeMemoizedFunction} Memoized function. + */ +function memize( fn, options ) { + var size = 0; + + /** @type {?MemizeCacheNode|undefined} */ + var head; + + /** @type {?MemizeCacheNode|undefined} */ + var tail; + + options = options || {}; + + function memoized( /* ...args */ ) { + var node = head, + len = arguments.length, + args, i; + + searchCache: while ( node ) { + // Perform a shallow equality test to confirm that whether the node + // under test is a candidate for the arguments passed. Two arrays + // are shallowly equal if their length matches and each entry is + // strictly equal between the two sets. Avoid abstracting to a + // function which could incur an arguments leaking deoptimization. + + // Check whether node arguments match arguments length + if ( node.args.length !== arguments.length ) { + node = node.next; + continue; + } + + // Check whether node arguments match arguments values + for ( i = 0; i < len; i++ ) { + if ( node.args[ i ] !== arguments[ i ] ) { + node = node.next; + continue searchCache; + } + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== head ) { + // As tail, shift to previous. Must only shift if not also + // head, since if both head and tail, there is no previous. + if ( node === tail ) { + tail = node.prev; + } + + // Adjust siblings to point to each other. If node was tail, + // this also handles new tail's empty `next` assignment. + /** @type {MemizeCacheNode} */ ( node.prev ).next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = head; + node.prev = null; + /** @type {MemizeCacheNode} */ ( head ).prev = node; + head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + // Create a copy of arguments (avoid leaking deoptimization) + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + node = { + args: args, + + // Generate the result from original function + val: fn.apply( null, args ), + }; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( head ) { + head.prev = node; + node.next = head; + } else { + // If no head, follows that there's no tail (at initial or reset) + tail = node; + } + + // Trim tail if we're reached max size and are pending cache insertion + if ( size === /** @type {MemizeOptions} */ ( options ).maxSize ) { + tail = /** @type {MemizeCacheNode} */ ( tail ).prev; + /** @type {MemizeCacheNode} */ ( tail ).next = null; + } else { + size++; + } + + head = node; + + return node.val; + } + + memoized.clear = function() { + head = null; + tail = null; + size = 0; + }; + + if ( false ) {} + + // Ignore reason: There's not a clear solution to create an intersection of + // the function with additional properties, where the goal is to retain the + // function signature of the incoming argument and add control properties + // on the return value. + + // @ts-ignore + return memoized; +} + +module.exports = memize; + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["isShallowEqual"]; }()); + +/***/ }), + +/***/ 56: +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +// https://github.com/bgrins/TinyColor +// Brian Grinstead, MIT License + +(function(Math) { + +var trimLeft = /^\s+/, + trimRight = /\s+$/, + tinyCounter = 0, + mathRound = Math.round, + mathMin = Math.min, + mathMax = Math.max, + mathRandom = Math.random; + +function tinycolor (color, opts) { + + color = (color) ? color : ''; + opts = opts || { }; + + // If input is already a tinycolor, return itself + if (color instanceof tinycolor) { + return color; + } + // If we are called as a function, call using new instead + if (!(this instanceof tinycolor)) { + return new tinycolor(color, opts); + } + + var rgb = inputToRGB(color); + this._originalInput = color, + this._r = rgb.r, + this._g = rgb.g, + this._b = rgb.b, + this._a = rgb.a, + this._roundA = mathRound(100*this._a) / 100, + this._format = opts.format || rgb.format; + this._gradientType = opts.gradientType; + + // Don't let the range of [0,255] come back in [0,1]. + // Potentially lose a little bit of precision here, but will fix issues where + // .5 gets interpreted as half of the total, instead of half of 1 + // If it was supposed to be 128, this was already taken care of by `inputToRgb` + if (this._r < 1) { this._r = mathRound(this._r); } + if (this._g < 1) { this._g = mathRound(this._g); } + if (this._b < 1) { this._b = mathRound(this._b); } + + this._ok = rgb.ok; + this._tc_id = tinyCounter++; +} + +tinycolor.prototype = { + isDark: function() { + return this.getBrightness() < 128; + }, + isLight: function() { + return !this.isDark(); + }, + isValid: function() { + return this._ok; + }, + getOriginalInput: function() { + return this._originalInput; + }, + getFormat: function() { + return this._format; + }, + getAlpha: function() { + return this._a; + }, + getBrightness: function() { + //http://www.w3.org/TR/AERT#color-contrast + var rgb = this.toRgb(); + return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; + }, + getLuminance: function() { + //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef + var rgb = this.toRgb(); + var RsRGB, GsRGB, BsRGB, R, G, B; + RsRGB = rgb.r/255; + GsRGB = rgb.g/255; + BsRGB = rgb.b/255; + + if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} + if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} + if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} + return (0.2126 * R) + (0.7152 * G) + (0.0722 * B); + }, + setAlpha: function(value) { + this._a = boundAlpha(value); + this._roundA = mathRound(100*this._a) / 100; + return this; + }, + toHsv: function() { + var hsv = rgbToHsv(this._r, this._g, this._b); + return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a }; + }, + toHsvString: function() { + var hsv = rgbToHsv(this._r, this._g, this._b); + var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100); + return (this._a == 1) ? + "hsv(" + h + ", " + s + "%, " + v + "%)" : + "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")"; + }, + toHsl: function() { + var hsl = rgbToHsl(this._r, this._g, this._b); + return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a }; + }, + toHslString: function() { + var hsl = rgbToHsl(this._r, this._g, this._b); + var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100); + return (this._a == 1) ? + "hsl(" + h + ", " + s + "%, " + l + "%)" : + "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")"; + }, + toHex: function(allow3Char) { + return rgbToHex(this._r, this._g, this._b, allow3Char); + }, + toHexString: function(allow3Char) { + return '#' + this.toHex(allow3Char); + }, + toHex8: function(allow4Char) { + return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char); + }, + toHex8String: function(allow4Char) { + return '#' + this.toHex8(allow4Char); + }, + toRgb: function() { + return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a }; + }, + toRgbString: function() { + return (this._a == 1) ? + "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : + "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")"; + }, + toPercentageRgb: function() { + return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a }; + }, + toPercentageRgbString: function() { + return (this._a == 1) ? + "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : + "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")"; + }, + toName: function() { + if (this._a === 0) { + return "transparent"; + } + + if (this._a < 1) { + return false; + } + + return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false; + }, + toFilter: function(secondColor) { + var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); + var secondHex8String = hex8String; + var gradientType = this._gradientType ? "GradientType = 1, " : ""; + + if (secondColor) { + var s = tinycolor(secondColor); + secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); + } + + return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"; + }, + toString: function(format) { + var formatSet = !!format; + format = format || this._format; + + var formattedString = false; + var hasAlpha = this._a < 1 && this._a >= 0; + var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name"); + + if (needsAlphaFormat) { + // Special case for "transparent", all other non-alpha formats + // will return rgba when there is transparency. + if (format === "name" && this._a === 0) { + return this.toName(); + } + return this.toRgbString(); + } + if (format === "rgb") { + formattedString = this.toRgbString(); + } + if (format === "prgb") { + formattedString = this.toPercentageRgbString(); + } + if (format === "hex" || format === "hex6") { + formattedString = this.toHexString(); + } + if (format === "hex3") { + formattedString = this.toHexString(true); + } + if (format === "hex4") { + formattedString = this.toHex8String(true); + } + if (format === "hex8") { + formattedString = this.toHex8String(); + } + if (format === "name") { + formattedString = this.toName(); + } + if (format === "hsl") { + formattedString = this.toHslString(); + } + if (format === "hsv") { + formattedString = this.toHsvString(); + } + + return formattedString || this.toHexString(); + }, + clone: function() { + return tinycolor(this.toString()); + }, + + _applyModification: function(fn, args) { + var color = fn.apply(null, [this].concat([].slice.call(args))); + this._r = color._r; + this._g = color._g; + this._b = color._b; + this.setAlpha(color._a); + return this; + }, + lighten: function() { + return this._applyModification(lighten, arguments); + }, + brighten: function() { + return this._applyModification(brighten, arguments); + }, + darken: function() { + return this._applyModification(darken, arguments); + }, + desaturate: function() { + return this._applyModification(desaturate, arguments); + }, + saturate: function() { + return this._applyModification(saturate, arguments); + }, + greyscale: function() { + return this._applyModification(greyscale, arguments); + }, + spin: function() { + return this._applyModification(spin, arguments); + }, + + _applyCombination: function(fn, args) { + return fn.apply(null, [this].concat([].slice.call(args))); + }, + analogous: function() { + return this._applyCombination(analogous, arguments); + }, + complement: function() { + return this._applyCombination(complement, arguments); + }, + monochromatic: function() { + return this._applyCombination(monochromatic, arguments); + }, + splitcomplement: function() { + return this._applyCombination(splitcomplement, arguments); + }, + triad: function() { + return this._applyCombination(triad, arguments); + }, + tetrad: function() { + return this._applyCombination(tetrad, arguments); + } +}; + +// If input is an object, force 1 into "1.0" to handle ratios properly +// String input requires "1.0" as input, so 1 will be treated as 1 +tinycolor.fromRatio = function(color, opts) { + if (typeof color == "object") { + var newColor = {}; + for (var i in color) { + if (color.hasOwnProperty(i)) { + if (i === "a") { + newColor[i] = color[i]; + } + else { + newColor[i] = convertToPercentage(color[i]); + } + } + } + color = newColor; + } + + return tinycolor(color, opts); +}; + +// Given a string or object, convert that input to RGB +// Possible string inputs: +// +// "red" +// "#f00" or "f00" +// "#ff0000" or "ff0000" +// "#ff000000" or "ff000000" +// "rgb 255 0 0" or "rgb (255, 0, 0)" +// "rgb 1.0 0 0" or "rgb (1, 0, 0)" +// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" +// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" +// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" +// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" +// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" +// +function inputToRGB(color) { + + var rgb = { r: 0, g: 0, b: 0 }; + var a = 1; + var s = null; + var v = null; + var l = null; + var ok = false; + var format = false; + + if (typeof color == "string") { + color = stringInputToObject(color); + } + + if (typeof color == "object") { + if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { + rgb = rgbToRgb(color.r, color.g, color.b); + ok = true; + format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; + } + else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { + s = convertToPercentage(color.s); + v = convertToPercentage(color.v); + rgb = hsvToRgb(color.h, s, v); + ok = true; + format = "hsv"; + } + else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { + s = convertToPercentage(color.s); + l = convertToPercentage(color.l); + rgb = hslToRgb(color.h, s, l); + ok = true; + format = "hsl"; + } + + if (color.hasOwnProperty("a")) { + a = color.a; + } + } + + a = boundAlpha(a); + + return { + ok: ok, + format: color.format || format, + r: mathMin(255, mathMax(rgb.r, 0)), + g: mathMin(255, mathMax(rgb.g, 0)), + b: mathMin(255, mathMax(rgb.b, 0)), + a: a + }; +} + + +// Conversion Functions +// -------------------- + +// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: +// + +// `rgbToRgb` +// Handle bounds / percentage checking to conform to CSS color spec +// +// *Assumes:* r, g, b in [0, 255] or [0, 1] +// *Returns:* { r, g, b } in [0, 255] +function rgbToRgb(r, g, b){ + return { + r: bound01(r, 255) * 255, + g: bound01(g, 255) * 255, + b: bound01(b, 255) * 255 + }; +} + +// `rgbToHsl` +// Converts an RGB color value to HSL. +// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] +// *Returns:* { h, s, l } in [0,1] +function rgbToHsl(r, g, b) { + + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + + var max = mathMax(r, g, b), min = mathMin(r, g, b); + var h, s, l = (max + min) / 2; + + if(max == min) { + h = s = 0; // achromatic + } + else { + var d = max - min; + s = l > 0.5 ? d / (2 - max - min) : d / (max + min); + switch(max) { + case r: h = (g - b) / d + (g < b ? 6 : 0); break; + case g: h = (b - r) / d + 2; break; + case b: h = (r - g) / d + 4; break; + } + + h /= 6; + } + + return { h: h, s: s, l: l }; +} + +// `hslToRgb` +// Converts an HSL color value to RGB. +// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] +// *Returns:* { r, g, b } in the set [0, 255] +function hslToRgb(h, s, l) { + var r, g, b; + + h = bound01(h, 360); + s = bound01(s, 100); + l = bound01(l, 100); + + function hue2rgb(p, q, t) { + if(t < 0) t += 1; + if(t > 1) t -= 1; + if(t < 1/6) return p + (q - p) * 6 * t; + if(t < 1/2) return q; + if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; + return p; + } + + if(s === 0) { + r = g = b = l; // achromatic + } + else { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + r = hue2rgb(p, q, h + 1/3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1/3); + } + + return { r: r * 255, g: g * 255, b: b * 255 }; +} + +// `rgbToHsv` +// Converts an RGB color value to HSV +// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] +// *Returns:* { h, s, v } in [0,1] +function rgbToHsv(r, g, b) { + + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + + var max = mathMax(r, g, b), min = mathMin(r, g, b); + var h, s, v = max; + + var d = max - min; + s = max === 0 ? 0 : d / max; + + if(max == min) { + h = 0; // achromatic + } + else { + switch(max) { + case r: h = (g - b) / d + (g < b ? 6 : 0); break; + case g: h = (b - r) / d + 2; break; + case b: h = (r - g) / d + 4; break; + } + h /= 6; + } + return { h: h, s: s, v: v }; +} + +// `hsvToRgb` +// Converts an HSV color value to RGB. +// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] +// *Returns:* { r, g, b } in the set [0, 255] + function hsvToRgb(h, s, v) { + + h = bound01(h, 360) * 6; + s = bound01(s, 100); + v = bound01(v, 100); + + var i = Math.floor(h), + f = h - i, + p = v * (1 - s), + q = v * (1 - f * s), + t = v * (1 - (1 - f) * s), + mod = i % 6, + r = [v, q, p, p, t, v][mod], + g = [t, v, v, q, p, p][mod], + b = [p, p, t, v, v, q][mod]; + + return { r: r * 255, g: g * 255, b: b * 255 }; +} + +// `rgbToHex` +// Converts an RGB color to hex +// Assumes r, g, and b are contained in the set [0, 255] +// Returns a 3 or 6 character hex +function rgbToHex(r, g, b, allow3Char) { + + var hex = [ + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)) + ]; + + // Return a 3 character hex if possible + if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) { + return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); + } + + return hex.join(""); +} + +// `rgbaToHex` +// Converts an RGBA color plus alpha transparency to hex +// Assumes r, g, b are contained in the set [0, 255] and +// a in [0, 1]. Returns a 4 or 8 character rgba hex +function rgbaToHex(r, g, b, a, allow4Char) { + + var hex = [ + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)), + pad2(convertDecimalToHex(a)) + ]; + + // Return a 4 character hex if possible + if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) { + return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); + } + + return hex.join(""); +} + +// `rgbaToArgbHex` +// Converts an RGBA color to an ARGB Hex8 string +// Rarely used, but required for "toFilter()" +function rgbaToArgbHex(r, g, b, a) { + + var hex = [ + pad2(convertDecimalToHex(a)), + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)) + ]; + + return hex.join(""); +} + +// `equals` +// Can be called with any tinycolor input +tinycolor.equals = function (color1, color2) { + if (!color1 || !color2) { return false; } + return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString(); +}; + +tinycolor.random = function() { + return tinycolor.fromRatio({ + r: mathRandom(), + g: mathRandom(), + b: mathRandom() + }); +}; + + +// Modification Functions +// ---------------------- +// Thanks to less.js for some of the basics here +// + +function desaturate(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.s -= amount / 100; + hsl.s = clamp01(hsl.s); + return tinycolor(hsl); +} + +function saturate(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.s += amount / 100; + hsl.s = clamp01(hsl.s); + return tinycolor(hsl); +} + +function greyscale(color) { + return tinycolor(color).desaturate(100); +} + +function lighten (color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.l += amount / 100; + hsl.l = clamp01(hsl.l); + return tinycolor(hsl); +} + +function brighten(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var rgb = tinycolor(color).toRgb(); + rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100)))); + rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100)))); + rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100)))); + return tinycolor(rgb); +} + +function darken (color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.l -= amount / 100; + hsl.l = clamp01(hsl.l); + return tinycolor(hsl); +} + +// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. +// Values outside of this range will be wrapped into this range. +function spin(color, amount) { + var hsl = tinycolor(color).toHsl(); + var hue = (hsl.h + amount) % 360; + hsl.h = hue < 0 ? 360 + hue : hue; + return tinycolor(hsl); +} + +// Combination Functions +// --------------------- +// Thanks to jQuery xColor for some of the ideas behind these +// + +function complement(color) { + var hsl = tinycolor(color).toHsl(); + hsl.h = (hsl.h + 180) % 360; + return tinycolor(hsl); +} + +function triad(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) + ]; +} + +function tetrad(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) + ]; +} + +function splitcomplement(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), + tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) + ]; +} + +function analogous(color, results, slices) { + results = results || 6; + slices = slices || 30; + + var hsl = tinycolor(color).toHsl(); + var part = 360 / slices; + var ret = [tinycolor(color)]; + + for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) { + hsl.h = (hsl.h + part) % 360; + ret.push(tinycolor(hsl)); + } + return ret; +} + +function monochromatic(color, results) { + results = results || 6; + var hsv = tinycolor(color).toHsv(); + var h = hsv.h, s = hsv.s, v = hsv.v; + var ret = []; + var modification = 1 / results; + + while (results--) { + ret.push(tinycolor({ h: h, s: s, v: v})); + v = (v + modification) % 1; + } + + return ret; +} + +// Utility Functions +// --------------------- + +tinycolor.mix = function(color1, color2, amount) { + amount = (amount === 0) ? 0 : (amount || 50); + + var rgb1 = tinycolor(color1).toRgb(); + var rgb2 = tinycolor(color2).toRgb(); + + var p = amount / 100; + + var rgba = { + r: ((rgb2.r - rgb1.r) * p) + rgb1.r, + g: ((rgb2.g - rgb1.g) * p) + rgb1.g, + b: ((rgb2.b - rgb1.b) * p) + rgb1.b, + a: ((rgb2.a - rgb1.a) * p) + rgb1.a + }; + + return tinycolor(rgba); +}; + + +// Readability Functions +// --------------------- +// false +// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false +tinycolor.isReadable = function(color1, color2, wcag2) { + var readability = tinycolor.readability(color1, color2); + var wcag2Parms, out; + + out = false; + + wcag2Parms = validateWCAG2Parms(wcag2); + switch (wcag2Parms.level + wcag2Parms.size) { + case "AAsmall": + case "AAAlarge": + out = readability >= 4.5; + break; + case "AAlarge": + out = readability >= 3; + break; + case "AAAsmall": + out = readability >= 7; + break; + } + return out; + +}; + +// `mostReadable` +// Given a base color and a list of possible foreground or background +// colors for that base, returns the most readable color. +// Optionally returns Black or White if the most readable color is unreadable. +// *Example* +// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255" +// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff" +// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3" +// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff" +tinycolor.mostReadable = function(baseColor, colorList, args) { + var bestColor = null; + var bestScore = 0; + var readability; + var includeFallbackColors, level, size ; + args = args || {}; + includeFallbackColors = args.includeFallbackColors ; + level = args.level; + size = args.size; + + for (var i= 0; i < colorList.length ; i++) { + readability = tinycolor.readability(baseColor, colorList[i]); + if (readability > bestScore) { + bestScore = readability; + bestColor = tinycolor(colorList[i]); + } + } + + if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) { + return bestColor; + } + else { + args.includeFallbackColors=false; + return tinycolor.mostReadable(baseColor,["#fff", "#000"],args); + } +}; + + +// Big List of Colors +// ------------------ +// +var names = tinycolor.names = { + aliceblue: "f0f8ff", + antiquewhite: "faebd7", + aqua: "0ff", + aquamarine: "7fffd4", + azure: "f0ffff", + beige: "f5f5dc", + bisque: "ffe4c4", + black: "000", + blanchedalmond: "ffebcd", + blue: "00f", + blueviolet: "8a2be2", + brown: "a52a2a", + burlywood: "deb887", + burntsienna: "ea7e5d", + cadetblue: "5f9ea0", + chartreuse: "7fff00", + chocolate: "d2691e", + coral: "ff7f50", + cornflowerblue: "6495ed", + cornsilk: "fff8dc", + crimson: "dc143c", + cyan: "0ff", + darkblue: "00008b", + darkcyan: "008b8b", + darkgoldenrod: "b8860b", + darkgray: "a9a9a9", + darkgreen: "006400", + darkgrey: "a9a9a9", + darkkhaki: "bdb76b", + darkmagenta: "8b008b", + darkolivegreen: "556b2f", + darkorange: "ff8c00", + darkorchid: "9932cc", + darkred: "8b0000", + darksalmon: "e9967a", + darkseagreen: "8fbc8f", + darkslateblue: "483d8b", + darkslategray: "2f4f4f", + darkslategrey: "2f4f4f", + darkturquoise: "00ced1", + darkviolet: "9400d3", + deeppink: "ff1493", + deepskyblue: "00bfff", + dimgray: "696969", + dimgrey: "696969", + dodgerblue: "1e90ff", + firebrick: "b22222", + floralwhite: "fffaf0", + forestgreen: "228b22", + fuchsia: "f0f", + gainsboro: "dcdcdc", + ghostwhite: "f8f8ff", + gold: "ffd700", + goldenrod: "daa520", + gray: "808080", + green: "008000", + greenyellow: "adff2f", + grey: "808080", + honeydew: "f0fff0", + hotpink: "ff69b4", + indianred: "cd5c5c", + indigo: "4b0082", + ivory: "fffff0", + khaki: "f0e68c", + lavender: "e6e6fa", + lavenderblush: "fff0f5", + lawngreen: "7cfc00", + lemonchiffon: "fffacd", + lightblue: "add8e6", + lightcoral: "f08080", + lightcyan: "e0ffff", + lightgoldenrodyellow: "fafad2", + lightgray: "d3d3d3", + lightgreen: "90ee90", + lightgrey: "d3d3d3", + lightpink: "ffb6c1", + lightsalmon: "ffa07a", + lightseagreen: "20b2aa", + lightskyblue: "87cefa", + lightslategray: "789", + lightslategrey: "789", + lightsteelblue: "b0c4de", + lightyellow: "ffffe0", + lime: "0f0", + limegreen: "32cd32", + linen: "faf0e6", + magenta: "f0f", + maroon: "800000", + mediumaquamarine: "66cdaa", + mediumblue: "0000cd", + mediumorchid: "ba55d3", + mediumpurple: "9370db", + mediumseagreen: "3cb371", + mediumslateblue: "7b68ee", + mediumspringgreen: "00fa9a", + mediumturquoise: "48d1cc", + mediumvioletred: "c71585", + midnightblue: "191970", + mintcream: "f5fffa", + mistyrose: "ffe4e1", + moccasin: "ffe4b5", + navajowhite: "ffdead", + navy: "000080", + oldlace: "fdf5e6", + olive: "808000", + olivedrab: "6b8e23", + orange: "ffa500", + orangered: "ff4500", + orchid: "da70d6", + palegoldenrod: "eee8aa", + palegreen: "98fb98", + paleturquoise: "afeeee", + palevioletred: "db7093", + papayawhip: "ffefd5", + peachpuff: "ffdab9", + peru: "cd853f", + pink: "ffc0cb", + plum: "dda0dd", + powderblue: "b0e0e6", + purple: "800080", + rebeccapurple: "663399", + red: "f00", + rosybrown: "bc8f8f", + royalblue: "4169e1", + saddlebrown: "8b4513", + salmon: "fa8072", + sandybrown: "f4a460", + seagreen: "2e8b57", + seashell: "fff5ee", + sienna: "a0522d", + silver: "c0c0c0", + skyblue: "87ceeb", + slateblue: "6a5acd", + slategray: "708090", + slategrey: "708090", + snow: "fffafa", + springgreen: "00ff7f", + steelblue: "4682b4", + tan: "d2b48c", + teal: "008080", + thistle: "d8bfd8", + tomato: "ff6347", + turquoise: "40e0d0", + violet: "ee82ee", + wheat: "f5deb3", + white: "fff", + whitesmoke: "f5f5f5", + yellow: "ff0", + yellowgreen: "9acd32" +}; + +// Make it easy to access colors via `hexNames[hex]` +var hexNames = tinycolor.hexNames = flip(names); + + +// Utilities +// --------- + +// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }` +function flip(o) { + var flipped = { }; + for (var i in o) { + if (o.hasOwnProperty(i)) { + flipped[o[i]] = i; + } + } + return flipped; +} + +// Return a valid alpha value [0,1] with all invalid values being set to 1 +function boundAlpha(a) { + a = parseFloat(a); + + if (isNaN(a) || a < 0 || a > 1) { + a = 1; + } + + return a; +} + +// Take input from [0, n] and return it as [0, 1] +function bound01(n, max) { + if (isOnePointZero(n)) { n = "100%"; } + + var processPercent = isPercentage(n); + n = mathMin(max, mathMax(0, parseFloat(n))); + + // Automatically convert percentage into number + if (processPercent) { + n = parseInt(n * max, 10) / 100; + } + + // Handle floating point rounding errors + if ((Math.abs(n - max) < 0.000001)) { + return 1; + } + + // Convert into [0, 1] range if it isn't already + return (n % max) / parseFloat(max); +} + +// Force a number between 0 and 1 +function clamp01(val) { + return mathMin(1, mathMax(0, val)); +} + +// Parse a base-16 hex value into a base-10 integer +function parseIntFromHex(val) { + return parseInt(val, 16); +} + +// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 +// +function isOnePointZero(n) { + return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; +} + +// Check to see if string passed in is a percentage +function isPercentage(n) { + return typeof n === "string" && n.indexOf('%') != -1; +} + +// Force a hex value to have 2 characters +function pad2(c) { + return c.length == 1 ? '0' + c : '' + c; +} + +// Replace a decimal with it's percentage value +function convertToPercentage(n) { + if (n <= 1) { + n = (n * 100) + "%"; + } + + return n; +} + +// Converts a decimal to a hex value +function convertDecimalToHex(d) { + return Math.round(parseFloat(d) * 255).toString(16); +} +// Converts a hex value to a decimal +function convertHexToDecimal(h) { + return (parseIntFromHex(h) / 255); +} + +var matchers = (function() { + + // + var CSS_INTEGER = "[-\\+]?\\d+%?"; + + // + var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; + + // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. + var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; + + // Actual matching. + // Parentheses and commas are optional, but not required. + // Whitespace can take the place of commas or opening paren + var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; + var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; + + return { + CSS_UNIT: new RegExp(CSS_UNIT), + rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), + rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), + hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), + hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), + hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), + hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }; +})(); + +// `isValidCSSUnit` +// Take in a single string / number and check to see if it looks like a CSS unit +// (see `matchers` above for definition). +function isValidCSSUnit(color) { + return !!matchers.CSS_UNIT.exec(color); +} + +// `stringInputToObject` +// Permissive string parsing. Take in a number of formats, and output an object +// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` +function stringInputToObject(color) { + + color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase(); + var named = false; + if (names[color]) { + color = names[color]; + named = true; + } + else if (color == 'transparent') { + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + } + + // Try to match string input using regular expressions. + // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] + // Just return an object and let the conversion functions handle that. + // This way the result will be the same whether the tinycolor is initialized with string or object. + var match; + if ((match = matchers.rgb.exec(color))) { + return { r: match[1], g: match[2], b: match[3] }; + } + if ((match = matchers.rgba.exec(color))) { + return { r: match[1], g: match[2], b: match[3], a: match[4] }; + } + if ((match = matchers.hsl.exec(color))) { + return { h: match[1], s: match[2], l: match[3] }; + } + if ((match = matchers.hsla.exec(color))) { + return { h: match[1], s: match[2], l: match[3], a: match[4] }; + } + if ((match = matchers.hsv.exec(color))) { + return { h: match[1], s: match[2], v: match[3] }; + } + if ((match = matchers.hsva.exec(color))) { + return { h: match[1], s: match[2], v: match[3], a: match[4] }; + } + if ((match = matchers.hex8.exec(color))) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + a: convertHexToDecimal(match[4]), + format: named ? "name" : "hex8" + }; + } + if ((match = matchers.hex6.exec(color))) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + format: named ? "name" : "hex" + }; + } + if ((match = matchers.hex4.exec(color))) { + return { + r: parseIntFromHex(match[1] + '' + match[1]), + g: parseIntFromHex(match[2] + '' + match[2]), + b: parseIntFromHex(match[3] + '' + match[3]), + a: convertHexToDecimal(match[4] + '' + match[4]), + format: named ? "name" : "hex8" + }; + } + if ((match = matchers.hex3.exec(color))) { + return { + r: parseIntFromHex(match[1] + '' + match[1]), + g: parseIntFromHex(match[2] + '' + match[2]), + b: parseIntFromHex(match[3] + '' + match[3]), + format: named ? "name" : "hex" + }; + } + + return false; +} + +function validateWCAG2Parms(parms) { + // return valid WCAG2 parms for isReadable. + // If input parms are invalid, return {"level":"AA", "size":"small"} + var level, size; + parms = parms || {"level":"AA", "size":"small"}; + level = (parms.level || "AA").toUpperCase(); + size = (parms.size || "small").toLowerCase(); + if (level !== "AA" && level !== "AAA") { + level = "AA"; + } + if (size !== "small" && size !== "large") { + size = "small"; + } + return {"level":level, "size":size}; +} + +// Node: Export function +if ( true && module.exports) { + module.exports = tinycolor; +} +// AMD/requirejs: Define the module +else if (true) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); +} +// Browser: Expose to window +else {} + +})(Math); + + +/***/ }), + +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["primitives"]; }()); + +/***/ }), + +/***/ 62: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["htmlEntities"]; }()); + +/***/ }), + +/***/ 72: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["viewport"]; }()); + +/***/ }), + +/***/ 8: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +/***/ }), + +/***/ 88: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +exports.__esModule = true; +var TextareaAutosize_1 = __webpack_require__(164); +exports["default"] = TextareaAutosize_1["default"]; /***/ }), @@ -31993,7 +34019,7 @@ module.exports = refx; /***/ 9: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["primitives"]; }()); +(function() { module.exports = this["wp"]["compose"]; }()); /***/ }) diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 4cf36d0837..14a0c553b0 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -1,50 +1,12 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=421)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},11:function(e,t,n){var r; +this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=433)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},103:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r1?t-1:0),r=1;r=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l=f.startTime+s.duration;else if(s.decay)O=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-O)<.1)&&(m=O);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;km:O=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),i}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(v),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),U=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A.has(t)||A.add(t),L||(L=!0,E(P||M));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,A.has(t)&&A.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=O.transform(t)),n.payload=t,n}return l(t,e),t}(j),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ge=new RegExp("("+Object.keys(Z).join("|")+")","g"),ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}ve=Object.keys(ve).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ve);var ke={};N((function(e){return new X(e)})),B("div"),C((function(e){var t=e.output.map((function(e){return e.replace(Oe,pe)})).map((function(e){return e.replace(ge,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){var e=!1;b.current&&(e=O.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),g=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),v=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},g,{ref:v}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Se=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=M,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),O=a.onRest,g=a.onStart,v=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,O=a.trail,g=void 0===O?0:O,v=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,S=o({},i.current),C=[].concat(i.deleted),w=Object.keys(S),I=new Set(w),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-g;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){v&&C.find((function(t){return t.originalKey===e}))&&(C=C.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";S[e]={slot:c,originalKey:e,key:v?String(e):W++,item:o,trail:N+=g,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];C.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=g,config:p(h,n,"leave"),to:p(f,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];S[e]=o({},S[e],{item:n,slot:"update",trail:N+=g,config:p(h,n,"update"),to:p(m,n)})}))}}var R=s.map((function(e){return S[e]}));return C.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,current:S,deleted:C,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:v,onRest:function(n){y.current.mounted&&(e.destroyed&&(v||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&y.current.deleted.length>0&&Y(y),O&&O(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},11:function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(163);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?N+="x":N+=P[L];if(!N.match(b)){var R=B.slice(0,C),M=B.slice(C+1),D=P.match(p);D&&(R.push(D[1]),M.unshift(D[2])),M.length&&(O="/"+M.join(".")+O),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+F,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!h[y])for(C=0,T=u.length;C0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=_.slice(-1)[0],w=(n.host||e.host||_.length>1)&&("."===S||".."===S)||""===S,C=0,I=_.length;I>=0;I--)"."===(S=_[I])?_.splice(I,1):".."===S?(_.splice(I,1),C++):C&&(_.splice(I,1),C--);if(!k&&!y)for(;C--;C)_.unshift("..");!k||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),w&&"/"!==_.join("/").substr(-1)&&_.push("");var x,B=""===_[0]||_[0]&&"/"===_[0].charAt(0);E&&(n.hostname=n.host=B?"":_.length?_.shift():"",(x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift()));return(k=k||n.host&&_.length)&&!B&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},118:function(e,t,n){"use strict";var r=n(119);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},119:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},12:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t0?!0===c?r.scrollTop(t,O.top+j.top):!1===c?r.scrollTop(t,O.top+k.top):j.top<0?r.scrollTop(t,O.top+j.top):r.scrollTop(t,O.top+k.top):i||((c=void 0===c||!!c)?r.scrollTop(t,O.top+j.top):r.scrollTop(t,O.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,O.left+j.left):!1===a?r.scrollLeft(t,O.left+k.left):j.left<0?r.scrollLeft(t,O.left+j.left):r.scrollLeft(t,O.left+k.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,O.left+j.left):r.scrollLeft(t,O.left+k.left)))}},151:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),o=n(35),c=n(28),i=n(39);function a(e){return Object(r.a)(e)||Object(o.a)(e)||Object(c.a)(e)||Object(i.a)()}},141:function(e,t){!function(){e.exports=this.wp.wordcount}()},145:function(e,t){!function(){e.exports=this.wp.tokenList}()},15:function(e,t,n){"use strict";var r=n(38);var o=n(28),c=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}n.d(t,"a",(function(){return i}))},156:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},16:function(e,t,n){"use strict";var r=n(26);var o=n(35),c=n(28);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return i}))},161:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},163:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},164:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r=0||(o[n]=e[n]);return o}},158:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},159:function(e,t,n){"use strict";var r=n(0),o=n(9),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z"}));t.a=i},16:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},160:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var a,l=2147483647,s=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=Math.floor,p=String.fromCharCode;function h(e){throw RangeError(f[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(d,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,n){var r=0;for(e=n?b(e/700):e>>1,e+=b(e/t);e>455;r+=36)e=b(e/35);return b(r+36*e/(e+38))}function y(e){var t,n,r,o,i,c,a,s,u,d,f,p=[],m=e.length,g=0,v=128,j=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&h("not-basic"),p.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=m&&h("invalid-input"),((s=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||s>b((l-g)/c))&&h("overflow"),g+=s*c,!(s<(u=a<=j?1:a>=j+26?26:a-j));a+=36)c>b(l/(d=36-u))&&h("overflow"),c*=d;j=k(g-i,t=p.length+1,0==i),b(g/t)>l-v&&h("overflow"),v+=b(g/t),g%=t,p.splice(g++,0,v)}return O(p)}function _(e){var t,n,r,o,i,c,a,s,u,d,f,m,g,O,y,_=[];for(m=(e=v(e)).length,t=128,n=0,i=72,c=0;c=t&&fb((l-n)/(g=r+1))&&h("overflow"),n+=(a-t)*g,t=a,c=0;cl&&h("overflow"),f==t){for(s=n,u=36;!(s<(d=u<=i?1:u>=i+26?26:u-i));u+=36)y=s-d,O=36-d,_.push(p(j(d+y%O,0))),s=b(y/O);_.push(p(j(s,0))),i=k(n,g,r==o),n=0,++r}++n,++t}return _.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:O},decode:y,encode:_,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return g(e,(function(e){return s.test(e)?y(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(161)(e),n(73))},161:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},162:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},163:function(e,t,n){"use strict";t.decode=t.parse=n(164),t.encode=t.stringify=n(165)},164:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var a=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(d=h.substr(0,m),f=h.substr(m+1)):(d=h,f=""),b=decodeURIComponent(d),p=decodeURIComponent(f),r(c,b)?o(c[b])?c[b].push(p):c[b]=[c[b],p]:c[b]=p}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},165:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(c(e),(function(c){var a=encodeURIComponent(r(c))+n;return o(e[c])?i(e[c],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[c]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},191:function(e,t,n){"use strict";var r=n(5),o=n(19),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n - -All rights reserved. - -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. - -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@license -*/ -var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(2),a=n(3),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),b=n(10),p=n(11),h=n(13),m=n(14),g=n(16),v=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=b.applyPatch,t.applyPatches=b.applyPatches,t.parsePatch=p.parsePatch,t.merge=h.merge,t.convertChangesToDMP=g.convertChangesToDMP,t.convertChangesToXML=v.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,c=t.length,a=0,l=0;ie.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],b=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&b+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],b=f[n+1],p=(b?b.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1=l&&p+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();p()||e()}),0)}();else for(;u<=d;){var h=p();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,c=e.newPos,a=c-r,l=0;c+12&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,b=void 0,p=void 0;function h(e,t){for(var n=0;n0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m0?C[0]:" ",x=C.length>0?C.substr(1):C,B=E.linedelimiters[w];if(" "===I)S++;else if("-"===I)r.splice(S,1),i.splice(S,1);else if("+"===I)r.splice(S,0,x),i.splice(S,0,B),S++;else if("\\"===I){var T=E.lines[w-1]?E.lines[w-1][0]:null;"+"===T?b=!0:"-"===T&&(p=!0)}}}if(b)for(;!r[r.length-1];)r.pop(),i.pop();else p&&(r.push(""),i.push("\n"));for(var P=0;P1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i0?u(a.lines.slice(-l.context)):[],f-=p.length,b-=p.length)}(c=p).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e=s.length-2&&r.length<=l.context){var k=/\n$/.test(n),y=/\n$/.test(i);0!=r.length||k?k&&y||p.push("\\ No newline at end of file"):p.splice(j.oldLines,0,"\\ No newline at end of file")}d.push(j),f=0,b=0,p=[]}h+=r.length,m+=r.length}},v=0;ve.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")}}])},e.exports=r()},263:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var f=n?i(d):d,b={},p=!0,h={node:f,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){b.before=e},after:function(e){b.after=e},pre:function(e){b.pre=e},post:function(e){b.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,i=$(),c=i.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,i=t.getSettings,a=r(c);return{gradient:a[n],customGradient:a[o],gradients:i().gradients}}),[c,n,o]),l=a.gradients,u=a.gradient,f=a.customGradient,b=Object(g.useDispatch)("core/block-editor"),p=b.updateBlockAttributes,h=Object(d.useCallback)((function(e){var t,r,i=te(l,e);i?p(c,(r={},Object(s.a)(r,n,i),Object(s.a)(r,o,void 0),r)):p(c,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[l,c,p]),m=J(u);return{gradientClass:m,gradientValue:u?Q(l,u):f,setGradient:h}}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var oe=Object(U.__)("(Color: %s)"),ie=Object(U.__)("(Gradient: %s)"),ce=["colors","disableCustomColors","gradients","disableCustomGradients"];function ae(e){var t,n,r=e.colors,o=e.gradients,i=e.label,c=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===c){if(a){var s=k(r,t=a),u=s&&s.name;n=Object(U.sprintf)(oe,u||t)}}else if("gradient"===c&&l){var f=ee(o,t=l),b=f&&f.name;n=Object(U.sprintf)(ie,b||t)}return Object(d.createElement)(d.Fragment,null,i,!!t&&Object(d.createElement)(z.ColorIndicator,{colorValue:t,"aria-label":n}))}function le(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,i=e.className,c=e.label,a=e.onColorChange,l=e.onGradientChange,s=e.colorValue,f=e.gradientValue,h=a&&(!Object(p.isEmpty)(t)||!r),m=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(f?"gradient":!!h&&"color"),v=Object(D.a)(g,2),O=v[0],j=v[1];return h||m?Object(d.createElement)(z.BaseControl,{className:b()("block-editor-color-gradient-control",i)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(z.BaseControl.VisualLabel,null,Object(d.createElement)(ae,{currentTab:O,label:c,colorValue:s,gradientValue:f})))),h&&m&&Object(d.createElement)(z.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(z.Button,{isSmall:!0,isPrimary:"color"===O,isSecondary:"color"!==O,onClick:function(){return j("color")}},Object(U.__)("Solid")),Object(d.createElement)(z.Button,{isSmall:!0,isPrimary:"gradient"===O,isSecondary:"gradient"!==O,onClick:function(){return j("gradient")}},Object(U.__)("Gradient"))),("color"===O||!m)&&Object(d.createElement)(z.ColorPalette,Object(u.a)({value:s,onChange:m?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===O||!h)&&Object(d.createElement)(z.__experimentalGradientPicker,Object(u.a)({value:f,onChange:h?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function se(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,ce)}));return Object(d.createElement)(le,function(e){for(var t=1;t=24?"large":"small"})?null:Object(d.createElement)(_e,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Se=Object(z.createSlotFill)("InspectorControls"),we=Se.Fill,Ce=Se.Slot,Ie=X(we);Ie.Slot=Ce;var xe=Ie;function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(U.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(U.__)("Color settings"):n,o=t.colorPanelProps,i=t.contrastCheckers,c=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,u=a.backgroundColorTargetRef,f=void 0===u?l:u,h=a.textColorTargetRef,m=void 0===h?l:h,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],O=$(),j=O.clientId,k=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:Ae}}),[j]),y=k.attributes,_=k.settingsColors,E=Object(g.useDispatch)("core/block-editor"),S=E.updateBlockAttributes,w=Object(d.useCallback)((function(e){return S(j,e)}),[S,j]),C=Object(d.useMemo)((function(){return H()((function(e,t,n,r,o,i){return function(c){var a=c.children,l=c.className,u=void 0===l?"":l,f=c.style,h=void 0===f?{}:f;return d.Children.map(a,(function(c){var a,l={};return r?l=Object(s.a)({},t,o):i&&(l=Object(s.a)({},t,i)),Object(d.cloneElement)(c,{className:b()(u,c.props.className,(a={},Object(s.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||i),a)),style:Te({},l,{},h,{},c.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),I=Object(d.useMemo)((function(){return H()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(s.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(s.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),x=Object(d.useState)(),B=Object(D.a)(x,2),T=B[0],P=B[1],N=Object(d.useState)(),L=Object(D.a)(N,2),A=L[0],R=L[1];return Object(d.useEffect)((function(){if(i){var e=!1,t=!1,n=!0,r=!1,o=void 0;try{for(var c,a=Object(p.castArray)(i)[Symbol.iterator]();!(n=(c=a.next()).done);n=!0){var l=c.value,s=l.backgroundColor,u=l.textColor;if(e||(e=!0===s),t||(t=!0===u),e&&t)break}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}if(t&&R(Ne(m.current).color),e){for(var d=f.current,b=Ne(d).backgroundColor;"rgba(0, 0, 0, 0)"===b&&d.parentNode&&d.parentNode.nodeType===Le.ELEMENT_NODE;)d=d.parentNode,b=Ne(d).backgroundColor;P(b)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(y[t.name]," | ").concat(y[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(M.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Te({},n,{color:y[n.name]}),o=r.name,i=r.property,c=void 0===i?o:i,a=r.className,l=r.panelLabel,s=void 0===l?n.label||Re[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,f=r.color,b=void 0===f?n.color:f,h=r.colors,m=void 0===h?_:h,g=y[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:m.find((function(e){return e.slug===b}));return e[d]=C(o,c,a,b,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=b,e[d].setColor=I(o,m),t[d]={value:v?v.color:y[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:m},m||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:i,detectedBackgroundColor:T,detectedColor:A,panelChildren:c};return Te({},n,{ColorPanel:Object(d.createElement)(De,a),InspectorControlsColorPanel:Object(d.createElement)(Fe,a)})}),[y,w,A,T].concat(Object(M.a)(v)))}var He=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function Ue(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var ze=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(z.FontSizePicker);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:1,o=Object(M.a)(e);return o.splice(t,r),Pt(o,e.slice(t,t+r),n)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Rt(o,r))})),n}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),Mt(n.innerBlocks,n.clientId))}),{})}function Dt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(M.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(F.a)(o,["innerBlocks"]);r.push.apply(r,Object(M.a)(i)),n[c.clientId]=t(c)}return n}function Ft(e){return Dt(e,(function(e){return Object(p.omit)(e,"attributes")}))}function Vt(e){return Dt(e,(function(e){return e.attributes}))}function Ht(e,t){return e===t?At({},e):t}function Ut(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var zt=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Gt=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=At({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?At({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Dt(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Dt(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=At({},r.cache,{},zt(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=At({},r.cache,{},zt(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=zt(o(n.replacedClientIds));r.cache=At({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(c,n.replacedClientIds),{},zt(Object(p.keys)(Dt(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=At({},Object(p.omit)(r.cache,n.removedClientIds),{},zt(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=At({},r.cache,{},zt(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=At({},r.cache,{},zt(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=At({},r.cache,{},zt(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(M.a)(n),[r],Object(M.a)(e(t,r)))}),[])}(t.order);return At({},t,{byClientId:At({},Object(p.omit)(t.byClientId,r),{},Ft(n.blocks)),attributes:At({},Object(p.omit)(t.attributes,r),{},Vt(n.blocks)),order:At({},Object(p.omit)(t.order,r),{},Rt(n.blocks)),parents:At({},Object(p.omit)(t.parents,r),{},Mt(n.blocks)),cache:At({},Object(p.omit)(t.cache,r),{},Object(p.mapValues)(Dt(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var i=e(r,o),c="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===i&&!c){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:At({},i,{isPersistentChange:a})}return i=At({},i,{isPersistentChange:c?!n:!Ut(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,i}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ft(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return At({},e,{},Ft(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:At({},e,Object(s.a)({},t.clientId,At({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?At({},Object(p.omit)(e,t.replacedClientIds),{},Ft(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Vt(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return At({},e,{},Vt(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?At({},e,Object(s.a)({},t.clientId,At({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Ht(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:At({},e,Object(s.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?At({},Object(p.omit)(e,t.replacedClientIds),{},Vt(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Rt(t.blocks);case"RECEIVE_BLOCKS":return At({},e,{},Object(p.omit)(Rt(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Rt(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return At({},e,{},i,Object(s.a)({},r,Pt(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,g=void 0===m?e[b].length:m;if(d===b){var v=e[b],O=v.indexOf(h);return At({},e,Object(s.a)({},b,Nt(e[b],O,g)))}return At({},e,(l={},Object(s.a)(l,d,Object(p.without)(e[d],h)),Object(s.a)(l,b,Pt(e[b],h,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return At({},e,Object(s.a)({},y,Nt(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,C=t.rootClientId,I=void 0===C?"":C,x=Object(p.first)(w),B=Object(p.last)(w),T=e[I];if(!T.length||B===Object(p.last)(T))return e;var P=T.indexOf(x);return At({},e,Object(s.a)({},I,Nt(T,P,P+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var L=Rt(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return At({},e,{},Object(p.omit)(L,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(M.a)(e),Object(M.a)(L[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(M.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Mt(t.blocks);case"RECEIVE_BLOCKS":return At({},e,{},Mt(t.blocks));case"INSERT_BLOCKS":return At({},e,{},Mt(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return At({},e,Object(s.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return At({},Object(p.omit)(e,t.replacedClientIds),{},Mt(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}var Wt=Object(g.combineReducers)({blocks:Gt,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Kt(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Kt(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return At({},e,Object(s.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:At({},e,Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return At({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return At({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),At({},e,{insertUsage:At({},e.insertUsage,Object(s.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(s.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}}}),qt=n(89),$t=n.n(qt),Yt=n(261),Xt=n.n(Yt),Zt=n(34),Jt=n(23),Qt=n.n(Jt);function en(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function _n(e){var t;return Qt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,en("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,yn(t,-1);case 6:case"end":return n.stop()}}),cn)}function En(e){var t;return Qt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,en("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,yn(t);case 6:case"end":return n.stop()}}),an)}function Sn(){return{type:"START_MULTI_SELECT"}}function wn(){return{type:"STOP_MULTI_SELECT"}}function Cn(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function In(){return{type:"CLEAR_SELECTED_BLOCK"}}function xn(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Bn(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return rn({},e,{attributes:rn({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function Tn(e,t,n){var r,o,i;return Qt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Bn,c.t1=Object(p.castArray)(t),c.next=5,en("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,en("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,en("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,en("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,en("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),sn)}function Mn(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Dn([e],t,n,r)}function Dn(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return Qt.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Bn,f.t1=Object(p.castArray)(e),f.next=5,en("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,en("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),un,null,[[11,24,28,36],[29,,31,35]])}function Fn(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Vn(){return{type:"HIDE_INSERTION_POINT"}}function Hn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Un(){return{type:"SYNCHRONIZE_TEMPLATE"}}function zn(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Gn(e){var t,n,r=arguments;return Qt.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=!(r.length>1&&void 0!==r[1])||r[1],e&&e.length){o.next=3;break}return o.abrupt("return");case 3:return e=Object(p.castArray)(e),o.next=6,en("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=o.sent,o.next=9,en("core/block-editor","getTemplateLock",n);case 9:if(!o.sent){o.next=12;break}return o.abrupt("return");case 12:if(!t){o.next=15;break}return o.next=15,_n(e[0]);case 15:return o.next=17,{type:"REMOVE_BLOCKS",clientIds:e};case 17:return o.delegateYield(mn(),"t0",18);case 18:case"end":return o.stop()}}),dn)}function Kn(e,t){return Gn([e],t)}function Wn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function qn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function $n(){return{type:"START_TYPING"}}function Yn(){return{type:"STOP_TYPING"}}function Xn(){return{type:"START_DRAGGING_BLOCKS"}}function Zn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Jn(){return{type:"ENTER_FORMATTED_TEXT"}}function Qn(){return{type:"EXIT_FORMATTED_TEXT"}}function er(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function tr(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Mn(Object(i.createBlock)(r,e),n,t)}function nr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function rr(e){return{type:"UPDATE_SETTINGS",settings:e}}function or(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function ir(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function cr(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ar(){return{type:"MARK_AUTOMATIC_CHANGE"}}function lr(){var e,t=arguments;return Qt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(ye.speak)(Object(U.__)("You are currently in navigation mode. Navigate blocks using the Tab key. To exit navigation mode and edit the selected block, press Enter.")):Object(ye.speak)(Object(U.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),fn)}function sr(e){var t,n,r,o,c;return Qt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e||e.length){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,en("core/block-editor","getBlocksByClientId",e);case 4:return t=a.sent,a.next=7,en("core/block-editor","getBlockRootClientId",e[0]);case 7:if(n=a.sent,!Object(p.some)(t,(function(e){return!e}))){a.next=10;break}return a.abrupt("return");case 10:if(r=t.map((function(e){return e.name})),!Object(p.some)(r,(function(e){return!Object(i.hasBlockSupport)(e,"multiple",!0)}))){a.next=13;break}return a.abrupt("return");case 13:return a.next=15,en("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),n);case 15:return o=a.sent,c=t.map((function(e){return Object(i.cloneBlock)(e)})),a.next=19,Dn(c,o+1,n);case 19:if(!(c.length>1)){a.next=22;break}return a.next=22,Cn(Object(p.first)(c).clientId,Object(p.last)(c).clientId);case 22:case"end":return a.stop()}}),bn)}function ur(e){var t,n;return Qt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,en("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,en("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,en("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,tr({},t,n);case 15:case"end":return r.stop()}}),pn)}function dr(e){var t,n;return Qt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,en("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,en("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,en("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,tr({},t,n+1);case 15:case"end":return r.stop()}}),hn)}var fr=n(40);function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Ur=Object(fr.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Hr(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:kr(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function zr(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Gr(e,t){for(var n,r=Dr(e),o=[].concat(Object(M.a)(Hr(e,t)),[t]),i=[].concat(Object(M.a)(Hr(e,r)),[r]),c=Math.min(o.length,i.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Dr(e)),void 0===t&&(t=n<0?Jr(e):Qr(e)),!t)return null;var r=Vr(e,t);if(null===r)return null;var o=e.blocks.order,i=o[r],c=i.indexOf(t),a=c+1*n;return a<0||a===i.length?null:i[a]}function Wr(e,t){return Kr(e,t,-1)}function qr(e,t){return Kr(e,t,1)}function $r(e){return e.initialPosition}var Yr=Object(fr.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return jr;if(t.clientId===n.clientId)return[t.clientId];var r=Vr(e,t.clientId);if(null===r)return jr;var o=io(e,r),i=o.indexOf(t.clientId),c=o.indexOf(n.clientId);return i>c?o.slice(c,i+1):o.slice(i,c+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Xr(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?jr:Yr(e)}var Zr=Object(fr.a)((function(e){var t=Xr(e);return t.length?t.map((function(t){return Er(e,t)})):jr}),(function(e){return[].concat(Object(M.a)(Yr.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Jr(e){return Object(p.first)(Xr(e))||null}function Qr(e){return Object(p.last)(Xr(e))||null}function eo(e,t){return Jr(e)===t}function to(e,t){return-1!==Xr(e).indexOf(t)}var no=Object(fr.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=to(e,n=Vr(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function ro(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function oo(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function io(e,t){return e.blocks.order[t||""]||jr}function co(e,t,n){return io(e,n).indexOf(t)}function ao(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function lo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(io(e,t),(function(t){return ao(e,t)||to(e,t)||n&&lo(e,t,n)}))}function so(e,t){if(!t)return!1;var n=Xr(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=To(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!yo(e,n);if(s)return!1;var u=Bo(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=kr(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},Eo=Object(fr.a)(_o,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function So(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var wo=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&_o(e,t.name,n)},Co=Object(fr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?hr:t>0?mr:"common"===e?gr:vr},r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(Br(e,Ir(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=So(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:o,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:f,example:t.example,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=Lo(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=So(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),b=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:Or,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:b}},a=Object(i.getBlockTypes)().filter((function(n){return wo(e,n,t)})).map(o),l=_o(e,"core/block",t)?Mo(e).map(c):[];return Object(p.orderBy)([].concat(Object(M.a)(a),Object(M.a)(l)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Mo(e),Object(i.getBlockTypes)()]})),Io=Object(fr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return wo(e,n,t)}));if(n)return!0;var r=_o(e,"core/block",t)&&Mo(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Mo(e),Object(i.getBlockTypes)()]})),xo=Object(fr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(i.getBlockTypes)(),(function(n){return wo(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]}));function Bo(e,t){return e.blockListSettings[t]}function To(e){return e.settings}function Po(e){return e.blocks.isPersistentChange}var No=Object(fr.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Lo=Object(fr.a)((function(e,t){var n=Object(p.find)(Mo(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Mo(e)]}));function Ao(e){return e.blocks.isIgnoredChange}function Ro(e){return e.lastBlockAttributesChange}function Mo(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],jr)}function Do(e){return e.isNavigationMode}function Fo(e){return!!e.automaticChangeStatus}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t0&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})))),o&&Object(d.createElement)(z.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(z.Button,{icon:Jo.a,label:Object(U.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(z.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(z.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},ei=n(262),ti=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(d.createElement)("div",{className:c},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(z.Button,{isSecondary:!0,tabIndex:"0",onClick:o},i)))},ni=function(e){function t(){return Object(_.a)(this,t),Object(S.a)(this,Object(w.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(E.a)(t,[{key:"getDifference",value:function(e,t){return Object(ei.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(c.rawContent,a.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(ti,{title:Object(U.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(U.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(d.createElement)(ti,{title:Object(U.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(d.Component),ri=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(C.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(C.a)(n)),n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(U.__)("Convert to Classic Block"),onClick:r},{title:Object(U.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Qo,{actions:[Object(d.createElement)(z.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(U._x)("Resolve","imperative verb")),a&&Object(d.createElement)(z.Button,{key:"edit",onClick:t,isPrimary:!0},Object(U.__)("Convert to HTML"))],secondaryActions:s},Object(U.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(z.Modal,{title:Object(U.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(ni,{block:c,onKeep:t,onConvert:n,convertor:oi,convertButtonText:Object(U.__)("Convert to Blocks")})))}}]),t}(d.Component),oi=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},ii=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,oi(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(ri),ci=Object(d.createElement)(Qo,{className:"block-editor-block-list__block-crash-warning"},Object(U.__)("This block has encountered an error and cannot be previewed.")),ai=function(){return ci},li=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(d.Component),si=n(72),ui=n.n(si);var di=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(D.a)(n,2),o=r[0],c=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){c(Object(i.getBlockContent)(a))}),[a]),Object(d.createElement)(ui.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(i.getBlockType)(a.name),n=Object(i.getBlockAttributes)(e,o,a.attributes),r=o||Object(i.getSaveContent)(e,n),s=!o||Object(i.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})};function fi(e){return document.getElementById("block-"+e)}function bi(e,t){var n=e.querySelector(".block-editor-block-list__layout");return e.contains(t)&&(!n||!n.contains(t))}function pi(e){e.nodeType!==e.ELEMENT_NODE&&(e=e.parentElement);var t=e.closest(".wp-block");if(t)return t.id.slice("block-".length)}var hi=function(e){return e+1},mi=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var gi=function(e,t,n,r,o){var i=Object(h.useReducedMotion)()||!r,c=Object(d.useReducer)(hi,0),a=Object(D.a)(c,2),l=a[0],s=a[1],u=Object(d.useReducer)(hi,0),f=Object(D.a)(u,2),b=f[0],p=f[1],m=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(D.a)(m,2),v=g[0],O=g[1],j=e.current?mi(e.current):null,k=Object(d.useMemo)((function(){return!!n&&Object(Zo.getScrollContainer)(e.current)}),[n]);Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(i){if(n&&k){e.current.style.transform="none";var t=mi(e.current);k.scrollTop=k.scrollTop-j.top+t.top}}else{e.current.style.transform="none";var r=mi(e.current),o={x:j?j.left-r.left:0,y:j?j.top-r.top:0,scrollTop:j&&k?k.scrollTop-j.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var y=Object(Xo.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==b,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&k&&!i&&e.y&&(k.scrollTop=v.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(Xo.interpolate)([y.x,y.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(Xo.interpolate)([y.x,y.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}};function vi(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function Oi(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,i=t.hasMultiSelection,c=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:i(),getBlockParents:c,selectedBlockClientId:a()}}function ji(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var ki=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,i=e.noCapture,c=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(i.current)i.current=null;else if(n){var e=fi(n);if(r){var t=Zo.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(c)return void a.current.focus();s(!0);var l=Zo.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),yi=window,_i=yi.getSelection,Ei=yi.getComputedStyle,Si=Object(p.overEvery)([Zo.isTextField,Zo.focus.tabbable.isTabbableIndex]);function wi(e,t,n){var r=Zo.focus.focusable.find(n);return t&&(r=Object(p.reverse)(r)),r=r.slice(r.indexOf(e)+1),Object(p.find)(r,(function t(n,r,o){if(!Zo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Zo.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0}))}function Ci(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,f=t.isSelectionEnabled,b=t.getBlockSelectionStart,p=t.isMultiSelecting,h=n(),m=r(),g=o();return{selectedBlockClientId:h,selectionStartClientId:m,selectionBeforeEndClientId:i(g||h),selectionAfterEndClientId:c(g||h),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),isSelectionEnabled:f(),blockSelectionStart:b(),isMultiSelecting:p()}}function Ii(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),i=Object(d.useRef)(),c=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(Ci,[]),u=s.selectedBlockClientId,f=s.selectionStartClientId,h=s.selectionBeforeEndClientId,m=s.selectionAfterEndClientId,v=s.selectedFirstClientId,O=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,w=Object(g.useDispatch)("core/block-editor"),C=w.multiSelect,I=w.selectBlock,x=w.clearSelectedBlock,B=w.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&i.current.focus()}),[j,S]);var T=b()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:T},Object(d.createElement)(ki,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:i}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===It.UP,b=t===It.DOWN,g=t===It.LEFT,_=t===It.RIGHT,E=t===It.TAB,S=t===It.ESCAPE,w=d||g,T=g||_,P=d||b,N=T||P,L=e.shiftKey,A=L||e.ctrlKey||e.altKey||e.metaKey,R=P?Zo.isVerticalEdge:Zo.isHorizontalEdge;if(y){var M=E&&L||d,D=E&&!L||b,F=M?h:m;if(D||M)if(F)e.preventDefault(),I(F);else if(E&&u){var V,H=fi(u);(V=D?Zo.focus.tabbable.findNext(H):Zo.focus.tabbable.findPrevious(H))&&(e.preventDefault(),V.focus(),x())}}else{if(u)if(E){var U=fi(u);if(L){if(s===U)return a.current=!0,void r.current.focus()}else{var z=Zo.focus.tabbable.find(U);if(s===(Object(p.last)(z)||U))return a.current=!0,void o.current.focus()}}else S&&B(!0);else if(j&&E&&s===i.current)return a.current=!0,void(L?r.current.focus():o.current.focus());if(P?l.current||(l.current=Object(Zo.computeCaretRect)()):l.current=null,!N)return It.isKeyboardEvent.primary(e)&&(c.current=Object(Zo.isEntirelySelected)(s)),void(It.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?c.current:Object(Zo.isEntirelySelected)(s))&&(C(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),c.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===It.UP||t===It.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,A)){var G="rtl"===Ei(s).direction?!w:w;if(L)(w&&h||!w&&m)&&(j||function(e,t){var r,o,i=wi(e,t,n.current);return!(i&&(r=e,o=i,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,w)&&R(s,w))&&(!function(e){var t=e?h:m;t&&C(f||u,t)}(w),e.preventDefault());else if(j)!function(e){var t=e?v:O;t&&I(t)}(w),e.preventDefault();else if(P&&Object(Zo.isVerticalEdge)(s,w)){var K=wi(s,w,n.current);K&&(Object(Zo.placeCaretAtVerticalEdge)(K,w,l.current),e.preventDefault())}else if(T&&_i().isCollapsed&&Object(Zo.isHorizontalEdge)(s,G)){var W=wi(s,G,n.current);Object(Zo.placeCaretAtHorizontalEdge)(W,G),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&bi(fi(u),e.target)&&B(!1),_&&0===e.button){var t=pi(e.target);t&&(e.shiftKey?E!==t&&(C(E,t),e.preventDefault()):j&&I(t))}}},Object(d.createElement)("div",{ref:i,tabIndex:j?"0":void 0,"aria-label":j?Object(U.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(ki,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:i,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=Zo.focus.focusable.find(n.current),t=Object(p.findLast)(e,Si);t&&Object(Zo.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function xi(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,i=n.isBlockInsertionPointVisible,c=(0,n.getBlockRootClientId)(t),a=r(t,c),l=o();return i()&&l.index===a&&l.rootClientId===c}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function Bi(e){var t=e.className,n=e.isMultiSelecting,r=e.hasMultiSelection,o=e.selectedBlockClientId,i=e.children,c=e.containerRef,a=Object(d.useState)(!1),l=Object(D.a)(a,2),s=l[0],u=l[1],f=Object(d.useState)(!1),p=Object(D.a)(f,2),h=p[0],m=p[1],v=Object(d.useState)(null),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(null),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useRef)(),C=Object(g.useSelect)((function(e){return{multiSelectedBlockClientIds:(0,e("core/block-editor").getMultiSelectedBlockClientIds)()}})).multiSelectedBlockClientIds;var I=r?C.includes(E):E===o;return Object(d.createElement)(d.Fragment,null,!n&&(s||h)&&Object(d.createElement)(z.Popover,{noArrow:!0,animate:!1,anchorRef:j,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:j.offsetWidth}},Object(d.createElement)(xi,{clientId:E}),Object(d.createElement)("div",{ref:w,onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===w.current){var o=r.getBoundingClientRect(),i=nr}));if(o){var i=o.id.slice("block-".length);if(i){var c=o.getBoundingClientRect();e.clientX>c.right||e.clientXe}));if(!n)return;var r=n.id.slice("block-".length);if(!r)return;a(r)}}),[_]),_)return c}var rc,oc=(rc=function(e){var t=e.className,n=e.rootClientId,r=e.isDraggable,o=e.renderAppender,i=e.__experimentalUIParts,c=void 0===i?{}:i,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,o=t.isMultiSelecting,i=t.getSelectedBlockClientId,c=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getGlobalBlockCount,s=t.isTyping;return{blockClientIds:r(n),isMultiSelecting:o(),selectedBlockClientId:i(),multiSelectedBlockClientIds:c(),hasMultiSelection:a(),enableAnimation:!s()&&l()<=200}}),[n]),l=a.blockClientIds,s=a.isMultiSelecting,f=a.selectedBlockClientId,p=a.multiSelectedBlockClientIds,h=a.hasMultiSelection,m=a.enableAnimation,v=n?"div":Ui,O=Object(d.useRef)(),j=nc({element:O,rootClientId:n}),k=n?{}:{hasPopover:c.hasPopover};return Object(d.createElement)(v,Object(u.a)({ref:O,className:b()("block-editor-block-list__layout",t)},k),l.map((function(e,t){var o=h?p.includes(e):f===e;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!o},Object(d.createElement)(qi,{rootClientId:n,clientId:e,isDraggable:r,isMultiSelecting:s,animateOnChange:t,enableAnimation:m,hasSelectedUI:c.hasSelectedUI,className:e===j?"is-drop-target":void 0}))})),Object(d.createElement)(Zi,{rootClientId:n,renderAppender:o,className:null===j?"is-drop-target":void 0}),Object(d.createElement)(tc.Slot,null))},function(e){return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(rc,e))});function ic(e){var t=e.blocks,n=e.viewportWidth,r=e.padding,o=void 0===r?0:r,i=Object(d.useRef)(null),c=Object(d.useState)(!1),a=Object(D.a)(c,2),l=a[0],s=a[1],u=Object(d.useState)(1),f=Object(D.a)(u,2),p=f[0],h=f[1],m=Object(d.useState)({x:0,y:0}),g=Object(D.a)(m,2),v=g[0],O=v.x,j=v.y,k=g[1];if(Object(d.useLayoutEffect)((function(){var e=setTimeout((function(){var e=i.current;if(e){if(1===t.length){var r=function(e){var t=fi(e);if(t)return t.firstChild||t}(t[0].clientId);if(!r)return;var c=e.getBoundingClientRect();c={width:c.width-2*o,height:c.height-2*o,left:c.left,top:c.top};var a=r.getBoundingClientRect(),l=c.width/a.width||1,u=-(a.left-c.left)*l+o,d=c.height>a.height*l?(c.height-a.height*l)/2+o:0;h(l),k({x:u,y:d}),r.style.marginTop="0"}else{var f=e.getBoundingClientRect();h(f.width/n)}s(!0)}}),100);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var y={transform:"scale(".concat(p,")"),visibility:l?"visible":"hidden",left:O,top:j,width:n};return Object(d.createElement)("div",{ref:i,className:b()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":l}),"aria-hidden":!0},Object(d.createElement)(z.Disabled,{style:y,className:"block-editor-block-preview__content"},Object(d.createElement)(oc,null)))}var cc=Object(g.withSelect)((function(e){return{settings:e("core/block-editor").getSettings()}}))((function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.padding,i=e.settings,c=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]),a=Object(d.useReducer)((function(e){return e+1}),0),l=Object(D.a)(a,2),s=l[0],u=l[1];return Object(d.useLayoutEffect)(u,[t]),Object(d.createElement)(Yo,{value:c,settings:i},Object(d.createElement)(ic,{key:s,blocks:c,viewportWidth:r,padding:o}))}));var ac=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(F.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(d.createElement)("li",{className:"block-editor-block-types-list__list-item"},Object(d.createElement)(z.Button,Object(u.a)({className:b()("block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(_t,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};function lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t0})),Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(F.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(d.createElement)("div",{className:"block-editor-inserter__child-blocks"},(t||n)&&Object(d.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(d.createElement)(_t,{icon:t,showColors:!0}),n&&Object(d.createElement)("h2",null,n)),Object(d.createElement)(uc,Object(u.a)({items:r},o)))})),bc=Object(z.createSlotFill)("__experimentalInserterMenuExtension"),pc=bc.Fill,hc=bc.Slot;pc.Slot=hc;var mc=pc;function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var vc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Oc=function(e,t){return Object(p.differenceWith)(e,vc(t),(function(e,t){return t.includes(e)}))},jc=function(e,t,n,r){var o=vc(r);return 0===o.length?e:e.filter((function(e){var r=e.name,i=e.title,c=e.category,a=e.keywords,l=void 0===a?[]:a,s=e.variations,u=void 0===s?[]:s,d=Oc(o,i);if(0===d.length)return!0;if(0===(d=Oc(d,l.join(" "))).length)return!0;d=Oc(d,Object(p.get)(Object(p.find)(t,{slug:c}),["title"]));var f=n[r.split("/")[0]];return f&&(d=Oc(d,f.title)),0===d.length||0===(d=Oc(d,u.map((function(e){return e.title})).join(" "))).length})).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,vc(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t0&&i.push("reusable"),r.length>0&&(i=i.concat(Object.keys(t),Object.keys(n))),i}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.categories,r=t.collections,o=t.debouncedSpeak,i=t.items,c=t.rootChildBlocks,a=jc(i,n,r,e),l=Object(p.filter)(a,(function(e){var t=e.name;return Object(p.includes)(c,t)})),s=[];if(!e){var u=this.props.maxSuggestedItems||9;s=Object(p.filter)(i,(function(e){return e.utility>0})).slice(0,u)}var d=Object(p.filter)(a,{category:"reusable"}),f=function(e){return Object(p.findIndex)(n,(function(t){return t.slug===e.category}))},b=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,f)}),(function(e){return Object(p.groupBy)(e,"category")}))(a),h=yc({},r);Object.keys(r).forEach((function(e){h[e]=a.filter((function(t){return Ec(t)===e})),0===h[e].length&&delete h[e]})),this.setState({hoveredItem:null,childItems:l,filterValue:e,suggestedItems:s,reusableItems:d,itemsPerCategory:b,itemsPerCollection:h,openPanels:this.filterOpenPanels(e,b,h,a,d)});var m=Object.keys(b).reduce((function(e,t){return e+b[t].length}),0),g=Object(U.sprintf)(Object(U._n)("%d result found.","%d results found.",m),m);o(g)}},{key:"onKeyDown",value:function(e){Object(p.includes)([It.LEFT,It.DOWN,It.RIGHT,It.UP,It.BACKSPACE,It.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.categories,r=t.collections,o=t.instanceId,c=t.onSelect,a=t.rootClientId,l=t.showInserterHelpPanel,s=this.state,u=s.childItems,f=s.hoveredItem,h=s.itemsPerCategory,m=s.itemsPerCollection,g=s.openPanels,v=s.reusableItems,O=s.suggestedItems,j=s.filterValue,k=function(e){return-1!==g.indexOf(e)},y=!(Object(p.isEmpty)(O)&&Object(p.isEmpty)(v)&&Object(p.isEmpty)(h)&&Object(p.isEmpty)(m)),_=f?Object(i.getBlockType)(f.name):null,E=y&&l;return Object(d.createElement)("div",{className:b()("block-editor-inserter__menu",{"has-help-panel":E}),onKeyPress:_c,onKeyDown:this.onKeyDown},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(o),className:"screen-reader-text"},Object(U.__)("Search for a block")),Object(d.createElement)("input",{id:"block-editor-inserter__search-".concat(o),type:"search",placeholder:Object(U.__)("Search for a block"),className:"block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(d.createElement)("div",{className:"block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(U.__)("Available block types")},Object(d.createElement)(fc,{rootClientId:a,items:u,onSelect:c,onHover:this.onHover}),!!O.length&&Object(d.createElement)(z.PanelBody,{title:Object(U._x)("Most used","blocks"),opened:k("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(d.createElement)(uc,{items:O,onSelect:c,onHover:this.onHover})),Object(p.map)(n,(function(t){var n=h[t.slug];return n&&n.length?Object(d.createElement)(z.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:k(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(d.createElement)(uc,{items:n,onSelect:c,onHover:e.onHover})):null})),Object(p.map)(r,(function(t,n){var r=m[n];return r&&r.length?Object(d.createElement)(z.PanelBody,{key:n,title:t.title,icon:t.icon,opened:k(n),onToggle:e.onTogglePanel(n),ref:e.bindPanel(n)},Object(d.createElement)(uc,{items:r,onSelect:c,onHover:e.onHover})):null})),!!v.length&&Object(d.createElement)(z.PanelBody,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(U.__)("Reusable"),opened:k("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(d.createElement)(uc,{items:v,onSelect:c,onHover:this.onHover}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(xt.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(U.__)("Manage all reusable blocks"))),Object(d.createElement)(mc.Slot,{fillProps:{onSelect:c,onHover:this.onHover,filterValue:j,hasItems:y}},(function(e){return e.length?e:y?null:Object(d.createElement)("p",{className:"block-editor-inserter__no-results"},Object(U.__)("No blocks found."))})))),E&&Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},f&&Object(d.createElement)(d.Fragment,null,!Object(i.isReusableBlock)(f)&&Object(d.createElement)(dc,{blockType:f}),Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(i.isReusableBlock)(f)||_.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(cc,{padding:10,viewportWidth:500,blocks:_.example?Object(i.getBlockFromExample)(f.name,{attributes:yc({},_.example.attributes,{},f.initialAttributes),innerBlocks:_.example.innerBlocks}):Object(i.createBlock)(f.name,f.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(U.__)("No Preview Available.")))),!f&&Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(U.__)("Content blocks")),Object(d.createElement)("p",null,Object(U.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(d.createElement)("p",null,Object(U.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(d.createElement)("p",null,Object(U.__)("Browse through the library to learn more about what each block does."))),Object(d.createElement)(z.Tip,null,Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)})))))}}]),t}(d.Component),wc=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=t.showInserterHelpPanel,c=e("core/block-editor"),a=c.getInserterItems,l=c.getBlockName,s=c.getBlockRootClientId,u=c.getBlockSelectionEnd,d=c.getSettings,f=e("core/blocks"),b=f.getCategories,p=f.getCollections,h=f.getChildBlockNames,m=o;if(!m&&!n&&!r){var g=u();g&&(m=s(g)||void 0)}var v=l(m),O=d(),j=O.showInserterHelpPanel,k=O.__experimentalFetchReusableBlocks;return{categories:b(),collections:p(),rootChildBlocks:h(v),items:a(m),showInserterHelpPanel:i&&j,destinationRootClientId:m,fetchReusableBlocks:k}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint;function a(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{showInsertionPoint:function(){var e=a();c(t.destinationRootClientId,e)},hideInsertionPoint:o.hideInsertionPoint,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,l=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=t.onSelect,f=t.__experimentalSelectBlockOnInsert,b=n.name,h=n.title,m=n.initialAttributes,g=n.innerBlocks,v=s(),O=Object(i.createBlock)(b,m,function e(t){return Object(p.map)(t,(function(t){var n=Object(D.a)(t,3),r=n[0],o=n[1],c=n[2],a=void 0===c?[]:c;return Object(i.createBlock)(r,o,e(a))}))}(g));if(!u&&v&&Object(i.isUnmodifiedDefaultBlock)(v))c(v.clientId,O);else if(l(O,a(),t.destinationRootClientId,f),!f){var j=Object(U.sprintf)(Object(U.__)("%s block added"),h);Object(ye.speak)(j)}return d(),O}}})),z.withSpokenMessages,h.withInstanceId,h.withSafeTimeout)(Sc),Cc=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,i=e.blockTitle,c=e.hasSingleBlockType;return t=c?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),i):Object(U._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(z.Button,{icon:St.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!c&&"true","aria-expanded":!c&&o,disabled:r})},Ic=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(C.a)(e)),e.renderToggle=e.renderToggle.bind(Object(C.a)(e)),e.renderContent=e.renderContent.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.blockTitle,c=r.hasSingleBlockType,a=r.renderToggle,l=void 0===a?Cc:a;return l({onToggle:t,isOpen:n,disabled:o,blockTitle:i,hasSingleBlockType:c})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(wc,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(z.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(U.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(d.Component),xc=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockRootClientId,c=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||i(n)||void 0),u=1===Object(p.size)(s)&&0===Object(p.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:c(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(i.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=i();return!c&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(U.sprintf)(Object(U.__)("%s block added"),l.title);Object(ye.speak)(u)}}}})),Object(h.ifCondition)((function(e){return e.hasItems}))])(Ic);var Bc=function(e){var t=e.rootClientId,n=e.className,r=e.__experimentalSelectBlockOnInsert;return Object(d.createElement)(xc,{rootClientId:t,__experimentalSelectBlockOnInsert:r,renderToggle:function(e){var t,r=e.onToggle,o=e.disabled,i=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType;t=a?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),c):Object(U._x)("Add block","Generic label for block inserter button");var l=!a;return Object(d.createElement)(z.Tooltip,{text:t},Object(d.createElement)(z.Button,{className:b()(n,"block-editor-button-block-appender"),onClick:r,"aria-haspopup":l?"true":void 0,"aria-expanded":l?i:void 0,disabled:o,label:t},Object(d.createElement)("span",{className:"screen-reader-text"},t),Object(d.createElement)(Et.a,{icon:St.a})))},isAppender:!0})};function Tc(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showAppender,c=e.showNestedBlocks,a=e.parentBlockClientId,l=o&&!!a;return Object(d.createElement)("ul",{className:"block-editor-block-navigation__list",role:"list"},Object(p.map)(Object(p.omitBy)(t,p.isNil),(function(e){var t=Object(i.getBlockType)(e.name),a=e.clientId===n;return Object(d.createElement)("li",{key:e.clientId},Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(z.Button,{className:b()("block-editor-block-navigation__item-button",{"is-selected":a}),onClick:function(){return r(e.clientId)}},Object(d.createElement)(_t,{icon:t.icon,showColors:!0}),Object(i.__experimentalGetBlockLabel)(t,e.attributes),a&&Object(d.createElement)("span",{className:"screen-reader-text"},Object(U.__)("(selected block)")))),c&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(d.createElement)(Tc,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,parentBlockClientId:e.clientId,showAppender:o,showNestedBlocks:!0}))})),l&&Object(d.createElement)("li",null,Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(Bc,{rootClientId:a,__experimentalSelectBlockOnInsert:!1}))))}var Pc=Object(h.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)(z.NavigableMenu,{role:"presentation",className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(U.__)("Block navigation")),i&&Object(d.createElement)(Tc,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(d.createElement)(Tc,{blocks:n,selectedBlockClientId:r,selectBlock:o}))})),Nc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(d.createElement)(z.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));function Lc(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen;Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var o=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(z.Button,{icon:Nc,"aria-expanded":r,onClick:t?n:void 0,label:Object(U.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:o,"aria-disabled":!t})}var Ac=function(e){var t=e.isDisabled,n=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!t;return Object(d.createElement)(z.Dropdown,{contentClassName:"block-editor-block-navigation__popover",renderToggle:function(e){return Object(d.createElement)(Lc,Object(u.a)({},e,{isEnabled:n}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(Pc,{onSelect:t})}})};var Rc=function(e){var t=e.icon,n=void 0===t?"layout":t,r=e.label,o=void 0===r?Object(U.__)("Choose variation"):r,i=e.instructions,c=void 0===i?Object(U.__)("Select a variation to start with."):i,a=e.variations,l=e.onSelect,s=e.allowSkip,u=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(z.Placeholder,{icon:n,label:o,instructions:c,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list"},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(z.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.title}))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(z.Button,{isLink:!0,onClick:function(){return l()}},Object(U.__)("Skip"))))},Mc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(z.Path,{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"})),Dc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(z.Path,{d:"M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"}));function Fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Vc={top:{icon:Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(z.Path,{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"})),title:Object(U._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Dc,title:Object(U._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Mc,title:Object(U._x)("Vertically Align Bottom","Block vertical alignment setting")}},Hc=["top","center","bottom"];var Uc=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Hc:r,i=e.isCollapsed,c=void 0===i||i,a=Vc[t],l=Vc.top;return Object(d.createElement)(z.Toolbar,{isCollapsed:c,icon:a?a.icon:l.icon,label:Object(U._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.onChange({width:t,height:n})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.imageWidth,r=t.imageHeight,o=t.imageSizeOptions,i=void 0===o?[]:o,c=t.isResizable,a=void 0===c||c,l=t.slug,s=t.width,u=t.height,f=t.onChange,b=t.onChangeImage,h=void 0===b?p.noop:b;return Object(d.createElement)(d.Fragment,null,!Object(p.isEmpty)(i)&&Object(d.createElement)(z.SelectControl,{label:Object(U.__)("Image size"),value:l,options:i,onChange:h}),a&&Object(d.createElement)("div",{className:"block-editor-image-size-control"},Object(d.createElement)("p",{className:"block-editor-image-size-control__row"},Object(U.__)("Image dimensions")),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(z.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(U.__)("Width"),value:s||n||"",min:1,onChange:function(e){return f({width:parseInt(e,10)})}}),Object(d.createElement)(z.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(U.__)("Height"),value:u||r||"",min:1,onChange:function(e){return f({height:parseInt(e,10)})}})),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(z.ButtonGroup,{"aria-label":Object(U.__)("Image Size")},[25,50,75,100].map((function(t){var o=Math.round(n*(t/100)),i=Math.round(r*(t/100)),c=s===o&&u===i;return Object(d.createElement)(z.Button,{key:t,isSmall:!0,isPrimary:c,isPressed:c,onClick:e.updateDimensions(o,i)},t,"%")}))),Object(d.createElement)(z.Button,{isSmall:!0,onClick:this.updateDimensions()},Object(U.__)("Reset")))))}}]),t}(d.Component),Jc=n(51),Qc=n.n(Jc),ea=Object(h.createHigherOrderComponent)((function(e){return Y((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),ta=ea((function(e){var t=e.clientId,n=e.showSeparator;return Object(d.createElement)(Bc,{rootClientId:t,showSeparator:n})})),na=Object(h.compose)([ea,Object(g.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(d.createElement)(Yi,{rootClientId:t,lastBlockClientId:n})})),ra=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.block,n=e.templateLock,r=e.__experimentalBlocks,o=e.replaceInnerBlocks,i=e.__unstableMarkNextChangeAsNotPersistent;0!==t.innerBlocks.length&&"all"!==n||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1}),r&&(i(),o(r))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.block,r=t.templateLock,o=t.template,i=t.isLastBlockChangePersistent,c=t.onInput,a=t.onChange,l=n.innerBlocks;(this.updateNestedSettings(),0===l.length||"all"===r)&&(!Object(p.isEqual)(o,e.template)&&this.synchronizeBlocksWithTemplate());if(e.block.innerBlocks!==l){var s=i?a:c;s&&s(l)}}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o,__experimentalCaptureToolbars:e.__experimentalCaptureToolbars||!1,__experimentalMoverDirection:e.__experimentalMoverDirection,__experimentalUIParts:e.__experimentalUIParts};Qc()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.enableClickThrough,n=e.clientId,r=e.hasOverlay,o=e.__experimentalCaptureToolbars,i=Object(F.a)(e,["enableClickThrough","clientId","hasOverlay","__experimentalCaptureToolbars"]),c=this.state.templateInProcess,a=b()("block-editor-inner-blocks",{"has-overlay":t&&r,"is-capturing-toolbar":o});return Object(d.createElement)("div",{className:a},!c&&Object(d.createElement)(oc,Object(u.a)({rootClientId:n},i)))}}]),t}(d.Component);(ra=Object(h.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),Y((function(e){return Object(p.pick)(e,["clientId"])})),Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=n.isNavigationMode,u=n.isLastBlockChangePersistent,d=t.clientId,f=t.isSmallScreen,b=i(d),p=a(d);return{block:b,blockListSettings:c(d),hasOverlay:"core/template"!==b.name&&!r(d)&&!o(d,!0),parentLock:l(p),enableClickThrough:s()||f,isLastBlockChangePersistent:u()}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.__unstableMarkNextChangeAsNotPersistent,i=n.updateBlockListSettings,c=t.block,a=t.clientId,l=t.templateInsertUpdatesSelection,s=void 0===l||l;return{replaceInnerBlocks:function(e){r(a,e,0===c.innerBlocks.length&&s&&0!==e.length)},__unstableMarkNextChangeAsNotPersistent:o,updateNestedSettings:function(t){e(i(a,t))}}}))])(ra)).DefaultBlockAppender=na,ra.ButtonBlockAppender=ta,ra.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var oa=ra,ia=Object(z.createSlotFill)("InspectorAdvancedControls"),ca=ia.Fill,aa=ia.Slot,la=X(ca);la.slotName="InspectorAdvancedControls",la.Slot=aa;var sa=la,ua=n(49);function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fa=[{id:"opensInNewTab",title:Object(U.__)("Open in new tab")}],ba=function(e){var t=e.value,n=e.onChange,r=void 0===n?p.noop:n,o=e.settings,i=void 0===o?fa:o;if(!i||!i.length)return null;var c=function(e){return function(n){r(function(e){for(var t=1;t-1&&e.stopPropagation()}(e)},onKeyPress:ha,placeholder:Object(U.__)("Search or type url"),__experimentalRenderSuggestions:o,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:c}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(z.Button,{type:"submit",label:Object(U.__)("Submit"),icon:"editor-break",className:"block-editor-link-control__search-submit"})))};function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function va(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";O(e)},onSelect:function(e){i(va({},n,{},e)),x()},renderSuggestions:function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,c=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,f=b()("block-editor-link-control__search-results",{"is-loading":a}),p=["url","mailto","tel","internal"],h=l?"block-editor-link-control-search-results-label-".concat(s):void 0,m=l?Object(U.__)("Recently updated"):Object(U.sprintf)(Object(U.__)("Search results for %s"),v),g=l?void 0:m,O=Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:h,"aria-label":g},m);return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},l?O:Object(d.createElement)(z.VisuallyHidden,null,O),Object(d.createElement)("div",Object(u.a)({},t,{className:f,"aria-labelledby":h}),o.map((function(e,t){return Object(d.createElement)(pa,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,onClick:function(){i(va({},n,{},e)),x()},isSelected:t===c,isURL:p.includes(e.type.toLowerCase()),searchTerm:v})}))))},fetchSuggestions:B,showInitialSuggestions:c}):Object(d.createElement)(d.Fragment,null,Object(d.createElement)("p",{className:"screen-reader-text",id:"current-link-label-".concat(s)},Object(U.__)("Currently selected"),":"),Object(d.createElement)("div",{"aria-labelledby":"current-link-label-".concat(s),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(z.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||w),n&&n.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},w)),Object(d.createElement)(z.Button,{isSecondary:!0,onClick:function(){return _(!0)},className:"block-editor-link-control__search-item-action"},Object(U.__)("Edit")))),Object(d.createElement)(ba,{value:n,settings:r,onChange:i}))},ja=n(287),ka=n(159),ya=Object(z.withFilters)("editor.MediaUpload")((function(){return null}));var _a=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Ea=n(192),Sa=function(e){return e.stopPropagation()},wa=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).onChange=n.onChange.bind(Object(C.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(C.a)(n)),n.selectLink=n.selectLink.bind(Object(C.a)(n)),n.handleOnClick=n.handleOnClick.bind(Object(C.a)(n)),n.bindSuggestionNode=n.bindSuggestionNode.bind(Object(C.a)(n)),n.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),n.inputRef=Object(d.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(C.a)(n)),200),n.suggestionNodes=[],n.isUpdatingSuggestions=!1,n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Ct()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100)),this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var i=!(t&&t.length);if(i||!(t.length<2||!o&&Object(xt.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var c=r(t,{isInitialSuggestions:i});c.then((function(t){e.suggestionsRequest===c&&(e.setState({suggestions:t,loading:!1}),t.length?e.props.debouncedSpeak(Object(U.sprintf)(Object(U._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(U.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===c&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=c}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case It.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case It.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case It.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(U.__)("Link selected.")));break;case It.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case It.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case It.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,i=t.isFullWidth,c=t.hasBorder,a=t.__experimentalRenderSuggestions,l=t.placeholder,s=void 0===l?Object(U.__)("Paste URL or type to search"):l,f=t.value,h=void 0===f?"":f,m=t.autoFocus,g=void 0===m||m,v=t.__experimentalShowInitialSuggestions,O=void 0!==v&&v,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,S="url-input-control-".concat(r),w="block-editor-url-input-suggestions-".concat(r),C="block-editor-url-input-suggestion-".concat(r),I={id:w,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(C,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(d.createElement)(z.BaseControl,{label:n,id:S,className:b()("block-editor-url-input",o,{"is-full-width":i,"has-border":c})},Object(d.createElement)("input",{autoFocus:g,type:"text","aria-label":Object(U.__)("URL"),required:!0,value:h,onChange:this.onChange,onInput:Sa,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":w,"aria-activedescendant":null!==_?"".concat(C,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(d.createElement)(z.Spinner,null),Object(p.isFunction)(a)&&k&&!!y.length&&a({suggestions:y,selectedSuggestion:_,suggestionsListProps:I,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:O&&!(h&&h.length)}),!Object(p.isFunction)(a)&&k&&!!y.length&&Object(d.createElement)(z.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(u.a)({},I,{className:b()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(d.createElement)(z.Button,Object(u.a)({},x(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,i=void 0!==o&&o,c=t.showSuggestions,a=n&&n.length;return i||a||(c=!1),!0===r&&(c=!1),{showSuggestions:c}}}]),t}(d.Component),Ca=Object(h.compose)(h.withSafeTimeout,z.withSpokenMessages,h.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(wa);function Ia(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(F.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(u.a)({className:b()("block-editor-url-popover__link-editor",n)},i),Object(d.createElement)(Ca,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(z.Button,{icon:Ea.a,label:Object(U.__)("Apply"),type:"submit"}))}var xa=n(286);function Ba(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(z.ExternalLink,{className:o,href:t},n||Object(xt.filterURLForDisplay)(Object(xt.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Ta(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(F.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(u.a)({className:b()("block-editor-url-popover__link-viewer",t)},c),Object(d.createElement)(Ba,{url:o,urlLabel:i,className:n}),r&&Object(d.createElement)(z.Button,{icon:xa.a,label:Object(U.__)("Edit"),onClick:r}))}var Pa=Object(h.compose)(z.withNotices)((function(e){var t,n=e.mediaURL,r=e.mediaId,o=e.allowedTypes,i=e.accept,c=e.onSelect,a=e.onSelectURL,l=e.onError,s=e.name,u=void 0===s?Object(U.__)("Replace"):s,f=Object(d.useState)(!1),b=Object(D.a)(f,2),p=b[0],h=b[1],m=Object(d.useState)(!1),v=Object(D.a)(m,2),O=v[0],j=v[1],k=Object(d.useState)(n),y=Object(D.a)(k,2),_=y[0],E=y[1],S=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),w=Object(d.createRef)(),C=function(e){c(e),E(e.url),Object(ye.speak)(Object(U.__)("The media file has been replaced"))},I=function(e){e.keyCode===It.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return t=O?Object(d.createElement)(Ia,{onKeyDown:function(e){[It.LEFT,It.DOWN,It.RIGHT,It.UP,It.BACKSPACE,It.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()},value:_,isFullWidthInput:!0,hasInputBorder:!0,onChangeInputValue:function(e){return E(e)},onSubmit:function(e){e.preventDefault(),a(_),j(!1),w.current.focus()}}):Object(d.createElement)(Ta,{isFullWidth:!0,className:"block-editor-media-replace-flow__link-viewer",url:_,onEditLinkClick:function(){return j(!O)}}),Object(d.createElement)(z.Dropdown,{contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(z.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(z.Button,{ref:w,"aria-expanded":t,onClick:n,onKeyDown:I},u,Object(d.createElement)("span",{className:"block-editor-media-replace-flow__indicator"})))},renderContent:function(e){var n=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.NavigableMenu,null,Object(d.createElement)(ya,{value:r,onSelect:function(e){return C(e)},allowedTypes:o,render:function(e){var t=e.open;return Object(d.createElement)(z.MenuItem,{icon:"admin-media",onClick:t},Object(U.__)("Open Media Library"))}}),Object(d.createElement)(_a,null,Object(d.createElement)(z.FormFileUpload,{onChange:function(e){!function(e,t){var n=e.target.files;S({allowedTypes:o,filesList:n,onFileChange:function(e){var n=Object(D.a)(e,1)[0];C(n),t()},onError:l})}(e,n)},accept:i,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(z.MenuItem,{icon:ja.a,onClick:function(){t()}},Object(U.__)("Upload"))}})),a&&Object(d.createElement)(z.MenuItem,{icon:ka.a,onClick:function(){return h(!p)},"aria-expanded":p},Object(d.createElement)("div",null," ",Object(U.__)("Insert from URL")," "))),p&&Object(d.createElement)("div",{className:"block-editor-media-flow__url-input"},t))}})})),Na=n(37),La=n.n(Na),Aa=n(288),Ra=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(C.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(F.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),s=this.state.isSettingsExpanded,f=!!r&&s;return Object(d.createElement)(z.Popover,Object(u.a)({className:"block-editor-url-popover",focusOnMount:a,position:i},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(z.Button,{className:"block-editor-url-popover__settings-toggle",icon:Aa.a,label:Object(U.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":s})),f&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!f&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(d.Component);Ra.LinkEditor=Ia,Ra.LinkViewer=Ta;var Ma=Ra,Da=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(Ma,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(U.__)("URL"),placeholder:Object(U.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Ea.a,label:Object(U.__)("Apply"),type:"submit"})))},Fa=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(C.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(C.a)(e)),e.onUpload=e.onUpload.bind(Object(C.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(C.a)(e)),e.openURLInput=e.openURLInput.bind(Object(C.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(D.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,f=n.mediaPreview,p=n.notices,h=n.onSelectURL,m=n.mediaUpload,g=n.children,v=s.instructions,O=s.title;if(m||h||(v=Object(U.__)("To edit this block, you need permission to upload media.")),void 0===v||void 0===O){var j=1===o.length,k=j&&"audio"===o[0],y=j&&"image"===o[0],_=j&&"video"===o[0];void 0===v&&m&&(v=Object(U.__)("Upload a media file or pick one from your media library."),k?v=Object(U.__)("Upload an audio file, pick one from your media library, or add one with a URL."):y?v=Object(U.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(v=Object(U.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(U.__)("Media"),k?O=Object(U.__)("Audio"):y?O=Object(U.__)("Image"):_&&(O=Object(U.__)("Video")))}var E=b()("block-editor-media-placeholder",i,{"is-appender":a});return Object(d.createElement)(z.Placeholder,{icon:c,label:O,instructions:v,className:E,notices:p,onClick:t,onDoubleClick:u,preview:f},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(z.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(U.__)("Cancel"),isLink:!0,onClick:e},Object(U.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isSecondary:!0},Object(U.__)("Insert from URL")),t&&Object(d.createElement)(Da,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,f=t.value,h=void 0===f?{}:f,m=Object(d.createElement)(ya,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(d.createElement)(z.Button,{isSecondary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(U.__)("Media Library"))}});if(a&&c)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(z.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.Button,{isSecondary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(U.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(z.FormFileUpload,{isSecondary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(U.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(m)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&La()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(_a,null,this.renderDropZone())):Object(d.createElement)(_a,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(d.Component),Va=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Ha=Object(h.compose)(Va,Object(z.withFilters)("editor.MediaPlaceholder"))(Fa),Ua=Object(d.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(F.a)(e,["onChange","className"]);return Object(d.createElement)(ui.a,Object(u.a)({ref:t,className:b()("block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))}));function za(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(h.useInstanceId)(za),i=r||Object(U.sprintf)(Object(U._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)("span",{className:"screen-reader-text",id:"rbc-desc-".concat(o)},i))}var Ga=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,i=e.renderDefaultControl,c=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(U.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(U.__)("Small screens")},{id:"medium",label:Object(U.__)("Medium screens")},{id:"large",label:Object(U.__)("Large screens")}]:f;if(!t||!n||!i)return null;var h=r||Object(U.sprintf)(Object(U.__)("Use the same %s on all screensizes."),n),m=Object(U.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=i(Object(d.createElement)(za,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(z.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:h,checked:!l,onChange:o,help:m}),Object(d.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(c?c(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},i(Object(d.createElement)(za,{property:n,viewport:e}),e))}))))))},Ka=[It.rawShortcut.primary("z"),It.rawShortcut.primaryShift("z"),It.rawShortcut.primary("y")],Wa=Object(d.createElement)(z.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ka.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),qa=function(){return Wa},$a=n(41);function Ya(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var Xa={position:"bottom left"},Za=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(z.Toolbar,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(z.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(z.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(z.DropdownMenu,{icon:!1,label:Object(U.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(D.a)(e,1)[0].props})),"title"),popoverProps:Xa})}))))},Ja=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(z.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(Za,null)):Object(d.createElement)(yt,null,Object(d.createElement)(Za,null))},Qa=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(z.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(s.a)({},It.rawShortcut[n](t),this.onUse)})}}]),t}(d.Component);function el(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(F.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=It.displayShortcut[r](o)),Object(d.createElement)(z.Fill,{name:c},Object(d.createElement)(z.ToolbarButton,Object(u.a)({},i,{shortcut:t})))}var tl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(d.Component);function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rl(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var ol=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,f=t.isSelected,p=t.multiline,m=t.inlineToolbar,v=t.wrapperClassName,O=t.className,j=t.autocompleters,k=t.onReplace,y=t.placeholder,_=t.keepPlaceholderOnFocus,E=t.allowedFormats,S=t.formattingControls,w=t.withoutInteractiveFormatting,C=t.onRemove,I=t.onMerge,x=t.onSplit,B=t.__unstableOnSplitMiddle,T=t.identifier,P=t.start,N=t.reversed,L=t.style,A=t.preserveWhiteSpace,R=t.__unstableEmbedURLOnPaste,V=Object(F.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste"]),H=Object(h.useInstanceId)(e);T=T||H;var U=Object(d.useRef)(),z=n||U,G=$(),K=G.clientId,W=G.onCaretVerticalPositionChange,q=G.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,c=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,u=n.__unstableGetBlockWithoutInnerBlocks,b=n.isMultiSelecting,p=n.hasMultiSelection,h=o(),m=c(),g=a(),v=g.__experimentalCanUserUseUnfilteredHTML,O=g.__experimentalUndo;void 0===f?t=h.clientId===K&&h.attributeKey===T:f&&(t=h.clientId===K);var j={};if("native"===d.Platform.OS){var k=K&&u(K);j={shouldBlurOnUnmount:k&&t&&Object(i.isUnmodifiedDefaultBlock)(k)}}return function(e){for(var t=1;t0,pe=a,he=l;Array.isArray(a)&&(pe=i.children.toHTML(a),he=function(e){return l(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var me=Object(d.useCallback)((function(e,t){se(K,T,e,t)}),[K,T]),ge=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;I&&I(!n),C&&Object(c.isEmpty)(t)&&n&&C(!n)}),[I,C]),ve=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&x){var n=[],r=Object(c.split)(e),o=Object(D.a)(r,2),i=o[0],a=o[1],l=t.length>0;l&&Object(c.isEmpty)(i)||n.push(x(Object(c.toHTMLString)({value:i,multilineTag:de}))),l?n.push.apply(n,Object(M.a)(t)):B&&n.push(B()),!l&&B&&Object(c.isEmpty)(a)||n.push(x(Object(c.toHTMLString)({value:a,multilineTag:de})));var s=l?n.length-1:1;k(n,s)}}),[k,x,de,B]),Oe=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&x;if(k){var a=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(i.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(k([l.transform({content:t.text})]),ue())}p?r?n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?ve(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!o?n(Object(c.insert)(t,"\n")):ve(t)}),[k,x,ue,p,ve]),je=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(i.pasteHandler)({HTML:Ya(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(k&&Object(c.isEmpty)(t)?k(u):ve(t,u))}var d=k&&x?"AUTO":"INLINE";R&&Object(c.isEmpty)(t)&&Object(xt.isURL)(a.trim())&&(d="BLOCKS");var f=Object(i.pasteHandler)({HTML:r,plainText:a,mode:d,tagName:o,canUserUseUnfilteredHTML:X});if("string"==typeof f){var b=Object(c.create)({html:f});if(s.length)for(var h=b.formats.length;h--;)b.formats[h]=[].concat(Object(M.a)(s),Object(M.a)(b.formats[h]||[]));p&&(b=Object(c.replace)(b,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,b))}else f.length>0&&(k&&Object(c.isEmpty)(t)?k(f):ve(t,f))}),[o,k,x,ve,R,X,p]),ke=Object(d.useCallback)((function(e,t){if(k){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(i.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(c.slice)(e,n,r.length)),u=l.transform(s);k([u]),ue()}}}}),[k,ue]),ye=Object(d.createElement)(c.__experimentalRichText,Object(u.a)({},V,{clientId:K,identifier:T,ref:z,value:pe,onChange:he,selectionStart:J,selectionEnd:Q,onSelectionChange:me,tagName:o,className:b()("block-editor-rich-text__editable",O,{"keep-placeholder-on-focus":_}),placeholder:y,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:Oe,onDelete:ge,onPaste:je,__unstableIsSelected:ee,__unstableInputRule:ke,__unstableMultilineTag:de,__unstableIsCaretWithinFormattedText:Z,__unstableOnEnterFormattedText:ae,__unstableOnExitFormattedText:le,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:ue,__unstableDidAutomaticChange:te,__unstableUndo:re,style:L,preserveWhiteSpace:A,disabled:ne,start:P,reversed:N,onCaretVerticalPositionChange:W,blockIsSelected:void 0!==f?f:q,shouldBlurOnUnmount:oe}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,i=e.onFocus,c=e.Editable;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:i}),t&&be&&Object(d.createElement)(Ja,{inline:m,anchorRef:z.current}),t&&Object(d.createElement)(qa,null),Object(d.createElement)(Qe,{onReplace:k,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(c,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:P,reversed:N,onKeyDown:r})})))}));return v?(La()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:b()("block-editor-rich-text",v)},ye)):ye}));ol.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(F.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=rl(r);!t&&c&&(t="<".concat(c,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},ol.isEmpty=function(e){return!e||0===e.length},ol.Content.defaultProps={format:"string",value:""};var il=ol,cl=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(z.Path,{d:"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"})),al=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M6.5 1v21.5l6-6.5H21L6.5 1zm5.1 13l-3.1 3.4V5.9l7.8 8.1h-4.7z"}));var ll=function(){var e=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),t=Object(g.useDispatch)("core/block-editor").setNavigationMode;if(!Object(h.useViewportMatch)("medium"))return null;var n=function(e){t("edit"!==e)};return Object(d.createElement)(z.Dropdown,{renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(d.createElement)(z.Button,{icon:e?al:cl,"aria-expanded":n,onClick:r,label:Object(U.__)("Tools")})},renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.NavigableMenu,{role:"menu","aria-label":Object(U.__)("Tools")},Object(d.createElement)(z.MenuItemsChoice,{value:e?"select":"edit",onSelect:n,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,cl,Object(U.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,al,Object(U.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(U.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})},sl=Object(d.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(et.Path,{d:"M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z"})),ul=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(C.a)(e)),e.submitLink=e.submitLink.bind(Object(C.a)(e)),e.state={expanded:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(U.__)("Edit link"):Object(U.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(z.Button,{icon:ka.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(z.Button,{className:"block-editor-url-input__back",icon:sl,label:Object(U.__)("Close"),onClick:this.toggle}),Object(d.createElement)(Ca,{value:t||"",onChange:n}),Object(d.createElement)(z.Button,{icon:Ea.a,label:Object(U.__)("Submit"),type:"submit"}))))}}]),t}(d.Component),dl=n(120),fl=["noreferrer","noopener"],bl=Object(d.createElement)(z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(z.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(d.createElement)(z.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),pl=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,i=void 0===o?"image":o,c=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,f=Object(d.useState)(!1),b=Object(D.a)(f,2),h=b[0],m=b[1],g=Object(d.useCallback)((function(){m(!0)})),v=Object(d.useState)(!1),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(null),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useRef)(null),C=function(e){e.stopPropagation()},I=function(e){[It.LEFT,It.DOWN,It.RIGHT,It.UP,It.BACKSPACE,It.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},x=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),k(!0)})),B=Object(d.useCallback)((function(){k(!1)})),T=Object(d.useCallback)((function(){S(null),B(),m(!1)})),P=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(fl,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},N=Object(d.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(m(!1),S(null),B())}})),L=Object(d.useCallback)((function(){return function(e){E&&n({href:E}),B(),S(null),e.preventDefault()}})),A=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),R=function(){return[{linkDestination:"media",title:Object(U.__)("Media File"),url:"image"===i?c:void 0,icon:bl},{linkDestination:"attachment",title:Object(U.__)("Attachment Page"),url:"image"===i?a:void 0,icon:Object(d.createElement)(z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(z.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]},M=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.ToggleControl,{label:Object(U.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?P(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(z.TextControl,{label:Object(U.__)("Link Rel"),value:P(u)||"",onChange:function(e){n({rel:e})},onKeyPress:C,onKeyDown:I}),Object(d.createElement)(z.TextControl,{label:Object(U.__)("Link CSS Class"),value:s||"",onKeyPress:C,onKeyDown:I,onChange:function(e){n({linkClass:e})}})),F=null!==E?E:r,V=(Object(p.find)(R(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.Button,{icon:ka.a,className:"components-toolbar__control",label:r?Object(U.__)("Edit link"):Object(U.__)("Insert link"),"aria-expanded":h,onClick:g}),h&&Object(d.createElement)(Ma,{onFocusOutside:N(),onClose:T,renderSettings:function(){return M},additionalControls:!F&&Object(d.createElement)(z.NavigableMenu,null,Object(p.map)(R(),(function(e){return Object(d.createElement)(z.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=R(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),B()}},e.title)})))},(!r||j)&&Object(d.createElement)(Ma.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:F,onChangeInputValue:S,onKeyDown:I,onKeyPress:C,onSubmit:L(),autocompleteRef:w}),r&&!j&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Ma.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:C,url:r,onEditLinkClick:x,urlLabel:V}),Object(d.createElement)(z.Button,{icon:dl.a,label:Object(U.__)("Remove link"),onClick:A}))))},hl=Object(z.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),ml=hl.Fill,gl=hl.Slot;ml.Slot=gl;var vl=ml,Ol=Object(z.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),jl=Ol.Fill,kl=Ol.Slot;jl.Slot=kl;var yl=jl,_l=function(e){var t=e.icon,n=e.label,r=e.onPress;return Object(d.createElement)(z.Button,{onClick:r},t," ",n)},El=function(e){var t=e.children;return Object(d.createElement)(tc,null,t)};function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wl=[{name:"About",icon:"👋",content:'\n\t\t\t\x3c!-- wp:paragraph {"align":"left"} --\x3e\n\t\t\t

    Visitors will want to know who is on the other side of the page. Use this space to write about yourself, your site, your business, or anything you want. Use the testimonials below to quote others, talking about the same thing – in their own words.

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:paragraph {"align":"left"} --\x3e\n\t\t\t

    This is sample content, included with the template to illustrate its features. Remove or replace it with your own words and media.

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:heading {"align":"center","level":3} --\x3e\n\t\t\t

    What People Say

    \n\t\t\t\x3c!-- /wp:heading --\x3e\n\n\t\t\t\x3c!-- wp:quote --\x3e\n\t\t\t

    The way to get started is to quit talking and begin doing.

    Walt Disney
    \n\t\t\t\x3c!-- /wp:quote --\x3e\n\n\t\t\t\x3c!-- wp:quote --\x3e\n\t\t\t

    It is our choices, Harry, that show what we truly are, far more than our abilities.

    J. K. Rowling
    \n\t\t\t\x3c!-- /wp:quote --\x3e\n\n\t\t\t\x3c!-- wp:quote --\x3e\n\t\t\t

    Don\'t cry because it\'s over, smile because it happened.

    Dr. Seuss
    \n\t\t\t\x3c!-- /wp:quote --\x3e\n\n\t\t\t\x3c!-- wp:separator {"className":"is-style-wide"} --\x3e\n\t\t\t
    \n\t\t\t\x3c!-- /wp:separator --\x3e\n\n\t\t\t\x3c!-- wp:heading {"align":"center"} --\x3e\n\t\t\t

    Let’s build something together.

    \n\t\t\t\x3c!-- /wp:heading --\x3e\n\n\t\t\t\x3c!-- wp:paragraph {"align":"center","textColor":"primary"} --\x3e\n\t\t\t

    Get in touch!

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:separator {"className":"is-style-wide"} --\x3e\n\t\t\t
    \n\t\t\t\x3c!-- /wp:separator --\x3e\n\t\t'},{name:"Contact",icon:"✉️",content:'\n\t\t\t\x3c!-- wp:paragraph {"align":"left"} --\x3e\n\t\t\t

    Let\'s talk 👋 Don\'t hesitate to reach out with the contact information below, or send a message using the form.

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:heading {"align":"left"} --\x3e\n\t\t\t

    Get in Touch

    \n\t\t\t\x3c!-- /wp:heading --\x3e\n\n\t\t\t\x3c!-- wp:paragraph --\x3e\n\t\t\t

    10 Street Road

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:paragraph --\x3e\n\t\t\t

    City, 10100

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:paragraph --\x3e\n\t\t\t

    USA

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:paragraph --\x3e\n\t\t\t

    mail@example.com

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\n\t\t\t\x3c!-- wp:paragraph --\x3e\n\t\t\t

    (555) 555 1234

    \n\t\t\t\x3c!-- /wp:paragraph --\x3e\n\t\t'}],Cl=H()((function(){return wl.map((function(e){return function(e){for(var t=1;t0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=Object(z.__experimentalUseSlot)(sa.slotName),u=Boolean(s.fills&&s.fills.length);if(n>1)return Object(d.createElement)(Vl,null);var f=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!f?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(dc,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(z.PanelBody,{title:Object(U.__)("Styles"),initialOpen:!1},Object(d.createElement)(Dl,{clientId:o}),Object(d.createElement)(Hl,{blockName:t.name}))),Object(d.createElement)(xe.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,u&&Object(d.createElement)(z.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(U.__)("Advanced"),initialOpen:!1},Object(d.createElement)(sa.Slot,{bubblesVirtually:!0}))),Object(d.createElement)(Pl,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(U.__)("No block selected.")):null}));function zl(e,t,n,r,o,i,c,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===c?a?"right":"left":"up":"down"===e?"horizontal"===c?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(U.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(U.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(U.sprintf)(Object(U._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return Object(U.sprintf)(Object(U._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i);if(r&&o)return Object(U.sprintf)(Object(U.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!o){var u=s("down");if("down"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(i>0&&o){var d=s("down");if("down"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!r){var f=s("up");if("up"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(i<0&&r){var b=s("up");if("up"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Gl=Object(d.createElement)(z.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M4.5 9l5.6-5.7 1.4 1.5L7.3 9l4.2 4.2-1.4 1.5L4.5 9z"})),Kl=Object(d.createElement)(z.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M13.5 9L7.9 3.3 6.5 4.8 10.7 9l-4.2 4.2 1.4 1.5L13.5 9z"})),Wl=Object(d.createElement)(z.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(z.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),ql=n(289),$l=function(e){var t=e.children,n=e.clientIds,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getBlockRootClientId,i=t.getTemplateLock,c=Object(p.castArray)(n),a=1===c.length?o(c[0]):null,l=a?i(a):null;return{index:r(c[0],a),srcRootClientId:a,isDraggable:1===c.length&&"all"!==l}}),[n]),o=r.srcRootClientId,i=r.index,c=r.isDraggable,a=Object(d.useRef)(!1),l=Object(g.useDispatch)("core/block-editor"),s=l.startDraggingBlocks,u=l.stopDraggingBlocks;if(Object(d.useEffect)((function(){return function(){a.current&&u()}}),[]),!c)return null;var f=Object(p.castArray)(n),b="block-".concat(f[0]),h={type:"block",srcIndex:i,srcClientId:f[0],srcRootClientId:o};return Object(d.createElement)(z.Draggable,{elementId:b,transferData:h,onDragStart:function(){s(),a.current=!0},onDragEnd:function(){u(),a.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))},Yl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(C.a)(e)),e.onBlur=e.onBlur.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.__experimentalOrientation,o=e.isRTL,i=e.isFirst,c=e.isLast,a=e.clientIds,l=e.blockType,s=e.firstIndex,u=e.isLocked,f=e.instanceId,h=e.isHidden,m=e.rootClientId,g=e.hideDragHandle,v=this.state.isFocused,O=Object(p.castArray)(a).length;if(u||i&&c&&!m)return null;var j=function(e){return"up"===e?"horizontal"===r?o?Kl:Gl:ql.a:"down"===e?"horizontal"===r?o?Gl:Kl:Aa.a:null},k=function(e){return"up"===e?"horizontal"===r?o?Object(U.__)("Move right"):Object(U.__)("Move left"):Object(U.__)("Move up"):"down"===e?"horizontal"===r?o?Object(U.__)("Move left"):Object(U.__)("Move right"):Object(U.__)("Move down"):null};return Object(d.createElement)(z.ToolbarGroup,{className:b()("block-editor-block-mover",{"is-visible":v||!h,"is-horizontal":"horizontal"===r})},Object(d.createElement)(z.Button,{className:"block-editor-block-mover__control",onClick:i?null:t,icon:j("up"),label:k("up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(f),"aria-disabled":i,onFocus:this.onFocus,onBlur:this.onBlur}),!g&&Object(d.createElement)($l,{clientIds:a},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(d.createElement)(z.Button,{icon:Wl,className:"block-editor-block-mover__control-drag-handle block-editor-block-mover__control","aria-hidden":"true",tabIndex:"-1",onDragStart:t,onDragEnd:n,draggable:!0})})),Object(d.createElement)(z.Button,{className:"block-editor-block-mover__control",onClick:c?null:n,icon:j("down"),label:k("down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(f),"aria-disabled":c,onFocus:this.onFocus,onBlur:this.onBlur}),Object(d.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(f),className:"block-editor-block-mover__description"},zl(O,l&&l.title,s,i,c,-1,r,o)),Object(d.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(f),className:"block-editor-block-mover__description"},zl(O,l&&l.title,s,i,c,1,r,o)))}}]),t}(d.Component),Xl=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.castArray)(n),d=Object(p.first)(u),f=o(d),b=l(Object(p.first)(u)),h=s(b),m=c(d,b),g=c(Object(p.last)(u),b),v=(0,e("core/block-editor").getSettings)().isRTL;return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isRTL:v,isFirst:0===m,isLast:g===h.length-1}})),Object(g.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),h.withInstanceId)(Yl),Zl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(C.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(u.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(d.Component),Jl=Object(h.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(Zl),Ql=Object(d.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(et.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"}));var es=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.blocks,a=e("core/block-editor"),l=a.removeBlocks,s=a.replaceBlocks,u=a.duplicateBlocks,d=a.insertAfterBlock,f=a.insertBeforeBlock;return{onDuplicate:function(){return u(o)},onRemove:function(){l(o)},onInsertBefore:function(){f(Object(p.first)(Object(p.castArray)(o)))},onInsertAfter:function(){d(Object(p.last)(Object(p.castArray)(o)))},onGroup:function(){if(c.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(c,e);t&&s(o,t)}},onUngroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&s(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})}));var ts=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(U.__)("Edit as HTML"):Object(U.__)("Edit visually");return Object(d.createElement)(z.MenuItem,{onClick:r,icon:"html"},!c&&s)}));function ns(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(U.__)("Convert to Blocks");return Object(d.createElement)(z.MenuItem,{onClick:n,icon:"screenoptions"},!r&&o)}var rs=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(ns),os=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(ns),is={className:"block-editor-block-settings-menu__popover",position:"bottom right"};var cs=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0],i=Object(g.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]);return Object(d.createElement)(es,{clientIds:t},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,a=e.isLocked,l=e.onDuplicate,s=e.onInsertAfter,u=e.onInsertBefore,f=e.onRemove;return Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.DropdownMenu,{icon:Jo.a,label:Object(U.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:is},(function(e){var b=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)(vl.Slot,{fillProps:{onClose:b}}),1===r&&Object(d.createElement)(os,{clientId:o}),1===r&&Object(d.createElement)(rs,{clientId:o}),n&&Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(b,l),icon:"admin-page",shortcut:i.duplicate},Object(U.__)("Duplicate")),c&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(b,u),icon:"insert-before",shortcut:i.insertBefore},Object(U.__)("Insert Before")),Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(b,s),icon:"insert-after",shortcut:i.insertAfter},Object(U.__)("Insert After"))),1===r&&Object(d.createElement)(ts,{clientId:o,onToggle:b}),Object(d.createElement)(yl.Slot,{fillProps:{clientIds:t,onClose:b}})),Object(d.createElement)(z.MenuGroup,null,!a&&Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(b,f),icon:Ql,shortcut:i.remove},Object(U._n)("Remove Block","Remove Blocks",r))))})))}))};function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(ss);var ds=Object(g.withSelect)((function(e){var t=e("core/block-editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}}))((function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(d.createElement)(us,{key:"switcher",clientIds:n}):null}));function fs(e){var t=e.hideDragHandle,n=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=t.getBlockRootClientId,c=t.getBlockListSettings,a=r(),l=i(a[0]),s=c(l)||{},u=s.__experimentalMoverDirection,d=s.__experimentalUIParts,f=void 0===d?{}:d;return{blockClientIds:a,rootClientId:l,isValid:1===a.length?o(a[0]):null,mode:1===a.length?n(a[0]):null,moverDirection:u,hasMovers:f.hasMovers}}),[]),r=n.blockClientIds,o=n.isValid,i=n.mode,c=n.moverDirection,a=n.hasMovers,l=void 0===a||a;return 0===r.length?null:r.length>1?Object(d.createElement)("div",{className:"block-editor-block-toolbar"},l&&Object(d.createElement)(Xl,{clientIds:r,__experimentalOrientation:c,hideDragHandle:t}),Object(d.createElement)(ds,null),Object(d.createElement)(cs,{clientIds:r})):Object(d.createElement)("div",{className:"block-editor-block-toolbar"},l&&Object(d.createElement)(Xl,{clientIds:r,__experimentalOrientation:c,hideDragHandle:t}),"visual"===i&&o&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(us,{clientIds:r}),Object(d.createElement)(gt.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(yt.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(cs,{clientIds:r}))}var bs=Object(h.compose)([Object(g.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=e("core/block-editor"),u=s.removeBlocks,d=s.replaceBlocks,f=l().__experimentalCanUserUseUnfilteredHTML;return{handler:function(e){var t=c();if(0!==t.length&&(a()||!Object(Zo.documentHasSelection)())){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){var n=o(t),r=Object(i.serialize)(n);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",r)}if("cut"===e.type)u(t);else if("paste"===e.type){var l=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",i="";try{o=t.getData("text/plain"),i=t.getData("text/html")}catch(e){try{i=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,i=t.size;Object(p.find)(r,{name:n,type:o,size:i})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!i&&(i=r.map((function(e){return'')})).join(""),o=""),{html:i,plainText:o}}(e),s=l.plainText,b=l.html,h=Object(i.pasteHandler)({HTML:b,plainText:s,mode:"BLOCKS",canUserUseUnfilteredHTML:f});d(t,h)}}}}}))])((function(e){var t=e.children,n=e.handler;return Object(d.createElement)("div",{onCopy:n,onCut:n,onPaste:n},t)}));function ps(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,i=r.removeBlocks,c=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),c(Object(p.last)(t))}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}ps.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(U.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(U.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(U.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(U.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(U.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(U.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(U.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(U.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var hs=ps;function ms(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(d.useEffect)((function(){if(n&&!r&&t){var e=fi(n);if(e){var o=Object(Zo.getScrollContainer)(e);o&&Ct()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var gs=[It.UP,It.RIGHT,It.DOWN,It.LEFT,It.ENTER,It.BACKSPACE];var vs=Object(h.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.useRef)(),i=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),c=Object(g.useDispatch)("core/block-editor"),a=c.startTyping,l=c.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",f),document[t]("mousemove",u)}function u(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,i=r.clientX,c=r.clientY;i===t&&c===n||l()}o.current={clientX:t,clientY:n}}function f(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function b(e){var t=e.type,n=e.target;!i&&Object(Zo.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(gs,t)}(e))&&a()}return Object(d.useEffect)((function(){return s(i),function(){return s(!1)}}),[i]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){i&&!Object(Zo.isTextField)(t)&&l()}))},onKeyPress:b,onKeyDown:Object(p.over)([b,function(e){i&&e.keyCode===It.ESCAPE&&l()}])},t)}));function Os(){return La()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var js=-1!==window.navigator.userAgent.indexOf("Trident"),ks=new Set([It.UP,It.DOWN,It.LEFT,It.RIGHT]),ys=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(C.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(C.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(C.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(C.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(C.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(C.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(Zo.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(Zo.computeCaretRect)();if(n)if(this.caretRect)if(ks.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(Zo.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().top,l=i?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Ss:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(ws)):t}var Is=Object(d.createContext)({}),xs=Is.Provider,Bs=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(Is).isEmbedButton,r=t.name,o=n?[]:Cs(Object(i.getBlockSupport)(r,"align"),Object(i.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(gt,{key:"align-controls"},Object(d.createElement)(ut,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(u.a)({key:"edit"},t))]}}),"withToolbarControls"),Ts=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var c=Cs(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(c,r)&&(a=function(e){for(var t=1;t");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Ls),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=As(o),a=As(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(M.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var Rs=n(263),Ms=n.n(Rs),Ds=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fs=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(b(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),p(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){f(/^\s*/)}function p(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function m(){var e=f(/^([^{]+)/);if(e)return Vs(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function g(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Vs(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Ds,""),value:n?Vs(n[0]).replace(Ds,""):""});return f(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=i(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=p();r=O();)c.push(r),c=c.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=Vs(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Vs(t[1]),media:Vs(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=Vs(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Vs(t[1]),r=Vs(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function w(){var e=i(),t=m();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(Zt.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Vs(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Hs=n(144),Us=n.n(Hs),zs=Gs;function Gs(e){this.options=e||{}}Gs.prototype.emit=function(e){return e},Gs.prototype.visit=function(e){return this[e.type](e)},Gs.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?ru({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(ou)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(iu(t)),r&&o.push(tu(r)),o.length?Ys(n,Object(h.compose)(o)):n}))};n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return xs})),n.d(t,"AlignmentToolbar",(function(){return Je})),n.d(t,"Autocomplete",(function(){return Qe})),n.d(t,"BlockAlignmentToolbar",(function(){return ut})),n.d(t,"BlockBreadcrumb",(function(){return ft})),n.d(t,"BlockControls",(function(){return gt})),n.d(t,"BlockEdit",(function(){return Z})),n.d(t,"useBlockEditContext",(function(){return $})),n.d(t,"BlockFormatControls",(function(){return yt})),n.d(t,"BlockIcon",(function(){return _t})),n.d(t,"BlockNavigationDropdown",(function(){return Ac})),n.d(t,"__experimentalBlockNavigationList",(function(){return Tc})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Rc})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Uc})),n.d(t,"ButtonBlockerAppender",(function(){return Bc})),n.d(t,"ColorPalette",(function(){return Gc})),n.d(t,"ColorPaletteControl",(function(){return Kc})),n.d(t,"ContrastChecker",(function(){return Ee})),n.d(t,"__experimentalEditorSkeleton",(function(){return Wc})),n.d(t,"__experimentalGradientPicker",(function(){return $c})),n.d(t,"__experimentalGradientPickerControl",(function(){return Yc})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Xc})),n.d(t,"__experimentalColorGradientControl",(function(){return ue})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Oe})),n.d(t,"__experimentalImageSizeControl",(function(){return Zc})),n.d(t,"InnerBlocks",(function(){return oa})),n.d(t,"InspectorAdvancedControls",(function(){return sa})),n.d(t,"InspectorControls",(function(){return xe})),n.d(t,"__experimentalLinkControl",(function(){return Oa})),n.d(t,"MediaReplaceFlow",(function(){return Pa})),n.d(t,"MediaPlaceholder",(function(){return Ha})),n.d(t,"MediaUpload",(function(){return ya})),n.d(t,"MediaUploadCheck",(function(){return _a})),n.d(t,"PanelColorSettings",(function(){return ke})),n.d(t,"PlainText",(function(){return Ua})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Ga})),n.d(t,"RichText",(function(){return il})),n.d(t,"RichTextShortcut",(function(){return Qa})),n.d(t,"RichTextToolbarButton",(function(){return el})),n.d(t,"__unstableRichTextInputEvent",(function(){return tl})),n.d(t,"ToolSelector",(function(){return ll})),n.d(t,"URLInput",(function(){return Ca})),n.d(t,"URLInputButton",(function(){return ul})),n.d(t,"URLPopover",(function(){return Ma})),n.d(t,"__experimentalImageURLInputUI",(function(){return pl})),n.d(t,"withColorContext",(function(){return zc})),n.d(t,"__experimentalBlockListFooter",(function(){return tc})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return vl})),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",(function(){return yl})),n.d(t,"__experimentalInserterMenuExtension",(function(){return mc})),n.d(t,"__experimentalPageTemplatePicker",(function(){return xl})),n.d(t,"__experimentalWithPageTemplatePickerVisible",(function(){return Tl})),n.d(t,"__experimentalUsePageTemplatePickerVisible",(function(){return Bl})),n.d(t,"BlockInspector",(function(){return Ul})),n.d(t,"BlockList",(function(){return oc})),n.d(t,"BlockMover",(function(){return Xl})),n.d(t,"BlockPreview",(function(){return cc})),n.d(t,"BlockSelectionClearer",(function(){return Jl})),n.d(t,"BlockSettingsMenu",(function(){return cs})),n.d(t,"BlockTitle",(function(){return dt})),n.d(t,"BlockToolbar",(function(){return fs})),n.d(t,"CopyHandler",(function(){return bs})),n.d(t,"DefaultBlockAppender",(function(){return Yi})),n.d(t,"Inserter",(function(){return xc})),n.d(t,"MultiBlocksSwitcher",(function(){return ds})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return hs})),n.d(t,"MultiSelectScrollIntoView",(function(){return ms})),n.d(t,"NavigableToolbar",(function(){return Pi})),n.d(t,"ObserveTyping",(function(){return vs})),n.d(t,"PreserveScrollInReorder",(function(){return Os})),n.d(t,"SkipToSelectedBlock",(function(){return Pl})),n.d(t,"Typewriter",(function(){return _s})),n.d(t,"Warning",(function(){return Qo})),n.d(t,"WritingFlow",(function(){return Ii})),n.d(t,"BlockEditorProvider",(function(){return Yo})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return j})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return A})),n.d(t,"withColors",(function(){return R})),n.d(t,"__experimentalUseColors",(function(){return Ve})),n.d(t,"__experimentalGetGradientClass",(function(){return J})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return ee})),n.d(t,"__experimentalUseGradient",(function(){return ne})),n.d(t,"getFontSize",(function(){return He})),n.d(t,"getFontSizeClass",(function(){return Ue})),n.d(t,"FontSizePicker",(function(){return ze})),n.d(t,"withFontSizes",(function(){return We})),n.d(t,"transformStyles",(function(){return cu})),n.d(t,"storeConfig",(function(){return Ko})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Tt}))},43:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},46:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=c(l,a,e+1/3),o=c(l,a,e),i=c(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var b,p,h;return n=P(n),{ok:d,format:e.format||f,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function b(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var l=i-c;switch(o=a>.5?l/(2-i-c):l/(i+c),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function x(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(f({h:r,s:o,v:i})),i=(i+a)%1;return c}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(D(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,c,a=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;sl&&(l=r,a=f(t[s]));return f.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var B=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return s(1,u(0,e))}function A(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return A(e)/255}var V,H,U,z=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",U="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},56:function(e,t){!function(){e.exports=this.wp.viewport}()},58:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},72:function(e,t,n){"use strict";t.__esModule=!0;var r=n(152);t.default=r.default},73:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},77:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(156)),i=r(n(157)),c=n(21),a=r(c),l=r(n(127)),s=r(n(158)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return u.und(e)||u.nul(e)?t:e}function b(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var c=i,a=!1,l=0;l=b.startTime+s.duration;else if(s.decay)m=p+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-b.startTime))),(u=Math.abs(b.lastPosition-m)<.1)&&(h=m);else{d=void 0!==b.lastTime?b.lastTime:t,O=void 0!==b.lastVelocity?b.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;kh:m=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,c,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,c,a,r.map)}}var V=function(e){function t(n,r,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o,i),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(O);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(v),U=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(O),z=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,c=t.to,a=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:r,to:c}));else if(c){var l={};Object.entries(c).forEach((function(e){var t,n=e[0],i=e[1],c=o({to:(t={},t[n]=i,t),delay:p(r,n)},a),s=l[c.delay]&&l[c.delay].to;l[c.delay]=o({},l[c.delay],c,{to:o({},s,c.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var a=t.delay,l=i(t,["delay"]),s=function(t){o===c.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,M.has(t)||M.add(t),R||(R=!0,E(T||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s=r.length)return"break";c=r[i++]}else{if((i=r.next()).done)return"break";c=i.value}var n=c.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(j),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=le(o,r,e+1/3),c=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function be(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ce.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),be(n[2]),be(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),be(n[2]),be(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,me=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ge=new RegExp("("+Object.keys(Z).join("|")+")","g"),ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oe=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}ve=Object.keys(ve).reduce((function(e,t){return Oe.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ve);var ke={};N((function(e){return new X(e)})),x("div"),w((function(e){var t=e.output.map((function(e){return e.replace(me,pe)})).map((function(e){return e.replace(ge,pe)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,a=i(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var b=l?f:ke[f]||(ke[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(b)&&e.setAttribute(b,a[f])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return c.forwardRef((function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),b=c.useCallback((function(e){var t=s.current;s.current=new A(e,(function(){var e=!1;f.current&&(e=m.fn(f.current,s.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return P(f,l,r)})),b(t);var p,h=s.current.getValue(),g=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),v=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},g,{ref:v}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Se=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=L,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=u.fun(t),i=p(t),a=c.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:p(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],f=l[2],b=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=a.current[r];return o({},e,{config:p(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){n.current&&!r&&b(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,b,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,b=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,g=a.onStart,v=a.ref,O=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=c.useRef(!1),y=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return c.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,c=i(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,b=a.leave,h=a.update,m=a.trail,g=void 0===m?0:m,v=a.unique,O=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,S=o({},c.current),w=[].concat(c.deleted),C=Object.keys(S),I=new Set(C),x=new Set(s),B=s.filter((function(e){return!I.has(e)})),T=c.transitions.filter((function(e){return!e.destroyed&&!x.has(e.originalKey)})).map((function(e){return e.originalKey})),P=s.filter((function(e){return I.has(e)})),N=-g;for(;k.length;){switch(k.shift()){case"enter":B.forEach((function(e,t){v&&w.find((function(t){return t.originalKey===e}))&&(w=w.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":"enter";S[e]={slot:i,originalKey:e,key:v?String(e):W++,item:o,trail:N+=g,config:p(O,o,i),from:p(n&&void 0!==u?u||{}:d,o),to:p(f,o)}}));break;case"leave":T.forEach((function(e){var t=_.indexOf(e),n=E[t];w.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=g,config:p(O,n,"leave"),to:p(b,n)})),delete S[e]}));break;case"update":P.forEach((function(e){var t=s.indexOf(e),n=l[t];S[e]=o({},S[e],{item:n,slot:"update",trail:N+=g,config:p(O,n,"update"),to:p(h,n)})}))}}var L=s.map((function(e){return S[e]}));return w.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=L.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),L=[].concat(L.slice(0,t),[r],L.slice(t))})),o({},c,{changed:B.length||T.length||P.length,first:n&&0===B.length,transitions:L,current:S,deleted:w,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,c=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},O,{to:r,from:n,config:i,ref:v,onRest:function(n){y.current.mounted&&(e.destroyed&&(v||s||Y(y,a),b&&b(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&y.current.deleted.length>0&&Y(y),m&&m(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&"enter"===t});u.update(d),y.current.paused||u.start()})),c.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=c.useRef();c.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var c=i.controllers;if(c.length){var a=n*t[r];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},8:function(e,t){!function(){e.exports=this.wp.compose}()},84:function(e,t,n){"use strict";e.exports=n(150)},89:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},169:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},257:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function O(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;ee.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},433:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"resetBlocks",(function(){return Go})),n.d(r,"resetSelection",(function(){return Ko})),n.d(r,"receiveBlocks",(function(){return Wo})),n.d(r,"updateBlockAttributes",(function(){return qo})),n.d(r,"updateBlock",(function(){return $o})),n.d(r,"selectBlock",(function(){return Yo})),n.d(r,"selectPreviousBlock",(function(){return Xo})),n.d(r,"selectNextBlock",(function(){return Zo})),n.d(r,"startMultiSelect",(function(){return Qo})),n.d(r,"stopMultiSelect",(function(){return Jo})),n.d(r,"multiSelect",(function(){return ec})),n.d(r,"clearSelectedBlock",(function(){return tc})),n.d(r,"toggleSelection",(function(){return nc})),n.d(r,"replaceBlocks",(function(){return oc})),n.d(r,"replaceBlock",(function(){return cc})),n.d(r,"moveBlocksDown",(function(){return ac})),n.d(r,"moveBlocksUp",(function(){return lc})),n.d(r,"moveBlockToPosition",(function(){return sc})),n.d(r,"insertBlock",(function(){return uc})),n.d(r,"insertBlocks",(function(){return dc})),n.d(r,"showInsertionPoint",(function(){return bc})),n.d(r,"hideInsertionPoint",(function(){return fc})),n.d(r,"setTemplateValidity",(function(){return pc})),n.d(r,"synchronizeTemplate",(function(){return mc})),n.d(r,"mergeBlocks",(function(){return Oc})),n.d(r,"removeBlocks",(function(){return gc})),n.d(r,"removeBlock",(function(){return vc})),n.d(r,"replaceInnerBlocks",(function(){return hc})),n.d(r,"toggleBlockMode",(function(){return jc})),n.d(r,"startTyping",(function(){return kc})),n.d(r,"stopTyping",(function(){return yc})),n.d(r,"startDraggingBlocks",(function(){return _c})),n.d(r,"stopDraggingBlocks",(function(){return Ec})),n.d(r,"enterFormattedText",(function(){return Sc})),n.d(r,"exitFormattedText",(function(){return Cc})),n.d(r,"selectionChange",(function(){return wc})),n.d(r,"insertDefaultBlock",(function(){return Ic})),n.d(r,"updateBlockListSettings",(function(){return Bc})),n.d(r,"updateSettings",(function(){return xc})),n.d(r,"__unstableSaveReusableBlock",(function(){return Pc})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Tc})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return Nc})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Rc})),n.d(r,"setNavigationMode",(function(){return Dc})),n.d(r,"duplicateBlocks",(function(){return Lc})),n.d(r,"insertBeforeBlock",(function(){return Ac})),n.d(r,"insertAfterBlock",(function(){return Mc})),n.d(r,"toggleBlockHighlight",(function(){return Fc})),n.d(r,"flashBlock",(function(){return Vc})),n.d(r,"setHasControlledInnerBlocks",(function(){return Hc}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return qc})),n.d(o,"isBlockValid",(function(){return $c})),n.d(o,"getBlockAttributes",(function(){return Yc})),n.d(o,"getBlock",(function(){return Xc})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Zc})),n.d(o,"getBlocks",(function(){return Qc})),n.d(o,"getClientIdsOfDescendants",(function(){return Jc})),n.d(o,"getClientIdsWithDescendants",(function(){return ei})),n.d(o,"getGlobalBlockCount",(function(){return ti})),n.d(o,"getBlocksByClientId",(function(){return ni})),n.d(o,"getBlockCount",(function(){return ri})),n.d(o,"getSelectionStart",(function(){return oi})),n.d(o,"getSelectionEnd",(function(){return ci})),n.d(o,"getBlockSelectionStart",(function(){return ii})),n.d(o,"getBlockSelectionEnd",(function(){return ai})),n.d(o,"getSelectedBlockCount",(function(){return li})),n.d(o,"hasSelectedBlock",(function(){return si})),n.d(o,"getSelectedBlockClientId",(function(){return ui})),n.d(o,"getSelectedBlock",(function(){return di})),n.d(o,"getBlockRootClientId",(function(){return bi})),n.d(o,"getBlockParents",(function(){return fi})),n.d(o,"getBlockParentsByBlockName",(function(){return pi})),n.d(o,"getBlockHierarchyRootClientId",(function(){return mi})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Oi})),n.d(o,"getAdjacentBlockClientId",(function(){return gi})),n.d(o,"getPreviousBlockClientId",(function(){return vi})),n.d(o,"getNextBlockClientId",(function(){return hi})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return ji})),n.d(o,"getSelectedBlockClientIds",(function(){return ki})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return yi})),n.d(o,"getMultiSelectedBlocks",(function(){return _i})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Ei})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return Si})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Ci})),n.d(o,"isBlockMultiSelected",(function(){return wi})),n.d(o,"isAncestorMultiSelected",(function(){return Ii})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return Bi})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return xi})),n.d(o,"getBlockOrder",(function(){return Pi})),n.d(o,"getBlockIndex",(function(){return Ti})),n.d(o,"isBlockSelected",(function(){return Ni})),n.d(o,"hasSelectedInnerBlock",(function(){return Ri})),n.d(o,"isBlockWithinSelection",(function(){return Di})),n.d(o,"hasMultiSelection",(function(){return Li})),n.d(o,"isMultiSelecting",(function(){return Ai})),n.d(o,"isSelectionEnabled",(function(){return Mi})),n.d(o,"getBlockMode",(function(){return Fi})),n.d(o,"isTyping",(function(){return Vi})),n.d(o,"isDraggingBlocks",(function(){return Hi})),n.d(o,"isCaretWithinFormattedText",(function(){return zi})),n.d(o,"getBlockInsertionPoint",(function(){return Ui})),n.d(o,"isBlockInsertionPointVisible",(function(){return Gi})),n.d(o,"isValidTemplate",(function(){return Ki})),n.d(o,"getTemplate",(function(){return Wi})),n.d(o,"getTemplateLock",(function(){return qi})),n.d(o,"canInsertBlockType",(function(){return Yi})),n.d(o,"getInserterItems",(function(){return Qi})),n.d(o,"hasInserterItems",(function(){return Ji})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return ea})),n.d(o,"getBlockListSettings",(function(){return ta})),n.d(o,"getSettings",(function(){return na})),n.d(o,"isLastBlockChangePersistent",(function(){return ra})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return oa})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return ca})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return ia})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return aa})),n.d(o,"isNavigationMode",(function(){return sa})),n.d(o,"didAutomaticChange",(function(){return ua})),n.d(o,"isBlockHighlighted",(function(){return da})),n.d(o,"areInnerBlocksControlled",(function(){return ba}));var c=n(12),i=n(25),a=n(72),l=n(47),s=n(8),u=n(5),d=n(0),b=n(11),f=n.n(b),p=n(2),m=n(9),O=n(31),g=n(4),v=n(3),h=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),j=h.Provider;function k(){return Object(d.useContext)(h)}function y(){var e=k(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(g.useSelect)((function(e){if(!t){var o=e("core/block-editor"),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,r]);return t||o}var _=Object(v.createSlotFill)("BlockControls"),E=_.Fill,S=_.Slot;var C=function(e){var t=e.controls,n=e.children;return y()?Object(d.createElement)(E,null,(function(e){var r=Object(p.isEmpty)(e)?null:e;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:r},Object(d.createElement)(v.ToolbarGroup,{controls:t}),n)})):null};C.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(S,Object(s.a)({},e,{fillProps:t}))};var w=C,I=n(1),B=n(6),x=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),P=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),T=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),N=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),R=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var L={left:{icon:x,title:Object(I.__)("Align left")},center:{icon:P,title:Object(I.__)("Align center")},right:{icon:T,title:Object(I.__)("Align right")},wide:{icon:N,title:Object(I.__)("Wide width")},full:{icon:R,title:Object(I.__)("Full width")}},A=["left","center","right","wide","full"],M=["wide","full"],F={isAlternate:!0};var V=Object(m.compose)(Object(g.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?A:r,c=e.isCollapsed,i=void 0===c||c,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===M.indexOf(e)})),s=L[t],b=L.center;return Object(d.createElement)(v.ToolbarGroup,{popoverProps:F,isCollapsed:i,icon:s?s.icon:b.icon,label:Object(I.__)("Change alignment"),controls:l.map((function(e){return function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?U:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(G)):t}var W=Object(d.createContext)({}),q=W.Provider,$=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(W).isEmbedButton,r=t.name,o=n?[]:K(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(w,{key:"align-controls"},Object(d.createElement)(V,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var i=K(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(i,r)&&(a=z({},a,{"data-align":r})),Object(d.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(O.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=z({},e.attributes,{align:{type:"string"}})),e})),Object(O.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(O.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(c.getBlockSupport)(t,"align"),i=Object(c.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(K(o,i),r)&&(e.className=f()("align".concat(r),e.className)),e}));var X=Object(v.createSlotFill)("InspectorAdvancedControls"),Z=X.Fill,Q=X.Slot;function J(e){var t=e.children;return k().isSelected?Object(d.createElement)(Z,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Q;var ee=J;function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=/[\s#]/g;var re=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(ee,null,Object(d.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(I.__)("HTML anchor"),help:Object(d.createElement)(d.Fragment,null,Object(I.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(d.createElement)(v.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(I.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(ne,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(O.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(e){for(var t=1;t");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(O.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=k(),i=c.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,b=a.customGradient,f=Object(g.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(d.useCallback)((function(e){var t,r,c=ve(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),O=me(s);return{gradientClass:O,gradientValue:s?Oe(l,s):b,setGradient:m}}var je=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},ke=n(14);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _e=Object(I.__)("(Color: %s)"),Ee=Object(I.__)("(Gradient: %s)"),Se=["colors","disableCustomColors","gradients","disableCustomGradients"];function Ce(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=fe(r,t=a),u=s&&s.name;n=Object(I.sprintf)(_e,u||t)}}else if("gradient"===i&&l){var b=ge(o,t=l),f=b&&b.name;n=Object(I.sprintf)(Ee,f||t)}return Object(d.createElement)(d.Fragment,null,c,!!t&&Object(d.createElement)(v.ColorIndicator,{colorValue:t,"aria-label":n}))}function we(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,l=e.onGradientChange,u=e.colorValue,b=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),O=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(b?"gradient":!!m&&"color"),h=Object(le.a)(g,2),j=h[0],k=h[1];return m||O?Object(d.createElement)(v.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(v.BaseControl.VisualLabel,null,Object(d.createElement)(Ce,{currentTab:j,label:i,colorValue:u,gradientValue:b})))),m&&O&&Object(d.createElement)(v.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(v.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return k("color")}},Object(I.__)("Solid")),Object(d.createElement)(v.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return k("gradient")}},Object(I.__)("Gradient"))),("color"===j||!O)&&Object(d.createElement)(v.ColorPalette,Object(s.a)({value:u,onChange:O?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({value:b,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ie(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Se)}));return Object(d.createElement)(we,function(e){for(var t=1;t=24?"large":"small"})?null:Object(d.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=Object(v.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return y()?Object(d.createElement)(Ue,null,t):null}Ke.Slot=Ge;var We=Ke;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==window.Node.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(d.useState)(),s=Object(le.a)(l,2),u=s[0],b=s[1],f=Object(d.useState)(),p=Object(le.a)(f,2),m=p[0],O=p[1];return Object(d.useEffect)((function(){if(o){var e=qe(n);if(e){O(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;b(r)}}})),Object(d.createElement)(We,null,Object(d.createElement)(Me,{title:Object(I.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(d.createElement)(He,{backgroundColor:u,textColor:m})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalDisableCustomLineHeight}));return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var dt=n(145),bt=n.n(dt),ft=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function pt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function mt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Ot=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(v.FontSizePicker);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),r=n.fontSizes,o=r.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!o}Object(O.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",ht),Object(O.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ht(r,e,n)},e}));var yt=["__experimentalLineHeight","__experimentalFontSize"];function _t(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[kt(e),ut(e)];return t.filter(Boolean).length===t.length}(e),n=Et(e.name);return t||!n?null:Object(d.createElement)(We,null,Object(d.createElement)(v.PanelBody,{title:Object(I.__)("Typography")},Object(d.createElement)(jt,e),Object(d.createElement)(st,e)))}var Et=function(e){return"web"===d.Platform.OS&&yt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function St(e){var t=k().name,n="__experimentalFeatures.".concat(e);return Object(g.useSelect)((function(e){var r=(0,e("core/blocks").getBlockSupport)(t,n);if(void 0!==r)return r;var o=e("core/block-editor").getSettings;return Object(p.get)(o(),n)}),[t,n])}function Ct(e){var t=e.units,n=Object(ke.a)(e,["units"]),r=wt(t);return Object(d.createElement)(v.__experimentalUnitControl,Object(s.a)({units:r},n))}function wt(e){var t=St("__experimentalDisableCustomUnits"),n=!!t;return Array.isArray(t)?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t,e):!n&&e}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=Rt({},Pt,{lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],"--wp--style--color--link":["color","link"]}),n={};return Object.entries(t).forEach((function(t){var r=Object(se.a)(t),o=r[0],c=r.slice(1),i=Object(le.a)(c,1)[0];Object(p.has)(e,i)&&(n[o]=At(Object(p.get)(e,i)))})),n}(r),{},e.style),e}var Ft=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(d.createElement)(_t,Object(s.a)({key:"typography"},t)),Object(d.createElement)(ot,Object(s.a)({key:"colors"},t)),Object(d.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(d.createElement)(Tt,{key:"spacing"},Object(d.createElement)(xt,t))]}}),"withToolbarControls");Object(O.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Lt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Mt),Object(O.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Lt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Mt(r,e,n)},e})),Object(O.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ft);var Vt=n(19),Ht=n(18),zt=n(10),Ut=n(21),Gt=n(13),Kt=n(20);function Wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(I.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(I.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,b=void 0===s?l:s,m=a.textColorTargetRef,O=void 0===m?l:m,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=k(),j=h.clientId,y=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:mn}}),[j]),_=y.attributes,E=y.settingsColors,S=Object(g.useDispatch)("core/block-editor"),C=S.updateBlockAttributes,w=Object(d.useCallback)((function(e){return C(j,e)}),[C,j]),B=Object(d.useMemo)((function(){return nn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,b=void 0===s?"":s,m=i.style,O=void 0===m?{}:m,g={};r?g=Object(u.a)({},t,o):c&&(g=Object(u.a)({},t,c));var v={className:f()(b,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:dn({},g,{},O)};return Object(p.isFunction)(l)?l(v):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:f()(e.props.className,v.className),style:dn({},v.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(d.useMemo)((function(){return nn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),P=Object(d.useState)(),T=Object(le.a)(P,2),N=T[0],R=T[1],D=Object(d.useState)(),L=Object(le.a)(D,2),A=L[0],M=L[1];return Object(d.useEffect)((function(){if(c){var e,t=!1,n=!1,r=ln(Object(p.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(fn(O.current).color),t){for(var l=b.current,s=fn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===pn.ELEMENT_NODE;)l=l.parentNode,s=fn(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ae.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=dn({},n,{color:_[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||On[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,b=r.color,f=void 0===b?n.color:b,m=r.colors,O=void 0===m?E:m,g=_[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:O.find((function(e){return e.slug===f}));return e[d]=B(o,i,a,f,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=f,e[d].setColor=x(o,O),t[d]={value:v?v.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:O},O||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:A,panelChildren:i};return dn({},n,{ColorPanel:Object(d.createElement)(an,a),InspectorControlsColorPanel:Object(d.createElement)(gn,a)})}),[_,w,A,N].concat(Object(ae.a)(v)))}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?Nn:t,r=e.getInserterItems,o=void 0===r?Rn:r,i=e.getSelectedBlockName,a=void 0===i?Dn:i;return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",options:function(){Ln();var e=a();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(ae.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(d.createElement)(Tn,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(c.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),Mn=[];var Fn=function(e){var t=k().name,n=e.completers,r=void 0===n?Mn:n;return r=Object(d.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([An])),Object(O.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(p.clone)),e=Object(O.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(d.createElement)(v.Autocomplete,Object(s.a)({},e,{completers:r}))};var Vn=function(e){var t=e.label,n=void 0===t?Object(I.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?p.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(d.createElement)(v.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(d.createElement)(v.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Hn(e){var t=e.clientId,n=Object(g.useSelect)((function(e){return t?(0,e("core/block-editor").getBlockName)(t):null}),[t]);if(!n)return null;var r=Object(c.getBlockType)(n);return r?r.title:null}var zn=function(){var e=Object(g.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(I.__)("Block breadcrumb")},Object(d.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(I.__)("Document")),!i&&Object(I.__)("Document")),c.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(Hn,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(Hn,{clientId:o})))};function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gn=Object(d.createContext)({});function Kn(e){var t=e.value,n=e.children,r=Object(d.useContext)(Gn),o=Object(d.useMemo)((function(){return function(e){for(var t=1;t1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(I.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(I.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(I.sprintf)(Object(I._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(I.sprintf)(Object(I._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(I.sprintf)(Object(I.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var yr=function(e,t,n){return"up"===e?"horizontal"===t?n?gr.a:vr.a:hr.a:"down"===e?"horizontal"===t?n?vr.a:gr.a:jr.a:null},_r=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(I.__)("Move right"):Object(I.__)("Move left"):Object(I.__)("Move up"):"down"===e?"horizontal"===t?n?Object(I.__)("Move left"):Object(I.__)("Move right"):Object(I.__)("Move down"):null},Er=Object(d.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.__experimentalOrientation,i=Object(ke.a)(e,["clientIds","direction","__experimentalOrientation"]),a=Object(m.useInstanceId)(Er),l=Object(p.castArray)(n).length,u=Object(g.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(p.castArray)(n),f=Object(p.first)(b),m=a(f),O=i(f,m),g=i(Object(p.last)(b),m),v=l(m),h=s(f),j=0===O,k=g===v.length-1,y=(d(m)||{}).__experimentalMoverDirection,_=void 0===y?"vertical":y;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:O,isFirst:j,isLast:k,isRTL:u().isRTL,moverOrientation:o||_}}),[n,r]),b=u.blockType,O=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.moverOrientation,S=Object(g.useDispatch)("core/block-editor"),C=S.moveBlocksDown,w=S.moveBlocksUp,I="up"===r?w:C,B="block-editor-block-mover-button__description-".concat(a);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:yr(r,E,_),label:_r(r,E,_),"aria-describedby":B},i,{onClick:O?null:function(e){I(n,h),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(d.createElement)("span",{id:B,className:"block-editor-block-mover-button__description"},kr(l,b&&b.title,y,j,k,"up"===r?-1:1,E,_)))})),Sr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Er,Object(s.a)({direction:"up",ref:t},e))})),Cr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Er,Object(s.a)({direction:"down",ref:t},e))}));function wr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(d.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Ir=Object(d.createContext)({__experimentalFeatures:!1}),Br=function(){return Object(d.useContext)(Ir)},xr=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Pr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:f()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(v.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{icon:xr,label:Object(I.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(v.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(v.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},Tr=n(255),Nr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(v.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Rr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,b={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),O=function(e,t){return Object(Tr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}(b.rawContent,m.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(Nr,{title:Object(I.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(I.__)("Convert to HTML"),rawContent:b.rawContent,renderedContent:b.renderedContent}),Object(d.createElement)(Nr,{title:Object(I.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:O,renderedContent:m.renderedContent}))};function Dr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Lr=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Dr()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(e){var t;return Object(Vt.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(zt.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(zt.a)(t)),t}return Object(Ht.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(I.__)("Convert to Classic Block"),onClick:r},{title:Object(I.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Pr,{actions:[Object(d.createElement)(v.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(I._x)("Resolve","imperative verb")),a&&Object(d.createElement)(v.Button,{key:"edit",onClick:t,isPrimary:!0},Object(I.__)("Convert to HTML"))],secondaryActions:s},Object(I.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(v.Modal,{title:Object(I.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(Rr,{block:i,onKeep:t,onConvert:n,convertor:Ar,convertButtonText:Object(I.__)("Convert to Blocks")})))}}]),r}(d.Component),Ar=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Mr=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Ar(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])(Lr),Fr=Object(d.createElement)(Pr,{className:"block-editor-block-list__block-crash-warning"},Object(I.__)("This block has encountered an error and cannot be previewed.")),Vr=function(){return Fr};function Hr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zr=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Hr()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Ht.a)(r,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),r}(d.Component),Ur=n(88),Gr=n.n(Ur);var Kr=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(le.a)(n,2),o=r[0],i=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(d.createElement)(Gr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})};function Wr(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function qr(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function $r(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Yr=n(284),Xr=[Object(d.createInterpolateElement)(Object(I.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(I.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(I.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(I.__)("Drag files into the editor to automatically insert media blocks."),Object(I.__)("Change a block's type by pressing the block icon on the toolbar.")];var Zr=function(){var e=Object(d.useState)(Math.floor(Math.random()*Xr.length)),t=Object(le.a)(e,1)[0];return Object(d.createElement)(v.Tip,null,Xr[t])},Qr=n(130),Jr=n(285);var eo=function e(t){var n=t.onChange,r=Object(m.useInstanceId)(e);return Object(d.createElement)("div",{className:"block-editor-inserter__search"},Object(d.createElement)(v.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(r)},Object(I.__)("Search for a block")),Object(d.createElement)("input",{className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(r),type:"search",placeholder:Object(I.__)("Search for a block"),autoFocus:!0,onChange:function(e){return n(e.target.value)},autoComplete:"off"}),Object(d.createElement)(Qr.a,{className:"block-editor-inserter__search-icon",icon:Jr.a}))};var to=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(Tn,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},no={insertUsage:{}},ro={alignWide:!1,colors:[{name:Object(I.__)("Black"),slug:"black",color:"#000000"},{name:Object(I.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(I.__)("White"),slug:"white",color:"#ffffff"},{name:Object(I.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(I.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(I.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(I.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(I.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(I.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(I.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(I.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(I.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(I._x)("Small","font size name"),size:13,slug:"small"},{name:Object(I._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(I._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(I._x)("Large","font size name"),size:36,slug:"large"},{name:Object(I._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(I.__)("Thumbnail")},{slug:"medium",name:Object(I.__)("Medium")},{slug:"large",name:Object(I.__)("Large")},{slug:"full",name:Object(I.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(I.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(I.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(I.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(I.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(I.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(I.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(I.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(I.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(I.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(I.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(I.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(I.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function oo(e,t,n){return[].concat(Object(ae.a)(e.slice(0,n)),Object(ae.a)(Object(p.castArray)(t)),Object(ae.a)(e.slice(n)))}function co(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ae.a)(e);return o.splice(t,r),oo(o,e.slice(t,t+r),n)}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,lo(o,r))})),n}function so(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),so(n.innerBlocks,n.clientId))}),{})}function uo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(ae.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(ke.a)(o,["innerBlocks"]);r.push.apply(r,Object(ae.a)(c)),n[i.clientId]=t(i)}return n}function bo(e){return uo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function fo(e){return uo(e,(function(e){return e.attributes}))}function po(e,t){return e===t?ao({},e):t}function mo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(p.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Oo=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var go=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=ao({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ao({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(uo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(uo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ao({},r.cache,{},Oo(o(c)));break;case"UPDATE_BLOCK":r.cache=ao({},r.cache,{},Oo(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ao({},r.cache,{},Oo(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Oo(o(n.replacedClientIds));r.cache=ao({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},Oo(Object(p.keys)(uo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ao({},Object(p.omit)(r.cache,n.removedClientIds),{},Oo(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ao({},r.cache,{},Oo(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ao({},r.cache,{},Oo(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ao({},r.cache,{},Oo(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ae.a)(n),[o],Object(ae.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return ao({},t,{byClientId:ao({},Object(p.omit)(t.byClientId,r),{},bo(n.blocks)),attributes:ao({},Object(p.omit)(t.attributes,r),{},fo(n.blocks)),order:ao({},Object(p.omit)(t.order,r),{},Object(p.omit)(lo(n.blocks),o)),parents:ao({},Object(p.omit)(t.parents,r),{},so(n.blocks)),cache:ao({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(uo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:ao({},c,{isPersistentChange:a})}return c=ao({},c,{isPersistentChange:i?!n:!mo(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return bo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ao({},e,{},bo(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:ao({},e,Object(u.a)({},t.clientId,ao({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ao({},Object(p.omit)(e,t.replacedClientIds),{},bo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return fo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ao({},e,{},fo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ao({},e,Object(u.a)({},t.clientId,ao({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ao({},n,Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=po(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ao({},e,{},n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ao({},Object(p.omit)(e,t.replacedClientIds),{},fo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return lo(t.blocks);case"RECEIVE_BLOCKS":return ao({},e,{},Object(p.omit)(lo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=lo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ao({},e,{},c,Object(u.a)({},r,oo(o,c[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,s=t.fromRootClientId,d=void 0===s?"":s,b=t.toRootClientId,f=void 0===b?"":b,m=t.clientId,O=t.index,g=void 0===O?e[f].length:O;if(d===f){var v=e[f],h=v.indexOf(m);return ao({},e,Object(u.a)({},f,co(e[f],h,g)))}return ao({},e,(l={},Object(u.a)(l,d,Object(p.without)(e[d],m)),Object(u.a)(l,f,oo(e[f],m,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return ao({},e,Object(u.a)({},y,co(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var C=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(C),x=Object(p.last)(C),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return ao({},e,Object(u.a)({},I,co(P,T,T+1,C.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=lo(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return ao({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ae.a)(e),Object(ae.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(ae.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return so(t.blocks);case"RECEIVE_BLOCKS":return ao({},e,{},so(t.blocks));case"INSERT_BLOCKS":return ao({},e,{},so(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return ao({},e,Object(u.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ao({},Object(p.omit)(e,t.replacedClientIds),{},so(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ao({},e,Object(u.a)({},r,o)):e}});function vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var ho=Object(g.combineReducers)({blocks:go,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return vo(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return vo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return ao({},e,Object(u.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:ao({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return ao({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ro,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ao({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:no,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ao({},e,{insertUsage:ao({},e.insertUsage,Object(u.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ao({},e,Object(u.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){var n=t.clientId,r=t.isHighlighted;if("TOGGLE_BLOCK_HIGHLIGHT"===t.type){if(r)return n;if(e===n)return null}return e}}),jo=n(103),ko=n.n(jo),yo=n(254),_o=n.n(yo),Eo=n(40);function So(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Xo(e){var t;return ar.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,So("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Yo(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),To)}function Zo(e){var t;return ar.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,So("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Yo(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),No)}function Qo(){return{type:"START_MULTI_SELECT"}}function Jo(){return{type:"STOP_MULTI_SELECT"}}function ec(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function tc(){return{type:"CLEAR_SELECTED_BLOCK"}}function nc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function rc(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return xo({},e,{attributes:xo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function oc(e,t,n,r){var o,c,i;return ar.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=rc,a.t1=Object(p.castArray)(t),a.next=5,So("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,So("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,So("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(c={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,c;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,So("core/block-editor","getBlockName",e);case 17:return i=l.sent,l.next=20,So("core/block-editor","canInsertBlockType",i,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,c;case 24:case"end":return l.stop()}}),Do)}function uc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return dc([e],t,n,r)}function dc(e,t,n){var r,o,c,i,a,l=arguments;return ar.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=rc,s.t1=Object(p.castArray)(e),s.next=5,So("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=wo(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,So("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),Lo,null,[[9,21,24,27]])}function bc(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function fc(){return{type:"HIDE_INSERTION_POINT"}}function pc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function mc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Oc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function gc(e){var t,n,r,o,c=arguments;return ar.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(p.castArray)(e),i.next=6,So("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,So("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,Xo(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,So("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(Uo(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),Ao)}function vc(e,t){return gc([e],t)}function hc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function jc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function kc(){return{type:"START_TYPING"}}function yc(){return{type:"STOP_TYPING"}}function _c(){return{type:"START_DRAGGING_BLOCKS"}}function Ec(){return{type:"STOP_DRAGGING_BLOCKS"}}function Sc(){return{type:"ENTER_FORMATTED_TEXT"}}function Cc(){return{type:"EXIT_FORMATTED_TEXT"}}function wc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Ic(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return uc(Object(c.createBlock)(r,e),n,t)}function Bc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function xc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Pc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Tc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Nc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Rc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Dc(){var e,t=arguments;return ar.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Fe.speak)(Object(I.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Fe.speak)(Object(I.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Mo)}function Lc(e){var t,n,r,o,i,a,l=arguments;return ar.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,So("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,So("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(p.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(p.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,So("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,dc(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,ec(Object(p.first)(a).clientId,Object(p.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Fo)}function Ac(e){var t,n;return ar.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,So("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,So("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,So("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Ic({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Vo)}function Mc(e){var t,n;return ar.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,So("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,So("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,So("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Ic({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Ho)}function Fc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Vc(e){return ar.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Fc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Fc(e,!1);case 6:case"end":return t.stop()}}),zo)}function Hc(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var zc=n(41);function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),pi=Object(zc.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=fi(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:qc(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function mi(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Oi(e,t){for(var n,r=ui(e),o=[].concat(Object(ae.a)(fi(e,t)),[t]),c=[].concat(Object(ae.a)(fi(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ui(e)),void 0===t&&(t=n<0?Ei(e):Si(e)),!t)return null;var r=bi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function vi(e,t){return gi(e,t,-1)}function hi(e,t){return gi(e,t,1)}function ji(e){return e.initialPosition}var ki=Object(zc.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return Wc;if(t.clientId===n.clientId)return[t.clientId];var r=bi(e,t.clientId);if(null===r)return Wc;var o=Pi(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function yi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?Wc:ki(e)}var _i=Object(zc.a)((function(e){var t=yi(e);return t.length?t.map((function(t){return Xc(e,t)})):Wc}),(function(e){return[].concat(Object(ae.a)(ki.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Ei(e){return Object(p.first)(yi(e))||null}function Si(e){return Object(p.last)(yi(e))||null}function Ci(e,t){return Ei(e)===t}function wi(e,t){return-1!==yi(e).indexOf(t)}var Ii=Object(zc.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=wi(e,n=bi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Bi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function xi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Pi(e,t){return e.blocks.order[t||""]||Wc}function Ti(e,t,n){return Pi(e,n).indexOf(t)}function Ni(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Pi(e,t),(function(t){return Ni(e,t)||wi(e,t)||n&&Ri(e,t,n)}))}function Di(e,t){if(!t)return!1;var n=yi(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=na(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!qi(e,n);if(s)return!1;var u=ta(e,n),d=Object(p.get)(u,["allowedBlocks"]),b=r(d,t),f=o.parent,m=qc(e,n),O=r(f,m);return null!==b&&null!==O?b||O:null!==b?b:null===O||O},Yi=Object(zc.a)($i,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Xi(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Zi=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&$i(e,t.name,n)},Qi=Object(zc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(ni(e,ei(e)),{name:t.name}));var i=Xi(e,r)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:r,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=ca(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=Xi(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:Kc,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return Zi(e,n,t)})).map(r),a=$i(e,"core/block",t)?la(e).map(o):[];return Object(p.orderBy)([].concat(Object(ae.a)(i),Object(ae.a)(a)),["frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,la(e),Object(c.getBlockTypes)()]})),Ji=Object(zc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return Zi(e,n,t)}));if(n)return!0;var r=$i(e,"core/block",t)&&la(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,la(e),Object(c.getBlockTypes)()]})),ea=Object(zc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return Zi(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function ta(e,t){return e.blockListSettings[t]}function na(e){return e.settings}function ra(e){return e.blocks.isPersistentChange}var oa=Object(zc.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),ca=Object(zc.a)((function(e,t){var n=Object(p.find)(la(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[la(e)]}));function ia(e){return e.blocks.isIgnoredChange}function aa(e){return e.lastBlockAttributesChange}function la(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],Wc)}function sa(e){return e.isNavigationMode}function ua(e){return!!e.automaticChangeStatus}function da(e,t){return e.highlightedBlock===t}function ba(e,t){return!!e.blocks.controlledInnerBlocks[t]}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t=d&&s<=b?s:s0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Xa=function(e,t){return Object(p.differenceWith)(e,Ya(t),(function(e,t){return t.includes(e)}))},Za=function(e,t,n,r){var o=Ya(r);return 0===o.length?e:Qa(e,r,{getCategory:function(e){var n;return null===(n=Object(p.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Ya(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=Ya(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,d=n.getKeywords,b=void 0===d?c:d,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,O=void 0===m?a:m,g=n.getVariations,v=void 0===g?l:g;return e.filter((function(e){var t=u(e),n=b(e),o=p(e),c=O(e),i=v(e),a=[t].concat(Object(ae.a)(n),[o,c],Object(ae.a)(i)).join(" ");return 0===Xa(r,a).length}))};var Ja=function(e){var t=e.title,n=e.icon,r=e.children;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(d.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(d.createElement)(v.Icon,{icon:n})),Object(d.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var el=function(){return Object(d.createElement)("div",{className:"block-editor-inserter__no-results"},Object(d.createElement)(Qr.a,{className:"block-editor-inserter__no-results-icon",icon:Pn.a}),Object(d.createElement)("p",null,Object(I.__)("No results found.")))},tl=function(e,t){var n=Object(g.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(d.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(le.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]};function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var rl=Object(m.compose)(v.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak,i=tl(t,n),a=Object(le.a)(i,4),l=a[0],s=a[1],b=a[2],f=a[3],m=Object(g.useSelect)((function(e){var n=e("core/block-editor").getBlockName;return!!(0,e("core/blocks").getChildBlockNames)(n(t)).length}),[t]),O=Object(d.useMemo)((function(){return Za(l,s,b,o)}),[o,l,s,b]),v=Object(d.useMemo)((function(){return l.slice(0,6)}),[l]),h=Object(d.useMemo)((function(){return O.filter((function(e){return"reusable"===e.category}))}),[O]),j=Object(d.useMemo)((function(){return O.filter((function(e){return!e.category}))}),[O]),k=Object(d.useMemo)((function(){var e=function(e){return Object(p.findIndex)(s,(function(t){return t.slug===e.category}))};return Object(p.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(t){return Object(p.sortBy)(t,e)}),(function(e){return Object(p.groupBy)(e,"category")}))(O)}),[O,s]),y=Object(d.useMemo)((function(){var e=function(e){for(var t=1;t=o.right||a.right<=o.left)return!1}if(Object(dr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function Sl(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.getBlockRootClientId,f=t.getClientIdsOfDescendants,p=t.isSelectionEnabled,m=t.getBlockSelectionStart,O=t.isMultiSelecting,g=n(),v=r(),h=o();return{selectedBlockClientId:g,selectionStartClientId:v,selectionBeforeEndClientId:c(h||g),selectionAfterEndClientId:i(h||g),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),getBlockRootClientId:b,getClientIdsOfDescendants:f,isSelectionEnabled:p(),blockSelectionStart:m(),isMultiSelecting:O()}}function Cl(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(Sl,[]),u=s.selectedBlockClientId,b=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,v=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,C=s.getBlockRootClientId,w=s.getClientIdsOfDescendants,B=Object(g.useDispatch)("core/block-editor"),x=B.multiSelect,P=B.selectBlock,T=B.clearSelectedBlock,N=B.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var R=f()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:R},Object(d.createElement)(hl,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===ct.UP,f=t===ct.DOWN,g=t===ct.LEFT,_=t===ct.RIGHT,E=t===ct.TAB,S=t===ct.ESCAPE,I=d||g,B=g||_,R=d||f,D=B||R,L=e.shiftKey,A=L||e.ctrlKey||e.altKey||e.metaKey,M=R?dr.isVerticalEdge:dr.isHorizontalEdge;if(y){var F,V=E&&L||d,H=E&&!L||f,z=g,U=_;if(V)F=m;else if(H)F=O;else if(z){var G;F=null!==(G=C(u))&&void 0!==G?G:u}else if(U){var K;F=null!==(K=w([u])[0])&&void 0!==K?K:u}if(H||V||z||U)if(F)e.preventDefault(),P(F);else if(E&&u){var W,q=qe(u);(W=H?dr.focus.tabbable.findNext(q):dr.focus.tabbable.findPrevious(q))&&(e.preventDefault(),W.focus(),T())}}else{if(u)if(E){var $=qe(u);if(L){if(s===$)return a.current=!0,void r.current.focus()}else{var Y=dr.focus.tabbable.find($);if(s===(Object(p.last)(Y)||$))return a.current=!0,void o.current.focus()}}else S&&N(!0);else if(j&&E&&s===c.current)return a.current=!0,void(L?r.current.focus():o.current.focus());if(R?l.current||(l.current=Object(dr.computeCaretRect)()):l.current=null,!D)return ct.isKeyboardEvent.primary(e)&&(i.current=Object(dr.isEntirelySelected)(s)),void(ct.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?i.current:Object(dr.isEntirelySelected)(s))&&(x(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===ct.UP||t===ct.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,A)){var X="rtl"===yl(s).direction?!I:I;if(L)(I&&m||!I&&O)&&(j||function(e,t){var r,o,c=El(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,I)&&M(s,I))&&(!function(e){var t=e?m:O;t&&x(b||u,t)}(I),e.preventDefault());else if(j)!function(e){var t=e?v:h;t&&P(t)}(I),e.preventDefault();else if(R&&Object(dr.isVerticalEdge)(s,I)){var Z=El(s,I,n.current,!0);Z&&(Object(dr.placeCaretAtVerticalEdge)(Z,I,l.current),e.preventDefault())}else if(B&&kl().isCollapsed&&Object(dr.isHorizontalEdge)(s,X)){var Q=El(s,X,n.current);Object(dr.placeCaretAtHorizontalEdge)(Q,X),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&$e(qe(u),e.target)&&N(!1),_&&0===e.button){var t=Ye(e.target);t&&(e.shiftKey?E!==t&&(x(E,t),e.preventDefault()):j&&P(t))}}},Object(d.createElement)("div",{ref:c,tabIndex:j?"0":void 0,"aria-label":j?Object(I.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(hl,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=dr.focus.focusable.find(n.current),t=Object(p.findLast)(e,_l);t&&Object(dr.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function wl(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,c=n.isBlockInsertionPointVisible,i=(0,n.getBlockRootClientId)(t),a=r(t,i),l=o();return c()&&l.index===a&&l.rootClientId===i}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function Il(e){var t=e.hasMultiSelection,n=e.selectedBlockClientId,r=e.children,o=e.containerRef,c=Object(d.useState)(!1),i=Object(le.a)(c,2),a=i[0],l=i[1],s=Object(d.useState)(!1),u=Object(le.a)(s,2),b=u[0],p=u[1],m=Object(d.useState)(null),O=Object(le.a)(m,2),h=O[0],j=O[1],k=Object(d.useState)(null),y=Object(le.a)(k,2),_=y[0],E=y[1],S=Object(d.useRef)(),C=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds;return{isMultiSelecting:(0,t.isMultiSelecting)(),multiSelectedBlockClientIds:n()}}),[]),w=C.multiSelectedBlockClientIds,I=C.isMultiSelecting;var B=t?w.includes(_):_===n;return Object(d.createElement)(d.Fragment,null,!I&&(a||b)&&Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,anchorRef:h,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:h.offsetWidth}},Object(d.createElement)(wl,{clientId:_}),Object(d.createElement)("div",{ref:S,onFocus:function(){return p(!0)},onBlur:function(){return p(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===S.current){var c=r.getBoundingClientRect(),i=nn}));if(r){var o=r.id.slice("block-".length);if(o){var c=r.getBoundingClientRect();e.clientX>c.right||e.clientX=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))($l),Xl=n(44);function Zl(){var e=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(g.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(g.useDispatch)("core/notices").createSuccessNotice;return Object(d.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(I.sprintf)(Object(I.__)('Copied "%s" to clipboard.'),a):Object(I.sprintf)(Object(I.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(I.sprintf)(Object(I.__)("Copied %d blocks to clipboard."),o.length):Object(I.sprintf)(Object(I.__)("Moved %d blocks to clipboard."),o.length);n(c,{type:"snackbar"})}),[])}var Ql=function(e){var t=e.children,n=Object(d.useRef)(),r=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(g.useDispatch)("core/block-editor"),u=s.flashBlock,b=s.removeBlocks,f=s.replaceBlocks,m=Zl(),O=l().__experimentalCanUserUseUnfilteredHTML,v=function(e){var t=i();if(0!==t.length){if(!a())if("copy"===e.type||"cut"===e.type?Object(dr.documentHasUncollapsedSelection)():Object(dr.documentHasSelection)())return;if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&u(t[0]),m(e.type,t);var r=o(t),l=Object(c.serialize)(r);e.clipboardData.setData("text/plain",l),e.clipboardData.setData("text/html",l)}if("cut"===e.type)b(t);else if("paste"===e.type){var s=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(p.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'')})).join(""),o=""),{html:c,plainText:o}}(e),d=s.plainText,g=s.html,v=Object(c.pasteHandler)({HTML:g,plainText:d,mode:"BLOCKS",canUserUseUnfilteredHTML:O});f(t,v,v.length-1,-1)}}}};return Object(d.createElement)("div",{ref:n,onCopy:v,onCut:v,onPaste:v},t)};function Jl(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(g.useSelect)((function(e){return e("core/blocks")})),d=u.getDefaultBlockName,b=u.getGroupingBlockName,f=l(t),m=a(t[0]),O=Object(p.every)(f,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),v=i(d(),m),h=Object(g.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,S=h.flashBlock,C=Zl();return n({canDuplicate:O,canInsertDefaultBlock:v,isLocked:!!s(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(p.first)(Object(p.castArray)(t)))},onInsertAfter:function(){_(Object(p.last)(Object(p.castArray)(t)))},onGroup:function(){if(f.length){var e=b(),n=Object(c.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&S(e[0]),C("copy",e)}})}var es=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(I.__)("Edit as HTML"):Object(I.__)("Edit visually");return Object(d.createElement)(v.MenuItem,{onClick:r},!i&&s)}));function ts(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(I.__)("Convert to Blocks");return Object(d.createElement)(v.MenuItem,{onClick:n},!r&&o)}var ns=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))(ts),rs=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.serialize)(n)}))}}})))(ts),os=Object(v.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),cs=os.Fill,is=os.Slot;cs.Slot=is;var as=cs;function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t1,C=f()("block-editor-block-toolbar",_&&"is-showing-movers");return Object(d.createElement)("div",{className:C},Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-switcher-container",ref:v},!S&&Object(d.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(d.createElement)(Ll,{clientIds:r})),(E||S)&&Object(d.createElement)(vs,{clientIds:r,cloneClassname:"block-editor-block-toolbar__drag-clone"},(function(e){var n=e.isDraggable,o=e.onDraggableStart,c=e.onDraggableEnd;return Object(d.createElement)("div",Object(s.a)({},k,{className:"block-editor-block-toolbar__block-switcher-wrapper",draggable:n&&!t,onDragStart:o,onDragEnd:c}),Object(d.createElement)(Yl,{clientIds:r}),Object(d.createElement)(Dl,{clientIds:r,__experimentalOrientation:b}))}))),E&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(w.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(cr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(gs,{clientIds:r}))}var Cs=function(e){var t=e.focusOnMount,n=Object(ke.a)(e,["focusOnMount"]),r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}})).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(Tl,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(I.__)("Block tools")},n),Object(d.createElement)(Ss,null)))};function ws(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Is(e){var t=e.clientId,n=e.rootClientId,r=e.align,o=e.isValid,c=e.moverDirection,i=e.isEmptyDefaultBlock,a=e.capturingClientId,s=Object(g.useSelect)(ws,[]),u=s.isNavigationMode,b=s.isMultiSelecting,p=s.isTyping,O=s.isCaretWithinFormattedText,h=s.hasMultiSelection,j=s.hasFixedToolbar,k=s.lastClientId,y=Object(m.useViewportMatch)("medium"),_=Object(d.useState)(!1),E=Object(le.a)(_,2),S=E[0],C=E[1],w=Object(d.useState)(!1),I=Object(le.a)(w,2),B=I[0],x=I[1],P=Object(d.useContext)(Ts),T=!u&&i&&o,N=u,R=!u&&!j&&y&&!T&&!b&&(!p||O),D=!(u||R||j||i);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return C(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!D}),!(N||R||S||T))return null;var L=P[t];if(a&&(L=document.getElementById("block-"+a)),!L)return null;var A=L;if(h){var M=P[k];if(!M)return null;A={top:L,bottom:M}}var F=T?"top left right":"top right left";return Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:A,className:"block-editor-block-list__block-popover",__unstableSticky:!T,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableAllowVerticalSubpixelPosition:"horizontal"!==c&&L,__unstableAllowHorizontalSubpixelPosition:"horizontal"===c&&L,onBlur:function(){return C(!1)},shouldAnchorIncludePadding:!0,key:R},(R||S)&&Object(d.createElement)("div",{onFocus:function(){x(!0)},onBlur:function(){x(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":B})},Object(d.createElement)(vl,{clientId:t,rootClientId:n})),(R||S)&&Object(d.createElement)(Cs,{focusOnMount:S,"data-align":r}),N&&Object(d.createElement)(Bl,{clientId:t,rootClientId:n,moverDirection:c,"data-align":r}),T&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(vl,{position:"top right",rootClientId:n,clientId:t})))}function Bs(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.getBlockListSettings,s=t.__experimentalGetBlockListSettingsForBlocks,u=n()||r();if(u){var d,b=o(u),f=i(u)||{},m=f.name,O=f.attributes,g=void 0===O?{}:O,v=f.isValid,h=a(u),j=(l(b)||{}).__experimentalMoverDirection,k=s(h),y=Object(p.findIndex)(k,["__experimentalCaptureToolbars",!0]);return-1!==y&&(d=h[y]),{clientId:u,rootClientId:o(u),name:m,align:g.align,isValid:v,moverDirection:j,isEmptyDefaultBlock:m&&Object(c.isUnmodifiedDefaultBlock)({name:m,attributes:g}),capturingClientId:d}}}function xs(){var e=Object(g.useSelect)(Bs,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.align,c=e.isValid,i=e.moverDirection,a=e.isEmptyDefaultBlock,l=e.capturingClientId;return r?Object(d.createElement)(Is,{clientId:t,rootClientId:n,align:o,isValid:c,moverDirection:i,isEmptyDefaultBlock:a,capturingClientId:l}):null}var Ps=Object(d.createContext)(),Ts=Object(d.createContext)(),Ns=Object(d.createContext)();function Rs(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function Ds(e){Ye(e.target)&&e.preventDefault()}var Ls=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(g.useSelect)(Rs,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(g.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(g.useSelect)(qr,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(g.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(d.useRef)(),m=Object(d.useRef)(),O=Object(d.useRef)();Object(d.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=Wr(i,"start"),l=Wr(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var d=window.getSelection();if(d.rangeCount&&!d.isCollapsed){var b=qe(a),f=d.getRangeAt(0),p=f.startContainer,m=f.endContainer;!b||b.contains(p)&&b.contains(m)||d.removeAllRanges()}}}),[c,r,o,f,a]);var v=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&($r(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ae.a)(i(m.current)),[m.current]),l=[].concat(Object(ae.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else $r(e.current,!0)}),[f,i,b]),h=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){v({isSelectionEnd:!0}),u()}))}),[v,u]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[v,h]),Object(d.useCallback)((function(t){n&&(m.current=t,O.current=document.activeElement,s(),document.addEventListener("selectionchange",v),window.addEventListener("mouseup",h),$r(e.current,!1))}),[n,s,h])}(t),s=Object(d.useState)({}),u=Object(le.a)(s,2),b=u[0],p=u[1];return Object(d.createElement)(Il,{hasMultiSelection:i,selectedBlockClientId:c,containerRef:t},Object(d.createElement)(Ts.Provider,{value:b},Object(d.createElement)(xs,null),Object(d.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:Ds},Object(d.createElement)(Ns.Provider,{value:p},Object(d.createElement)(Ps.Provider,{value:l},n)))))})),As=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t1,w=m||k,B=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":w}),x=Br().__experimentalFeatures,P=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":w});return Object(d.useEffect)((function(){x&&n&&u.current.focus()}),[x,n]),Object(d.createElement)(Or,{className:f()({"is-selected":n}),onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},level:c,position:o,rowCount:i,path:s},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:C?void 0:2,ref:u},(function(e){var a=e.ref,s=e.tabIndex,u=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(d.createElement)(wr,{level:c,isLastRow:o===i,terminatedLevels:l}),Object(d.createElement)(Js,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingCount:S,level:c,ref:a,tabIndex:s,onFocus:u}))})),C&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(d.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Sr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})),Object(d.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Cr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})))),x&&Object(d.createElement)(v.__experimentalTreeGridCell,{className:P},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(d.createElement)(ms,{clientIds:[E],icon:sr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(v.MenuItem,{onClick:Object(lr.a)(ar.a.mark((function e(){return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(null);case 2:return e.next=4,_(E);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(I.__)("Go to block")))}))})))}function tu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)(tu),l="block-navigation-appender-row__description_".concat(a),s=Object(I.sprintf)(Object(I.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(d.createElement)(Or,{level:r,position:n,rowCount:o,path:i},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,u=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(d.createElement)(wr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(d.createElement)(vl,{rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l,toggleProps:{ref:i,tabIndex:a,onFocus:u}}),Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},s))})))}function nu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,u=e.terminatedLevels,b=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,O=!a,g=Object(p.compact)(t),v=function(e){return o&&!O&&r===e},h=v(a),j=h?g.length+1:g.length,k=j;return Object(d.createElement)(d.Fragment,null,Object(p.map)(g,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=j===u?[].concat(Object(ae.a)(b),[s]):b,p=[].concat(Object(ae.a)(m),[u]),O=i&&!!l&&!!l.length,g=v(a);return Object(d.createElement)(d.Fragment,{key:a},Object(d.createElement)(eu,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(O||g)&&Object(d.createElement)(nu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(d.createElement)(tu,{parentBlockClientId:a,position:j,rowCount:k,level:s,terminatedLevels:b,path:[].concat(Object(ae.a)(m),[k])}))}function ru(e){var t=e.__experimentalFeatures,n=Object(ke.a)(e,["__experimentalFeatures"]),r=Object(d.useMemo)((function(){return{__experimentalFeatures:t}}),[t]);return Object(d.createElement)(v.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(I.__)("Block navigation structure")},Object(d.createElement)(Ir.Provider,{value:r},Object(d.createElement)(nu,n)))}nu.defaultProps={selectBlock:function(){}};var ou=Object(m.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)("div",{className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(I.__)("Block navigation")),i&&Object(d.createElement)(ru,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(d.createElement)(ru,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),cu=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(v.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function iu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(ke.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(v.Button,Object(s.a)({},c,{ref:o,icon:cu,"aria-expanded":r,onClick:t?n:void 0,label:Object(I.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var au=Object(d.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(ke.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(d.createElement)(v.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(d.createElement)(iu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(ou,{onSelect:t,__experimentalFeatures:r})}})})),lu=n(117),su=[ct.rawShortcut.primary("z"),ct.rawShortcut.primaryShift("z"),ct.rawShortcut.primary("y")],uu=Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(su.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),du=function(){return uu};function bu(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var fu={position:"bottom right",isAlternate:!0},pu=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(v.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(v.__experimentalToolbarItem,null,(function(t){return Object(d.createElement)(v.DropdownMenu,{icon:jr.a,label:Object(I.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(le.a)(e,1)[0].props})),"title"),popoverProps:fu})}))}))))},mu=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(v.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(pu,null)):Object(d.createElement)(cr,null,Object(d.createElement)(pu,null))};function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function vu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?vu.EMPTY_ARRAY:t||n?t||(Zn()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}vu.EMPTY_ARRAY=[];var hu=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,b=t.isSelected,p=t.multiline,O=t.inlineToolbar,v=t.wrapperClassName,h=t.className,j=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,S=t.allowedFormats,C=t.formattingControls,w=t.withoutInteractiveFormatting,I=t.onRemove,B=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,L=t.style,A=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(ke.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(d.useRef)(),G=n||U,K=k(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),O=i(),g=a().__experimentalUndo;void 0===b?t=m.clientId===W&&m.attributeKey===N:b&&(t=m.clientId===W);var v={};if("native"===d.Platform.OS){var h=W&&s(W);v={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t0,me=a,Oe=l;Array.isArray(a)&&(me=c.children.toHTML(a),Oe=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var ge=Object(d.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),ve=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),I&&Object(i.isEmpty)(t)&&n&&I(!n)}),[B,I]),he=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&x){var n=[],r=Object(i.split)(e),o=Object(le.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:be}))),s+=1),l?(n.push.apply(n,Object(ae.a)(t)),s+=t.length):T&&n.push(T()),(l||T)&&Object(i.isEmpty)(a)||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:be})));var u=l?s:1,d=l?-1:null;y(n,u,d)}}),[y,x,be,T]),je=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&x;if(y){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(y([l.transform({content:t.text})]),de())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?he(t):n(Object(i.__unstableInsertLineSeparator)(t));else if(r||!o&&!P)V||n(Object(i.insert)(t,"\n"));else if(P&&!o){var s=t.text,u=t.start,d=t.end;u===d&&d===s.length&&P()}else o&&he(t)}),[y,x,de,p,he,P]),ye=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:bu(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(y&&Object(i.isEmpty)(t)?y(u):he(t,u))}var d,b=y&&x?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(lu.regexp)(".*").test(d))&&(b="BLOCKS"),M&&Object(i.isEmpty)(t)&&Object(Aa.isURL)(a.trim())&&(b="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var O=m.formats.length;O--;)m.formats[O]=[].concat(Object(ae.a)(s),Object(ae.a)(m.formats[O]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(y&&Object(i.isEmpty)(t)?y(f,f.length-1,-1):he(t,f))}),[o,y,x,he,M,p]),_e=Object(d.useCallback)((function(e,t){if(y){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);y([u]),de()}}}}),[y,de]),Ee=Object(d.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:me,onChange:Oe,selectionStart:Z,selectionEnd:Q,onSelectionChange:ge,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:je,onDelete:ve,onPaste:ye,__unstableIsSelected:J,__unstableInputRule:_e,__unstableMultilineTag:be,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:ie,__unstableOnExitFormattedText:se,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:de,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:L,preserveWhiteSpace:A,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==b?b:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&pe&&Object(d.createElement)(mu,{inline:O,anchorRef:G.current}),t&&Object(d.createElement)(du,null),Object(d.createElement)(Fn,{onReplace:y,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(a,Object(s.a)({},i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return v?(Zn()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:f()("block-editor-rich-text",v)},Ee)):Ee}));hu.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(ke.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=gu(r);!t&&i&&(t="<".concat(i,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},hu.isEmpty=function(e){return!e||0===e.length},hu.Content.defaultProps={format:"string",value:""};var ju=hu;function ku(e){var t=e.value,n=e.onChange;return Object(d.createElement)(Qs,null,Object(d.createElement)(ju,{value:t,onChange:n,placeholder:Object(I.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var yu=function(e){var t=e.icon,n=void 0===t?Al.a:t,r=e.label,o=void 0===r?Object(I.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(I.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(v.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(I.__)("Block variations")},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(v.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(d.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(v.Button,{isLink:!0,onClick:function(){return l()}},Object(I.__)("Skip"))))},_u=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Eu=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cu={top:{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(I._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Eu,title:Object(I._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:_u,title:Object(I._x)("Vertically Align Bottom","Block vertical alignment setting")}},wu=["top","center","bottom"],Iu={isAlternate:!0};var Bu=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?wu:r,c=e.isCollapsed,i=void 0===c||c,a=Cu[t],l=Cu.top;return Object(d.createElement)(v.ToolbarGroup,{popoverProps:Iu,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(I._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(Aa.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(I.sprintf)(Object(I._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(I.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case ct.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case ct.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case ct.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(I.__)("Link selected.")));break;case ct.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case ct.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case ct.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.__experimentalRenderSuggestions,a=t.placeholder,l=void 0===a?Object(I.__)("Paste URL or type to search"):a,u=t.value,b=void 0===u?"":u,m=t.autoFocus,O=void 0===m||m,g=t.__experimentalShowInitialSuggestions,h=void 0!==g&&g,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,S="url-input-control-".concat(r),C="block-editor-url-input-suggestions-".concat(r),w="block-editor-url-input-suggestion-".concat(r),B={id:C,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(w,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(d.createElement)(v.BaseControl,{label:n,id:S,className:f()("block-editor-url-input",o,{"is-full-width":c})},Object(d.createElement)("input",{className:"block-editor-url-input__input",autoFocus:O,type:"text","aria-label":Object(I.__)("URL"),required:!0,value:b,onChange:this.onChange,onFocus:this.onFocus,onInput:cd,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":C,"aria-activedescendant":null!==_?"".concat(w,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(d.createElement)(v.Spinner,null),Object(p.isFunction)(i)&&k&&!!y.length&&i({suggestions:y,selectedSuggestion:_,suggestionsListProps:B,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:h&&!(b&&b.length)}),!Object(p.isFunction)(i)&&k&&!!y.length&&Object(d.createElement)(v.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(s.a)({},B,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(d.createElement)(v.Button,Object(s.a)({},x(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(d.Component),ad=Object(m.compose)(m.withSafeTimeout,v.withSpokenMessages,m.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(id),ld=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(d.useState)(),u=Object(le.a)(s,2),b=u[0],f=u[1];return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(b||{url:n})}},Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)(ad,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(I.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(v.Button,{type:"submit",label:Object(I.__)("Submit"),icon:td.a,className:"block-editor-link-control__search-submit"}))),l&&Object(d.createElement)(v.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},sd=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(d.createElement)(v.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(d.createElement)(v.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createInterpolateElement)(Object(I.sprintf)(Object(I.__)("New page: %s"),t),{mark:Object(d.createElement)("mark",null)})))):null};function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=dd({},t);delete n.type,delete n.id,c(dd({},n,{},e))};return Object(d.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(v.Spinner,null)," ",Object(I.__)("Creating"),"…"),(P||!n)&&!D&&Object(d.createElement)(ld,{placeholder:t,value:C,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";w(e)},onSelect:function(){var e=Object(lr.a)(ar.a.mark((function e(t){return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(C);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),b=["url","mailto","tel","internal"],p=1===o.length&&b.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,O="block-editor-link-control-search-results-label-".concat(_),g=l?Object(I.__)("Recently updated"):Object(I.sprintf)(Object(I.__)('Search results for "%s"'),C),j=Object(d.createElement)(l?d.Fragment:v.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:O},g));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(d.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":O}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(d.createElement)(sd,{searchTerm:C,onClick:Object(lr.a)(ar.a.mark((function t(){return ar.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(d.createElement)(ed,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(dd({},n,{},e))},isSelected:t===i,isURL:b.includes(e.type.toLowerCase()),searchTerm:C})}))))}:null,fetchSuggestions:$,showInitialSuggestions:b,errorMessage:F}),n&&!P&&!D&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{"aria-label":Object(I.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(v.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(d.createElement)(v.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(I.__)("Edit")),Object(d.createElement)(fd,{fillProps:n}))),Object(d.createElement)(Qu,{value:n,settings:r,onChange:c}))}Od.ViewerFill=pd;var gd=Od,vd=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(B.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),hd=n(293),jd=Object(v.withFilters)("editor.MediaUpload")((function(){return null}));var kd=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),yd=Object(m.compose)([Object(g.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(v.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?p.noop:a,s=e.name,u=void 0===s?Object(I.__)("Replace"):s,b=e.createNotice,f=e.removeNotice,m=Object(d.useState)(t),O=Object(le.a)(m,2),h=O[0],j=O[1],k=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(d.createRef)(),_=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(d.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},S=function(e){c(e),j(e.url),Object(Fe.speak)(Object(I.__)("The media file has been replaced")),f(_)},C=function(e){e.keyCode===ct.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(d.createElement)(v.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(v.ToolbarButton,{ref:y,"aria-expanded":t,onClick:n,onKeyDown:C},u))},renderContent:function(e){e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(d.createElement)(jd,{value:n,onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(v.MenuItem,{icon:vd,onClick:t},Object(I.__)("Open Media Library"))}}),Object(d.createElement)(kd,null,Object(d.createElement)(v.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(le.a)(e,1)[0];S(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(v.MenuItem,{icon:hd.a,onClick:function(){t()}},Object(I.__)("Upload"))}}))),i&&Object(d.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(d.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(I.__)("Current media URL:")),Object(d.createElement)(gd,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),_d=n(294);function Ed(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(v.ExternalLink,{className:o,href:t},n||Object(Aa.filterURLForDisplay)(Object(Aa.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Sd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Sd()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(zt.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Ht.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(ke.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,b=!!r&&u;return Object(d.createElement)(v.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(v.Button,{className:"block-editor-url-popover__settings-toggle",icon:jr.a,label:Object(I.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),b&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!b&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(d.Component);Cd.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(ke.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(d.createElement)(ad,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(v.Button,{icon:td.a,label:Object(I.__)("Apply"),type:"submit"}))},Cd.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(ke.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(d.createElement)(Ed,{url:o,urlLabel:c,className:n}),r&&Object(d.createElement)(v.Button,{icon:_d.a,label:Object(I.__)("Edit"),onClick:r}))};var wd=Cd;function Id(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Bd=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(wd,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(I.__)("URL"),placeholder:Object(I.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:td.a,label:Object(I.__)("Apply"),type:"submit"})))},xd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Id()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(zt.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(zt.a)(e)),e.onUpload=e.onUpload.bind(Object(zt.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(zt.a)(e)),e.openURLInput=e.openURLInput.bind(Object(zt.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect,u=r.onFilesPreUpload;if((void 0===u?p.noop:u)(e),a)if(o){var d=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!d.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!d.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),d=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(le.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,b=n.mediaPreview,p=n.notices,m=n.onSelectURL,O=n.mediaUpload,g=n.children,h=s.instructions,j=s.title;if(O||m||(h=Object(I.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&O&&(h=Object(I.__)("Upload a media file or pick one from your media library."),y?h=Object(I.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(I.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(I.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(I.__)("Media"),y?j=Object(I.__)("Audio"):_?j=Object(I.__)("Image"):E&&(j=Object(I.__)("Video")))}var S=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(d.createElement)(v.Placeholder,{icon:i,label:j,instructions:h,className:S,notices:p,onClick:t,onDoubleClick:u,preview:b},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(v.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(I.__)("Cancel"),isLink:!0,onClick:e},Object(I.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(I.__)("Insert from URL")),t&&Object(d.createElement)(Bd,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,b=t.value,m=void 0===b?{}:b,O=Object(d.createElement)(jd,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(d.createElement)(v.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(I.__)("Media Library"))}});if(a&&i)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(I.__)("Upload")),O,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(I.__)("Upload")),O,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(O)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&Zn()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(kd,null,this.renderDropZone())):Object(d.createElement)(kd,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(d.Component),Pd=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Td=Object(m.compose)(Pd,Object(v.withFilters)("editor.MediaPlaceholder"))(xd),Nd=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(ju,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Nd.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(ke.a)(e,["value","tagName"]);return Object(d.createElement)(o,c,n)};var Rd=Nd,Dd=Object(d.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(ke.a)(e,["__experimentalVersion"]);if(2===n)return Object(d.createElement)(Rd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(ke.a)(r,["className","onChange"]);return Object(d.createElement)(Gr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Ld(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(Ld),c=r||Object(I.sprintf)(Object(I._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)(v.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Ad=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(I.__)("All")}:s,b=e.viewports,p=void 0===b?[{id:"small",label:Object(I.__)("Small screens")},{id:"medium",label:Object(I.__)("Medium screens")},{id:"large",label:Object(I.__)("Large screens")}]:b;if(!t||!n||!c)return null;var m=r||Object(I.sprintf)(Object(I.__)("Use the same %s on all screensizes."),n),O=Object(I.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=c(Object(d.createElement)(Ld,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(v.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:O}),Object(d.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(i?i(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},c(Object(d.createElement)(Ld,{property:n,viewport:e}),e))}))))))};function Md(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Md()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).onUse=e.onUse.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(u.a)({},ct.rawShortcut[n](t),this.onUse)})}}]),r}(d.Component);function Vd(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(ke.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=ct.displayShortcut[r](o)),Object(d.createElement)(v.Fill,{name:i},Object(d.createElement)(v.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function Hd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Hd()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),r}(d.Component),Ud=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),Gd=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Kd=Object(d.forwardRef)((function(e,t){var n=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(g.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(d.createElement)(v.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(d.createElement)(v.Button,Object(s.a)({},e,{ref:t,icon:n?Gd:Ud,"aria-expanded":o,onClick:c,label:Object(I.__)("Tools")}))},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{role:"menu","aria-label":Object(I.__)("Tools")},Object(d.createElement)(v.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Ud,Object(I.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Gd,Object(I.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(I.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Wd=n(170),qd=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function $d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Yd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if($d()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(zt.a)(e)),e.submitLink=e.submitLink.bind(Object(zt.a)(e)),e.state={expanded:!1},e}return Object(Ht.a)(r,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(I.__)("Edit link"):Object(I.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(v.Button,{icon:Wd.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(v.Button,{className:"block-editor-url-input__back",icon:qd,label:Object(I.__)("Close"),onClick:this.toggle}),Object(d.createElement)(ad,{value:t||"",onChange:n}),Object(d.createElement)(v.Button,{icon:td.a,label:Object(I.__)("Submit"),type:"submit"}))))}}]),r}(d.Component),Xd=n(133),Zd=["noreferrer","noopener"],Qd=Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(d.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Jd=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,b=Object(d.useState)(!1),f=Object(le.a)(b,2),m=f[0],O=f[1],g=Object(d.useCallback)((function(){O(!0)})),h=Object(d.useState)(!1),j=Object(le.a)(h,2),k=j[0],y=j[1],_=Object(d.useState)(null),E=Object(le.a)(_,2),S=E[0],C=E[1],w=Object(d.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||C(""),y(!0)})),T=Object(d.useCallback)((function(){y(!1)})),N=Object(d.useCallback)((function(){C(null),T(),O(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Zd,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(d.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(O(!1),C(null),T())}})),L=Object(d.useCallback)((function(){return function(e){S&&n({href:S}),T(),C(null),e.preventDefault()}})),A=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),M=function(){return[{linkDestination:"media",title:Object(I.__)("Media File"),url:"image"===c?i:void 0,icon:Qd},{linkDestination:"attachment",title:Object(I.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]},F=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToggleControl,{label:Object(I.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(v.TextControl,{label:Object(I.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(d.createElement)(v.TextControl,{label:Object(I.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(p.find)(M(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToolbarButton,{icon:Wd.a,className:"components-toolbar__control",label:r?Object(I.__)("Edit link"):Object(I.__)("Insert link"),"aria-expanded":m,onClick:g}),m&&Object(d.createElement)(wd,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(d.createElement)(v.NavigableMenu,null,Object(p.map)(M(),(function(e){return Object(d.createElement)(v.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;C(null),t=e.url,o=M(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(d.createElement)(wd.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:C,onKeyDown:x,onKeyPress:B,onSubmit:L(),autocompleteRef:w}),r&&!k&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(wd.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(d.createElement)(v.Button,{icon:Xd.a,label:Object(I.__)("Remove link"),onClick:A}))))},eb=n(171);function tb(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(d.createElement)(v.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(I.__)("Preview"),Object(d.createElement)(Qr.a,{icon:jr.a}))},renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&eb.a},Object(I.__)("Desktop")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&eb.a},Object(I.__)("Tablet")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&eb.a},Object(I.__)("Mobile"))),t)}})}var nb=n(256),rb=/\((min|max)-width:[^\(]*?\)/g;function ob(e){return!!e.media&&!!e.media.mediaText.match(rb)}function cb(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function ib(e,t){return e.replace(rb,(function(e){return Object(nb.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function ab(e,t){Object(d.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(Aa.getProtocol)(e.href)===window.location.protocol&&Object(Aa.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(db,null),Object(d.createElement)(We.Slot,{bubblesVirtually:!0}));var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(to,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(v.PanelBody,{title:Object(I.__)("Styles")},Object(d.createElement)(Ul,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(d.createElement)(bb,{blockName:t.name}))),Object(d.createElement)(We.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,Object(d.createElement)(fb,{slotName:ee.slotName})),Object(d.createElement)(sb,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(I.__)("No block selected.")):null}));function mb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ob=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(mb()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(zt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(d.Component),gb=Object(m.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(Ob),vb=n(257),hb=n.n(vb),jb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kb=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||C());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function O(){var e=b(/^([^{]+)/);if(e)return yb(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function g(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=yb(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(jb,""),value:n?yb(n[0]).replace(jb,""):""});return b(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=yb(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:yb(t[1]),media:yb(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=yb(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=yb(t[1]),r=yb(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=O()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function C(){var e=c(),t=O();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Eo.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function yb(e){return e?e.replace(/^\s+|\s+$/g,""):""}var _b=n(156),Eb=n.n(_b),Sb=Cb;function Cb(e){this.options=e||{}}Cb.prototype.emit=function(e){return e},Cb.prototype.visit=function(e){return this[e.type](e)},Cb.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Mb({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Fb)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Hb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Vb(t)),r&&o.push(Lb(r)),o.length?Pb(n,Object(m.compose)(o)):n}))};var zb=function(e){var t=e.styles;return Object(d.useEffect)((function(){var e=Hb(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var Ub=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.__experimentalSelectBlockOnInsert,i=e.onSelect,a=void 0===i?p.noop:i,l=Object(g.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return{rootClientId:t=t||r(n)||void 0}})).destinationRootClientId;return Object(d.createElement)(pl,{onSelect:a,rootClientId:l,clientId:n,isAppender:r,showInserterHelpPanel:o,__experimentalSelectBlockOnInsert:c})};function Gb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,c=r.removeBlocks,i=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),i(Object(p.last)(t))}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}Gb.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(I.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(I.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(I.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(I.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(I.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(I.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(I.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(I.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var Kb=Gb;function Wb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(d.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(dr.getScrollContainer)(e);o&&rd()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var qb=[ct.UP,ct.RIGHT,ct.DOWN,ct.LEFT,ct.ENTER,ct.BACKSPACE];var $b=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(g.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",b),document[t]("mousemove",u)}function u(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(dr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(qb,t)}(e))&&a()}return Object(d.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(dr.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==ct.ESCAPE&&e.keyCode!==ct.TAB||l()}])},t)}));function Yb(){return Zn()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Xb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Zb=-1!==window.navigator.userAgent.indexOf("Trident"),Qb=new Set([ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT]),Jb=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Xb()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(zt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(zt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(zt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(zt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(zt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(zt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(dr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(dr.computeCaretRect)();if(n)if(this.caretRect)if(Qb.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(dr.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(M(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+O(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+O(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:A(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function D(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},6:function(e,t){!function(){e.exports=this.wp.primitives}()},62:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},72:function(e,t){!function(){e.exports=this.wp.viewport}()},8:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t', '"', '`', ' ', '\r', '\n', '\t'], - - // RFC 2396: characters not allowed for various reasons. - unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), - - // Allowed by RFCs, but cause of XSS attacks. Always escape these. - autoEscape = ['\''].concat(unwise), - // Characters that are never ever allowed in a hostname. - // Note that any invalid chars are also handled, but these - // are the ones that are *expected* to be seen, so we fast-path - // them. - nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), - hostEndingChars = ['/', '?', '#'], - hostnameMaxLen = 255, - hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, - hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, - // protocols that can allow "unsafe" and "unwise" chars. - unsafeProtocol = { - 'javascript': true, - 'javascript:': true - }, - // protocols that never have a hostname. - hostlessProtocol = { - 'javascript': true, - 'javascript:': true - }, - // protocols that always contain a // bit. - slashedProtocol = { - 'http': true, - 'https': true, - 'ftp': true, - 'gopher': true, - 'file': true, - 'http:': true, - 'https:': true, - 'ftp:': true, - 'gopher:': true, - 'file:': true - }, - querystring = __webpack_require__(163); - -function urlParse(url, parseQueryString, slashesDenoteHost) { - if (url && util.isObject(url) && url instanceof Url) return url; - - var u = new Url; - u.parse(url, parseQueryString, slashesDenoteHost); - return u; -} - -Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { - if (!util.isString(url)) { - throw new TypeError("Parameter 'url' must be a string, not " + typeof url); - } - - // Copy chrome, IE, opera backslash-handling behavior. - // Back slashes before the query string get converted to forward slashes - // See: https://code.google.com/p/chromium/issues/detail?id=25916 - var queryIndex = url.indexOf('?'), - splitter = - (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', - uSplit = url.split(splitter), - slashRegex = /\\/g; - uSplit[0] = uSplit[0].replace(slashRegex, '/'); - url = uSplit.join(splitter); - - var rest = url; - - // trim before proceeding. - // This is to support parse stuff like " http://foo.com \n" - rest = rest.trim(); - - if (!slashesDenoteHost && url.split('#').length === 1) { - // Try fast path regexp - var simplePath = simplePathPattern.exec(rest); - if (simplePath) { - this.path = rest; - this.href = rest; - this.pathname = simplePath[1]; - if (simplePath[2]) { - this.search = simplePath[2]; - if (parseQueryString) { - this.query = querystring.parse(this.search.substr(1)); - } else { - this.query = this.search.substr(1); - } - } else if (parseQueryString) { - this.search = ''; - this.query = {}; - } - return this; - } - } - - var proto = protocolPattern.exec(rest); - if (proto) { - proto = proto[0]; - var lowerProto = proto.toLowerCase(); - this.protocol = lowerProto; - rest = rest.substr(proto.length); - } - - // figure out if it's got a host - // user@server is *always* interpreted as a hostname, and url - // resolution will treat //foo/bar as host=foo,path=bar because that's - // how the browser resolves relative URLs. - if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { - var slashes = rest.substr(0, 2) === '//'; - if (slashes && !(proto && hostlessProtocol[proto])) { - rest = rest.substr(2); - this.slashes = true; - } - } - - if (!hostlessProtocol[proto] && - (slashes || (proto && !slashedProtocol[proto]))) { - - // there's a hostname. - // the first instance of /, ?, ;, or # ends the host. - // - // If there is an @ in the hostname, then non-host chars *are* allowed - // to the left of the last @ sign, unless some host-ending character - // comes *before* the @-sign. - // URLs are obnoxious. - // - // ex: - // http://a@b@c/ => user:a@b host:c - // http://a@b?@c => user:a host:c path:/?@c - - // v0.12 TODO(isaacs): This is not quite how Chrome does things. - // Review our test case against browsers more comprehensively. - - // find the first instance of any hostEndingChars - var hostEnd = -1; - for (var i = 0; i < hostEndingChars.length; i++) { - var hec = rest.indexOf(hostEndingChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) - hostEnd = hec; - } - - // at this point, either we have an explicit point where the - // auth portion cannot go past, or the last @ char is the decider. - var auth, atSign; - if (hostEnd === -1) { - // atSign can be anywhere. - atSign = rest.lastIndexOf('@'); - } else { - // atSign must be in auth portion. - // http://a@b/c@d => host:b auth:a path:/c@d - atSign = rest.lastIndexOf('@', hostEnd); - } - - // Now we have a portion which is definitely the auth. - // Pull that off. - if (atSign !== -1) { - auth = rest.slice(0, atSign); - rest = rest.slice(atSign + 1); - this.auth = decodeURIComponent(auth); - } - - // the host is the remaining to the left of the first non-host char - hostEnd = -1; - for (var i = 0; i < nonHostChars.length; i++) { - var hec = rest.indexOf(nonHostChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) - hostEnd = hec; - } - // if we still have not hit it, then the entire thing is a host. - if (hostEnd === -1) - hostEnd = rest.length; - - this.host = rest.slice(0, hostEnd); - rest = rest.slice(hostEnd); - - // pull out port. - this.parseHost(); - - // we've indicated that there is a hostname, - // so even if it's empty, it has to be present. - this.hostname = this.hostname || ''; - - // if hostname begins with [ and ends with ] - // assume that it's an IPv6 address. - var ipv6Hostname = this.hostname[0] === '[' && - this.hostname[this.hostname.length - 1] === ']'; - - // validate a little. - if (!ipv6Hostname) { - var hostparts = this.hostname.split(/\./); - for (var i = 0, l = hostparts.length; i < l; i++) { - var part = hostparts[i]; - if (!part) continue; - if (!part.match(hostnamePartPattern)) { - var newpart = ''; - for (var j = 0, k = part.length; j < k; j++) { - if (part.charCodeAt(j) > 127) { - // we replace non-ASCII char with a temporary placeholder - // we need this to make sure size of hostname is not - // broken by replacing non-ASCII by nothing - newpart += 'x'; - } else { - newpart += part[j]; - } - } - // we test again with ASCII char only - if (!newpart.match(hostnamePartPattern)) { - var validParts = hostparts.slice(0, i); - var notHost = hostparts.slice(i + 1); - var bit = part.match(hostnamePartStart); - if (bit) { - validParts.push(bit[1]); - notHost.unshift(bit[2]); - } - if (notHost.length) { - rest = '/' + notHost.join('.') + rest; - } - this.hostname = validParts.join('.'); - break; - } - } - } - } - - if (this.hostname.length > hostnameMaxLen) { - this.hostname = ''; - } else { - // hostnames are always lower case. - this.hostname = this.hostname.toLowerCase(); - } - - if (!ipv6Hostname) { - // IDNA Support: Returns a punycoded representation of "domain". - // It only converts parts of the domain name that - // have non-ASCII characters, i.e. it doesn't matter if - // you call it with a domain that already is ASCII-only. - this.hostname = punycode.toASCII(this.hostname); - } - - var p = this.port ? ':' + this.port : ''; - var h = this.hostname || ''; - this.host = h + p; - this.href += this.host; - - // strip [ and ] from the hostname - // the host field still retains them, though - if (ipv6Hostname) { - this.hostname = this.hostname.substr(1, this.hostname.length - 2); - if (rest[0] !== '/') { - rest = '/' + rest; - } - } - } - - // now rest is set to the post-host stuff. - // chop off any delim chars. - if (!unsafeProtocol[lowerProto]) { - - // First, make 100% sure that any "autoEscape" chars get - // escaped, even if encodeURIComponent doesn't think they - // need to be. - for (var i = 0, l = autoEscape.length; i < l; i++) { - var ae = autoEscape[i]; - if (rest.indexOf(ae) === -1) - continue; - var esc = encodeURIComponent(ae); - if (esc === ae) { - esc = escape(ae); - } - rest = rest.split(ae).join(esc); - } - } - - - // chop off from the tail first. - var hash = rest.indexOf('#'); - if (hash !== -1) { - // got a fragment string. - this.hash = rest.substr(hash); - rest = rest.slice(0, hash); - } - var qm = rest.indexOf('?'); - if (qm !== -1) { - this.search = rest.substr(qm); - this.query = rest.substr(qm + 1); - if (parseQueryString) { - this.query = querystring.parse(this.query); - } - rest = rest.slice(0, qm); - } else if (parseQueryString) { - // no query string, but parseQueryString still requested - this.search = ''; - this.query = {}; - } - if (rest) this.pathname = rest; - if (slashedProtocol[lowerProto] && - this.hostname && !this.pathname) { - this.pathname = '/'; - } - - //to support http.request - if (this.pathname || this.search) { - var p = this.pathname || ''; - var s = this.search || ''; - this.path = p + s; - } - - // finally, reconstruct the href based on what has been validated. - this.href = this.format(); - return this; -}; - -// format a parsed object into a url string -function urlFormat(obj) { - // ensure it's an object, and not a string url. - // If it's an obj, this is a no-op. - // this way, you can call url_format() on strings - // to clean up potentially wonky urls. - if (util.isString(obj)) obj = urlParse(obj); - if (!(obj instanceof Url)) return Url.prototype.format.call(obj); - return obj.format(); -} - -Url.prototype.format = function() { - var auth = this.auth || ''; - if (auth) { - auth = encodeURIComponent(auth); - auth = auth.replace(/%3A/i, ':'); - auth += '@'; - } - - var protocol = this.protocol || '', - pathname = this.pathname || '', - hash = this.hash || '', - host = false, - query = ''; - - if (this.host) { - host = auth + this.host; - } else if (this.hostname) { - host = auth + (this.hostname.indexOf(':') === -1 ? - this.hostname : - '[' + this.hostname + ']'); - if (this.port) { - host += ':' + this.port; - } - } - - if (this.query && - util.isObject(this.query) && - Object.keys(this.query).length) { - query = querystring.stringify(this.query); - } - - var search = this.search || (query && ('?' + query)) || ''; - - if (protocol && protocol.substr(-1) !== ':') protocol += ':'; - - // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. - // unless they had them to begin with. - if (this.slashes || - (!protocol || slashedProtocol[protocol]) && host !== false) { - host = '//' + (host || ''); - if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; - } else if (!host) { - host = ''; - } - - if (hash && hash.charAt(0) !== '#') hash = '#' + hash; - if (search && search.charAt(0) !== '?') search = '?' + search; - - pathname = pathname.replace(/[?#]/g, function(match) { - return encodeURIComponent(match); - }); - search = search.replace('#', '%23'); - - return protocol + host + pathname + search + hash; -}; - -function urlResolve(source, relative) { - return urlParse(source, false, true).resolve(relative); -} - -Url.prototype.resolve = function(relative) { - return this.resolveObject(urlParse(relative, false, true)).format(); -}; - -function urlResolveObject(source, relative) { - if (!source) return relative; - return urlParse(source, false, true).resolveObject(relative); -} - -Url.prototype.resolveObject = function(relative) { - if (util.isString(relative)) { - var rel = new Url(); - rel.parse(relative, false, true); - relative = rel; - } - - var result = new Url(); - var tkeys = Object.keys(this); - for (var tk = 0; tk < tkeys.length; tk++) { - var tkey = tkeys[tk]; - result[tkey] = this[tkey]; - } - - // hash is always overridden, no matter what. - // even href="" will remove it. - result.hash = relative.hash; - - // if the relative url is empty, then there's nothing left to do here. - if (relative.href === '') { - result.href = result.format(); - return result; - } - - // hrefs like //foo/bar always cut to the protocol. - if (relative.slashes && !relative.protocol) { - // take everything except the protocol from relative - var rkeys = Object.keys(relative); - for (var rk = 0; rk < rkeys.length; rk++) { - var rkey = rkeys[rk]; - if (rkey !== 'protocol') - result[rkey] = relative[rkey]; - } - - //urlParse appends trailing / to urls like http://www.example.com - if (slashedProtocol[result.protocol] && - result.hostname && !result.pathname) { - result.path = result.pathname = '/'; - } - - result.href = result.format(); - return result; - } - - if (relative.protocol && relative.protocol !== result.protocol) { - // if it's a known url protocol, then changing - // the protocol does weird things - // first, if it's not file:, then we MUST have a host, - // and if there was a path - // to begin with, then we MUST have a path. - // if it is file:, then the host is dropped, - // because that's known to be hostless. - // anything else is assumed to be absolute. - if (!slashedProtocol[relative.protocol]) { - var keys = Object.keys(relative); - for (var v = 0; v < keys.length; v++) { - var k = keys[v]; - result[k] = relative[k]; - } - result.href = result.format(); - return result; - } - - result.protocol = relative.protocol; - if (!relative.host && !hostlessProtocol[relative.protocol]) { - var relPath = (relative.pathname || '').split('/'); - while (relPath.length && !(relative.host = relPath.shift())); - if (!relative.host) relative.host = ''; - if (!relative.hostname) relative.hostname = ''; - if (relPath[0] !== '') relPath.unshift(''); - if (relPath.length < 2) relPath.unshift(''); - result.pathname = relPath.join('/'); - } else { - result.pathname = relative.pathname; - } - result.search = relative.search; - result.query = relative.query; - result.host = relative.host || ''; - result.auth = relative.auth; - result.hostname = relative.hostname || relative.host; - result.port = relative.port; - // to support http.request - if (result.pathname || result.search) { - var p = result.pathname || ''; - var s = result.search || ''; - result.path = p + s; - } - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; - } - - var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), - isRelAbs = ( - relative.host || - relative.pathname && relative.pathname.charAt(0) === '/' - ), - mustEndAbs = (isRelAbs || isSourceAbs || - (result.host && relative.pathname)), - removeAllDots = mustEndAbs, - srcPath = result.pathname && result.pathname.split('/') || [], - relPath = relative.pathname && relative.pathname.split('/') || [], - psychotic = result.protocol && !slashedProtocol[result.protocol]; - - // if the url is a non-slashed url, then relative - // links like ../.. should be able - // to crawl up to the hostname, as well. This is strange. - // result.protocol has already been set by now. - // Later on, put the first path part into the host field. - if (psychotic) { - result.hostname = ''; - result.port = null; - if (result.host) { - if (srcPath[0] === '') srcPath[0] = result.host; - else srcPath.unshift(result.host); - } - result.host = ''; - if (relative.protocol) { - relative.hostname = null; - relative.port = null; - if (relative.host) { - if (relPath[0] === '') relPath[0] = relative.host; - else relPath.unshift(relative.host); - } - relative.host = null; - } - mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); - } - - if (isRelAbs) { - // it's absolute. - result.host = (relative.host || relative.host === '') ? - relative.host : result.host; - result.hostname = (relative.hostname || relative.hostname === '') ? - relative.hostname : result.hostname; - result.search = relative.search; - result.query = relative.query; - srcPath = relPath; - // fall through to the dot-handling below. - } else if (relPath.length) { - // it's relative - // throw away the existing file, and take the new path instead. - if (!srcPath) srcPath = []; - srcPath.pop(); - srcPath = srcPath.concat(relPath); - result.search = relative.search; - result.query = relative.query; - } else if (!util.isNullOrUndefined(relative.search)) { - // just pull out the search. - // like href='?foo'. - // Put this after the other two cases because it simplifies the booleans - if (psychotic) { - result.hostname = result.host = srcPath.shift(); - //occationaly the auth can get stuck only in host - //this especially happens in cases like - //url.resolveObject('mailto:local1@domain1', 'local2@domain2') - var authInHost = result.host && result.host.indexOf('@') > 0 ? - result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.host = result.hostname = authInHost.shift(); - } - } - result.search = relative.search; - result.query = relative.query; - //to support http.request - if (!util.isNull(result.pathname) || !util.isNull(result.search)) { - result.path = (result.pathname ? result.pathname : '') + - (result.search ? result.search : ''); - } - result.href = result.format(); - return result; - } - - if (!srcPath.length) { - // no path at all. easy. - // we've already handled the other stuff above. - result.pathname = null; - //to support http.request - if (result.search) { - result.path = '/' + result.search; - } else { - result.path = null; - } - result.href = result.format(); - return result; - } - - // if a url ENDs in . or .., then it must get a trailing slash. - // however, if it ends in anything else non-slashy, - // then it must NOT get a trailing slash. - var last = srcPath.slice(-1)[0]; - var hasTrailingSlash = ( - (result.host || relative.host || srcPath.length > 1) && - (last === '.' || last === '..') || last === ''); - - // strip single dots, resolve double dots to parent dir - // if the path tries to go above the root, `up` ends up > 0 - var up = 0; - for (var i = srcPath.length; i >= 0; i--) { - last = srcPath[i]; - if (last === '.') { - srcPath.splice(i, 1); - } else if (last === '..') { - srcPath.splice(i, 1); - up++; - } else if (up) { - srcPath.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (!mustEndAbs && !removeAllDots) { - for (; up--; up) { - srcPath.unshift('..'); - } - } - - if (mustEndAbs && srcPath[0] !== '' && - (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { - srcPath.unshift(''); - } - - if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { - srcPath.push(''); - } - - var isAbsolute = srcPath[0] === '' || - (srcPath[0] && srcPath[0].charAt(0) === '/'); - - // put the host back - if (psychotic) { - result.hostname = result.host = isAbsolute ? '' : - srcPath.length ? srcPath.shift() : ''; - //occationaly the auth can get stuck only in host - //this especially happens in cases like - //url.resolveObject('mailto:local1@domain1', 'local2@domain2') - var authInHost = result.host && result.host.indexOf('@') > 0 ? - result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.host = result.hostname = authInHost.shift(); - } - } - - mustEndAbs = mustEndAbs || (result.host && srcPath.length); - - if (mustEndAbs && !isAbsolute) { - srcPath.unshift(''); - } - - if (!srcPath.length) { - result.pathname = null; - result.path = null; - } else { - result.pathname = srcPath.join('/'); - } - - //to support request.http - if (!util.isNull(result.pathname) || !util.isNull(result.search)) { - result.path = (result.pathname ? result.pathname : '') + - (result.search ? result.search : ''); - } - result.auth = relative.auth || result.auth; - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; -}; - -Url.prototype.parseHost = function() { - var host = this.host; - var port = portPattern.exec(host); - if (port) { - port = port[0]; - if (port !== ':') { - this.port = port.substr(1); - } - host = host.substr(0, host.length - port.length); - } - if (host) this.hostname = host; -}; - - /***/ }), /***/ 12: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -/***/ }), - -/***/ 120: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z" -})); -/* harmony default export */ __webpack_exports__["a"] = (close); +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["blocks"]; }()); /***/ }), /***/ 13: /***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/***/ }), - -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 15: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); - - -function _possibleConstructorReturn(self, call) { - if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { - return call; - } - - return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); -} - -/***/ }), - -/***/ 159: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z" -})); -/* harmony default export */ __webpack_exports__["a"] = (link); - - -/***/ }), - -/***/ 16: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); function _getPrototypeOf(o) { @@ -1050,858 +195,90 @@ function _getPrototypeOf(o) { /***/ }), -/***/ 160: -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */ -;(function(root) { - - /** Detect free variables */ - var freeExports = true && exports && - !exports.nodeType && exports; - var freeModule = true && module && - !module.nodeType && module; - var freeGlobal = typeof global == 'object' && global; - if ( - freeGlobal.global === freeGlobal || - freeGlobal.window === freeGlobal || - freeGlobal.self === freeGlobal - ) { - root = freeGlobal; - } - - /** - * The `punycode` object. - * @name punycode - * @type Object - */ - var punycode, - - /** Highest positive signed 32-bit float value */ - maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 - - /** Bootstring parameters */ - base = 36, - tMin = 1, - tMax = 26, - skew = 38, - damp = 700, - initialBias = 72, - initialN = 128, // 0x80 - delimiter = '-', // '\x2D' - - /** Regular expressions */ - regexPunycode = /^xn--/, - regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars - regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators - - /** Error messages */ - errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' - }, - - /** Convenience shortcuts */ - baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - - /** Temporary variable */ - key; - - /*--------------------------------------------------------------------------*/ - - /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ - function error(type) { - throw RangeError(errors[type]); - } - - /** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ - function map(array, fn) { - var length = array.length; - var result = []; - while (length--) { - result[length] = fn(array[length]); - } - return result; - } - - /** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ - function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; - } - - /** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ - function ucs2decode(string) { - var output = [], - counter = 0, - length = string.length, - value, - extra; - while (counter < length) { - value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // high surrogate, and there is a next character - extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // low surrogate - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // unmatched surrogate; only append this code unit, in case the next - // code unit is the high surrogate of a surrogate pair - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; - } - - /** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ - function ucs2encode(array) { - return map(array, function(value) { - var output = ''; - if (value > 0xFFFF) { - value -= 0x10000; - output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); - value = 0xDC00 | value & 0x3FF; - } - output += stringFromCharCode(value); - return output; - }).join(''); - } - - /** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ - function basicToDigit(codePoint) { - if (codePoint - 48 < 10) { - return codePoint - 22; - } - if (codePoint - 65 < 26) { - return codePoint - 65; - } - if (codePoint - 97 < 26) { - return codePoint - 97; - } - return base; - } - - /** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ - function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); - } - - /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * http://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ - function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); - } - - /** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ - function decode(input) { - // Don't use UCS-2 - var output = [], - inputLength = input.length, - out, - i = 0, - n = initialN, - bias = initialBias, - basic, - j, - index, - oldi, - w, - k, - digit, - t, - /** Cached calculation results */ - baseMinusT; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - for (oldi = i, w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output - output.splice(i++, 0, n); - - } - - return ucs2encode(output); - } - - /** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ - function encode(input) { - var n, - delta, - handledCPCount, - basicLength, - bias, - j, - m, - q, - k, - t, - currentValue, - output = [], - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - /** Cached calculation results */ - handledCPCountPlusOne, - baseMinusT, - qMinusT; - - // Convert the input in UCS-2 to Unicode - input = ucs2decode(input); - - // Cache the length - inputLength = input.length; - - // Initialize the state - n = initialN; - delta = 0; - bias = initialBias; - - // Handle the basic code points - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - handledCPCount = basicLength = output.length; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string - if it is not empty - with a delimiter - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - for (m = maxInt, j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow - handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - - if (currentValue == n) { - // Represent delta as a generalized variable-length integer - for (q = delta, k = base; /* no condition */; k += base) { - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - qMinusT = q - t; - baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); - } - - /** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ - function toUnicode(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); - } - - /** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ - function toASCII(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); - } - - /*--------------------------------------------------------------------------*/ - - /** Define the public API */ - punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '1.3.2', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode - }; - - /** Expose `punycode` */ - // Some AMD build optimizers, like r.js, check for specific condition patterns - // like the following: - if ( - true - ) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { - return punycode; - }).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - -}(this)); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(161)(module), __webpack_require__(73))) - -/***/ }), - -/***/ 161: -/***/ (function(module, exports) { - -module.exports = function(module) { - if (!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), - -/***/ 162: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - isString: function(arg) { - return typeof(arg) === 'string'; - }, - isObject: function(arg) { - return typeof(arg) === 'object' && arg !== null; - }, - isNull: function(arg) { - return arg === null; - }, - isNullOrUndefined: function(arg) { - return arg == null; - } -}; - - -/***/ }), - -/***/ 163: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.decode = exports.parse = __webpack_require__(164); -exports.encode = exports.stringify = __webpack_require__(165); - - -/***/ }), - -/***/ 164: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -// If obj.hasOwnProperty has been overridden, then calling -// obj.hasOwnProperty(prop) will break. -// See: https://github.com/joyent/node/issues/1707 -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -module.exports = function(qs, sep, eq, options) { - sep = sep || '&'; - eq = eq || '='; - var obj = {}; - - if (typeof qs !== 'string' || qs.length === 0) { - return obj; - } - - var regexp = /\+/g; - qs = qs.split(sep); - - var maxKeys = 1000; - if (options && typeof options.maxKeys === 'number') { - maxKeys = options.maxKeys; - } - - var len = qs.length; - // maxKeys <= 0 means that we should not limit keys count - if (maxKeys > 0 && len > maxKeys) { - len = maxKeys; - } - - for (var i = 0; i < len; ++i) { - var x = qs[i].replace(regexp, '%20'), - idx = x.indexOf(eq), - kstr, vstr, k, v; - - if (idx >= 0) { - kstr = x.substr(0, idx); - vstr = x.substr(idx + 1); - } else { - kstr = x; - vstr = ''; - } - - k = decodeURIComponent(kstr); - v = decodeURIComponent(vstr); - - if (!hasOwnProperty(obj, k)) { - obj[k] = v; - } else if (isArray(obj[k])) { - obj[k].push(v); - } else { - obj[k] = [obj[k], v]; - } - } - - return obj; -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - - -/***/ }), - -/***/ 165: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var stringifyPrimitive = function(v) { - switch (typeof v) { - case 'string': - return v; - - case 'boolean': - return v ? 'true' : 'false'; - - case 'number': - return isFinite(v) ? v : ''; - - default: - return ''; - } -}; - -module.exports = function(obj, sep, eq, name) { - sep = sep || '&'; - eq = eq || '='; - if (obj === null) { - obj = undefined; - } - - if (typeof obj === 'object') { - return map(objectKeys(obj), function(k) { - var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; - if (isArray(obj[k])) { - return map(obj[k], function(v) { - return ks + encodeURIComponent(stringifyPrimitive(v)); - }).join(sep); - } else { - return ks + encodeURIComponent(stringifyPrimitive(obj[k])); - } - }).join(sep); - - } - - if (!name) return ''; - return encodeURIComponent(stringifyPrimitive(name)) + eq + - encodeURIComponent(stringifyPrimitive(obj)); -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f(xs[i], i)); - } - return res; -} - -var objectKeys = Object.keys || function (obj) { - var res = []; - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); - } - return res; -}; - - -/***/ }), - -/***/ 17: +/***/ 130: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. + +/* eslint-disable jsdoc/valid-types */ + +/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ + +/* eslint-enable jsdoc/valid-types */ + +/** + * Return an SVG icon. + * + * @param {IconProps} props icon is the SVG component to render + * size is a number specifiying the icon size in pixels + * Other props will be passed to wrapped SVG component + * + * @return {JSX.Element} Icon component + */ + +function Icon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ + width: size, + height: size + }, props)); } -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; }); -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } +/* harmony default export */ __webpack_exports__["a"] = (Icon); - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} /***/ }), -/***/ 18: +/***/ 133: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(25); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(35); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); +/** + * WordPress dependencies + */ +var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (close); -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} /***/ }), -/***/ 19: +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); -/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43); +/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; @@ -1924,39 +301,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 192: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z" -})); -/* harmony default export */ __webpack_exports__["a"] = (keyboardReturn); - - -/***/ }), - -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: +/***/ 15: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1992,7 +337,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); +var unsupportedIterableToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -2009,6 +354,194 @@ function _slicedToArray(arr, i) { /***/ }), +/***/ 16: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(26); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(35); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(28); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 17: +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), + +/***/ 170: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (link); + + +/***/ }), + +/***/ 18: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 195: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (keyboardReturn); + + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 20: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; }); + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} + +/***/ }), + +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); + + +function _possibleConstructorReturn(self, call) { + if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { + return call; + } + + return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); +} + +/***/ }), + /***/ 22: /***/ (function(module, exports) { @@ -2016,31 +549,14 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 24: +/***/ 25: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["richText"]; }()); /***/ }), -/***/ 25: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - - return arr2; -} - -/***/ }), - -/***/ 264: +/***/ 258: /***/ (function(module, exports, __webpack_require__) { /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ @@ -2495,19 +1011,36 @@ return FastAverageColor; /***/ }), -/***/ 27: +/***/ 26: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + + return arr2; +} + +/***/ }), + +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); + if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } @@ -2519,7 +1052,7 @@ function _unsupportedIterableToArray(o, minLen) { "use strict"; /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -2529,9 +1062,9 @@ function _unsupportedIterableToArray(o, minLen) { var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z" + d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z" })); /* harmony default export */ __webpack_exports__["a"] = (alignLeft); @@ -2544,7 +1077,7 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl "use strict"; /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -2554,9 +1087,9 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z" + d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z" })); /* harmony default export */ __webpack_exports__["a"] = (alignCenter); @@ -2569,7 +1102,7 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create "use strict"; /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -2579,22 +1112,97 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z" + d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z" })); /* harmony default export */ __webpack_exports__["a"] = (alignRight); /***/ }), -/***/ 286: +/***/ 285: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (search); + + +/***/ }), + +/***/ 287: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronRight); + + +/***/ }), + +/***/ 288: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (chevronLeft); + + +/***/ }), + +/***/ 294: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -2613,13 +1221,13 @@ var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/***/ 290: +/***/ 295: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); @@ -2631,11 +1239,36 @@ var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z" + 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" })); /* harmony default export */ __webpack_exports__["a"] = (code); +/***/ }), + +/***/ 296: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z" +})); +/* harmony default export */ __webpack_exports__["a"] = (grid); + + /***/ }), /***/ 3: @@ -2652,36 +1285,6 @@ var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/***/ 33: -/***/ (function(module, exports) { - -(function() { module.exports = this["moment"]; }()); - -/***/ }), - -/***/ 34: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); -function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - - return _typeof(obj); -} - -/***/ }), - /***/ 35: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -2729,21 +1332,59 @@ function _nonIterableRest() { /***/ }), -/***/ 41: -/***/ (function(module, exports) { +/***/ 40: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["blob"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); +function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} /***/ }), /***/ 42: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["apiFetch"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} /***/ }), -/***/ 420: +/***/ 43: +/***/ (function(module, exports) { + +(function() { module.exports = this["moment"]; }()); + +/***/ }), + +/***/ 432: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2775,6 +1416,7 @@ __webpack_require__.d(build_module_gallery_namespaceObject, "name", function() { __webpack_require__.d(build_module_gallery_namespaceObject, "settings", function() { return gallery_settings; }); var archives_namespaceObject = {}; __webpack_require__.r(archives_namespaceObject); +__webpack_require__.d(archives_namespaceObject, "metadata", function() { return archives_metadata; }); __webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; }); __webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; }); var build_module_audio_namespaceObject = {}; @@ -2794,10 +1436,12 @@ __webpack_require__.d(buttons_namespaceObject, "name", function() { return butto __webpack_require__.d(buttons_namespaceObject, "settings", function() { return buttons_settings; }); var build_module_calendar_namespaceObject = {}; __webpack_require__.r(build_module_calendar_namespaceObject); +__webpack_require__.d(build_module_calendar_namespaceObject, "metadata", function() { return calendar_metadata; }); __webpack_require__.d(build_module_calendar_namespaceObject, "name", function() { return calendar_name; }); __webpack_require__.d(build_module_calendar_namespaceObject, "settings", function() { return calendar_settings; }); var categories_namespaceObject = {}; __webpack_require__.r(categories_namespaceObject); +__webpack_require__.d(categories_namespaceObject, "metadata", function() { return categories_metadata; }); __webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; }); __webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; }); var code_namespaceObject = {}; @@ -2843,10 +1487,12 @@ __webpack_require__.d(media_text_namespaceObject, "name", function() { return me __webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; }); var latest_comments_namespaceObject = {}; __webpack_require__.r(latest_comments_namespaceObject); +__webpack_require__.d(latest_comments_namespaceObject, "metadata", function() { return latest_comments_metadata; }); __webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; }); __webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; }); var latest_posts_namespaceObject = {}; __webpack_require__.r(latest_posts_namespaceObject); +__webpack_require__.d(latest_posts_namespaceObject, "metadata", function() { return latest_posts_metadata; }); __webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; }); __webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; }); var build_module_list_namespaceObject = {}; @@ -2881,16 +1527,19 @@ __webpack_require__.d(build_module_pullquote_namespaceObject, "name", function() __webpack_require__.d(build_module_pullquote_namespaceObject, "settings", function() { return pullquote_settings; }); var block_namespaceObject = {}; __webpack_require__.r(block_namespaceObject); +__webpack_require__.d(block_namespaceObject, "metadata", function() { return block_metadata; }); __webpack_require__.d(block_namespaceObject, "name", function() { return block_name; }); __webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; }); var build_module_rss_namespaceObject = {}; __webpack_require__.r(build_module_rss_namespaceObject); +__webpack_require__.d(build_module_rss_namespaceObject, "metadata", function() { return rss_metadata; }); __webpack_require__.d(build_module_rss_namespaceObject, "name", function() { return rss_name; }); __webpack_require__.d(build_module_rss_namespaceObject, "settings", function() { return rss_settings; }); -var build_module_search_namespaceObject = {}; -__webpack_require__.r(build_module_search_namespaceObject); -__webpack_require__.d(build_module_search_namespaceObject, "name", function() { return search_name; }); -__webpack_require__.d(build_module_search_namespaceObject, "settings", function() { return search_settings; }); +var search_namespaceObject = {}; +__webpack_require__.r(search_namespaceObject); +__webpack_require__.d(search_namespaceObject, "metadata", function() { return search_metadata; }); +__webpack_require__.d(search_namespaceObject, "name", function() { return search_name; }); +__webpack_require__.d(search_namespaceObject, "settings", function() { return search_settings; }); var build_module_group_namespaceObject = {}; __webpack_require__.r(build_module_group_namespaceObject); __webpack_require__.d(build_module_group_namespaceObject, "metadata", function() { return group_metadata; }); @@ -2938,6 +1587,7 @@ __webpack_require__.d(build_module_video_namespaceObject, "name", function() { r __webpack_require__.d(build_module_video_namespaceObject, "settings", function() { return video_settings; }); var tag_cloud_namespaceObject = {}; __webpack_require__.r(tag_cloud_namespaceObject); +__webpack_require__.d(tag_cloud_namespaceObject, "metadata", function() { return tag_cloud_metadata; }); __webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; }); __webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; }); var build_module_classic_namespaceObject = {}; @@ -2957,19 +1607,19 @@ __webpack_require__.d(social_link_namespaceObject, "name", function() { return s __webpack_require__.d(social_link_namespaceObject, "settings", function() { return social_link_settings; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(75); +var external_this_wp_coreData_ = __webpack_require__(89); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); +var external_this_wp_blockEditor_ = __webpack_require__(7); // EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(10); +var external_this_wp_blocks_ = __webpack_require__(12); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); @@ -2981,7 +1631,7 @@ var external_this_wp_i18n_ = __webpack_require__(1); var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(9); +var external_this_wp_primitives_ = __webpack_require__(6); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js @@ -2994,7 +1644,7 @@ var paragraph = Object(external_this_wp_element_["createElement"])(external_this xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z" + d: "M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z" })); /* harmony default export */ var library_paragraph = (paragraph); @@ -3044,29 +1694,65 @@ var deprecated_blockAttributes = { textColor: { type: 'string' }, - customTextColor: { - type: 'string' - }, backgroundColor: { type: 'string' }, - customBackgroundColor: { - type: 'string' - }, fontSize: { type: 'string' }, - customFontSize: { - type: 'number' - }, direction: { type: 'string', enum: ['ltr', 'rtl'] + }, + style: { + type: 'object' } }; + +var deprecated_migrateCustomColorsAndFontSizes = function migrateCustomColorsAndFontSizes(attributes) { + if (!attributes.customTextColor && !attributes.customBackgroundColor && !attributes.customFontSize) { + return attributes; + } + + var style = {}; + + if (attributes.customTextColor || attributes.customBackgroundColor) { + style.color = {}; + } + + if (attributes.customTextColor) { + style.color.text = attributes.customTextColor; + } + + if (attributes.customBackgroundColor) { + style.color.background = attributes.customBackgroundColor; + } + + if (attributes.customFontSize) { + style.typography = { + fontSize: attributes.customFontSize + }; + } + + return _objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customFontSize']), { + style: style + }); +}; + var deprecated = [{ supports: deprecated_supports, - attributes: deprecated_blockAttributes, + attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), { + customTextColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customFontSize: { + type: 'number' + } + }), + migrate: deprecated_migrateCustomColorsAndFontSizes, save: function save(_ref) { var _classnames; @@ -3088,7 +1774,56 @@ var deprecated = [{ 'has-text-color': textColor || customTextColor, 'has-background': backgroundColor || customBackgroundColor, 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + fontSize: fontSizeClass ? undefined : customFontSize + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: styles, + className: className ? className : undefined, + value: content, + dir: direction + }); + } +}, { + supports: deprecated_supports, + attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), { + customTextColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customFontSize: { + type: 'number' + } + }), + migrate: deprecated_migrateCustomColorsAndFontSizes, + save: function save(_ref2) { + var _classnames2; + + var attributes = _ref2.attributes; + var align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + fontSize = attributes.fontSize, + customFontSize = attributes.customFontSize, + direction = attributes.direction; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); + var className = classnames_default()((_classnames2 = { + 'has-text-color': textColor || customTextColor, + 'has-background': backgroundColor || customBackgroundColor, + 'has-drop-cap': dropCap + }, Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); var styles = { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor, @@ -3105,15 +1840,25 @@ var deprecated = [{ } }, { supports: deprecated_supports, - attributes: _objectSpread({}, deprecated_blockAttributes, { + attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), { + customTextColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customFontSize: { + type: 'number' + }, width: { type: 'string' } }), - save: function save(_ref2) { - var _classnames2; + migrate: deprecated_migrateCustomColorsAndFontSizes, + save: function save(_ref3) { + var _classnames3; - var attributes = _ref2.attributes; + var attributes = _ref3.attributes; var width = attributes.width, align = attributes.align, content = attributes.content, @@ -3127,7 +1872,7 @@ var deprecated = [{ var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); var fontSizeClass = fontSize && "is-".concat(fontSize, "-text"); - var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); + var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames3, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), _classnames3)); var styles = { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor, @@ -3147,11 +1892,11 @@ var deprecated = [{ fontSize: { type: 'number' } - }), 'customFontSize', 'customTextColor', 'customBackgroundColor'), - save: function save(_ref3) { - var _classnames3; + }), ['style']), + save: function save(_ref4) { + var _classnames4; - var attributes = _ref3.attributes; + var attributes = _ref4.attributes; var width = attributes.width, align = attributes.align, content = attributes.content, @@ -3159,7 +1904,7 @@ var deprecated = [{ backgroundColor = attributes.backgroundColor, textColor = attributes.textColor, fontSize = attributes.fontSize; - var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), _classnames3)); + var className = classnames_default()((_classnames4 = {}, Object(defineProperty["a" /* default */])(_classnames4, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames4, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames4, 'has-drop-cap', dropCap), _classnames4)); var styles = { backgroundColor: backgroundColor, color: textColor, @@ -3172,11 +1917,11 @@ var deprecated = [{ }, content); }, migrate: function migrate(attributes) { - return Object(external_this_lodash_["omit"])(_objectSpread({}, attributes, { + return deprecated_migrateCustomColorsAndFontSizes(Object(external_this_lodash_["omit"])(_objectSpread({}, attributes, { customFontSize: Object(external_this_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined, customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined - }), ['fontSize', 'textColor', 'backgroundColor']); + })), ['fontSize', 'textColor', 'backgroundColor', 'style']); } }, { supports: deprecated_supports, @@ -3187,8 +1932,8 @@ var deprecated = [{ default: '' } }), - save: function save(_ref4) { - var attributes = _ref4.attributes; + save: function save(_ref5) { + var attributes = _ref5.attributes; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); }, migrate: function migrate(attributes) { @@ -3198,20 +1943,31 @@ var deprecated = [{ /* harmony default export */ var paragraph_deprecated = (deprecated); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(20); +var slicedToArray = __webpack_require__(15); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(3); -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(4); -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-ltr.js +/** + * WordPress dependencies + */ + +var formatLtr = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z" +})); +/* harmony default export */ var format_ltr = (formatLtr); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js + @@ -3238,8 +1994,8 @@ function edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) * Browser dependencies */ -var _window = window, - getComputedStyle = _window.getComputedStyle; +var edit_window = window, + edit_getComputedStyle = edit_window.getComputedStyle; var querySelector = window.document.querySelector.bind(document); var edit_name = 'core/paragraph'; var PARAGRAPH_DROP_CAP_SELECTOR = 'p.has-drop-cap'; @@ -3252,7 +2008,7 @@ function ParagraphRTLToolbar(_ref) { }, []); return isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { controls: [{ - icon: 'editor-ltr', + icon: format_ltr, title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'), isActive: direction === 'ltr', onClick: function onClick() { @@ -3262,62 +2018,60 @@ function ParagraphRTLToolbar(_ref) { }); } -function useDropCapMinimumHeight(isDropCap, deps) { +function useDropCap(isDropCap, fontSize, styleFontSize) { + var isDisabled = !Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('typography.dropCap'); + var _useState = Object(external_this_wp_element_["useState"])(), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), minimumHeight = _useState2[0], setMinimumHeight = _useState2[1]; + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings(); + }), + fontSizes = _useSelect.fontSizes; + + var fontSizeObject = Object(external_this_wp_blockEditor_["getFontSize"])(fontSizes, fontSize, styleFontSize); Object(external_this_wp_element_["useEffect"])(function () { + if (isDisabled) { + return; + } + var element = querySelector(PARAGRAPH_DROP_CAP_SELECTOR); if (isDropCap && element) { - setMinimumHeight(getComputedStyle(element, 'first-letter').lineHeight); + setMinimumHeight(edit_getComputedStyle(element, 'first-letter').lineHeight); } else if (minimumHeight) { setMinimumHeight(undefined); } - }, [isDropCap, minimumHeight, setMinimumHeight].concat(Object(toConsumableArray["a" /* default */])(deps))); - return minimumHeight; + }, [isDisabled, isDropCap, minimumHeight, setMinimumHeight, fontSizeObject.size]); + return [!isDisabled, minimumHeight]; } function ParagraphBlock(_ref2) { - var _classnames; - var attributes = _ref2.attributes, - className = _ref2.className, - fontSize = _ref2.fontSize, mergeBlocks = _ref2.mergeBlocks, onReplace = _ref2.onReplace, - setAttributes = _ref2.setAttributes, - setFontSize = _ref2.setFontSize; + onRemove = _ref2.onRemove, + setAttributes = _ref2.setAttributes; var align = attributes.align, content = attributes.content, + direction = attributes.direction, dropCap = attributes.dropCap, placeholder = attributes.placeholder, - direction = attributes.direction; + fontSize = attributes.fontSize, + style = attributes.style; var ref = Object(external_this_wp_element_["useRef"])(); - var dropCapMinimumHeight = useDropCapMinimumHeight(dropCap, [fontSize.size]); - var _experimentalUseColo = Object(external_this_wp_blockEditor_["__experimentalUseColors"])([{ - name: 'textColor', - property: 'color' - }, { - name: 'backgroundColor', - className: 'has-background' - }], { - contrastCheckers: [{ - backgroundColor: true, - textColor: true, - fontSize: fontSize.size - }], - colorDetector: { - targetRef: ref - } - }, [fontSize.size]), - TextColor = _experimentalUseColo.TextColor, - BackgroundColor = _experimentalUseColo.BackgroundColor, - InspectorControlsColorPanel = _experimentalUseColo.InspectorControlsColorPanel; + var _useDropCap = useDropCap(dropCap, fontSize, style === null || style === void 0 ? void 0 : style.fontSize), + _useDropCap2 = Object(slicedToArray["a" /* default */])(_useDropCap, 2), + isDropCapEnabled = _useDropCap2[0], + dropCapMinimumHeight = _useDropCap2[1]; + var styles = { + direction: direction, + minHeight: dropCapMinimumHeight + }; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { value: align, onChange: function onChange(newAlign) { @@ -3332,12 +2086,9 @@ function ParagraphBlock(_ref2) { direction: newDirection }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, isDropCapEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Text settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["FontSizePicker"], { - value: fontSize.size, - onChange: setFontSize - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { label: Object(external_this_wp_i18n_["__"])('Drop cap'), checked: !!dropCap, onChange: function onChange() { @@ -3346,18 +2097,14 @@ function ParagraphBlock(_ref2) { }); }, help: dropCap ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.') - }))), InspectorControlsColorPanel, Object(external_this_wp_element_["createElement"])(BackgroundColor, null, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { ref: ref, identifier: "content", - tagName: "p", - className: classnames_default()('wp-block-paragraph', className, (_classnames = { + tagName: external_this_wp_blockEditor_["__experimentalBlock"].p, + className: classnames_default()(Object(defineProperty["a" /* default */])({ 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)), - style: { - fontSize: fontSize.size ? fontSize.size + 'px' : undefined, - direction: direction, - minHeight: dropCapMinimumHeight - }, + }, "has-text-align-".concat(align), align)), + style: styles, value: content, onChange: function onChange(newContent) { return setAttributes({ @@ -3375,18 +2122,15 @@ function ParagraphBlock(_ref2) { }, onMerge: mergeBlocks, onReplace: onReplace, - onRemove: onReplace ? function () { - return onReplace([]); - } : undefined, + onRemove: onRemove, "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'), placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'), __unstableEmbedURLOnPaste: true, __unstableAllowPrefixTransformations: true - })))); + })); } -var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withFontSizes"])('fontSize')])(ParagraphBlock); -/* harmony default export */ var paragraph_edit = (ParagraphEdit); +/* harmony default export */ var paragraph_edit = (ParagraphBlock); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js @@ -3402,35 +2146,16 @@ var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(externa function save_save(_ref) { - var _classnames; - var attributes = _ref.attributes; var align = attributes.align, content = attributes.content, dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - fontSize = attributes.fontSize, - customFontSize = attributes.customFontSize, direction = attributes.direction; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); - var className = classnames_default()((_classnames = { - 'has-text-color': textColor || customTextColor, - 'has-background': backgroundColor || customBackgroundColor, + var className = classnames_default()(Object(defineProperty["a" /* default */])({ 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - fontSize: fontSizeClass ? undefined : customFontSize - }; + }, "has-text-align-".concat(align), align)); return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { tagName: "p", - style: styles, className: className ? className : undefined, value: content, dir: direction @@ -3448,7 +2173,7 @@ function save_save(_ref) { var _name$category$attrib = { name: "core/paragraph", - category: "common", + category: "text", attributes: { align: { type: "string" @@ -3466,28 +2191,26 @@ var _name$category$attrib = { placeholder: { type: "string" }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" - }, - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - fontSize: { - type: "string" - }, - customFontSize: { - type: "number" - }, direction: { type: "string", "enum": ["ltr", "rtl"] } + }, + supports: { + className: false, + lightBlockWrapper: true, + __experimentalColor: { + linkColor: true + }, + __experimentalFontSize: true, + __experimentalLineHeight: true, + __experimentalFeatures: { + typography: { + dropCap: true + } + }, + __experimentalSelector: "p", + __unstablePasteTextInline: true } }, transforms_name = _name$category$attrib.name; @@ -3542,7 +2265,7 @@ var transforms_transforms = { var paragraph_metadata = { name: "core/paragraph", - category: "common", + category: "text", attributes: { align: { type: "string" @@ -3560,28 +2283,26 @@ var paragraph_metadata = { placeholder: { type: "string" }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" - }, - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - fontSize: { - type: "string" - }, - customFontSize: { - type: "number" - }, direction: { type: "string", "enum": ["ltr", "rtl"] } + }, + supports: { + className: false, + lightBlockWrapper: true, + __experimentalColor: { + linkColor: true + }, + __experimentalFontSize: true, + __experimentalLineHeight: true, + __experimentalFeatures: { + typography: { + dropCap: true + } + }, + __experimentalSelector: "p", + __unstablePasteTextInline: true } }; @@ -3596,14 +2317,14 @@ var paragraph_settings = { example: { attributes: { content: Object(external_this_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'), - customFontSize: 28, + style: { + typography: { + fontSize: 28 + } + }, dropCap: true } }, - supports: { - className: false, - __unstablePasteTextInline: true - }, __experimentalLabel: function __experimentalLabel(attributes, _ref) { var context = _ref.context; @@ -3619,15 +2340,6 @@ var paragraph_settings = { content: (attributes.content || '') + (attributesToMerge.content || '') }; }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) { - return { - 'data-align': width - }; - } - }, edit: paragraph_edit, save: save_save }; @@ -3643,14 +2355,12 @@ var image_image = Object(external_this_wp_element_["createElement"])(external_th viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" + 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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z" })); /* harmony default export */ var library_image = (image_image); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(12); +var esm_extends = __webpack_require__(8); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js @@ -3829,32 +2539,29 @@ var deprecated_deprecated = [{ }]; /* harmony default export */ var image_deprecated = (deprecated_deprecated); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(17); - // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(41); +var external_this_wp_blob_ = __webpack_require__(44); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(9); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(30); -// EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(56); +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/crop.js + + +/** + * WordPress dependencies + */ + +var crop_crop = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z" +})); +/* harmony default export */ var library_crop = (crop_crop); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js @@ -3867,39 +2574,25 @@ var embedContentIcon = Object(external_this_wp_element_["createElement"])(extern viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z" + 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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z" })); var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z" + 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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z" })); var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17" + 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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z" })); var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z" + 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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z" })); var embedTwitterIcon = { foreground: '#1da1f2', @@ -3971,7 +2664,7 @@ var embedTumblrIcon = { src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z" + d: "M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z" })) }; var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { @@ -3983,6 +2676,33 @@ var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(externa }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" })); +var embedAnimotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 19.8160091-13.07806 3.5831 6.20826z", + fill: "#4bc7ee" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z", + fill: "#d4cdcb" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 15.2439091-16.38571 4.3029 7.32271z", + fill: "#c3d82e" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z", + fill: "#e4ecb0" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 19.5468091-9.063 1.6621 2.8344z", + fill: "#209dbd" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m.0206909 21 17.9209091-11.82623 1.6259 2.76323z", + fill: "#7cb3c9" +})); +var embedDailymotionIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z", + fill: "#333436" +})); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js /** @@ -4000,7 +2720,7 @@ var common = [{ settings: { title: 'Twitter', icon: embedTwitterIcon, - keywords: ['tweet'], + keywords: ['tweet', Object(external_this_wp_i18n_["__"])('social')], description: Object(external_this_wp_i18n_["__"])('Embed a tweet.') }, patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] @@ -4018,7 +2738,9 @@ var common = [{ settings: { title: 'Facebook', icon: embedFacebookIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.') + keywords: [Object(external_this_wp_i18n_["__"])('social')], + description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.'), + previewable: false }, patterns: [/^https?:\/\/www\.facebook.com\/.+/i] }, { @@ -4026,7 +2748,7 @@ var common = [{ settings: { title: 'Instagram', icon: embedInstagramIcon, - keywords: [Object(external_this_wp_i18n_["__"])('image')], + keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('social')], description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.') }, patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] @@ -4080,7 +2802,7 @@ var others = [{ name: 'core-embed/animoto', settings: { title: 'Animoto', - icon: embedVideoIcon, + icon: embedAnimotoIcon, description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.') }, patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] @@ -4109,7 +2831,7 @@ var others = [{ settings: { title: 'Crowdsignal', icon: embedContentIcon, - keywords: ['polldaddy'], + keywords: ['polldaddy', Object(external_this_wp_i18n_["__"])('survey')], transform: [{ type: 'block', blocks: ['core-embed/polldaddy'], @@ -4126,7 +2848,8 @@ var others = [{ name: 'core-embed/dailymotion', settings: { title: 'Dailymotion', - icon: embedVideoIcon, + icon: embedDailymotionIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.') }, patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] @@ -4135,6 +2858,7 @@ var others = [{ settings: { title: 'Hulu', icon: embedVideoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], description: Object(external_this_wp_i18n_["__"])('Embed Hulu content.') }, patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i] @@ -4236,9 +2960,10 @@ var others = [{ settings: { title: 'SmugMug', icon: embedPhotoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.') + description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.'), + previewable: false }, - patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i] + patterns: [/^https?:\/\/(.+\.)?smugmug\.com\/.*/i] }, { // Deprecated in favour of the core-embed/speaker-deck block. name: 'core-embed/speaker', @@ -4272,6 +2997,7 @@ var others = [{ settings: { title: 'TikTok', icon: embedVideoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], description: Object(external_this_wp_i18n_["__"])('Embed a TikTok video.') }, patterns: [/^https?:\/\/(www\.)?tiktok\.com\/.+/i] @@ -4288,6 +3014,7 @@ var others = [{ settings: { title: 'Tumblr', icon: embedTumblrIcon, + keywords: [Object(external_this_wp_i18n_["__"])('social')], description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.') }, patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] @@ -4321,8 +3048,6 @@ var others = [{ }]; // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js -// These embeds do not work in sandboxes due to the iframe's security restrictions. -var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com']; var ASPECT_RATIOS = [// Common video resolutions. { ratio: '2.33', @@ -4351,11 +3076,11 @@ var DEFAULT_EMBED_BLOCK = 'core/embed'; var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress'; // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(87); +var dedupe = __webpack_require__(95); var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); // EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(46); +var memize = __webpack_require__(50); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js @@ -4590,6 +3315,1342 @@ var getAttributesFromPreview = memize_default()(function (preview, title, curren return attributes; }); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/use-client-width.js + + +/** + * WordPress dependencies + */ + +function useClientWidth(ref, dependencies) { + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + clientWidth = _useState2[0], + setClientWidth = _useState2[1]; + + function calculateClientWidth() { + setClientWidth(ref.current.clientWidth); + } + + Object(external_this_wp_element_["useEffect"])(calculateClientWidth, dependencies); + Object(external_this_wp_element_["useEffect"])(function () { + var defaultView = ref.current.ownerDocument.defaultView; + defaultView.addEventListener('resize', calculateClientWidth); + return function () { + defaultView.removeEventListener('resize', calculateClientWidth); + }; + }, []); + return clientWidth; +} + +// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + } + return __assign.apply(this, arguments); +} + +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +} + +function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +function __param(paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +} + +function __metadata(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); +} + +function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +function __exportStar(m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} + +function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +} + +function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +} + +function __spread() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; +} + +function __spreadArrays() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; +}; + +function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); +} + +function __asyncGenerator(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +} + +function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } +} + +function __asyncValues(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +} + +function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; + +function __importStar(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result.default = mod; + return result; +} + +function __importDefault(mod) { + return (mod && mod.__esModule) ? mod : { default: mod }; +} + +function __classPrivateFieldGet(receiver, privateMap) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to get private field on non-instance"); + } + return privateMap.get(receiver); +} + +function __classPrivateFieldSet(receiver, privateMap, value) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to set private field on non-instance"); + } + privateMap.set(receiver, value); + return value; +} + +// EXTERNAL MODULE: external {"this":"React"} +var external_this_React_ = __webpack_require__(17); +var external_this_React_default = /*#__PURE__*/__webpack_require__.n(external_this_React_); + +// CONCATENATED MODULE: ./node_modules/react-easy-crop/index.module.js + + + +/** + * Compute the dimension of the crop area based on media size, + * aspect ratio and optionally rotatation + */ + +function getCropSize(mediaWidth, mediaHeight, aspect, rotation) { + if (rotation === void 0) { + rotation = 0; + } + + var _a = translateSize(mediaWidth, mediaHeight, rotation), + width = _a.width, + height = _a.height; + + if (mediaWidth >= mediaHeight * aspect && width > mediaHeight * aspect) { + return { + width: mediaHeight * aspect, + height: mediaHeight + }; + } + + if (width > mediaHeight * aspect) { + return { + width: mediaWidth, + height: mediaWidth / aspect + }; + } + + if (width > height * aspect) { + return { + width: height * aspect, + height: height + }; + } + + return { + width: width, + height: width / aspect + }; +} +/** + * Ensure a new media position stays in the crop area. + */ + +function index_module_restrictPosition(position, mediaSize, cropSize, zoom, rotation) { + if (rotation === void 0) { + rotation = 0; + } + + var _a = translateSize(mediaSize.width, mediaSize.height, rotation), + width = _a.width, + height = _a.height; + + return { + x: restrictPositionCoord(position.x, width, cropSize.width, zoom), + y: restrictPositionCoord(position.y, height, cropSize.height, zoom) + }; +} + +function restrictPositionCoord(position, mediaSize, cropSize, zoom) { + var maxPosition = mediaSize * zoom / 2 - cropSize / 2; + return Math.min(maxPosition, Math.max(position, -maxPosition)); +} + +function getDistanceBetweenPoints(pointA, pointB) { + return Math.sqrt(Math.pow(pointA.y - pointB.y, 2) + Math.pow(pointA.x - pointB.x, 2)); +} +function getRotationBetweenPoints(pointA, pointB) { + return Math.atan2(pointB.y - pointA.y, pointB.x - pointA.x) * 180 / Math.PI; +} +/** + * Compute the output cropped area of the media in percentages and pixels. + * x/y are the top-left coordinates on the src media + */ + +function computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition) { + if (rotation === void 0) { + rotation = 0; + } + + if (restrictPosition === void 0) { + restrictPosition = true; + } // if the media is rotated by the user, we cannot limit the position anymore + // as it might need to be negative. + + + var limitAreaFn = restrictPosition && rotation === 0 ? limitArea : noOp; + var croppedAreaPercentages = { + x: limitAreaFn(100, ((mediaSize.width - cropSize.width / zoom) / 2 - crop.x / zoom) / mediaSize.width * 100), + y: limitAreaFn(100, ((mediaSize.height - cropSize.height / zoom) / 2 - crop.y / zoom) / mediaSize.height * 100), + width: limitAreaFn(100, cropSize.width / mediaSize.width * 100 / zoom), + height: limitAreaFn(100, cropSize.height / mediaSize.height * 100 / zoom) + }; // we compute the pixels size naively + + var widthInPixels = Math.round(limitAreaFn(mediaSize.naturalWidth, croppedAreaPercentages.width * mediaSize.naturalWidth / 100)); + var heightInPixels = Math.round(limitAreaFn(mediaSize.naturalHeight, croppedAreaPercentages.height * mediaSize.naturalHeight / 100)); + var isImgWiderThanHigh = mediaSize.naturalWidth >= mediaSize.naturalHeight * aspect; // then we ensure the width and height exactly match the aspect (to avoid rounding approximations) + // if the media is wider than high, when zoom is 0, the crop height will be equals to iamge height + // thus we want to compute the width from the height and aspect for accuracy. + // Otherwise, we compute the height from width and aspect. + + var sizePixels = isImgWiderThanHigh ? { + width: Math.round(heightInPixels * aspect), + height: heightInPixels + } : { + width: widthInPixels, + height: Math.round(widthInPixels / aspect) + }; + + var croppedAreaPixels = __assign(__assign({}, sizePixels), { + x: Math.round(limitAreaFn(mediaSize.naturalWidth - sizePixels.width, croppedAreaPercentages.x * mediaSize.naturalWidth / 100)), + y: Math.round(limitAreaFn(mediaSize.naturalHeight - sizePixels.height, croppedAreaPercentages.y * mediaSize.naturalHeight / 100)) + }); + + return { + croppedAreaPercentages: croppedAreaPercentages, + croppedAreaPixels: croppedAreaPixels + }; +} +/** + * Ensure the returned value is between 0 and max + */ + +function limitArea(max, value) { + return Math.min(max, Math.max(0, value)); +} + +function noOp(_max, value) { + return value; +} +/** + * Compute the crop and zoom from the croppedAreaPixels + */ + + +function getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) { + var mediaZoom = mediaSize.width / mediaSize.naturalWidth; + + if (cropSize) { + var isHeightMaxSize_1 = cropSize.height > cropSize.width; + return isHeightMaxSize_1 ? cropSize.height / mediaZoom / croppedAreaPixels.height : cropSize.width / mediaZoom / croppedAreaPixels.width; + } + + var aspect = croppedAreaPixels.width / croppedAreaPixels.height; + var isHeightMaxSize = mediaSize.naturalWidth >= mediaSize.naturalHeight * aspect; + return isHeightMaxSize ? mediaSize.naturalHeight / croppedAreaPixels.height : mediaSize.naturalWidth / croppedAreaPixels.width; +} +/** + * Compute the crop and zoom from the croppedAreaPixels + */ + + +function getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) { + var mediaZoom = mediaSize.width / mediaSize.naturalWidth; + var zoom = getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize); + var cropZoom = mediaZoom * zoom; + var crop = { + x: ((mediaSize.naturalWidth - croppedAreaPixels.width) / 2 - croppedAreaPixels.x) * cropZoom, + y: ((mediaSize.naturalHeight - croppedAreaPixels.height) / 2 - croppedAreaPixels.y) * cropZoom + }; + return { + crop: crop, + zoom: zoom + }; +} +/** + * Return the point that is the center of point a and b + */ + +function getCenter(a, b) { + return { + x: (b.x + a.x) / 2, + y: (b.y + a.y) / 2 + }; +} +/** + * + * Returns an x,y point once rotated around xMid,yMid + */ + +function rotateAroundMidPoint(x, y, xMid, yMid, degrees) { + var cos = Math.cos; + var sin = Math.sin; + var radian = degrees * Math.PI / 180; // Convert to radians + // Subtract midpoints, so that midpoint is translated to origin + // and add it in the end again + + var xr = (x - xMid) * cos(radian) - (y - yMid) * sin(radian) + xMid; + var yr = (x - xMid) * sin(radian) + (y - yMid) * cos(radian) + yMid; + return [xr, yr]; +} +/** + * Returns the new bounding area of a rotated rectangle. + */ + +function translateSize(width, height, rotation) { + var centerX = width / 2; + var centerY = height / 2; + var outerBounds = [rotateAroundMidPoint(0, 0, centerX, centerY, rotation), rotateAroundMidPoint(width, 0, centerX, centerY, rotation), rotateAroundMidPoint(width, height, centerX, centerY, rotation), rotateAroundMidPoint(0, height, centerX, centerY, rotation)]; + var minX = Math.min.apply(Math, outerBounds.map(function (p) { + return p[0]; + })); + var maxX = Math.max.apply(Math, outerBounds.map(function (p) { + return p[0]; + })); + var minY = Math.min.apply(Math, outerBounds.map(function (p) { + return p[1]; + })); + var maxY = Math.max.apply(Math, outerBounds.map(function (p) { + return p[1]; + })); + return { + width: maxX - minX, + height: maxY - minY + }; +} +/** + * Combine multiple class names into a single string. + */ + +function index_module_classNames() { + var args = []; + + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + + return args.filter(function (value) { + if (typeof value === 'string' && value.length > 0) { + return true; + } + + return false; + }).join(' ').trim(); +} + +var css = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n"; + +var MIN_ZOOM = 1; +var MAX_ZOOM = 3; + +var index_module_Cropper = +/** @class */ +function (_super) { + __extends(Cropper, _super); + + function Cropper() { + var _this = _super !== null && _super.apply(this, arguments) || this; + + _this.imageRef = null; + _this.videoRef = null; + _this.containerRef = null; + _this.styleRef = null; + _this.containerRect = null; + _this.mediaSize = { + width: 0, + height: 0, + naturalWidth: 0, + naturalHeight: 0 + }; + _this.dragStartPosition = { + x: 0, + y: 0 + }; + _this.dragStartCrop = { + x: 0, + y: 0 + }; + _this.lastPinchDistance = 0; + _this.lastPinchRotation = 0; + _this.rafDragTimeout = null; + _this.rafPinchTimeout = null; + _this.wheelTimer = null; + _this.state = { + cropSize: null, + hasWheelJustStarted: false + }; // this is to prevent Safari on iOS >= 10 to zoom the page + + _this.preventZoomSafari = function (e) { + return e.preventDefault(); + }; + + _this.cleanEvents = function () { + document.removeEventListener('mousemove', _this.onMouseMove); + document.removeEventListener('mouseup', _this.onDragStopped); + document.removeEventListener('touchmove', _this.onTouchMove); + document.removeEventListener('touchend', _this.onDragStopped); + }; + + _this.clearScrollEvent = function () { + if (_this.containerRef) _this.containerRef.removeEventListener('wheel', _this.onWheel); + + if (_this.wheelTimer) { + clearTimeout(_this.wheelTimer); + } + }; + + _this.onMediaLoad = function () { + _this.computeSizes(); + + _this.emitCropData(); + + _this.setInitialCrop(); + + if (_this.props.onMediaLoaded) { + _this.props.onMediaLoaded(_this.mediaSize); + } + }; + + _this.setInitialCrop = function () { + var _a = _this.props, + initialCroppedAreaPixels = _a.initialCroppedAreaPixels, + cropSize = _a.cropSize; + + if (!initialCroppedAreaPixels) { + return; + } + + var _b = getInitialCropFromCroppedAreaPixels(initialCroppedAreaPixels, _this.mediaSize, cropSize), + crop = _b.crop, + zoom = _b.zoom; + + _this.props.onCropChange(crop); + + _this.props.onZoomChange && _this.props.onZoomChange(zoom); + }; + + _this.computeSizes = function () { + var _a, _b, _c, _d; + + var mediaRef = _this.imageRef || _this.videoRef; + + if (mediaRef) { + _this.mediaSize = { + width: mediaRef.offsetWidth, + height: mediaRef.offsetHeight, + naturalWidth: ((_a = _this.imageRef) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0, + naturalHeight: ((_c = _this.imageRef) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0 + }; + var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(mediaRef.offsetWidth, mediaRef.offsetHeight, _this.props.aspect, _this.props.rotation); + + _this.setState({ + cropSize: cropSize + }, _this.recomputeCropPosition); + } + + if (_this.containerRef) { + _this.containerRect = _this.containerRef.getBoundingClientRect(); + } + }; + + _this.onMouseDown = function (e) { + e.preventDefault(); + document.addEventListener('mousemove', _this.onMouseMove); + document.addEventListener('mouseup', _this.onDragStopped); + + _this.onDragStart(Cropper.getMousePoint(e)); + }; + + _this.onMouseMove = function (e) { + return _this.onDrag(Cropper.getMousePoint(e)); + }; + + _this.onTouchStart = function (e) { + e.preventDefault(); + document.addEventListener('touchmove', _this.onTouchMove, { + passive: false + }); // iOS 11 now defaults to passive: true + + document.addEventListener('touchend', _this.onDragStopped); + + if (e.touches.length === 2) { + _this.onPinchStart(e); + } else if (e.touches.length === 1) { + _this.onDragStart(Cropper.getTouchPoint(e.touches[0])); + } + }; + + _this.onTouchMove = function (e) { + // Prevent whole page from scrolling on iOS. + e.preventDefault(); + + if (e.touches.length === 2) { + _this.onPinchMove(e); + } else if (e.touches.length === 1) { + _this.onDrag(Cropper.getTouchPoint(e.touches[0])); + } + }; + + _this.onDragStart = function (_a) { + var x = _a.x, + y = _a.y; + + var _b, _c; + + _this.dragStartPosition = { + x: x, + y: y + }; + _this.dragStartCrop = __assign({}, _this.props.crop); + (_c = (_b = _this.props).onInteractionStart) === null || _c === void 0 ? void 0 : _c.call(_b); + }; + + _this.onDrag = function (_a) { + var x = _a.x, + y = _a.y; + if (_this.rafDragTimeout) window.cancelAnimationFrame(_this.rafDragTimeout); + _this.rafDragTimeout = window.requestAnimationFrame(function () { + if (!_this.state.cropSize) return; + if (x === undefined || y === undefined) return; + var offsetX = x - _this.dragStartPosition.x; + var offsetY = y - _this.dragStartPosition.y; + var requestedPosition = { + x: _this.dragStartCrop.x + offsetX, + y: _this.dragStartCrop.y + offsetY + }; + var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : requestedPosition; + + _this.props.onCropChange(newPosition); + }); + }; + + _this.onDragStopped = function () { + var _a, _b; + + _this.cleanEvents(); + + _this.emitCropData(); + + (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a); + }; + + _this.onWheel = function (e) { + e.preventDefault(); + var point = Cropper.getMousePoint(e); + var newZoom = _this.props.zoom - e.deltaY * _this.props.zoomSpeed / 200; + + _this.setNewZoom(newZoom, point); + + if (!_this.state.hasWheelJustStarted) { + _this.setState({ + hasWheelJustStarted: true + }, function () { + var _a, _b; + + return (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a); + }); + } + + if (_this.wheelTimer) { + clearTimeout(_this.wheelTimer); + } + + _this.wheelTimer = window.setTimeout(function () { + return _this.setState({ + hasWheelJustStarted: false + }, function () { + var _a, _b; + + return (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a); + }); + }, 250); + }; + + _this.getPointOnContainer = function (_a) { + var x = _a.x, + y = _a.y; + + if (!_this.containerRect) { + throw new Error('The Cropper is not mounted'); + } + + return { + x: _this.containerRect.width / 2 - (x - _this.containerRect.left), + y: _this.containerRect.height / 2 - (y - _this.containerRect.top) + }; + }; + + _this.getPointOnMedia = function (_a) { + var x = _a.x, + y = _a.y; + var _b = _this.props, + crop = _b.crop, + zoom = _b.zoom; + return { + x: (x + crop.x) / zoom, + y: (y + crop.y) / zoom + }; + }; + + _this.setNewZoom = function (zoom, point) { + if (!_this.state.cropSize || !_this.props.onZoomChange) return; + + var zoomPoint = _this.getPointOnContainer(point); + + var zoomTarget = _this.getPointOnMedia(zoomPoint); + + var newZoom = Math.min(_this.props.maxZoom, Math.max(zoom, _this.props.minZoom)); + var requestedPosition = { + x: zoomTarget.x * newZoom - zoomPoint.x, + y: zoomTarget.y * newZoom - zoomPoint.y + }; + var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, newZoom, _this.props.rotation) : requestedPosition; + + _this.props.onCropChange(newPosition); + + _this.props.onZoomChange(newZoom); + }; + + _this.emitCropData = function () { + if (!_this.state.cropSize) return; // this is to ensure the crop is correctly restricted after a zoom back (https://github.com/ricardo-ch/react-easy-crop/issues/6) + + var restrictedPosition = _this.props.restrictPosition ? index_module_restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop; + + var _a = computeCroppedArea(restrictedPosition, _this.mediaSize, _this.state.cropSize, _this.getAspect(), _this.props.zoom, _this.props.rotation, _this.props.restrictPosition), + croppedAreaPercentages = _a.croppedAreaPercentages, + croppedAreaPixels = _a.croppedAreaPixels; + + _this.props.onCropComplete && _this.props.onCropComplete(croppedAreaPercentages, croppedAreaPixels); + }; + + _this.recomputeCropPosition = function () { + if (!_this.state.cropSize) return; + var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop; + + _this.props.onCropChange(newPosition); + + _this.emitCropData(); + }; + + return _this; + } + + Cropper.prototype.componentDidMount = function () { + window.addEventListener('resize', this.computeSizes); + + if (this.containerRef) { + this.props.zoomWithScroll && this.containerRef.addEventListener('wheel', this.onWheel, { + passive: false + }); + this.containerRef.addEventListener('gesturestart', this.preventZoomSafari); + this.containerRef.addEventListener('gesturechange', this.preventZoomSafari); + } + + if (!this.props.disableAutomaticStylesInjection) { + this.styleRef = document.createElement('style'); + this.styleRef.setAttribute('type', 'text/css'); + this.styleRef.innerHTML = css; + document.head.appendChild(this.styleRef); + } // when rendered via SSR, the image can already be loaded and its onLoad callback will never be called + + + if (this.imageRef && this.imageRef.complete) { + this.onMediaLoad(); + } + }; + + Cropper.prototype.componentWillUnmount = function () { + window.removeEventListener('resize', this.computeSizes); + + if (this.containerRef) { + this.containerRef.removeEventListener('gesturestart', this.preventZoomSafari); + this.containerRef.removeEventListener('gesturechange', this.preventZoomSafari); + } + + if (this.styleRef) { + this.styleRef.remove(); + } + + this.cleanEvents(); + this.props.zoomWithScroll && this.clearScrollEvent(); + }; + + Cropper.prototype.componentDidUpdate = function (prevProps) { + var _a, _b, _c, _d; + + if (prevProps.rotation !== this.props.rotation) { + this.computeSizes(); + this.recomputeCropPosition(); + } else if (prevProps.aspect !== this.props.aspect) { + this.computeSizes(); + } else if (prevProps.zoom !== this.props.zoom) { + this.recomputeCropPosition(); + } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) { + this.computeSizes(); + } + + if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) { + this.props.zoomWithScroll ? this.containerRef.addEventListener('wheel', this.onWheel, { + passive: false + }) : this.clearScrollEvent(); + } + }; + + Cropper.prototype.getAspect = function () { + var _a = this.props, + cropSize = _a.cropSize, + aspect = _a.aspect; + + if (cropSize) { + return cropSize.width / cropSize.height; + } + + return aspect; + }; + + Cropper.prototype.onPinchStart = function (e) { + var pointA = Cropper.getTouchPoint(e.touches[0]); + var pointB = Cropper.getTouchPoint(e.touches[1]); + this.lastPinchDistance = getDistanceBetweenPoints(pointA, pointB); + this.lastPinchRotation = getRotationBetweenPoints(pointA, pointB); + this.onDragStart(getCenter(pointA, pointB)); + }; + + Cropper.prototype.onPinchMove = function (e) { + var _this = this; + + var pointA = Cropper.getTouchPoint(e.touches[0]); + var pointB = Cropper.getTouchPoint(e.touches[1]); + var center = getCenter(pointA, pointB); + this.onDrag(center); + if (this.rafPinchTimeout) window.cancelAnimationFrame(this.rafPinchTimeout); + this.rafPinchTimeout = window.requestAnimationFrame(function () { + var distance = getDistanceBetweenPoints(pointA, pointB); + var newZoom = _this.props.zoom * (distance / _this.lastPinchDistance); + + _this.setNewZoom(newZoom, center); + + _this.lastPinchDistance = distance; + var rotation = getRotationBetweenPoints(pointA, pointB); + var newRotation = _this.props.rotation + (rotation - _this.lastPinchRotation); + _this.props.onRotationChange && _this.props.onRotationChange(newRotation); + _this.lastPinchRotation = rotation; + }); + }; + + Cropper.prototype.render = function () { + var _this = this; + + var _a = this.props, + image = _a.image, + video = _a.video, + mediaProps = _a.mediaProps, + transform = _a.transform, + _b = _a.crop, + x = _b.x, + y = _b.y, + rotation = _a.rotation, + zoom = _a.zoom, + cropShape = _a.cropShape, + showGrid = _a.showGrid, + _c = _a.style, + containerStyle = _c.containerStyle, + cropAreaStyle = _c.cropAreaStyle, + mediaStyle = _c.mediaStyle, + _d = _a.classes, + containerClassName = _d.containerClassName, + cropAreaClassName = _d.cropAreaClassName, + mediaClassName = _d.mediaClassName; + return external_this_React_default.a.createElement("div", { + onMouseDown: this.onMouseDown, + onTouchStart: this.onTouchStart, + ref: function ref(el) { + return _this.containerRef = el; + }, + "data-testid": "container", + style: containerStyle, + className: index_module_classNames('reactEasyCrop_Container', containerClassName) + }, image ? external_this_React_default.a.createElement("img", __assign({ + alt: "", + className: index_module_classNames('reactEasyCrop_Image', mediaClassName) + }, mediaProps, { + src: image, + ref: function ref(el) { + return _this.imageRef = el; + }, + style: __assign(__assign({}, mediaStyle), { + transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")" + }), + onLoad: this.onMediaLoad + })) : video && external_this_React_default.a.createElement("video", __assign({ + autoPlay: true, + loop: true, + muted: true, + className: index_module_classNames('reactEasyCrop_Video', mediaClassName) + }, mediaProps, { + src: video, + ref: function ref(el) { + return _this.videoRef = el; + }, + onLoadedMetadata: this.onMediaLoad, + style: __assign(__assign({}, mediaStyle), { + transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")" + }), + controls: false + })), this.state.cropSize && external_this_React_default.a.createElement("div", { + style: __assign(__assign({}, cropAreaStyle), { + width: this.state.cropSize.width, + height: this.state.cropSize.height + }), + "data-testid": "cropper", + className: index_module_classNames('reactEasyCrop_CropArea', cropShape === 'round' && 'reactEasyCrop_CropAreaRound', showGrid && 'reactEasyCrop_CropAreaGrid', cropAreaClassName) + })); + }; + + Cropper.defaultProps = { + zoom: 1, + rotation: 0, + aspect: 4 / 3, + maxZoom: MAX_ZOOM, + minZoom: MIN_ZOOM, + cropShape: 'rect', + showGrid: true, + style: {}, + classes: {}, + mediaProps: {}, + zoomSpeed: 1, + restrictPosition: true, + zoomWithScroll: true + }; + + Cropper.getMousePoint = function (e) { + return { + x: Number(e.clientX), + y: Number(e.clientY) + }; + }; + + Cropper.getTouchPoint = function (touch) { + return { + x: Number(touch.clientX), + y: Number(touch.clientY) + }; + }; + + return Cropper; +}(external_this_React_default.a.Component); + +/* harmony default export */ var index_module = (index_module_Cropper); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js + + +/** + * WordPress dependencies + */ + +var aspect_ratio_aspectRatio = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z" +})); +/* harmony default export */ var aspect_ratio = (aspect_ratio_aspectRatio); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js + + +/** + * WordPress dependencies + */ + +var rotateRight = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z" +})); +/* harmony default export */ var rotate_right = (rotateRight); + +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(45); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editor.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + +var image_editor_MIN_ZOOM = 100; +var image_editor_MAX_ZOOM = 300; +var POPOVER_PROPS = { + position: 'bottom right' +}; + +function AspectGroup(_ref) { + var aspectRatios = _ref.aspectRatios, + isDisabled = _ref.isDisabled, + label = _ref.label, + _onClick = _ref.onClick; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], { + label: label + }, aspectRatios.map(function (_ref2) { + var title = _ref2.title, + aspect = _ref2.aspect; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + key: aspect, + isDisabled: isDisabled, + onClick: function onClick() { + _onClick(aspect); + } + }, title); + })); +} + +function AspectMenu(_ref3) { + var isDisabled = _ref3.isDisabled, + _onClick2 = _ref3.onClick, + toggleProps = _ref3.toggleProps; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + icon: aspect_ratio, + label: Object(external_this_wp_i18n_["__"])('Aspect Ratio'), + popoverProps: POPOVER_PROPS, + toggleProps: toggleProps + }, function (_ref4) { + var onClose = _ref4.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(AspectGroup, { + label: Object(external_this_wp_i18n_["__"])('Landscape'), + isDisabled: isDisabled, + onClick: function onClick(aspect) { + _onClick2(aspect); + + onClose(); + }, + aspectRatios: [{ + title: Object(external_this_wp_i18n_["__"])('16:10'), + aspect: 16 / 10 + }, { + title: Object(external_this_wp_i18n_["__"])('16:9'), + aspect: 16 / 9 + }, { + title: Object(external_this_wp_i18n_["__"])('4:3'), + aspect: 4 / 3 + }, { + title: Object(external_this_wp_i18n_["__"])('3:2'), + aspect: 3 / 2 + }] + }), Object(external_this_wp_element_["createElement"])(AspectGroup, { + label: Object(external_this_wp_i18n_["__"])('Portrait'), + isDisabled: isDisabled, + onClick: function onClick(aspect) { + _onClick2(aspect); + + onClose(); + }, + aspectRatios: [{ + title: Object(external_this_wp_i18n_["__"])('10:16'), + aspect: 10 / 16 + }, { + title: Object(external_this_wp_i18n_["__"])('9:16'), + aspect: 9 / 16 + }, { + title: Object(external_this_wp_i18n_["__"])('3:4'), + aspect: 3 / 4 + }, { + title: Object(external_this_wp_i18n_["__"])('2:3'), + aspect: 2 / 3 + }] + }), Object(external_this_wp_element_["createElement"])(AspectGroup, { + isDisabled: isDisabled, + onClick: function onClick(aspect) { + _onClick2(aspect); + + onClose(); + }, + aspectRatios: [{ + title: Object(external_this_wp_i18n_["__"])('Square'), + aspect: 1 + }] + })); + }); +} + +function ImageEditor(_ref5) { + var id = _ref5.id, + url = _ref5.url, + setAttributes = _ref5.setAttributes, + naturalWidth = _ref5.naturalWidth, + naturalHeight = _ref5.naturalHeight, + width = _ref5.width, + height = _ref5.height, + clientWidth = _ref5.clientWidth, + setIsEditingImage = _ref5.setIsEditingImage; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'), + createErrorNotice = _useDispatch.createErrorNotice; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + inProgress = _useState2[0], + setIsProgress = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(null), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + crop = _useState4[0], + setCrop = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])({ + x: 0, + y: 0 + }), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + position = _useState6[0], + setPosition = _useState6[1]; + + var _useState7 = Object(external_this_wp_element_["useState"])(100), + _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2), + zoom = _useState8[0], + setZoom = _useState8[1]; + + var _useState9 = Object(external_this_wp_element_["useState"])(naturalWidth / naturalHeight), + _useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2), + aspect = _useState10[0], + setAspect = _useState10[1]; + + var _useState11 = Object(external_this_wp_element_["useState"])(0), + _useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2), + rotation = _useState12[0], + setRotation = _useState12[1]; + + var _useState13 = Object(external_this_wp_element_["useState"])(), + _useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2), + editedUrl = _useState14[0], + setEditedUrl = _useState14[1]; + + var editedWidth = width; + var editedHeight = height || clientWidth * naturalHeight / naturalWidth; + var naturalAspectRatio = naturalWidth / naturalHeight; + + if (rotation % 180 === 90) { + editedHeight = clientWidth * naturalWidth / naturalHeight; + naturalAspectRatio = naturalHeight / naturalWidth; + } + + function apply() { + setIsProgress(true); + var attrs = crop; + + if (rotation > 0) { + attrs.rotation = rotation; + } + + external_this_wp_apiFetch_default()({ + path: "__experimental/richimage/".concat(id, "/apply"), + headers: { + 'Content-type': 'application/json' + }, + method: 'POST', + body: JSON.stringify(attrs) + }).then(function (response) { + setAttributes({ + id: response.media_id, + url: response.url, + height: height && width ? width / aspect : undefined + }); + }).catch(function () { + createErrorNotice(Object(external_this_wp_i18n_["__"])('Unable to perform the image modification. Please check your media storage.'), { + id: 'image-editing-error', + type: 'snackbar' + }); + }).finally(function () { + setIsProgress(false); + setIsEditingImage(false); + }); + } + + function rotate() { + var angle = (rotation + 90) % 360; + + if (angle === 0) { + setEditedUrl(); + setRotation(angle); + setAspect(1 / aspect); + setPosition({ + x: -(position.y * naturalAspectRatio), + y: position.x * naturalAspectRatio + }); + return; + } + + function editImage(event) { + var canvas = document.createElement('canvas'); + var translateX = 0; + var translateY = 0; + + if (angle % 180) { + canvas.width = event.target.height; + canvas.height = event.target.width; + } else { + canvas.width = event.target.width; + canvas.height = event.target.height; + } + + if (angle === 90 || angle === 180) { + translateX = canvas.width; + } + + if (angle === 270 || angle === 180) { + translateY = canvas.height; + } + + var context = canvas.getContext('2d'); + context.translate(translateX, translateY); + context.rotate(angle * Math.PI / 180); + context.drawImage(event.target, 0, 0); + canvas.toBlob(function (blob) { + setEditedUrl(URL.createObjectURL(blob)); + setRotation(angle); + setAspect(1 / aspect); + setPosition({ + x: -(position.y * naturalAspectRatio), + y: position.x * naturalAspectRatio + }); + }); + } + + var el = new window.Image(); + el.src = url; + el.onload = editImage; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('richimage__crop-area', { + 'is-applying': inProgress + }), + style: { + width: editedWidth, + height: editedHeight + } + }, Object(external_this_wp_element_["createElement"])(index_module, { + image: editedUrl || url, + disabled: inProgress, + minZoom: image_editor_MIN_ZOOM / 100, + maxZoom: image_editor_MAX_ZOOM / 100, + crop: position, + zoom: zoom / 100, + aspect: aspect, + onCropChange: setPosition, + onCropComplete: setCrop, + onZoomChange: function onZoomChange(newZoom) { + setZoom(newZoom * 100); + } + }), inProgress && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)), !inProgress && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + className: "richimage__zoom-control", + label: Object(external_this_wp_i18n_["__"])('Zoom'), + min: image_editor_MIN_ZOOM, + max: image_editor_MAX_ZOOM, + value: Math.round(zoom), + onChange: setZoom + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + icon: rotate_right, + label: Object(external_this_wp_i18n_["__"])('Rotate'), + onClick: rotate, + disabled: inProgress + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(AspectMenu, { + toggleProps: toggleProps, + isDisabled: inProgress, + onClick: setAspect + }); + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: apply, + disabled: inProgress + }, Object(external_this_wp_i18n_["__"])('Apply')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: function onClick() { + return setIsEditingImage(false); + } + }, Object(external_this_wp_i18n_["__"])('Cancel'))))); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/constants.js var MIN_SIZE = 20; var LINK_DESTINATION_NONE = 'none'; @@ -4600,82 +4661,7 @@ var NEW_TAB_REL = ['noreferrer', 'noopener']; var ALLOWED_MEDIA_TYPES = ['image']; var DEFAULT_SIZE_SLUG = 'large'; -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -function calculatePreferedImageSize(image, container) { - var maxWidth = container.clientWidth; - var exceedMaxWidth = image.width > maxWidth; - var ratio = image.height / image.width; - var width = exceedMaxWidth ? maxWidth : image.width; - var height = exceedMaxWidth ? maxWidth * ratio : image.height; - return { - width: width, - height: height - }; -} -function removeNewTabRel(currentRel) { - var newRel = currentRel; - - if (currentRel !== undefined && !Object(external_this_lodash_["isEmpty"])(newRel)) { - if (!Object(external_this_lodash_["isEmpty"])(newRel)) { - Object(external_this_lodash_["each"])(NEW_TAB_REL, function (relVal) { - var regExp = new RegExp('\\b' + relVal + '\\b', 'gi'); - newRel = newRel.replace(regExp, ''); - }); // Only trim if NEW_TAB_REL values was replaced. - - if (newRel !== currentRel) { - newRel = newRel.trim(); - } - - if (Object(external_this_lodash_["isEmpty"])(newRel)) { - newRel = undefined; - } - } - } - - return newRel; -} -/** - * Helper to get the link target settings to be stored. - * - * @param {boolean} value The new link target value. - * @param {Object} attributes Block attributes. - * @param {Object} attributes.rel Image block's rel attribute. - * - * @return {Object} Updated link target settings. - */ - -function getUpdatedLinkTargetSettings(value, _ref) { - var rel = _ref.rel; - var linkTarget = value ? '_blank' : undefined; - var updatedRel; - - if (!linkTarget && !rel) { - updatedRel = undefined; - } else { - updatedRel = removeNewTabRel(rel); - } - - return { - linkTarget: linkTarget, - rel: updatedRel - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js - - - - - +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image.js @@ -4689,118 +4675,403 @@ function getUpdatedLinkTargetSettings(value, _ref) { + + + + + + + + /** * Internal dependencies */ -var image_size_ImageSize = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageSize, _Component); - function ImageSize() { - var _this; +/** + * Module constants + */ - Object(classCallCheck["a" /* default */])(this, ImageSize); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments)); - _this.state = { - width: undefined, - height: undefined + +function getFilename(url) { + var path = Object(external_this_wp_url_["getPath"])(url); + + if (path) { + return Object(external_this_lodash_["last"])(path.split('/')); + } +} + +function Image(_ref) { + var _ref$attributes = _ref.attributes, + _ref$attributes$url = _ref$attributes.url, + url = _ref$attributes$url === void 0 ? '' : _ref$attributes$url, + alt = _ref$attributes.alt, + caption = _ref$attributes.caption, + align = _ref$attributes.align, + id = _ref$attributes.id, + href = _ref$attributes.href, + rel = _ref$attributes.rel, + linkClass = _ref$attributes.linkClass, + linkDestination = _ref$attributes.linkDestination, + title = _ref$attributes.title, + width = _ref$attributes.width, + height = _ref$attributes.height, + linkTarget = _ref$attributes.linkTarget, + sizeSlug = _ref$attributes.sizeSlug, + setAttributes = _ref.setAttributes, + isSelected = _ref.isSelected, + insertBlocksAfter = _ref.insertBlocksAfter, + onReplace = _ref.onReplace, + onSelectImage = _ref.onSelectImage, + onSelectURL = _ref.onSelectURL, + onUploadError = _ref.onUploadError, + containerRef = _ref.containerRef; + var image = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core'), + getMedia = _select.getMedia; + + return id && isSelected ? getMedia(id) : null; + }, [id, isSelected]); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; + + return Object(external_this_lodash_["pick"])(getSettings(), ['imageSizes', 'isRTL', 'maxWidth']); + }), + maxWidth = _useSelect.maxWidth, + isRTL = _useSelect.isRTL, + imageSizes = _useSelect.imageSizes; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + toggleSelection = _useDispatch.toggleSelection; + + var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium'); + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + captionFocused = _useState2[0], + setCaptionFocused = _useState2[1]; + + var isWideAligned = Object(external_this_lodash_["includes"])(['wide', 'full'], align); + + var _useState3 = Object(external_this_wp_element_["useState"])({}), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + _useState4$ = _useState4[0], + naturalWidth = _useState4$.naturalWidth, + naturalHeight = _useState4$.naturalHeight, + setNaturalSize = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(false), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + isEditingImage = _useState6[0], + setIsEditingImage = _useState6[1]; + + var clientWidth = useClientWidth(containerRef, [align]); + var isResizable = !isWideAligned && isLargeViewport; + var imageSizeOptions = Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref2) { + var slug = _ref2.slug; + return Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']); + }), function (_ref3) { + var name = _ref3.name, + slug = _ref3.slug; + return { + value: slug, + label: name }; - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + }); + Object(external_this_wp_element_["useEffect"])(function () { + if (!isSelected) { + setCaptionFocused(false); + } + }, [isSelected]); + + function onResizeStart() { + toggleSelection(false); } - Object(createClass["a" /* default */])(ImageSize, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.src !== prevProps.src) { - this.setState({ - width: undefined, - height: undefined - }); - this.fetchImageSize(); - } + function _onResizeStop() { + toggleSelection(true); + } - if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) { - this.calculateSize(); + function onImageError() { + // Check if there's an embed block that handles this URL. + var embedBlock = util_createUpgradedEmbedBlock({ + attributes: { + url: url } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.fetchImageSize(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.image) { - this.image.onload = external_this_lodash_["noop"]; - } - } - }, { - key: "fetchImageSize", - value: function fetchImageSize() { - this.image = new window.Image(); - this.image.onload = this.calculateSize; - this.image.src = this.props.src; - } - }, { - key: "calculateSize", - value: function calculateSize() { - var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container), - width = _calculatePreferedIma.width, - height = _calculatePreferedIma.height; + }); - this.setState({ + if (undefined !== embedBlock) { + onReplace(embedBlock); + } + } + + function onSetHref(props) { + setAttributes(props); + } + + function onSetTitle(value) { + // This is the HTML title attribute, separate from the media object + // title. + setAttributes({ + title: value + }); + } + + function onFocusCaption() { + if (!captionFocused) { + setCaptionFocused(true); + } + } + + function onImageClick() { + if (captionFocused) { + setCaptionFocused(false); + } + } + + function updateAlt(newAlt) { + setAttributes({ + alt: newAlt + }); + } + + function updateImage(newSizeSlug) { + var newUrl = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', newSizeSlug, 'source_url']); + + if (!newUrl) { + return null; + } + + setAttributes({ + url: newUrl, + width: undefined, + height: undefined, + sizeSlug: newSizeSlug + }); + } + + Object(external_this_wp_element_["useEffect"])(function () { + if (!isSelected) { + setIsEditingImage(false); + } + }, [isSelected]); + var canEditImage = id && naturalWidth && naturalHeight; + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, !isEditingImage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageURLInputUI"], { + url: href || '', + onChangeUrl: onSetHref, + linkDestination: linkDestination, + mediaUrl: image && image.source_url, + mediaLink: image && image.link, + linkTarget: linkTarget, + linkClass: linkClass, + rel: rel + })), canEditImage && !isEditingImage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + onClick: function onClick() { + return setIsEditingImage(true); + }, + icon: library_crop, + label: Object(external_this_wp_i18n_["__"])('Crop') + })), !isEditingImage && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + mediaId: id, + mediaURL: url, + allowedTypes: ALLOWED_MEDIA_TYPES, + accept: "image/*", + onSelect: onSelectImage, + onSelectURL: onSelectURL, + onError: onUploadError + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Image settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + label: Object(external_this_wp_i18n_["__"])('Alt text (alternative text)'), + value: alt, + onChange: updateAlt, + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: "https://www.w3.org/WAI/tutorials/images/decision-tree" + }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], { + onChangeImage: updateImage, + onChange: function onChange(value) { + return setAttributes(value); + }, + slug: sizeSlug, + width: width, + height: height, + imageSizeOptions: imageSizeOptions, + isResizable: isResizable, + imageWidth: naturalWidth, + imageHeight: naturalHeight + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorAdvancedControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Title attribute'), + value: title || '', + onChange: onSetTitle, + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Describe the role of this image on the page.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute" + }, Object(external_this_wp_i18n_["__"])('(Note: many devices and browsers do not display this text.)'))) + }))); + var filename = getFilename(url); + var defaultedAlt; + + if (alt) { + defaultedAlt = alt; + } else if (filename) { + defaultedAlt = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: file name */ + Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename); + } else { + defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute'); + } + + var img = // Disable reason: Image itself is not meant to be interactive, but + // should direct focus to block. + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */ + Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: defaultedAlt, + onClick: onImageClick, + onError: function onError() { + return onImageError(); + }, + onLoad: function onLoad(event) { + setNaturalSize(Object(external_this_lodash_["pick"])(event.target, ['naturalWidth', 'naturalHeight'])); + } + }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */ + ; + var imageWidthWithinContainer; + var imageHeightWithinContainer; + + if (clientWidth && naturalWidth && naturalHeight) { + var exceedMaxWidth = naturalWidth > clientWidth; + var ratio = naturalHeight / naturalWidth; + imageWidthWithinContainer = exceedMaxWidth ? clientWidth : naturalWidth; + imageHeightWithinContainer = exceedMaxWidth ? clientWidth * ratio : naturalHeight; + } + + if (canEditImage && isEditingImage) { + img = Object(external_this_wp_element_["createElement"])(ImageEditor, { + id: id, + url: url, + setAttributes: setAttributes, + naturalWidth: naturalWidth, + naturalHeight: naturalHeight, + width: width, + height: height, + clientWidth: clientWidth, + setIsEditingImage: setIsEditingImage + }); + } else if (!isResizable || !imageWidthWithinContainer) { + img = Object(external_this_wp_element_["createElement"])("div", { + style: { width: width, height: height + } + }, img); + } else { + var currentWidth = width || imageWidthWithinContainer; + var currentHeight = height || imageHeightWithinContainer; + + var _ratio = naturalWidth / naturalHeight; + + var minWidth = naturalWidth < naturalHeight ? MIN_SIZE : MIN_SIZE * _ratio; + var minHeight = naturalHeight < naturalWidth ? MIN_SIZE : MIN_SIZE / _ratio; // With the current implementation of ResizableBox, an image needs an + // explicit pixel value for the max-width. In absence of being able to + // set the content-width, this max-width is currently dictated by the + // vanilla editor style. The following variable adds a buffer to this + // vanilla style, so 3rd party themes have some wiggleroom. This does, + // in most cases, allow you to scale the image beyond the width of the + // main column, though not infinitely. + // @todo It would be good to revisit this once a content-width variable + // becomes available. + + var maxWidthBuffer = maxWidth * 2.5; + var showRightHandle = false; + var showLeftHandle = false; + /* eslint-disable no-lonely-if */ + // See https://github.com/WordPress/gutenberg/issues/7584. + + if (align === 'center') { + // When the image is centered, show both handles. + showRightHandle = true; + showLeftHandle = true; + } else if (isRTL) { + // In RTL mode the image is on the right by default. + // Show the right handle and hide the left handle only when it is + // aligned left. Otherwise always show the left handle. + if (align === 'left') { + showRightHandle = true; + } else { + showLeftHandle = true; + } + } else { + // Show the left handle and hide the right handle only when the + // image is aligned right. Otherwise always show the right handle. + if (align === 'right') { + showLeftHandle = true; + } else { + showRightHandle = true; + } + } + /* eslint-enable no-lonely-if */ + + + img = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + size: { + width: width, + height: height + }, + showHandle: isSelected, + minWidth: minWidth, + maxWidth: maxWidthBuffer, + minHeight: minHeight, + maxHeight: maxWidthBuffer / _ratio, + lockAspectRatio: true, + enable: { + top: false, + right: showRightHandle, + bottom: true, + left: showLeftHandle + }, + onResizeStart: onResizeStart, + onResizeStop: function onResizeStop(event, direction, elt, delta) { + _onResizeStop(); + + setAttributes({ + width: parseInt(currentWidth + delta.width, 10), + height: parseInt(currentHeight + delta.height, 10) + }); + } + }, img); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, img, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + unstableOnFocus: onFocusCaption, + onChange: function onChange(value) { + return setAttributes({ + caption: value }); + }, + isSelected: captionFocused, + inlineToolbar: true, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); } - }, { - key: "render", - value: function render() { - var sizes = { - imageWidth: this.image && this.image.width, - imageHeight: this.image && this.image.height, - containerWidth: this.container && this.container.clientWidth, - containerHeight: this.container && this.container.clientHeight, - imageWidthWithinContainer: this.state.width, - imageHeightWithinContainer: this.state.height - }; - return Object(external_this_wp_element_["createElement"])("div", { - ref: this.bindContainer - }, this.props.children(sizes)); - } - }]); - - return ImageSize; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({ - resize: 'calculateSize' -})(image_size_ImageSize)); + })); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js - - - - - - function image_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function image_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { image_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { image_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -4821,15 +5092,11 @@ function image_edit_objectSpread(target) { for (var i = 1; i < arguments.length; - - - /** * Internal dependencies */ - /** * Module constants */ @@ -4854,8 +5121,8 @@ var edit_isTemporaryImage = function isTemporaryImage(id, url) { return !id && Object(external_this_wp_blob_["isBlobURL"])(url); }; /** - * Is the url for the image hosted externally. An externally hosted image has no id - * and is not a blob url. + * Is the url for the image hosted externally. An externally hosted image has no + * id and is not a blob url. * * @param {number=} id The id of the image. * @param {string=} url The url of the image. @@ -4868,582 +5135,206 @@ var edit_isExternalImage = function isExternalImage(id, url) { return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url); }; -var edit_ImageEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageEdit, _Component); +function ImageEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + isSelected = _ref.isSelected, + className = _ref.className, + noticeUI = _ref.noticeUI, + insertBlocksAfter = _ref.insertBlocksAfter, + noticeOperations = _ref.noticeOperations, + onReplace = _ref.onReplace; + var _attributes$url = attributes.url, + url = _attributes$url === void 0 ? '' : _attributes$url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + id = attributes.id, + linkDestination = attributes.linkDestination, + width = attributes.width, + height = attributes.height, + sizeSlug = attributes.sizeSlug; + var ref = Object(external_this_wp_element_["useRef"])(); + var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; - function ImageEdit() { - var _this; + return getSettings().mediaUpload; + }); - Object(classCallCheck["a" /* default */])(this, ImageEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments)); - _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateImage = _this.updateImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetHref = _this.onSetHref.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetTitle = _this.onSetTitle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - captionFocused: false - }; - return _this; + function onUploadError(message) { + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); } - Object(createClass["a" /* default */])(ImageEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations; - var id = attributes.id, - _attributes$url = attributes.url, - url = _attributes$url === void 0 ? '' : _attributes$url; - - if (edit_isTemporaryImage(id, url)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(url); - - if (file) { - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - image = _ref2[0]; - - _this2.onSelectImage(image); - }, - allowedTypes: ALLOWED_MEDIA_TYPES, - onError: function onError(message) { - noticeOperations.createErrorNotice(message); - } - }); - } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _prevProps$attributes = prevProps.attributes, - prevID = _prevProps$attributes.id, - _prevProps$attributes2 = _prevProps$attributes.url, - prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2; - var _this$props$attribute = this.props.attributes, - id = _this$props$attribute.id, - _this$props$attribute2 = _this$props$attribute.url, - url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2; - - if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) { - Object(external_this_wp_blob_["revokeBlobURL"])(url); - } - - if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) { - this.setState({ - captionFocused: false - }); - } - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "onSelectImage", - value: function onSelectImage(media) { - if (!media || !media.url) { - this.props.setAttributes({ - url: undefined, - alt: undefined, - id: undefined, - title: undefined, - caption: undefined - }); - return; - } - - var _this$props$attribute3 = this.props.attributes, - id = _this$props$attribute3.id, - url = _this$props$attribute3.url, - alt = _this$props$attribute3.alt, - caption = _this$props$attribute3.caption, - linkDestination = _this$props$attribute3.linkDestination; - var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt text was meanwhile written by the user, - // make sure the text is not overwritten. - - if (edit_isTemporaryImage(id, url)) { - if (alt) { - mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['alt']); - } - } // If a caption text was meanwhile written by the user, - // make sure the text is not overwritten by empty captions - - - if (caption && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) { - mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['caption']); - } - - var additionalAttributes; // Reset the dimension attributes if changing to a different image. - - if (!media.id || media.id !== id) { - additionalAttributes = { - width: undefined, - height: undefined, - sizeSlug: DEFAULT_SIZE_SLUG - }; - } else { - // Keep the same url when selecting the same file, so "Image Size" option is not changed. - additionalAttributes = { - url: url - }; - } // Check if the image is linked to it's media. - - - if (linkDestination === LINK_DESTINATION_MEDIA) { - // Update the media link. - mediaAttributes.href = media.url; - } // Check if the image is linked to the attachment page. - - - if (linkDestination === LINK_DESTINATION_ATTACHMENT) { - // Update the media link. - mediaAttributes.href = media.link; - } - - this.props.setAttributes(image_edit_objectSpread({}, mediaAttributes, {}, additionalAttributes)); - } - }, { - key: "onSelectURL", - value: function onSelectURL(newURL) { - var url = this.props.attributes.url; - - if (newURL !== url) { - this.props.setAttributes({ - url: newURL, - id: undefined, - sizeSlug: DEFAULT_SIZE_SLUG - }); - } - } - }, { - key: "onImageError", - value: function onImageError(url) { - // Check if there's an embed block that handles this URL. - var embedBlock = util_createUpgradedEmbedBlock({ - attributes: { - url: url - } + function onSelectImage(media) { + if (!media || !media.url) { + setAttributes({ + url: undefined, + alt: undefined, + id: undefined, + title: undefined, + caption: undefined }); + return; + } - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - } - } - }, { - key: "onSetHref", - value: function onSetHref(props) { - this.props.setAttributes(props); - } - }, { - key: "onSetTitle", - value: function onSetTitle(value) { - // This is the HTML title attribute, separate from the media object title - this.props.setAttributes({ - title: value - }); - } - }, { - key: "onFocusCaption", - value: function onFocusCaption() { - if (!this.state.captionFocused) { - this.setState({ - captionFocused: true - }); - } - } - }, { - key: "onImageClick", - value: function onImageClick() { - if (this.state.captionFocused) { - this.setState({ - captionFocused: false - }); - } - } - }, { - key: "updateAlt", - value: function updateAlt(newAlt) { - this.props.setAttributes({ - alt: newAlt - }); - } - }, { - key: "updateAlignment", - value: function updateAlignment(nextAlign) { - var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? { - width: undefined, - height: undefined - } : {}; - this.props.setAttributes(image_edit_objectSpread({}, extraUpdatedAttributes, { - align: nextAlign - })); - } - }, { - key: "updateImage", - value: function updateImage(sizeSlug) { - var image = this.props.image; - var url = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']); + var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt text was meanwhile + // written by the user, make sure the text is not overwritten. - if (!url) { - return null; + if (edit_isTemporaryImage(id, url)) { + if (alt) { + mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['alt']); } + } // If a caption text was meanwhile written by the user, + // make sure the text is not overwritten by empty captions. - this.props.setAttributes({ - url: url, + + if (caption && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) { + mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['caption']); + } + + var additionalAttributes; // Reset the dimension attributes if changing to a different image. + + if (!media.id || media.id !== id) { + additionalAttributes = { width: undefined, height: undefined, - sizeSlug: sizeSlug - }); - } - }, { - key: "getFilename", - value: function getFilename(url) { - var path = Object(external_this_wp_url_["getPath"])(url); - - if (path) { - return Object(external_this_lodash_["last"])(path.split('/')); - } - } - }, { - key: "getImageSizeOptions", - value: function getImageSizeOptions() { - var _this$props2 = this.props, - imageSizes = _this$props2.imageSizes, - image = _this$props2.image; - return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref3) { - var slug = _ref3.slug; - return Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']); - }), function (_ref4) { - var name = _ref4.name, - slug = _ref4.slug; - return { - value: slug, - label: name - }; - }); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes, - isLargeViewport = _this$props3.isLargeViewport, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - maxWidth = _this$props3.maxWidth, - noticeUI = _this$props3.noticeUI, - isRTL = _this$props3.isRTL, - onResizeStart = _this$props3.onResizeStart, - _onResizeStop = _this$props3.onResizeStop; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - id = attributes.id, - href = attributes.href, - rel = attributes.rel, - linkClass = attributes.linkClass, - linkDestination = attributes.linkDestination, - title = attributes.title, - width = attributes.width, - height = attributes.height, - linkTarget = attributes.linkTarget, - sizeSlug = attributes.sizeSlug; - var isExternal = edit_isExternalImage(id, url); - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { - value: align, - onChange: this.updateAlignment - }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { - mediaId: id, - mediaURL: url, - allowedTypes: ALLOWED_MEDIA_TYPES, - accept: "image/*", - onSelect: this.onSelectImage, - onSelectURL: this.onSelectURL, - onError: this.onUploadError - }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageURLInputUI"], { - url: href || '', - onChangeUrl: this.onSetHref, - linkDestination: linkDestination, - mediaUrl: this.props.image && this.props.image.source_url, - mediaLink: this.props.image && this.props.image.link, - linkTarget: linkTarget, - linkClass: linkClass, - rel: rel - }))); - var src = isExternal ? url : undefined; - var labels = { - title: !url ? Object(external_this_wp_i18n_["__"])('Image') : Object(external_this_wp_i18n_["__"])('Edit image'), - instructions: Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.') + sizeSlug: DEFAULT_SIZE_SLUG }; - var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", { - alt: Object(external_this_wp_i18n_["__"])('Edit image'), - title: Object(external_this_wp_i18n_["__"])('Edit image'), - className: 'edit-image-preview', - src: url + } else { + // Keep the same url when selecting the same file, so "Image Size" + // option is not changed. + additionalAttributes = { + url: url + }; + } // Check if the image is linked to it's media. + + + if (linkDestination === LINK_DESTINATION_MEDIA) { + // Update the media link. + mediaAttributes.href = media.url; + } // Check if the image is linked to the attachment page. + + + if (linkDestination === LINK_DESTINATION_ATTACHMENT) { + // Update the media link. + mediaAttributes.href = media.link; + } + + setAttributes(image_edit_objectSpread({}, mediaAttributes, {}, additionalAttributes)); + } + + function onSelectURL(newURL) { + if (newURL !== url) { + setAttributes({ + url: newURL, + id: undefined, + sizeSlug: DEFAULT_SIZE_SLUG }); - var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: library_image - }), - className: className, - labels: labels, - onSelect: this.onSelectImage, - onSelectURL: this.onSelectURL, - notices: noticeUI, - onError: this.onUploadError, - accept: "image/*", + } + } + + function updateAlignment(nextAlign) { + var extraUpdatedAttributes = ['wide', 'full'].includes(nextAlign) ? { + width: undefined, + height: undefined + } : {}; + setAttributes(image_edit_objectSpread({}, extraUpdatedAttributes, { + align: nextAlign + })); + } + + var isTemp = edit_isTemporaryImage(id, url); // Upload a temporary image on mount. + + Object(external_this_wp_element_["useEffect"])(function () { + if (!isTemp) { + return; + } + + var file = Object(external_this_wp_blob_["getBlobByURL"])(url); + + if (file) { + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + img = _ref3[0]; + + onSelectImage(img); + }, allowedTypes: ALLOWED_MEDIA_TYPES, - value: { - id: id, - src: src - }, - mediaPreview: mediaPreview, - disableMediaButtons: url + onError: function onError(message) { + noticeOperations.createErrorNotice(message); + } }); - - if (!url) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, mediaPlaceholder); - } - - var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({ - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), - 'is-resized': !!width || !!height, - 'is-focused': isSelected - }, "size-".concat(sizeSlug), sizeSlug)); - var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport; - var imageSizeOptions = this.getImageSizeOptions(); - - var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Image settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - label: Object(external_this_wp_i18n_["__"])('Alt text (alternative text)'), - value: alt, - onChange: _this3.updateAlt, - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: "https://www.w3.org/WAI/tutorials/images/decision-tree" - }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], { - onChangeImage: _this3.updateImage, - onChange: function onChange(value) { - return setAttributes(value); - }, - slug: sizeSlug, - width: width, - height: height, - imageSizeOptions: imageSizeOptions, - isResizable: isResizable, - imageWidth: imageWidth, - imageHeight: imageHeight - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorAdvancedControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Title attribute'), - value: title || '', - onChange: _this3.onSetTitle, - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Describe the role of this image on the page.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute" - }, Object(external_this_wp_i18n_["__"])('(Note: many devices and browsers do not display this text.)'))) - }))); - }; // Disable reason: Each block can be selected by clicking on it - - /* eslint-disable jsx-a11y/click-events-have-key-events */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, Object(external_this_wp_element_["createElement"])(image_size, { - src: url, - dirtynessTrigger: align - }, function (sizes) { - var imageWidthWithinContainer = sizes.imageWidthWithinContainer, - imageHeightWithinContainer = sizes.imageHeightWithinContainer, - imageWidth = sizes.imageWidth, - imageHeight = sizes.imageHeight; - - var filename = _this3.getFilename(url); - - var defaultedAlt; - - if (alt) { - defaultedAlt = alt; - } else if (filename) { - defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename); - } else { - defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute'); - } - - var img = // Disable reason: Image itself is not meant to be interactive, but - // should direct focus to block. - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ - Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: defaultedAlt, - onClick: _this3.onImageClick, - onError: function onError() { - return _this3.onImageError(url); - } - }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ - ; - - if (!isResizable || !imageWidthWithinContainer) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", { - style: { - width: width, - height: height - } - }, img)); - } - - var currentWidth = width || imageWidthWithinContainer; - var currentHeight = height || imageHeightWithinContainer; - var ratio = imageWidth / imageHeight; - var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio; - var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width. - // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style. - // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom. - // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely. - // @todo It would be good to revisit this once a content-width variable becomes available. - - var maxWidthBuffer = maxWidth * 2.5; - var showRightHandle = false; - var showLeftHandle = false; - /* eslint-disable no-lonely-if */ - // See https://github.com/WordPress/gutenberg/issues/7584. - - if (align === 'center') { - // When the image is centered, show both handles. - showRightHandle = true; - showLeftHandle = true; - } else if (isRTL) { - // In RTL mode the image is on the right by default. - // Show the right handle and hide the left handle only when it is aligned left. - // Otherwise always show the left handle. - if (align === 'left') { - showRightHandle = true; - } else { - showLeftHandle = true; - } - } else { - // Show the left handle and hide the right handle only when the image is aligned right. - // Otherwise always show the right handle. - if (align === 'right') { - showLeftHandle = true; - } else { - showRightHandle = true; - } - } - /* eslint-enable no-lonely-if */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - size: { - width: width, - height: height - }, - minWidth: minWidth, - maxWidth: maxWidthBuffer, - minHeight: minHeight, - maxHeight: maxWidthBuffer / ratio, - lockAspectRatio: true, - enable: { - top: false, - right: showRightHandle, - bottom: true, - left: showLeftHandle - }, - onResizeStart: onResizeStart, - onResizeStop: function onResizeStop(event, direction, elt, delta) { - _onResizeStop(); - - setAttributes({ - width: parseInt(currentWidth + delta.width, 10), - height: parseInt(currentHeight + delta.height, 10) - }); - } - }, img)); - }), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - unstableOnFocus: this.onFocusCaption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - isSelected: this.state.captionFocused, - inlineToolbar: true - })), mediaPlaceholder); - /* eslint-enable jsx-a11y/click-events-have-key-events */ } - }]); + }, []); // If an image is temporary, revoke the Blob url when it is uploaded (and is + // no longer temporary). - return ImageEdit; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var image_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - toggleSelection = _dispatch.toggleSelection; + Object(external_this_wp_element_["useEffect"])(function () { + if (!isTemp) { + return; + } - return { - onResizeStart: function onResizeStart() { - return toggleSelection(false); + return function () { + Object(external_this_wp_blob_["revokeBlobURL"])(url); + }; + }, [isTemp]); + var isExternal = edit_isExternalImage(id, url); + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: align, + onChange: updateAlignment + })); + var src = isExternal ? url : undefined; + var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", { + alt: Object(external_this_wp_i18n_["__"])('Edit image'), + title: Object(external_this_wp_i18n_["__"])('Edit image'), + className: 'edit-image-preview', + src: url + }); + var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: library_image + }), + onSelect: onSelectImage, + onSelectURL: onSelectURL, + notices: noticeUI, + onError: onUploadError, + accept: "image/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + value: { + id: id, + src: src }, - onResizeStop: function onResizeStop() { - return toggleSelection(true); - } - }; -}), Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; + mediaPreview: mediaPreview, + disableMediaButtons: url + }); + var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({ + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), + 'is-resized': !!width || !!height, + 'is-focused': isSelected + }, "size-".concat(sizeSlug), sizeSlug)); // Focussing the image caption after inserting an image relies on the + // component remounting. This needs to be fixed. - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var id = props.attributes.id, - isSelected = props.isSelected; - - var _getSettings = getSettings(), - mediaUpload = _getSettings.mediaUpload, - imageSizes = _getSettings.imageSizes, - isRTL = _getSettings.isRTL, - maxWidth = _getSettings.maxWidth; - - return { - image: id && isSelected ? getMedia(id) : null, - maxWidth: maxWidth, - isRTL: isRTL, - imageSizes: imageSizes, - mediaUpload: mediaUpload - }; -}), Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), external_this_wp_components_["withNotices"]])(edit_ImageEdit)); + var key = !!url; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, { + ref: ref, + className: classes, + key: key + }, url && Object(external_this_wp_element_["createElement"])(Image, { + attributes: attributes, + setAttributes: setAttributes, + isSelected: isSelected, + insertBlocksAfter: insertBlocksAfter, + onReplace: onReplace, + onSelectImage: onSelectImage, + onSelectURL: onSelectURL, + onUploadError: onUploadError, + containerRef: ref + }), mediaPlaceholder)); +} +/* harmony default export */ var image_edit = (Object(external_this_wp_components_["withNotices"])(ImageEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js @@ -5696,7 +5587,7 @@ var image_transforms_transforms = { var image_metadata = { name: "core/image", - category: "common", + category: "media", attributes: { align: { type: "string" @@ -5765,6 +5656,9 @@ var image_metadata = { selector: "figure > a", attribute: "target" } + }, + supports: { + lightBlockWrapper: true } }; @@ -5814,18 +5708,12 @@ var image_settings = { return alt + (caption ? '. ' + caption : ''); } }, - transforms: image_transforms, getEditWrapperProps: function getEditWrapperProps(attributes) { - var align = attributes.align, - width = attributes.width; - - if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) { - return { - 'data-align': align, - 'data-resized': !!width - }; - } + return { + 'data-align': attributes.align + }; }, + transforms: image_transforms, edit: image_edit, save: image_save_save, deprecated: image_deprecated @@ -5840,9 +5728,9 @@ var image_settings = { var heading = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4" + d: "M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z" })); /* harmony default export */ var library_heading = (heading); @@ -5850,10 +5738,15 @@ var heading = Object(external_this_wp_element_["createElement"])(external_this_w +function deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /** * External dependencies */ + /** * WordPress dependencies */ @@ -5879,16 +5772,35 @@ var heading_deprecated_blockAttributes = { }, placeholder: { type: 'string' - }, - textColor: { - type: 'string' - }, - customTextColor: { - type: 'string' } }; + +var deprecated_migrateCustomColors = function migrateCustomColors(attributes) { + if (!attributes.customTextColor) { + return attributes; + } + + var style = { + color: { + text: attributes.customTextColor + } + }; + return deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor']), { + style: style + }); +}; + var heading_deprecated_deprecated = [{ - attributes: heading_deprecated_blockAttributes, + supports: blockSupports, + attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, { + customTextColor: { + type: 'string' + }, + textColor: { + type: 'string' + } + }), + migrate: deprecated_migrateCustomColors, save: function save(_ref) { var _classnames; @@ -5900,7 +5812,38 @@ var heading_deprecated_deprecated = [{ textColor = attributes.textColor; var tagName = 'h' + level; var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames)); + var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + className: className ? className : undefined, + tagName: tagName, + style: { + color: textClass ? undefined : customTextColor + }, + value: content + }); + } +}, { + attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, { + customTextColor: { + type: 'string' + }, + textColor: { + type: 'string' + } + }), + migrate: deprecated_migrateCustomColors, + save: function save(_ref2) { + var _classnames2; + + var attributes = _ref2.attributes; + var align = attributes.align, + content = attributes.content, + customTextColor = attributes.customTextColor, + level = attributes.level, + textColor = attributes.textColor; + var tagName = 'h' + level; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, "has-text-align-".concat(align), align), _classnames2)); return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { className: className ? className : undefined, tagName: tagName, @@ -5913,9 +5856,17 @@ var heading_deprecated_deprecated = [{ supports: blockSupports }, { supports: blockSupports, - attributes: heading_deprecated_blockAttributes, - save: function save(_ref2) { - var attributes = _ref2.attributes; + attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, { + customTextColor: { + type: 'string' + }, + textColor: { + type: 'string' + } + }), + migrate: deprecated_migrateCustomColors, + save: function save(_ref3) { + var attributes = _ref3.attributes; var align = attributes.align, level = attributes.level, content = attributes.content, @@ -5937,6 +5888,9 @@ var heading_deprecated_deprecated = [{ }]; /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated); +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(22); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js @@ -5944,6 +5898,25 @@ var heading_deprecated_deprecated = [{ * WordPress dependencies */ +/** @typedef {import('@wordpress/element').WPComponent} WPComponent */ + +/** + * HeadingLevelIcon props. + * + * @typedef WPHeadingLevelIconProps + * + * @property {number} level The heading level to show an icon for. + * @property {?boolean} isPressed Whether or not the icon should appear pressed; default: false. + */ + +/** + * Heading level icon. + * + * @param {WPHeadingLevelIconProps} props Component props. + * + * @return {?WPComponent} The icon. + */ + function HeadingLevelIcon(_ref) { var level = _ref.level, _ref$isPressed = _ref.isPressed, @@ -5962,8 +5935,8 @@ function HeadingLevelIcon(_ref) { } return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "20", - height: "20", + width: "24", + height: "24", viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", isPressed: isPressed @@ -5972,88 +5945,99 @@ function HeadingLevelIcon(_ref) { })); } -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-dropdown.js - - - - - -/** - * External dependencies - */ - /** * WordPress dependencies */ - /** * Internal dependencies */ +var HEADING_LEVELS = [1, 2, 3, 4, 5, 6]; +var heading_level_dropdown_POPOVER_PROPS = { + className: 'block-library-heading-level-dropdown', + isAlternate: true +}; +/** @typedef {import('@wordpress/element').WPComponent} WPComponent */ -var heading_toolbar_HeadingToolbar = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(HeadingToolbar, _Component); +/** + * HeadingLevelDropdown props. + * + * @typedef WPHeadingLevelDropdownProps + * + * @property {number} selectedLevel The chosen heading level. + * @property {(newValue:number)=>any} onChange Callback to run when + * toolbar value is changed. + */ - function HeadingToolbar() { - Object(classCallCheck["a" /* default */])(this, HeadingToolbar); +/** + * Dropdown for selecting a heading level (1 through 6). + * + * @param {WPHeadingLevelDropdownProps} props Component props. + * + * @return {WPComponent} The toolbar. + */ - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments)); - } +function HeadingLevelDropdown(_ref) { + var selectedLevel = _ref.selectedLevel, + onChange = _ref.onChange; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + popoverProps: heading_level_dropdown_POPOVER_PROPS, + renderToggle: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + isOpen = _ref2.isOpen; - Object(createClass["a" /* default */])(HeadingToolbar, [{ - key: "createLevelControl", - value: function createLevelControl(targetLevel, selectedLevel, onChange) { - var isActive = targetLevel === selectedLevel; - return { - icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { - level: targetLevel, - isPressed: isActive - }), - // translators: %s: heading level e.g: "1", "2", "3" - title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel), - isActive: isActive, - onClick: function onClick() { - return onChange(targetLevel); + var openOnArrowDown = function openOnArrowDown(event) { + if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { + event.preventDefault(); + event.stopPropagation(); + onToggle(); } }; - } - }, { - key: "render", - value: function render() { - var _this = this; - var _this$props = this.props, - _this$props$isCollaps = _this$props.isCollapsed, - isCollapsed = _this$props$isCollaps === void 0 ? true : _this$props$isCollaps, - minLevel = _this$props.minLevel, - maxLevel = _this$props.maxLevel, - selectedLevel = _this$props.selectedLevel, - onChange = _this$props.onChange; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - isCollapsed: isCollapsed, + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { + "aria-expanded": isOpen, + "aria-haspopup": "true", icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { level: selectedLevel }), - controls: Object(external_this_lodash_["range"])(minLevel, maxLevel).map(function (index) { - return _this.createLevelControl(index, selectedLevel, onChange); - }), - label: Object(external_this_wp_i18n_["__"])('Change heading level') + label: Object(external_this_wp_i18n_["__"])('Change heading level'), + onClick: onToggle, + onKeyDown: openOnArrowDown, + showTooltip: true }); + }, + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + className: "block-library-heading-level-toolbar", + __experimentalAccessibilityLabel: Object(external_this_wp_i18n_["__"])('Change heading level') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + isCollapsed: false, + controls: HEADING_LEVELS.map(function (targetLevel) { + var isActive = targetLevel === selectedLevel; + return { + icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { + level: targetLevel, + isPressed: isActive + }), + title: Object(external_this_wp_i18n_["sprintf"])( // translators: %s: heading level e.g: "1", "2", "3" + Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel), + isActive: isActive, + onClick: function onClick() { + onChange(targetLevel); + } + }; + }) + })); } - }]); - - return HeadingToolbar; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar); + }); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js @@ -6067,11 +6051,6 @@ function heading_edit_objectSpread(target) { for (var i = 1; i < arguments.lengt * External dependencies */ -/** - * Internal dependencies - */ - - /** * WordPress dependencies */ @@ -6080,6 +6059,10 @@ function heading_edit_objectSpread(target) { for (var i = 1; i < arguments.lengt +/** + * Internal dependencies + */ + function HeadingEdit(_ref) { @@ -6087,61 +6070,29 @@ function HeadingEdit(_ref) { setAttributes = _ref.setAttributes, mergeBlocks = _ref.mergeBlocks, onReplace = _ref.onReplace, - className = _ref.className; - var ref = Object(external_this_wp_element_["useRef"])(); - - var _experimentalUseColo = Object(external_this_wp_blockEditor_["__experimentalUseColors"])([{ - name: 'textColor', - property: 'color' - }], { - contrastCheckers: { - backgroundColor: true, - textColor: true - }, - colorDetector: { - targetRef: ref - } - }, []), - TextColor = _experimentalUseColo.TextColor, - InspectorControlsColorPanel = _experimentalUseColo.InspectorControlsColorPanel; - + mergedStyle = _ref.mergedStyle; var align = attributes.align, content = attributes.content, level = attributes.level, placeholder = attributes.placeholder; var tagName = 'h' + level; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(heading_toolbar, { - minLevel: 2, - maxLevel: 5, + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(HeadingLevelDropdown, { selectedLevel: level, onChange: function onChange(newLevel) { return setAttributes({ level: newLevel }); } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { value: align, onChange: function onChange(nextAlign) { setAttributes({ align: nextAlign }); } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Heading settings') - }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, { - isCollapsed: false, - minLevel: 1, - maxLevel: 7, - selectedLevel: level, - onChange: function onChange(newLevel) { - return setAttributes({ - level: newLevel - }); - } - }))), InspectorControlsColorPanel, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - ref: ref, + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { identifier: "content", - tagName: tagName, + tagName: external_this_wp_blockEditor_["__experimentalBlock"][tagName], value: content, onChange: function onChange(value) { return setAttributes({ @@ -6162,9 +6113,11 @@ function HeadingEdit(_ref) { onRemove: function onRemove() { return onReplace([]); }, - className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)), - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…') - }))); + className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)), + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'), + textAlign: align, + style: mergedStyle + })); } /* harmony default export */ var heading_edit = (HeadingEdit); @@ -6183,23 +6136,15 @@ function HeadingEdit(_ref) { function heading_save_save(_ref) { - var _classnames; - var attributes = _ref.attributes; var align = attributes.align, content = attributes.content, - customTextColor = attributes.customTextColor, - level = attributes.level, - textColor = attributes.textColor; + level = attributes.level; var tagName = 'h' + level; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames)); + var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { className: className ? className : undefined, tagName: tagName, - style: { - color: textClass ? undefined : customTextColor - }, value: content }); } @@ -6230,7 +6175,7 @@ function getLevelFromHeadingNodeName(nodeName) { var transforms_name$category$attrib = { name: "core/heading", - category: "common", + category: "text", attributes: { align: { type: "string" @@ -6247,13 +6192,26 @@ var transforms_name$category$attrib = { }, placeholder: { type: "string" - }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" } + }, + supports: { + anchor: true, + className: false, + lightBlockWrapper: true, + __experimentalColor: { + linkColor: true + }, + __experimentalFontSize: true, + __experimentalLineHeight: true, + __experimentalSelector: { + "core/heading/h1": "h1", + "core/heading/h2": "h2", + "core/heading/h3": "h3", + "core/heading/h4": "h4", + "core/heading/h5": "h5", + "core/heading/h6": "h6" + }, + __unstablePasteTextInline: true } }, heading_transforms_name = transforms_name$category$attrib.name; @@ -6344,7 +6302,7 @@ var heading_transforms_transforms = { var heading_metadata = { name: "core/heading", - category: "common", + category: "text", attributes: { align: { type: "string" @@ -6361,13 +6319,26 @@ var heading_metadata = { }, placeholder: { type: "string" - }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" } + }, + supports: { + anchor: true, + className: false, + lightBlockWrapper: true, + __experimentalColor: { + linkColor: true + }, + __experimentalFontSize: true, + __experimentalLineHeight: true, + __experimentalSelector: { + "core/heading/h1": "h1", + "core/heading/h2": "h2", + "core/heading/h3": "h3", + "core/heading/h4": "h4", + "core/heading/h5": "h5", + "core/heading/h6": "h6" + }, + __unstablePasteTextInline: true } }; @@ -6379,11 +6350,6 @@ var heading_settings = { description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'), icon: library_heading, keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')], - supports: { - className: false, - anchor: true, - __unstablePasteTextInline: true - }, example: { attributes: { content: Object(external_this_wp_i18n_["__"])('Code is Poetry'), @@ -6425,7 +6391,7 @@ var quote = Object(external_this_wp_element_["createElement"])(external_this_wp_ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z" + d: "M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z" })); /* harmony default export */ var library_quote = (quote); @@ -6433,9 +6399,9 @@ var quote = Object(external_this_wp_element_["createElement"])(external_this_wp_ -function deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function quote_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } -function deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function quote_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** * External dependencies @@ -6484,7 +6450,7 @@ var quote_deprecated_deprecated = [{ })); } }, { - attributes: deprecated_objectSpread({}, quote_deprecated_blockAttributes, { + attributes: quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes, { style: { type: 'number', default: 1 @@ -6492,7 +6458,7 @@ var quote_deprecated_deprecated = [{ }), migrate: function migrate(attributes) { if (attributes.style === 2) { - return deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['style']), { + return quote_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['style']), { className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large' }); } @@ -6519,7 +6485,7 @@ var quote_deprecated_deprecated = [{ })); } }, { - attributes: deprecated_objectSpread({}, quote_deprecated_blockAttributes, { + attributes: quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes, { citation: { type: 'string', source: 'html', @@ -6579,7 +6545,8 @@ function QuoteEdit(_ref) { isSelected = _ref.isSelected, mergeBlocks = _ref.mergeBlocks, onReplace = _ref.onReplace, - className = _ref.className; + className = _ref.className, + insertBlocksAfter = _ref.insertBlocksAfter; var align = attributes.align, value = attributes.value, citation = attributes.citation; @@ -6619,7 +6586,8 @@ function QuoteEdit(_ref) { }, __unstableOnSplitMiddle: function __unstableOnSplitMiddle() { return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); - } + }, + textAlign: align }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { identifier: "citation", value: citation, @@ -6631,7 +6599,11 @@ function QuoteEdit(_ref) { __unstableMobileNoFocusOnMount: true, placeholder: // translators: placeholder text used for the citation Object(external_this_wp_i18n_["__"])('Write citation…'), - className: "wp-block-quote__citation" + className: "wp-block-quote__citation", + textAlign: align, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } }))); } @@ -6666,10 +6638,10 @@ function quote_save_save(_ref) { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(24); +var external_this_wp_richText_ = __webpack_require__(25); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js @@ -6881,7 +6853,7 @@ function quote_objectSpread(target) { for (var i = 1; i < arguments.length; i++) var quote_metadata = { name: "core/quote", - category: "common", + category: "text", attributes: { value: { type: "string", @@ -6963,7 +6935,7 @@ var gallery = Object(external_this_wp_element_["createElement"])(external_this_w viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z" + d: "M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z" })); /* harmony default export */ var library_gallery = (gallery); @@ -7440,6 +7412,27 @@ var gallery_deprecated_deprecated = [{ }]; /* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(18); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(20); + +// EXTERNAL MODULE: external {"this":["wp","viewport"]} +var external_this_wp_viewport_ = __webpack_require__(72); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared-icon.js @@ -7452,35 +7445,14 @@ var sharedIcon = Object(external_this_wp_element_["createElement"])(external_thi icon: library_gallery }); -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(22); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js +var chevron_left = __webpack_require__(288); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js +var chevron_right = __webpack_require__(287); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(120); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icons.js - - -/** - * WordPress dependencies - */ - -var leftArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - viewBox: "0 0 18 18", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z" -})); -var rightArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - viewBox: "0 0 18 18", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z" -})); +var library_close = __webpack_require__(133); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js @@ -7491,10 +7463,15 @@ var rightArrow = Object(external_this_wp_element_["createElement"])(external_thi +function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ + /** * WordPress dependencies */ @@ -7508,27 +7485,36 @@ var rightArrow = Object(external_this_wp_element_["createElement"])(external_thi -/** - * Internal dependencies - */ - - -var gallery_image_GalleryImage = -/*#__PURE__*/ -function (_Component) { +var gallery_image_GalleryImage = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(GalleryImage, _Component); + var _super = _createSuper(GalleryImage); + function GalleryImage() { var _this; Object(classCallCheck["a" /* default */])(this, GalleryImage); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments)); + _this = _super.apply(this, arguments); + _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); // The onDeselect prop is used to signal that the GalleryImage component + // has lost focus. We want to call it when focus has been lost + // by the figure element or any of its children but only if + // the element that gained focus isn't any of them. + // + // debouncedOnSelect is scheduled every time a figure's children + // is blurred and cancelled when any is focused. If none gain focus, + // the call to onDeselect will be executed. + // + // onBlur / onFocus events are quick operations (<5ms apart in my testing), + // so 50ms accounts for 10x lagging while feels responsive to the user. + + _this.debouncedOnDeselect = Object(external_this_lodash_["debounce"])(_this.props.onDeselect, 50); _this.state = { captionSelected: false }; @@ -7601,6 +7587,26 @@ function (_Component) { }); } } + /** + * Note that, unlike the DOM, all React events bubble, + * so this will be called after the onBlur event of any figure's children. + */ + + }, { + key: "onBlur", + value: function onBlur() { + this.debouncedOnDeselect(); + } + /** + * Note that, unlike the DOM, all React events bubble, + * so this will be called after the onBlur event of any figure's children. + */ + + }, { + key: "onFocus", + value: function onFocus() { + this.debouncedOnDeselect.cancel(); + } }, { key: "render", value: function render() { @@ -7653,20 +7659,22 @@ function (_Component) { 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url) }); return Object(external_this_wp_element_["createElement"])("figure", { - className: className + className: className, + onBlur: this.onBlur, + onFocus: this.onFocus }, href ? Object(external_this_wp_element_["createElement"])("a", { href: href }, img) : img, Object(external_this_wp_element_["createElement"])("div", { className: "block-library-gallery-item__move-menu" }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: leftArrow, + icon: chevron_left["a" /* default */], onClick: isFirstItem ? undefined : onMoveBackward, className: "blocks-gallery-item__move-backward", label: Object(external_this_wp_i18n_["__"])('Move image backward'), "aria-disabled": isFirstItem, disabled: !isSelected }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - icon: rightArrow, + icon: chevron_right["a" /* default */], onClick: isLastItem ? undefined : onMoveForward, className: "blocks-gallery-item__move-forward", label: Object(external_this_wp_i18n_["__"])('Move image forward'), @@ -7705,7 +7713,7 @@ function (_Component) { var id = ownProps.id; return { - image: id ? getMedia(id) : null + image: id ? getMedia(parseInt(id, 10)) : null }; }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { var _dispatch = dispatch('core/block-editor'), @@ -7720,6 +7728,8 @@ function (_Component) { + + /** * External dependencies */ @@ -7730,6 +7740,8 @@ function (_Component) { + + /** * Internal dependencies */ @@ -7749,24 +7761,24 @@ var gallery_Gallery = function Gallery(props) { onMoveForward = props.onMoveForward, onRemoveImage = props.onRemoveImage, onSelectImage = props.onSelectImage, + onDeselectImage = props.onDeselectImage, onSetImageAttributes = props.onSetImageAttributes, - onFocusGalleryCaption = props.onFocusGalleryCaption; + onFocusGalleryCaption = props.onFocusGalleryCaption, + insertBlocksAfter = props.insertBlocksAfter; var align = attributes.align, _attributes$columns = attributes.columns, columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, caption = attributes.caption, imageCrop = attributes.imageCrop, images = attributes.images; - var captionClassNames = classnames_default()('blocks-gallery-caption', { - 'screen-reader-text': !isSelected && external_this_wp_blockEditor_["RichText"].isEmpty(caption) - }); return Object(external_this_wp_element_["createElement"])("figure", { className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames)) }, Object(external_this_wp_element_["createElement"])("ul", { className: "blocks-gallery-grid" }, images.map(function (img, index) { - /* translators: %1$d is the order number of the image, %2$d is the total number of images. */ - var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length); + var ariaLabel = Object(external_this_wp_i18n_["sprintf"])( + /* translators: 1: the order number of the image. 2: the total number of images. */ + Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length); return Object(external_this_wp_element_["createElement"])("li", { className: "blocks-gallery-item", key: img.id || img.url @@ -7781,15 +7793,17 @@ var gallery_Gallery = function Gallery(props) { onMoveForward: onMoveForward(index), onRemove: onRemoveImage(index), onSelect: onSelectImage(index), + onDeselect: onDeselectImage(index), setAttributes: function setAttributes(attrs) { return onSetImageAttributes(index, attrs); }, caption: img.caption, "aria-label": ariaLabel })); - })), mediaPlaceholder, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + })), mediaPlaceholder, Object(external_this_wp_element_["createElement"])(RichTextVisibilityHelper, { + isHidden: !isSelected && external_this_wp_blockEditor_["RichText"].isEmpty(caption), tagName: "figcaption", - className: captionClassNames, + className: "blocks-gallery-caption", placeholder: Object(external_this_wp_i18n_["__"])('Write gallery caption…'), value: caption, unstableOnFocus: onFocusGalleryCaption, @@ -7798,9 +7812,22 @@ var gallery_Gallery = function Gallery(props) { caption: value }); }, - inlineToolbar: true + inlineToolbar: true, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } })); }; + +function RichTextVisibilityHelper(_ref) { + var isHidden = _ref.isHidden, + richTextProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["isHidden"]); + + return isHidden ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], Object(esm_extends["a" /* default */])({ + as: external_this_wp_blockEditor_["RichText"] + }, richTextProps)) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], richTextProps); +} + /* harmony default export */ var gallery_gallery = (gallery_Gallery); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js @@ -7819,6 +7846,10 @@ function gallery_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(o function gallery_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { gallery_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { gallery_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -7857,35 +7888,28 @@ var edit_ALLOWED_MEDIA_TYPES = ['image']; var PLACEHOLDER_TEXT = external_this_wp_element_["Platform"].select({ web: Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.'), native: Object(external_this_wp_i18n_["__"])('ADD MEDIA') -}); // currently this is needed for consistent controls UI on mobile -// this can be removed after control components settle on consistent defaults - -var MOBILE_CONTROL_PROPS = external_this_wp_element_["Platform"].select({ - web: {}, - native: { - separatorType: 'fullWidth' - } }); -var MOBILE_CONTROL_PROPS_SEPARATOR_NONE = external_this_wp_element_["Platform"].select({ +var MOBILE_CONTROL_PROPS_RANGE_CONTROL = external_this_wp_element_["Platform"].select({ web: {}, native: { - separatorType: 'none' + type: 'stepper' } }); -var edit_GalleryEdit = -/*#__PURE__*/ -function (_Component) { +var edit_GalleryEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(GalleryEdit, _Component); + var _super = edit_createSuper(GalleryEdit); + function GalleryEdit() { var _this; Object(classCallCheck["a" /* default */])(this, GalleryEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onDeselectImage = _this.onDeselectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -7915,7 +7939,12 @@ function (_Component) { if (attributes.images) { attributes = gallery_edit_objectSpread({}, attributes, { - ids: Object(external_this_lodash_["map"])(attributes.images, 'id') + // Unlike images[ n ].id which is a string, always ensure the + // ids array contains numbers as per its attribute type. + ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref) { + var id = _ref.id; + return parseInt(id, 10); + }) }); } @@ -7934,6 +7963,19 @@ function (_Component) { } }; } + }, { + key: "onDeselectImage", + value: function onDeselectImage(index) { + var _this3 = this; + + return function () { + if (_this3.state.selectedImage === index) { + _this3.setState({ + selectedImage: null + }); + } + }; + } }, { key: "onMove", value: function onMove(oldIndex, newIndex) { @@ -7951,45 +7993,45 @@ function (_Component) { }, { key: "onMoveForward", value: function onMoveForward(oldIndex) { - var _this3 = this; + var _this4 = this; return function () { - if (oldIndex === _this3.props.attributes.images.length - 1) { + if (oldIndex === _this4.props.attributes.images.length - 1) { return; } - _this3.onMove(oldIndex, oldIndex + 1); + _this4.onMove(oldIndex, oldIndex + 1); }; } }, { key: "onMoveBackward", value: function onMoveBackward(oldIndex) { - var _this4 = this; + var _this5 = this; return function () { if (oldIndex === 0) { return; } - _this4.onMove(oldIndex, oldIndex - 1); + _this5.onMove(oldIndex, oldIndex - 1); }; } }, { key: "onRemoveImage", value: function onRemoveImage(index) { - var _this5 = this; + var _this6 = this; return function () { - var images = Object(external_this_lodash_["filter"])(_this5.props.attributes.images, function (img, i) { + var images = Object(external_this_lodash_["filter"])(_this6.props.attributes.images, function (img, i) { return index !== i; }); - var columns = _this5.props.attributes.columns; + var columns = _this6.props.attributes.columns; - _this5.setState({ + _this6.setState({ selectedImage: null }); - _this5.setAttributes({ + _this6.setAttributes({ images: images, columns: columns ? Math.min(images.length, columns) : columns }); @@ -7998,8 +8040,12 @@ function (_Component) { }, { key: "selectCaption", value: function selectCaption(newImage, images, attachmentCaptions) { + // The image id in both the images and attachmentCaptions arrays is a + // string, so ensure comparison works correctly by converting the + // newImage.id to a string. + var newImageId = Object(external_this_lodash_["toString"])(newImage.id); var currentImage = Object(external_this_lodash_["find"])(images, { - id: newImage.id + id: newImageId }); var currentImageCaption = currentImage ? currentImage.caption : newImage.caption; @@ -8008,7 +8054,7 @@ function (_Component) { } var attachment = Object(external_this_lodash_["find"])(attachmentCaptions, { - id: newImage.id + id: newImageId }); // if the attachment caption is updated if (attachment && attachment.caption !== newImage.caption) { @@ -8020,7 +8066,7 @@ function (_Component) { }, { key: "onSelectImages", value: function onSelectImages(newImages) { - var _this6 = this; + var _this7 = this; var _this$props$attribute = this.props.attributes, columns = _this$props$attribute.columns, @@ -8030,7 +8076,9 @@ function (_Component) { this.setState({ attachmentCaptions: newImages.map(function (newImage) { return { - id: newImage.id, + // Store the attachmentCaption id as a string for consistency + // with the type of the id in the images attribute. + id: Object(external_this_lodash_["toString"])(newImage.id), caption: newImage.caption }; }) @@ -8038,7 +8086,11 @@ function (_Component) { this.setAttributes({ images: newImages.map(function (newImage) { return gallery_edit_objectSpread({}, shared_pickRelevantMediaFiles(newImage, sizeSlug), { - caption: _this6.selectCaption(newImage, images, attachmentCaptions) + caption: _this7.selectCaption(newImage, images, attachmentCaptions), + // The id value is stored in a data attribute, so when the + // block is parsed it's converted to a string. Converting + // to a string here ensures it's type is consistent. + id: Object(external_this_lodash_["toString"])(newImage.id) }); }), columns: columns ? Math.min(newImages.length, columns) : columns @@ -8104,14 +8156,14 @@ function (_Component) { var _this$props = this.props, imageSizes = _this$props.imageSizes, resizedImages = _this$props.resizedImages; - return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref) { - var slug = _ref.slug; + return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref2) { + var slug = _ref2.slug; return Object(external_this_lodash_["some"])(resizedImages, function (sizes) { return sizes[slug]; }); - }), function (_ref2) { - var name = _ref2.name, - slug = _ref2.slug; + }), function (_ref3) { + var name = _ref3.name, + slug = _ref3.slug; return { value: slug, label: name @@ -8147,16 +8199,16 @@ function (_Component) { mediaUpload = _this$props3.mediaUpload; var images = attributes.images; - if (external_this_wp_element_["Platform"].OS === 'web' && images && images.length > 0 && Object(external_this_lodash_["every"])(images, function (_ref3) { - var url = _ref3.url; + if (external_this_wp_element_["Platform"].OS === 'web' && images && images.length > 0 && Object(external_this_lodash_["every"])(images, function (_ref4) { + var url = _ref4.url; return Object(external_this_wp_blob_["isBlobURL"])(url); })) { - var filesList = Object(external_this_lodash_["map"])(images, function (_ref4) { - var url = _ref4.url; + var filesList = Object(external_this_lodash_["map"])(images, function (_ref5) { + var url = _ref5.url; return Object(external_this_wp_blob_["getBlobByURL"])(url); }); - Object(external_this_lodash_["forEach"])(images, function (_ref5) { - var url = _ref5.url; + Object(external_this_lodash_["forEach"])(images, function (_ref6) { + var url = _ref6.url; return Object(external_this_wp_blob_["revokeBlobURL"])(url); }); mediaUpload({ @@ -8184,7 +8236,8 @@ function (_Component) { attributes = _this$props4.attributes, className = _this$props4.className, isSelected = _this$props4.isSelected, - noticeUI = _this$props4.noticeUI; + noticeUI = _this$props4.noticeUI, + insertBlocksAfter = _this$props4.insertBlocksAfter; var _attributes$columns = attributes.columns, columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, imageCrop = attributes.imageCrop, @@ -8192,12 +8245,8 @@ function (_Component) { linkTo = attributes.linkTo, sizeSlug = attributes.sizeSlug; var hasImages = !!images.length; - var hasImagesWithId = hasImages && Object(external_this_lodash_["some"])(images, function (_ref6) { - var id = _ref6.id; - return id; - }); var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - addToGallery: hasImagesWithId, + addToGallery: hasImages, isAppender: hasImages, className: className, disableMediaButtons: hasImages && !isSelected, @@ -8210,7 +8259,7 @@ function (_Component) { accept: "image/*", allowedTypes: edit_ALLOWED_MEDIA_TYPES, multiple: true, - value: hasImagesWithId ? images : undefined, + value: images, onError: this.onUploadError, notices: hasImages ? undefined : noticeUI, onFocus: this.props.onFocus @@ -8221,46 +8270,43 @@ function (_Component) { } var imageSizeOptions = this.getImagesSizeOptions(); - var shouldShowSizeOptions = hasImages && !Object(external_this_lodash_["isEmpty"])(imageSizeOptions); // This is needed to fix a separator fence-post issue on mobile. - - var mobileLinkToProps = shouldShowSizeOptions ? MOBILE_CONTROL_PROPS : MOBILE_CONTROL_PROPS_SEPARATOR_NONE; + var shouldShowSizeOptions = hasImages && !Object(external_this_lodash_["isEmpty"])(imageSizeOptions); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Gallery settings') }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], Object(esm_extends["a" /* default */])({ - label: Object(external_this_wp_i18n_["__"])('Columns') - }, MOBILE_CONTROL_PROPS, { + label: Object(external_this_wp_i18n_["__"])('Columns'), value: columns, onChange: this.setColumnsNumber, min: 1, - max: Math.min(MAX_COLUMNS, images.length), + max: Math.min(MAX_COLUMNS, images.length) + }, MOBILE_CONTROL_PROPS_RANGE_CONTROL, { required: true - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], Object(esm_extends["a" /* default */])({ - label: Object(external_this_wp_i18n_["__"])('Crop images') - }, MOBILE_CONTROL_PROPS, { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Crop images'), checked: !!imageCrop, onChange: this.toggleImageCrop, help: this.getImageCropHelp - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], Object(esm_extends["a" /* default */])({ - label: Object(external_this_wp_i18n_["__"])('Link to') - }, mobileLinkToProps, { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link to'), value: linkTo, onChange: this.setLinkTo, options: linkOptions - })), shouldShowSizeOptions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], Object(esm_extends["a" /* default */])({ - label: Object(external_this_wp_i18n_["__"])('Images size') - }, MOBILE_CONTROL_PROPS_SEPARATOR_NONE, { + }), shouldShowSizeOptions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Image size'), value: sizeSlug, options: imageSizeOptions, onChange: this.updateImagesSize - })))), noticeUI, Object(external_this_wp_element_["createElement"])(gallery_gallery, Object(esm_extends["a" /* default */])({}, this.props, { + }))), noticeUI, Object(external_this_wp_element_["createElement"])(gallery_gallery, Object(esm_extends["a" /* default */])({}, this.props, { selectedImage: this.state.selectedImage, mediaPlaceholder: mediaPlaceholder, onMoveBackward: this.onMoveBackward, onMoveForward: this.onMoveForward, onRemoveImage: this.onRemoveImage, onSelectImage: this.onSelectImage, + onDeselectImage: this.onDeselectImage, onSetImageAttributes: this.setImageAttributes, - onFocusGalleryCaption: this.onFocusGalleryCaption + onFocusGalleryCaption: this.onFocusGalleryCaption, + insertBlocksAfter: insertBlocksAfter }))); } }]); @@ -8422,7 +8468,7 @@ var gallery_transforms_transforms = { alt = _ref2.alt, caption = _ref2.caption; return { - id: id, + id: Object(external_this_lodash_["toString"])(id), url: url, alt: alt, caption: caption @@ -8430,7 +8476,7 @@ var gallery_transforms_transforms = { }), ids: validImages.map(function (_ref3) { var id = _ref3.id; - return id; + return parseInt(id, 10); }), align: align, sizeSlug: sizeSlug @@ -8446,7 +8492,7 @@ var gallery_transforms_transforms = { var ids = _ref4.named.ids; return parseShortcodeIds(ids).map(function (id) { return { - id: id + id: Object(external_this_lodash_["toString"])(id) }; }); } @@ -8500,16 +8546,16 @@ var gallery_transforms_transforms = { transform: function transform(_ref8) { var images = _ref8.images, align = _ref8.align, - sizeSlug = _ref8.sizeSlug; + sizeSlug = _ref8.sizeSlug, + ids = _ref8.ids; if (images.length > 0) { - return images.map(function (_ref9) { - var id = _ref9.id, - url = _ref9.url, + return images.map(function (_ref9, index) { + var url = _ref9.url, alt = _ref9.alt, caption = _ref9.caption; return Object(external_this_wp_blocks_["createBlock"])('core/image', { - id: id, + id: ids[index], url: url, alt: alt, caption: caption, @@ -8541,7 +8587,7 @@ var gallery_transforms_transforms = { var gallery_metadata = { name: "core/gallery", - category: "common", + category: "media", attributes: { images: { type: "array", @@ -8550,27 +8596,32 @@ var gallery_metadata = { selector: ".blocks-gallery-item", query: { url: { + type: "string", source: "attribute", selector: "img", attribute: "src" }, fullUrl: { + type: "string", source: "attribute", selector: "img", attribute: "data-full-url" }, link: { + type: "string", source: "attribute", selector: "img", attribute: "data-link" }, alt: { + type: "string", source: "attribute", selector: "img", attribute: "alt", "default": "" }, id: { + type: "string", source: "attribute", selector: "img", attribute: "data-id" @@ -8611,6 +8662,9 @@ var gallery_metadata = { type: "string", "default": "large" } + }, + supports: { + align: true } }; @@ -8632,9 +8686,6 @@ var gallery_settings = { }] } }, - supports: { - align: true - }, transforms: gallery_transforms, edit: gallery_edit, save: gallery_save_save, @@ -8652,12 +8703,12 @@ var archive = Object(external_this_wp_element_["createElement"])(external_this_w viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z" + 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" })); /* harmony default export */ var library_archive = (archive); // EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(67); +var external_this_wp_serverSideRender_ = __webpack_require__(74); var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js @@ -8709,17 +8760,39 @@ function ArchivesEdit(_ref) { * Internal dependencies */ +var archives_metadata = { + name: "core/archives", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + displayAsDropdown: { + type: "boolean", + "default": false + }, + showPostCounts: { + type: "boolean", + "default": false + } + }, + supports: { + align: true, + html: false + } +}; + +var archives_name = archives_metadata.name; -var archives_name = 'core/archives'; var archives_settings = { title: Object(external_this_wp_i18n_["__"])('Archives'), description: Object(external_this_wp_i18n_["__"])('Display a monthly archive of your posts.'), icon: library_archive, - category: 'widgets', - supports: { - align: true, - html: false - }, + example: {}, edit: ArchivesEdit }; @@ -8734,7 +8807,7 @@ var audio = Object(external_this_wp_element_["createElement"])(external_this_wp_ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z" + d: "M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z" })); /* harmony default export */ var library_audio = (audio); @@ -8808,12 +8881,6 @@ var audio = Object(external_this_wp_element_["createElement"])(external_this_wp_ - - - - - - /** * WordPress dependencies */ @@ -8832,235 +8899,191 @@ var audio = Object(external_this_wp_element_["createElement"])(external_this_wp_ var audio_edit_ALLOWED_MEDIA_TYPES = ['audio']; -var edit_AudioEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(AudioEdit, _Component); +function AudioEdit(_ref) { + var attributes = _ref.attributes, + noticeOperations = _ref.noticeOperations, + setAttributes = _ref.setAttributes, + onReplace = _ref.onReplace, + isSelected = _ref.isSelected, + noticeUI = _ref.noticeUI, + insertBlocksAfter = _ref.insertBlocksAfter; + var id = attributes.id, + autoplay = attributes.autoplay, + caption = attributes.caption, + loop = attributes.loop, + preload = attributes.preload, + src = attributes.src; + var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; - function AudioEdit() { - var _this; + return getSettings().mediaUpload; + }, []); + Object(external_this_wp_element_["useEffect"])(function () { + if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - Object(classCallCheck["a" /* default */])(this, AudioEdit); + if (file) { + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + _ref3$ = _ref3[0], + mediaId = _ref3$.id, + url = _ref3$.url; - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AudioEdit).apply(this, arguments)); - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; + setAttributes({ + id: mediaId, + src: url + }); + }, + onError: function onError(e) { + setAttributes({ + src: undefined, + id: undefined + }); + noticeOperations.createErrorNotice(e); + }, + allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES + }); + } + } + }, []); + + function toggleAttribute(attribute) { + return function (newValue) { + setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); + }; } - Object(createClass["a" /* default */])(AudioEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var id = attributes.id, - _attributes$src = attributes.src, - src = _attributes$src === void 0 ? '' : _attributes$src; - - if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - - if (file) { - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - _ref2$ = _ref2[0], - mediaId = _ref2$.id, - url = _ref2$.url; - - setAttributes({ - id: mediaId, - src: url - }); - }, - onError: function onError(e) { - setAttributes({ - src: undefined, - id: undefined - }); - noticeOperations.createErrorNotice(e); - }, - allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES - }); + function onSelectURL(newSrc) { + // Set the block's src from the edit component's state, and switch off + // the editing UI. + if (newSrc !== src) { + // Check if there's an embed block that handles this URL. + var embedBlock = util_createUpgradedEmbedBlock({ + attributes: { + url: newSrc } - } - } - }, { - key: "toggleAttribute", - value: function toggleAttribute(attribute) { - var _this2 = this; + }); - return function (newValue) { - _this2.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); - }; - } - }, { - key: "onSelectURL", - value: function onSelectURL(newSrc) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var src = attributes.src; // Set the block's src from the edit component's state, and switch off - // the editing UI. - - if (newSrc !== src) { - // Check if there's an embed block that handles this URL. - var embedBlock = util_createUpgradedEmbedBlock({ - attributes: { - url: newSrc - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - return; - } - - setAttributes({ - src: newSrc, - id: undefined - }); - } - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "getAutoplayHelp", - value: function getAutoplayHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying audio may cause usability issues for some visitors.') : null; - } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - id = _this$props$attribute.id, - autoplay = _this$props$attribute.autoplay, - caption = _this$props$attribute.caption, - loop = _this$props$attribute.loop, - preload = _this$props$attribute.preload, - src = _this$props$attribute.src; - var _this$props3 = this.props, - setAttributes = _this$props3.setAttributes, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - noticeUI = _this$props3.noticeUI; - - var onSelectAudio = function onSelectAudio(media) { - if (!media || !media.url) { - // in this case there was an error and we should continue in the editing state - // previous attributes should be removed because they may be temporary blob urls - setAttributes({ - src: undefined, - id: undefined - }); - return; - } // sets the block's attribute and updates the edit component from the - // selected media, then switches off the editing UI - - - setAttributes({ - src: media.url, - id: media.id - }); - }; - - if (!src) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: library_audio - }), - className: className, - onSelect: onSelectAudio, - onSelectURL: this.onSelectURL, - accept: "audio/*", - allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES, - value: this.props.attributes, - notices: noticeUI, - onError: this.onUploadError - }); + if (undefined !== embedBlock) { + onReplace(embedBlock); + return; } - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { - mediaId: id, - mediaURL: src, - allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES, - accept: "audio/*", - onSelect: onSelectAudio, - onSelectURL: this.onSelectURL, - onError: this.onUploadError - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Audio settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Autoplay'), - onChange: this.toggleAttribute('autoplay'), - checked: autoplay, - help: this.getAutoplayHelp - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Loop'), - onChange: this.toggleAttribute('loop'), - checked: loop - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Preload'), - value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset. - , - onChange: function onChange(value) { - return setAttributes({ - preload: 'none' !== value ? value : undefined - }); - }, - options: [{ - value: 'auto', - label: Object(external_this_wp_i18n_["__"])('Auto') - }, { - value: 'metadata', - label: Object(external_this_wp_i18n_["__"])('Metadata') - }, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') - }] - }))), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { - controls: "controls", - src: src - })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true - }))); + setAttributes({ + src: newSrc, + id: undefined + }); } - }]); + } - return AudioEdit; -}(external_this_wp_element_["Component"]); + function onUploadError(message) { + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } -/* harmony default export */ var audio_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; + function getAutoplayHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying audio may cause usability issues for some visitors.') : null; + } // const { setAttributes, isSelected, noticeUI } = this.props; - var _getSettings = getSettings(), - mediaUpload = _getSettings.mediaUpload; - return { - mediaUpload: mediaUpload - }; -}), external_this_wp_components_["withNotices"]])(edit_AudioEdit)); + function onSelectAudio(media) { + if (!media || !media.url) { + // in this case there was an error and we should continue in the editing state + // previous attributes should be removed because they may be temporary blob urls + setAttributes({ + src: undefined, + id: undefined + }); + return; + } // sets the block's attribute and updates the edit component from the + // selected media, then switches off the editing UI + + + setAttributes({ + src: media.url, + id: media.id + }); + } + + if (!src) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: library_audio + }), + onSelect: onSelectAudio, + onSelectURL: onSelectURL, + accept: "audio/*", + allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES, + value: attributes, + notices: noticeUI, + onError: onUploadError + })); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + mediaId: id, + mediaURL: src, + allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES, + accept: "audio/*", + onSelect: onSelectAudio, + onSelectURL: onSelectURL, + onError: onUploadError + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Audio settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Autoplay'), + onChange: toggleAttribute('autoplay'), + checked: autoplay, + help: getAutoplayHelp + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Loop'), + onChange: toggleAttribute('loop'), + checked: loop + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Preload'), + value: preload || '' // `undefined` is required for the preload attribute to be unset. + , + onChange: function onChange(value) { + return setAttributes({ + preload: value || undefined + }); + }, + options: [{ + value: '', + label: Object(external_this_wp_i18n_["__"])('Browser default') + }, { + value: 'auto', + label: Object(external_this_wp_i18n_["__"])('Auto') + }, { + value: 'metadata', + label: Object(external_this_wp_i18n_["__"])('Metadata') + }, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') + }] + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { + controls: "controls", + src: src + })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } + }))); +} + +/* harmony default export */ var audio_edit = (Object(external_this_wp_components_["withNotices"])(AudioEdit)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/save.js @@ -9161,7 +9184,7 @@ var audio_transforms_transforms = { var audio_metadata = { name: "core/audio", - category: "common", + category: "media", attributes: { src: { type: "string", @@ -9195,6 +9218,10 @@ var audio_metadata = { selector: "audio", attribute: "preload" } + }, + supports: { + align: true, + lightBlockWrapper: true } }; @@ -9208,9 +9235,6 @@ var audio_settings = { icon: library_audio, transforms: audio_transforms, deprecated: audio_deprecated, - supports: { - align: true - }, edit: audio_edit, save: audio_save_save }; @@ -9226,7 +9250,7 @@ var button_button = Object(external_this_wp_element_["createElement"])(external_ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" + d: "M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z" })); /* harmony default export */ var library_button = (button_button); @@ -9239,12 +9263,16 @@ var button_button = Object(external_this_wp_element_["createElement"])(external_ * Internal dependencies */ -var buttons_transforms_name$category$attrib = { +var _name$category$suppor = { name: "core/buttons", - category: "layout", - attributes: {} + category: "design", + supports: { + align: true, + alignWide: false, + lightBlockWrapper: true + } }, - buttons_transforms_name = buttons_transforms_name$category$attrib.name; + buttons_transforms_name = _name$category$suppor.name; var buttons_transforms_transforms = { from: [{ type: 'block', @@ -9283,11 +9311,37 @@ function button_deprecated_objectSpread(target) { for (var i = 1; i < arguments. -var deprecated_colorsMigration = function colorsMigration(attributes) { - return Object(external_this_lodash_["omit"])(button_deprecated_objectSpread({}, attributes, { +var deprecated_migrateCustomColorsAndGradients = function migrateCustomColorsAndGradients(attributes) { + if (!attributes.customTextColor && !attributes.customBackgroundColor && !attributes.customGradient) { + return attributes; + } + + var style = { + color: {} + }; + + if (attributes.customTextColor) { + style.color.text = attributes.customTextColor; + } + + if (attributes.customBackgroundColor) { + style.color.background = attributes.customBackgroundColor; + } + + if (attributes.customGradient) { + style.color.gradient = attributes.customGradient; + } + + return button_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customGradient']), { + style: style + }); +}; + +var deprecated_oldColorsMigration = function oldColorsMigration(attributes) { + return deprecated_migrateCustomColorsAndGradients(Object(external_this_lodash_["omit"])(button_deprecated_objectSpread({}, attributes, { customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined - }), ['color', 'textColor']); + }), ['color', 'textColor'])); }; var button_deprecated_blockAttributes = { @@ -9310,6 +9364,162 @@ var button_deprecated_blockAttributes = { } }; var button_deprecated_deprecated = [{ + supports: { + align: true, + alignWide: false, + __experimentalColor: { + gradients: true + } + }, + attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + linkTarget: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'target' + }, + rel: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'rel' + }, + placeholder: { + type: 'string' + }, + borderRadius: { + type: 'number' + }, + backgroundColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + gradient: { + type: 'string' + }, + style: { + type: 'object' + } + }), + save: function save(_ref) { + var attributes = _ref.attributes; + var borderRadius = attributes.borderRadius, + linkTarget = attributes.linkTarget, + rel = attributes.rel, + text = attributes.text, + title = attributes.title, + url = attributes.url; + var buttonClasses = classnames_default()('wp-block-button__link', { + 'no-border-radius': borderRadius === 0 + }); + var buttonStyle = { + borderRadius: borderRadius ? borderRadius + 'px' : undefined + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: buttonClasses, + href: url, + title: title, + style: buttonStyle, + value: text, + target: linkTarget, + rel: rel + }); + } +}, { + supports: { + align: true, + alignWide: false + }, + attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { + linkTarget: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'target' + }, + rel: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'rel' + }, + placeholder: { + type: 'string' + }, + borderRadius: { + type: 'number' + }, + backgroundColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + }, + customGradient: { + type: 'string' + }, + gradient: { + type: 'string' + } + }), + isEligible: function isEligible(attributes) { + return !!attributes.customTextColor || !!attributes.customBackgroundColor || !!attributes.customGradient; + }, + migrate: deprecated_migrateCustomColorsAndGradients, + save: function save(_ref2) { + var _classnames; + + var attributes = _ref2.attributes; + var backgroundColor = attributes.backgroundColor, + borderRadius = attributes.borderRadius, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + customGradient = attributes.customGradient, + linkTarget = attributes.linkTarget, + gradient = attributes.gradient, + rel = attributes.rel, + text = attributes.text, + textColor = attributes.textColor, + title = attributes.title, + url = attributes.url; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = !customGradient && Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + + var gradientClass = Object(external_this_wp_blockEditor_["__experimentalGetGradientClass"])(gradient); + + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { + 'has-text-color': textColor || customTextColor + }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor || customGradient || gradient), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), Object(defineProperty["a" /* default */])(_classnames, gradientClass, gradientClass), _classnames)); + var buttonStyle = { + background: customGradient ? customGradient : undefined, + backgroundColor: backgroundClass || customGradient || gradient ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + borderRadius: borderRadius ? borderRadius + 'px' : undefined + }; // The use of a `title` attribute here is soft-deprecated, but still applied + // if it had already been assigned, for the sake of backward-compatibility. + // A title will no longer be assigned for new or updated button block links. + + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: buttonClasses, + href: url, + title: title, + style: buttonStyle, + value: text, + target: linkTarget, + rel: rel + })); + } +}, { attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { align: { type: 'string', @@ -9353,15 +9563,15 @@ var button_deprecated_deprecated = [{ newClassName = newClassName.replace(/is-style-squared[\s]?/, '').trim(); } - return button_deprecated_objectSpread({}, attributes, { + return deprecated_migrateCustomColorsAndGradients(button_deprecated_objectSpread({}, attributes, { className: newClassName ? newClassName : undefined, borderRadius: 0 - }); + })); }, - save: function save(_ref) { - var _classnames; + save: function save(_ref3) { + var _classnames2; - var attributes = _ref.attributes; + var attributes = _ref3.attributes; var backgroundColor = attributes.backgroundColor, customBackgroundColor = attributes.customBackgroundColor, customTextColor = attributes.customTextColor, @@ -9373,9 +9583,9 @@ var button_deprecated_deprecated = [{ url = attributes.url; var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames2 = { 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + }, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); var buttonStyle = { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor @@ -9410,10 +9620,11 @@ var button_deprecated_deprecated = [{ type: 'string' } }), - save: function save(_ref2) { - var _classnames2; + migrate: deprecated_oldColorsMigration, + save: function save(_ref4) { + var _classnames3; - var attributes = _ref2.attributes; + var attributes = _ref4.attributes; var url = attributes.url, text = attributes.text, title = attributes.title, @@ -9423,9 +9634,9 @@ var button_deprecated_deprecated = [{ customTextColor = attributes.customTextColor; var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames2 = { + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames3 = { 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); + }, Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), _classnames3)); var buttonStyle = { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor @@ -9438,8 +9649,7 @@ var button_deprecated_deprecated = [{ style: buttonStyle, value: text })); - }, - migrate: deprecated_colorsMigration + } }, { attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { color: { @@ -9453,8 +9663,8 @@ var button_deprecated_deprecated = [{ default: 'none' } }), - save: function save(_ref3) { - var attributes = _ref3.attributes; + save: function save(_ref5) { + var attributes = _ref5.attributes; var url = attributes.url, text = attributes.text, title = attributes.title, @@ -9477,7 +9687,7 @@ var button_deprecated_deprecated = [{ value: text })); }, - migrate: deprecated_colorsMigration + migrate: deprecated_oldColorsMigration }, { attributes: button_deprecated_objectSpread({}, button_deprecated_blockAttributes, { color: { @@ -9491,8 +9701,8 @@ var button_deprecated_deprecated = [{ default: 'none' } }), - save: function save(_ref4) { - var attributes = _ref4.attributes; + save: function save(_ref6) { + var attributes = _ref6.attributes; var url = attributes.url, text = attributes.text, title = attributes.title, @@ -9514,12 +9724,271 @@ var button_deprecated_deprecated = [{ value: text })); }, - migrate: deprecated_colorsMigration + migrate: deprecated_oldColorsMigration }]; /* harmony default export */ var button_deprecated = (button_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(159); +var library_link = __webpack_require__(170); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/color-edit.js + + + + +function color_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function color_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { color_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { color_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var isWebPlatform = external_this_wp_element_["Platform"].OS === 'web'; // The code in this file is copied entirely from the "color" and "style" support flags +// The flag can't be used at the moment because of the extra wrapper around +// the button block markup. + +function getBlockDOMNode(clientId) { + return document.getElementById('block-' + clientId); +} +/** + * Removed undefined values from nested object. + * + * @param {*} object + * @return {*} Object cleaned from undefined values + */ + + +var color_edit_cleanEmptyObject = function cleanEmptyObject(object) { + if (!Object(external_this_lodash_["isObject"])(object)) { + return object; + } + + var cleanedNestedObjects = Object(external_this_lodash_["pickBy"])(Object(external_this_lodash_["mapValues"])(object, cleanEmptyObject), external_this_lodash_["identity"]); + return Object(external_this_lodash_["isEqual"])(cleanedNestedObjects, {}) ? undefined : cleanedNestedObjects; +}; + +function ColorPanel(_ref) { + var settings = _ref.settings, + clientId = _ref.clientId, + _ref$enableContrastCh = _ref.enableContrastChecking, + enableContrastChecking = _ref$enableContrastCh === void 0 ? true : _ref$enableContrastCh; + var _window = window, + getComputedStyle = _window.getComputedStyle, + Node = _window.Node; + + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + detectedBackgroundColor = _useState2[0], + setDetectedBackgroundColor = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + detectedColor = _useState4[0], + setDetectedColor = _useState4[1]; + + var title = isWebPlatform ? Object(external_this_wp_i18n_["__"])('Color settings') : Object(external_this_wp_i18n_["__"])('Color Settings'); + Object(external_this_wp_element_["useEffect"])(function () { + if (isWebPlatform && !enableContrastChecking) { + return; + } + + var colorsDetectionElement = getBlockDOMNode(clientId); + + if (!colorsDetectionElement) { + return; + } + + setDetectedColor(getComputedStyle(colorsDetectionElement).color); + var backgroundColorNode = colorsDetectionElement; + var backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; + + while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === Node.ELEMENT_NODE) { + backgroundColorNode = backgroundColorNode.parentNode; + backgroundColor = getComputedStyle(backgroundColorNode).backgroundColor; + } + + setDetectedBackgroundColor(backgroundColor); + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalPanelColorGradientSettings"], { + title: title, + initialOpen: false, + settings: settings + }, isWebPlatform && enableContrastChecking && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], { + backgroundColor: detectedBackgroundColor, + textColor: detectedColor + }))); +} +/** + * Inspector control panel containing the color related configuration + * + * @param {Object} props + * + * @return {WPElement} Color edit element. + */ + + +function ColorEdit(props) { + var _style$color2, _style$color3, _style$color4; + + var attributes = props.attributes; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return select('core/block-editor').getSettings(); + }, []), + colors = _useSelect.colors, + gradients = _useSelect.gradients; // Shouldn't be needed but right now the ColorGradientsPanel + // can trigger both onChangeColor and onChangeBackground + // synchronously causing our two callbacks to override changes + // from each other. + + + var localAttributes = Object(external_this_wp_element_["useRef"])(attributes); + Object(external_this_wp_element_["useEffect"])(function () { + localAttributes.current = attributes; + }, [attributes]); + var style = attributes.style, + textColor = attributes.textColor, + backgroundColor = attributes.backgroundColor, + gradient = attributes.gradient; + var gradientValue; + + if (gradient) { + gradientValue = Object(external_this_wp_blockEditor_["getGradientValueBySlug"])(gradients, gradient); + } else { + var _style$color; + + gradientValue = style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.gradient; + } + + var onChangeColor = function onChangeColor(name) { + return function (value) { + var _localAttributes$curr, _localAttributes$curr2; + + var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByColorValue"])(colors, value); + var attributeName = name + 'Color'; + + var newStyle = color_edit_objectSpread({}, localAttributes.current.style, { + color: color_edit_objectSpread({}, (_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color, Object(defineProperty["a" /* default */])({}, name, (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? undefined : value)) + }); + + var newNamedColor = (colorObject === null || colorObject === void 0 ? void 0 : colorObject.slug) ? colorObject.slug : undefined; + + var newAttributes = Object(defineProperty["a" /* default */])({ + style: color_edit_cleanEmptyObject(newStyle) + }, attributeName, newNamedColor); + + props.setAttributes(newAttributes); + localAttributes.current = color_edit_objectSpread({}, localAttributes.current, {}, newAttributes); + }; + }; + + var onChangeGradient = function onChangeGradient(value) { + var slug = Object(external_this_wp_blockEditor_["getGradientSlugByValue"])(gradients, value); + var newAttributes; + + if (slug) { + var _localAttributes$curr3, _localAttributes$curr4, _localAttributes$curr5; + + var newStyle = color_edit_objectSpread({}, (_localAttributes$curr3 = localAttributes.current) === null || _localAttributes$curr3 === void 0 ? void 0 : _localAttributes$curr3.style, { + color: color_edit_objectSpread({}, (_localAttributes$curr4 = localAttributes.current) === null || _localAttributes$curr4 === void 0 ? void 0 : (_localAttributes$curr5 = _localAttributes$curr4.style) === null || _localAttributes$curr5 === void 0 ? void 0 : _localAttributes$curr5.color, { + gradient: undefined + }) + }); + + newAttributes = { + style: color_edit_cleanEmptyObject(newStyle), + gradient: slug + }; + } else { + var _localAttributes$curr6, _localAttributes$curr7, _localAttributes$curr8; + + var _newStyle = color_edit_objectSpread({}, (_localAttributes$curr6 = localAttributes.current) === null || _localAttributes$curr6 === void 0 ? void 0 : _localAttributes$curr6.style, { + color: color_edit_objectSpread({}, (_localAttributes$curr7 = localAttributes.current) === null || _localAttributes$curr7 === void 0 ? void 0 : (_localAttributes$curr8 = _localAttributes$curr7.style) === null || _localAttributes$curr8 === void 0 ? void 0 : _localAttributes$curr8.color, { + gradient: value + }) + }); + + newAttributes = { + style: color_edit_cleanEmptyObject(_newStyle), + gradient: undefined + }; + } + + props.setAttributes(newAttributes); + localAttributes.current = color_edit_objectSpread({}, localAttributes.current, {}, newAttributes); + }; + + return Object(external_this_wp_element_["createElement"])(ColorPanel, { + enableContrastChecking: !gradient && !(style === null || style === void 0 ? void 0 : (_style$color2 = style.color) === null || _style$color2 === void 0 ? void 0 : _style$color2.gradient), + clientId: props.clientId, + settings: [{ + label: Object(external_this_wp_i18n_["__"])('Text Color'), + onColorChange: onChangeColor('text'), + colorValue: Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, textColor, style === null || style === void 0 ? void 0 : (_style$color3 = style.color) === null || _style$color3 === void 0 ? void 0 : _style$color3.text).color + }, { + label: Object(external_this_wp_i18n_["__"])('Background Color'), + onColorChange: onChangeColor('background'), + colorValue: Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, backgroundColor, style === null || style === void 0 ? void 0 : (_style$color4 = style.color) === null || _style$color4 === void 0 ? void 0 : _style$color4.background).color, + gradientValue: gradientValue, + onGradientChange: onChangeGradient + }] + }); +} + +/* harmony default export */ var color_edit = (ColorEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/color-props.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + // The code in this file is copied entirely from the "color" and "style" support flags +// The flag can't be used at the moment because of the extra wrapper around +// the button block markup. + +function getColorAndStyleProps(attributes) { + var _style$color, _style$color2, _style$color3, _style$color4, _classnames, _style$color5, _style$color6, _style$color7, _style$color8, _style$color9, _style$color10; + + // I'd have prefered to avoid the "style" attribute usage here + var backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + gradient = attributes.gradient, + style = attributes.style; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + + var gradientClass = Object(external_this_wp_blockEditor_["__experimentalGetGradientClass"])(gradient); + + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var className = classnames_default()(textClass, gradientClass, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, !(style === null || style === void 0 ? void 0 : (_style$color = style.color) === null || _style$color === void 0 ? void 0 : _style$color.gradient) && !!backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || (style === null || style === void 0 ? void 0 : (_style$color2 = style.color) === null || _style$color2 === void 0 ? void 0 : _style$color2.text)), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || (style === null || style === void 0 ? void 0 : (_style$color3 = style.color) === null || _style$color3 === void 0 ? void 0 : _style$color3.background) || gradient || (style === null || style === void 0 ? void 0 : (_style$color4 = style.color) === null || _style$color4 === void 0 ? void 0 : _style$color4.gradient)), _classnames)); + var styleProp = (style === null || style === void 0 ? void 0 : (_style$color5 = style.color) === null || _style$color5 === void 0 ? void 0 : _style$color5.background) || (style === null || style === void 0 ? void 0 : (_style$color6 = style.color) === null || _style$color6 === void 0 ? void 0 : _style$color6.text) || (style === null || style === void 0 ? void 0 : (_style$color7 = style.color) === null || _style$color7 === void 0 ? void 0 : _style$color7.gradient) ? { + background: (style === null || style === void 0 ? void 0 : (_style$color8 = style.color) === null || _style$color8 === void 0 ? void 0 : _style$color8.gradient) ? style.color.gradient : undefined, + backgroundColor: (style === null || style === void 0 ? void 0 : (_style$color9 = style.color) === null || _style$color9 === void 0 ? void 0 : _style$color9.background) ? style.color.background : undefined, + color: (style === null || style === void 0 ? void 0 : (_style$color10 = style.color) === null || _style$color10 === void 0 ? void 0 : _style$color10.text) ? style.color.text : undefined + } : {}; + return { + className: !!className ? className : undefined, + style: styleProp + }; +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js @@ -9545,20 +10014,12 @@ function button_edit_objectSpread(target) { for (var i = 1; i < arguments.length -var edit_window = window, - edit_getComputedStyle = edit_window.getComputedStyle; -var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { - var textColor = ownProps.textColor, - backgroundColor = ownProps.backgroundColor; - var backgroundColorValue = backgroundColor && backgroundColor.color; - var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available. +/** + * Internal dependencies + */ + + - var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null; - return { - fallbackBackgroundColor: backgroundColorValue || !node ? undefined : edit_getComputedStyle(node).backgroundColor, - fallbackTextColor: textColorValue || !textNode ? undefined : edit_getComputedStyle(textNode).color - }; -}); var edit_NEW_TAB_REL = 'noreferrer noopener'; var MIN_BORDER_RADIUS_VALUE = 0; var MAX_BORDER_RADIUS_VALUE = 50; @@ -9599,7 +10060,9 @@ function URLPicker(_ref2) { setIsURLPickerOpen = _useState2[1]; var openLinkControl = function openLinkControl() { - setIsURLPickerOpen(true); + setIsURLPickerOpen(true); // prevents default behaviour for event + + return false; }; var linkControl = isURLPickerOpen && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { @@ -9638,19 +10101,13 @@ function URLPicker(_ref2) { }), linkControl); } -function ButtonEdit(_ref5) { - var _classnames; - - var attributes = _ref5.attributes, - backgroundColor = _ref5.backgroundColor, - textColor = _ref5.textColor, - setBackgroundColor = _ref5.setBackgroundColor, - setTextColor = _ref5.setTextColor, - fallbackBackgroundColor = _ref5.fallbackBackgroundColor, - fallbackTextColor = _ref5.fallbackTextColor, - setAttributes = _ref5.setAttributes, - className = _ref5.className, - isSelected = _ref5.isSelected; +function ButtonEdit(props) { + var attributes = props.attributes, + setAttributes = props.setAttributes, + className = props.className, + isSelected = props.isSelected, + onReplace = props.onReplace, + mergeBlocks = props.mergeBlocks; var borderRadius = attributes.borderRadius, linkTarget = attributes.linkTarget, placeholder = attributes.placeholder, @@ -9677,15 +10134,8 @@ function ButtonEdit(_ref5) { rel: updatedRel }); }, [rel, setAttributes]); - - var _experimentalUseGrad = Object(external_this_wp_blockEditor_["__experimentalUseGradient"])(), - gradientClass = _experimentalUseGrad.gradientClass, - gradientValue = _experimentalUseGrad.gradientValue, - setGradient = _experimentalUseGrad.setGradient; - - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + var colorProps = getColorAndStyleProps(attributes); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(color_edit, props), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Add text…'), value: text, onChange: function onChange(value) { @@ -9694,45 +10144,27 @@ function ButtonEdit(_ref5) { }); }, withoutInteractiveFormatting: true, - className: classnames_default()('wp-block-button__link', (_classnames = { - 'has-background': backgroundColor.color || gradientValue - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, !gradientValue && backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, gradientClass, gradientClass), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), _classnames)), - style: button_edit_objectSpread({}, !backgroundColor.color && gradientValue ? { - background: gradientValue - } : { - backgroundColor: backgroundColor.color - }, { - color: textColor.color, + className: classnames_default()(className, 'wp-block-button__link', colorProps.className, { + 'no-border-radius': borderRadius === 0 + }), + style: button_edit_objectSpread({ borderRadius: borderRadius ? borderRadius + 'px' : undefined - }) - }), Object(external_this_wp_element_["createElement"])(URLPicker, { + }, colorProps.style), + onSplit: function onSplit(value) { + return Object(external_this_wp_blocks_["createBlock"])('core/button', button_edit_objectSpread({}, attributes, { + text: value + })); + }, + onReplace: onReplace, + onMerge: mergeBlocks, + identifier: "text" + })), Object(external_this_wp_element_["createElement"])(URLPicker, { url: url, setAttributes: setAttributes, isSelected: isSelected, opensInNewTab: linkTarget === '_blank', onToggleOpenInNewTab: onToggleOpenInNewTab - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalPanelColorGradientSettings"], { - title: Object(external_this_wp_i18n_["__"])('Background & Text Color'), - settings: [{ - colorValue: textColor.color, - onColorChange: setTextColor, - label: Object(external_this_wp_i18n_["__"])('Text color') - }, { - colorValue: backgroundColor.color, - onColorChange: setBackgroundColor, - gradientValue: gradientValue, - onGradientChange: setGradient, - label: Object(external_this_wp_i18n_["__"])('Background') - }] - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], { - // Text is considered large if font size is greater or equal to 18pt or 24px, - // currently that's not the case for button. - isLargeText: false, - textColor: textColor.color, - backgroundColor: backgroundColor.color, - fallbackBackgroundColor: fallbackBackgroundColor, - fallbackTextColor: fallbackTextColor - })), Object(external_this_wp_element_["createElement"])(BorderPanel, { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(BorderPanel, { borderRadius: borderRadius, setAttributes: setAttributes }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { @@ -9748,14 +10180,16 @@ function ButtonEdit(_ref5) { })))); } -/* harmony default export */ var button_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { - textColor: 'color' -}), applyFallbackStyles])(ButtonEdit)); +/* harmony default export */ var button_edit = (ButtonEdit); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/save.js +function save_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function save_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { save_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { save_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /** * External dependencies */ @@ -9765,39 +10199,31 @@ function ButtonEdit(_ref5) { */ -function button_save_save(_ref) { - var _classnames; +/** + * Internal dependencies + */ + +function button_save_save(_ref) { var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - borderRadius = attributes.borderRadius, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - customGradient = attributes.customGradient, + var borderRadius = attributes.borderRadius, linkTarget = attributes.linkTarget, - gradient = attributes.gradient, rel = attributes.rel, text = attributes.text, - textColor = attributes.textColor, title = attributes.title, url = attributes.url; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = !customGradient && Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var colorProps = getColorAndStyleProps(attributes); + var buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, { + 'no-border-radius': borderRadius === 0 + }); - var gradientClass = Object(external_this_wp_blockEditor_["__experimentalGetGradientClass"])(gradient); - - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { - 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor || customGradient || gradient), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), Object(defineProperty["a" /* default */])(_classnames, gradientClass, gradientClass), _classnames)); - var buttonStyle = { - background: customGradient ? customGradient : undefined, - backgroundColor: backgroundClass || customGradient || gradient ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, + var buttonStyle = save_objectSpread({ borderRadius: borderRadius ? borderRadius + 'px' : undefined - }; // The use of a `title` attribute here is soft-deprecated, but still applied + }, colorProps.style); // The use of a `title` attribute here is soft-deprecated, but still applied // if it had already been assigned, for the sake of backward-compatibility. // A title will no longer be assigned for new or updated button block links. + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { tagName: "a", className: buttonClasses, @@ -9811,6 +10237,12 @@ function button_save_save(_ref) { } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/index.js + + +function button_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function button_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { button_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { button_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /** * WordPress dependencies */ @@ -9824,7 +10256,8 @@ function button_save_save(_ref) { var button_metadata = { name: "core/button", - category: "layout", + category: "design", + parent: ["core/buttons"], attributes: { url: { type: "string", @@ -9843,18 +10276,6 @@ var button_metadata = { source: "html", selector: "a" }, - backgroundColor: { - type: "string" - }, - textColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - customTextColor: { - type: "string" - }, linkTarget: { type: "string", source: "attribute", @@ -9873,12 +10294,24 @@ var button_metadata = { borderRadius: { type: "number" }, - gradient: { + style: { + type: "object" + }, + backgroundColor: { type: "string" }, - customGradient: { + textColor: { + type: "string" + }, + gradient: { type: "string" } + }, + supports: { + align: true, + alignWide: false, + reusable: false, + lightBlockWrapper: true } }; @@ -9896,11 +10329,6 @@ var button_settings = { text: Object(external_this_wp_i18n_["__"])('Call to Action') } }, - supports: { - align: true, - alignWide: false - }, - parent: ['core/buttons'], styles: [{ name: 'fill', label: Object(external_this_wp_i18n_["__"])('Fill'), @@ -9911,7 +10339,14 @@ var button_settings = { }], edit: button_edit, save: button_save_save, - deprecated: button_deprecated + deprecated: button_deprecated, + merge: function merge(a, _ref) { + var _ref$text = _ref.text, + text = _ref$text === void 0 ? '' : _ref$text; + return button_objectSpread({}, a, { + text: (a.text || '') + text + }); + } }; // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/edit.js @@ -9927,25 +10362,18 @@ var button_settings = { var ALLOWED_BLOCKS = [button_name]; -var BUTTONS_TEMPLATE = [['core/button']]; -var UI_PARTS = { - hasSelectedUI: false -}; // Inside buttons block alignment options are not supported. +var BUTTONS_TEMPLATE = [['core/button']]; // Inside buttons block alignment options are not supported. var alignmentHooksSetting = { isEmbedButton: true }; -function ButtonsEdit(_ref) { - var className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalAlignmentHookSettingsProvider"], { +function ButtonsEdit() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalAlignmentHookSettingsProvider"], { value: alignmentHooksSetting }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { allowedBlocks: ALLOWED_BLOCKS, template: BUTTONS_TEMPLATE, - __experimentalUIParts: UI_PARTS, __experimentalMoverDirection: "horizontal" }))); } @@ -9977,8 +10405,12 @@ function buttons_save_save() { var buttons_metadata = { name: "core/buttons", - category: "layout", - attributes: {} + category: "design", + supports: { + align: true, + alignWide: false, + lightBlockWrapper: true + } }; var buttons_name = buttons_metadata.name; @@ -9988,10 +10420,6 @@ var buttons_settings = { description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a group of button-style links.'), icon: library_button, keywords: [Object(external_this_wp_i18n_["__"])('link')], - supports: { - align: true, - alignWide: false - }, transforms: buttons_transforms, edit: buttons_edit, save: buttons_save_save @@ -10008,12 +10436,12 @@ var calendar = Object(external_this_wp_element_["createElement"])(external_this_ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" + 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" })); /* harmony default export */ var library_calendar = (calendar); // EXTERNAL MODULE: external {"this":"moment"} -var external_this_moment_ = __webpack_require__(33); +var external_this_moment_ = __webpack_require__(43); var external_this_moment_default = /*#__PURE__*/__webpack_require__.n(external_this_moment_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js @@ -10030,6 +10458,10 @@ function calendar_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys( function calendar_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { calendar_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { calendar_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function calendar_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (calendar_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function calendar_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -10044,17 +10476,17 @@ function calendar_edit_objectSpread(target) { for (var i = 1; i < arguments.leng -var edit_CalendarEdit = -/*#__PURE__*/ -function (_Component) { +var edit_CalendarEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(CalendarEdit, _Component); + var _super = calendar_edit_createSuper(CalendarEdit); + function CalendarEdit() { var _this; Object(classCallCheck["a" /* default */])(this, CalendarEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CalendarEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.getYearMonth = memize_default()(_this.getYearMonth.bind(Object(assertThisInitialized["a" /* default */])(_this)), { maxSize: 1 }); @@ -10122,17 +10554,36 @@ function (_Component) { * Internal dependencies */ +var calendar_metadata = { + name: "core/calendar", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + month: { + type: "integer" + }, + year: { + type: "integer" + } + }, + supports: { + align: true + } +}; + +var calendar_name = calendar_metadata.name; -var calendar_name = 'core/calendar'; var calendar_settings = { title: Object(external_this_wp_i18n_["__"])('Calendar'), description: Object(external_this_wp_i18n_["__"])('A calendar of your site’s posts.'), icon: library_calendar, - category: 'widgets', keywords: [Object(external_this_wp_i18n_["__"])('posts'), Object(external_this_wp_i18n_["__"])('archive')], - supports: { - align: true - }, example: {}, edit: calendar_edit }; @@ -10148,14 +10599,25 @@ var category_category = Object(external_this_wp_element_["createElement"])(exter viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z" + 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" })); /* harmony default export */ var library_category = (category_category); +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pin.js + + +/** + * WordPress dependencies + */ + +var pin = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z" +})); +/* harmony default export */ var library_pin = (pin); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js @@ -10165,6 +10627,10 @@ var category_category = Object(external_this_wp_element_["createElement"])(exter +function categories_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (categories_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function categories_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -10180,17 +10646,18 @@ var category_category = Object(external_this_wp_element_["createElement"])(exter -var edit_CategoriesEdit = -/*#__PURE__*/ -function (_Component) { + +var edit_CategoriesEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(CategoriesEdit, _Component); + var _super = categories_edit_createSuper(CategoriesEdit); + function CategoriesEdit() { var _this; Object(classCallCheck["a" /* default */])(this, CategoriesEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CategoriesEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -10309,9 +10776,9 @@ function (_Component) { var parentId = showHierarchy ? 0 : null; var categories = this.getCategories(parentId); var selectId = "blocks-category-select-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: selectId, - className: "screen-reader-text" + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["VisuallyHidden"], { + as: "label", + htmlFor: selectId }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { id: selectId, className: "wp-block-categories__dropdown" @@ -10363,7 +10830,7 @@ function (_Component) { if (isRequesting) { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "admin-post", + icon: library_pin, label: Object(external_this_wp_i18n_["__"])('Categories') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); } @@ -10404,22 +10871,48 @@ function (_Component) { * Internal dependencies */ +var categories_metadata = { + name: "core/categories", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + displayAsDropdown: { + type: "boolean", + "default": false + }, + showHierarchy: { + type: "boolean", + "default": false + }, + showPostCounts: { + type: "boolean", + "default": false + } + }, + supports: { + align: true, + html: false + } +}; + +var categories_name = categories_metadata.name; -var categories_name = 'core/categories'; var categories_settings = { title: Object(external_this_wp_i18n_["__"])('Categories'), description: Object(external_this_wp_i18n_["__"])('Display a list of all categories.'), icon: library_category, - category: 'widgets', - supports: { - align: true, - html: false - }, + example: {}, edit: categories_edit }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js -var code = __webpack_require__(290); +var code = __webpack_require__(295); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js @@ -10435,11 +10928,10 @@ var code = __webpack_require__(290); function CodeEdit(_ref) { var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + setAttributes = _ref.setAttributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].pre, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + __experimentalVersion: 2, + tagName: "code", value: attributes.content, onChange: function onChange(content) { return setAttributes({ @@ -10452,7 +10944,7 @@ function CodeEdit(_ref) { } // EXTERNAL MODULE: external {"this":["wp","escapeHtml"]} -var external_this_wp_escapeHtml_ = __webpack_require__(68); +var external_this_wp_escapeHtml_ = __webpack_require__(79); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/utils.js /** @@ -10535,6 +11027,15 @@ var code_transforms_transforms = { transform: function transform() { return Object(external_this_wp_blocks_["createBlock"])('core/code'); } + }, { + type: 'block', + blocks: ['core/html'], + transform: function transform(_ref) { + var content = _ref.content; + return Object(external_this_wp_blocks_["createBlock"])('core/code', { + content: content + }); + } }, { type: 'raw', isMatch: function isMatch(node) { @@ -10568,13 +11069,17 @@ var code_transforms_transforms = { var code_metadata = { name: "core/code", - category: "formatting", + category: "text", attributes: { content: { type: "string", source: "text", selector: "code" } + }, + supports: { + html: false, + lightBlockWrapper: true } }; @@ -10587,13 +11092,13 @@ var code_settings = { icon: code["a" /* default */], example: { attributes: { + /* eslint-disable @wordpress/i18n-no-collapsible-whitespace */ // translators: Preserve \n markers for line breaks content: Object(external_this_wp_i18n_["__"])('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );') + /* eslint-enable @wordpress/i18n-no-collapsible-whitespace */ + } }, - supports: { - html: false - }, transforms: code_transforms, edit: CodeEdit, save: code_save_save @@ -10610,7 +11115,7 @@ var columns_columns = Object(external_this_wp_element_["createElement"])(externa viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z" + d: "M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z" })); /* harmony default export */ var library_columns = (columns_columns); @@ -10618,6 +11123,16 @@ var columns_columns = Object(external_this_wp_element_["createElement"])(externa +function columns_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function columns_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { columns_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { columns_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + /** * External dependencies */ @@ -10649,12 +11164,12 @@ function getDeprecatedLayoutColumn(originalContent) { var columnMatch; doc.body.innerHTML = originalContent; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; + + var _iterator = _createForOfIteratorHelper(doc.body.firstChild.classList), + _step; try { - for (var _iterator = doc.body.firstChild.classList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + for (_iterator.s(); !(_step = _iterator.n()).done;) { var classListItem = _step.value; if (columnMatch = classListItem.match(/^layout-column-(\d+)$/)) { @@ -10662,22 +11177,78 @@ function getDeprecatedLayoutColumn(originalContent) { } } } catch (err) { - _didIteratorError = true; - _iteratorError = err; + _iterator.e(err); } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } + _iterator.f(); } } +var columns_deprecated_migrateCustomColors = function migrateCustomColors(attributes) { + if (!attributes.customTextColor && !attributes.customBackgroundColor) { + return attributes; + } + + var style = { + color: {} + }; + + if (attributes.customTextColor) { + style.color.text = attributes.customTextColor; + } + + if (attributes.customBackgroundColor) { + style.color.background = attributes.customBackgroundColor; + } + + return columns_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor']), { + style: style + }); +}; + /* harmony default export */ var columns_deprecated = ([{ + attributes: { + verticalAlignment: { + type: 'string' + }, + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + }, + textColor: { + type: 'string' + } + }, + migrate: columns_deprecated_migrateCustomColors, + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var verticalAlignment = attributes.verticalAlignment, + backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + textColor = attributes.textColor, + customTextColor = attributes.customTextColor; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var className = classnames_default()((_classnames = { + 'has-background': backgroundColor || customBackgroundColor, + 'has-text-color': textColor || customTextColor + }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment), _classnames)); + var style = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className ? className : undefined, + style: style + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + } +}, { attributes: { columns: { type: 'number', @@ -10724,8 +11295,8 @@ function getDeprecatedLayoutColumn(originalContent) { }); return [Object(external_this_lodash_["omit"])(attributes, ['columns']), migratedInnerBlocks]; }, - save: function save(_ref) { - var attributes = _ref.attributes; + save: function save(_ref2) { + var attributes = _ref2.attributes; var columns = attributes.columns; return Object(external_this_wp_element_["createElement"])("div", { className: "has-".concat(columns, "-columns") @@ -10742,8 +11313,8 @@ function getDeprecatedLayoutColumn(originalContent) { attributes = Object(external_this_lodash_["omit"])(attributes, ['columns']); return [attributes, innerBlocks]; }, - save: function save(_ref2) { - var attributes = _ref2.attributes; + save: function save(_ref3) { + var attributes = _ref3.attributes; var verticalAlignment = attributes.verticalAlignment, columns = attributes.columns; var wrapperClasses = classnames_default()("has-".concat(columns, "-columns"), Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); @@ -10896,7 +11467,6 @@ function getMappedColumnWidths(blocks, widths) { - /** * Internal dependencies */ @@ -10916,7 +11486,6 @@ var edit_ALLOWED_BLOCKS = ['core/column']; function ColumnsEditContainer(_ref) { var attributes = _ref.attributes, - className = _ref.className, updateAlignment = _ref.updateAlignment, updateColumns = _ref.updateColumns, clientId = _ref.clientId; @@ -10929,28 +11498,7 @@ function ColumnsEditContainer(_ref) { }, [clientId]), count = _useSelect.count; - var ref = Object(external_this_wp_element_["useRef"])(); - - var _experimentalUseColo = Object(external_this_wp_blockEditor_["__experimentalUseColors"])([{ - name: 'textColor', - property: 'color' - }, { - name: 'backgroundColor', - className: 'has-background' - }], { - contrastCheckers: [{ - backgroundColor: true, - textColor: true - }], - colorDetector: { - targetRef: ref - } - }), - BackgroundColor = _experimentalUseColo.BackgroundColor, - InspectorControlsColorPanel = _experimentalUseColo.InspectorControlsColorPanel, - TextColor = _experimentalUseColo.TextColor; - - var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + var classes = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { onChange: updateAlignment, value: verticalAlignment @@ -10961,14 +11509,19 @@ function ColumnsEditContainer(_ref) { return updateColumns(count, value); }, min: 2, - max: 6 - }))), InspectorControlsColorPanel, Object(external_this_wp_element_["createElement"])(BackgroundColor, null, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])("div", { - className: classes, - ref: ref - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - templateLock: "all", - allowedBlocks: edit_ALLOWED_BLOCKS - }))))); + max: Math.max(6, count) + }), count > 6 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { + status: "warning", + isDismissible: false + }, Object(external_this_wp_i18n_["__"])('This column count exceeds the recommended amount and may cause visual breakage.')))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + allowedBlocks: edit_ALLOWED_BLOCKS, + __experimentalMoverDirection: "horizontal", + __experimentalTagName: external_this_wp_blockEditor_["__experimentalBlock"].div, + __experimentalPassedProps: { + className: classes + }, + renderAppender: false + })); } var ColumnsEditContainerWrapper = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { @@ -11098,7 +11651,7 @@ var edit_ColumnsEdit = function ColumnsEdit(props) { return Object(external_this_wp_element_["createElement"])(ColumnsEditContainerWrapper, props); } - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockVariationPicker"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockVariationPicker"], { icon: Object(external_this_lodash_["get"])(blockType, ['icon', 'src']), label: Object(external_this_lodash_["get"])(blockType, ['title']), variations: variations, @@ -11114,7 +11667,7 @@ var edit_ColumnsEdit = function ColumnsEdit(props) { } }, allowSkip: true - }); + })); }; /* harmony default export */ var columns_edit = (edit_ColumnsEdit); @@ -11133,27 +11686,11 @@ var edit_ColumnsEdit = function ColumnsEdit(props) { function columns_save_save(_ref) { - var _classnames; - var attributes = _ref.attributes; - var verticalAlignment = attributes.verticalAlignment, - backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - textColor = attributes.textColor, - customTextColor = attributes.customTextColor; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var className = classnames_default()((_classnames = { - 'has-background': backgroundColor || customBackgroundColor, - 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment), _classnames)); - var style = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor - }; + var verticalAlignment = attributes.verticalAlignment; + var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); return Object(external_this_wp_element_["createElement"])("div", { - className: className ? className : undefined, - style: style + className: className ? className : undefined }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); } @@ -11175,7 +11712,8 @@ function columns_save_save(_ref) { var variations_variations = [{ name: 'two-columns-equal', - title: Object(external_this_wp_i18n_["__"])('Two columns; equal split'), + title: Object(external_this_wp_i18n_["__"])('50 / 50'), + description: Object(external_this_wp_i18n_["__"])('Two columns; equal split'), icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { width: "48", height: "48", @@ -11191,7 +11729,8 @@ var variations_variations = [{ scope: ['block'] }, { name: 'two-columns-one-third-two-thirds', - title: Object(external_this_wp_i18n_["__"])('Two columns; one-third, two-thirds split'), + title: Object(external_this_wp_i18n_["__"])('30 / 70'), + description: Object(external_this_wp_i18n_["__"])('Two columns; one-third, two-thirds split'), icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { width: "48", height: "48", @@ -11210,7 +11749,8 @@ var variations_variations = [{ scope: ['block'] }, { name: 'two-columns-two-thirds-one-third', - title: Object(external_this_wp_i18n_["__"])('Two columns; two-thirds, one-third split'), + title: Object(external_this_wp_i18n_["__"])('70 / 30'), + description: Object(external_this_wp_i18n_["__"])('Two columns; two-thirds, one-third split'), icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { width: "48", height: "48", @@ -11229,7 +11769,8 @@ var variations_variations = [{ scope: ['block'] }, { name: 'three-columns-equal', - title: Object(external_this_wp_i18n_["__"])('Three columns; equal split'), + title: Object(external_this_wp_i18n_["__"])('33 / 33 / 33'), + description: Object(external_this_wp_i18n_["__"])('Three columns; equal split'), icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { width: "48", height: "48", @@ -11243,7 +11784,8 @@ var variations_variations = [{ scope: ['block'] }, { name: 'three-columns-wider-center', - title: Object(external_this_wp_i18n_["__"])('Three columns; wide center column'), + title: Object(external_this_wp_i18n_["__"])('25 / 50 / 25'), + description: Object(external_this_wp_i18n_["__"])('Three columns; wide center column'), icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { width: "48", height: "48", @@ -11278,22 +11820,19 @@ var variations_variations = [{ var columns_metadata = { name: "core/columns", - category: "layout", + category: "design", attributes: { verticalAlignment: { type: "string" - }, - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - customTextColor: { - type: "string" - }, - textColor: { - type: "string" + } + }, + supports: { + align: ["wide", "full"], + html: false, + lightBlockWrapper: true, + __experimentalColor: { + gradients: true, + linkColor: true } } }; @@ -11305,10 +11844,6 @@ var columns_settings = { title: Object(external_this_wp_i18n_["__"])('Columns'), icon: library_columns, description: Object(external_this_wp_i18n_["__"])('Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'), - supports: { - align: ['wide', 'full'], - html: false - }, variations: columns_variations, example: { innerBlocks: [{ @@ -11364,7 +11899,7 @@ var column = Object(external_this_wp_element_["createElement"])(external_this_wp xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" + d: "M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z" })); /* harmony default export */ var library_column = (column); @@ -11385,19 +11920,43 @@ var column = Object(external_this_wp_element_["createElement"])(external_this_wp - function ColumnEdit(_ref) { - var attributes = _ref.attributes, + var _ref$attributes = _ref.attributes, + verticalAlignment = _ref$attributes.verticalAlignment, + width = _ref$attributes.width, setAttributes = _ref.setAttributes, - className = _ref.className, - updateAlignment = _ref.updateAlignment, - hasChildBlocks = _ref.hasChildBlocks; - var verticalAlignment = attributes.verticalAlignment, - width = attributes.width; - var classes = classnames_default()(className, 'block-core-columns', Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { + clientId = _ref.clientId; + var classes = classnames_default()('block-core-columns', Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + getBlockRootClientId = _select.getBlockRootClientId; + + return { + hasChildBlocks: getBlockOrder(clientId).length > 0, + rootClientId: getBlockRootClientId(clientId) + }; + }, [clientId]), + hasChildBlocks = _useSelect.hasChildBlocks, + rootClientId = _useSelect.rootClientId; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + updateBlockAttributes = _useDispatch.updateBlockAttributes; + + var updateAlignment = function updateAlignment(value) { + // Update own alignment. + setAttributes({ + verticalAlignment: value + }); // Reset parent Columns block. + + updateBlockAttributes(rootClientId, { + verticalAlignment: null + }); + }; + + var hasWidth = Number.isFinite(width); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { onChange: updateAlignment, value: verticalAlignment })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { @@ -11420,43 +11979,18 @@ function ColumnEdit(_ref) { templateLock: false, renderAppender: hasChildBlocks ? undefined : function () { return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, null); + }, + __experimentalTagName: external_this_wp_blockEditor_["__experimentalBlock"].div, + __experimentalPassedProps: { + className: classes, + style: hasWidth ? { + flexBasis: width + '%' + } : undefined } })); } -/* harmony default export */ var column_edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var clientId = ownProps.clientId; - - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder; - - return { - hasChildBlocks: getBlockOrder(clientId).length > 0 - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { - return { - updateAlignment: function updateAlignment(verticalAlignment) { - var clientId = ownProps.clientId, - setAttributes = ownProps.setAttributes; - - var _dispatch = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch.updateBlockAttributes; - - var _registry$select = registry.select('core/block-editor'), - getBlockRootClientId = _registry$select.getBlockRootClientId; // Update own alignment. - - - setAttributes({ - verticalAlignment: verticalAlignment - }); // Reset Parent Columns Block - - var rootClientId = getBlockRootClientId(clientId); - updateBlockAttributes(rootClientId, { - verticalAlignment: null - }); - } - }; -}))(ColumnEdit)); +/* harmony default export */ var column_edit = (ColumnEdit); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/save.js @@ -11503,7 +12037,8 @@ function column_save_save(_ref) { var column_metadata = { name: "core/column", - category: "common", + category: "text", + parent: ["core/columns"], attributes: { verticalAlignment: { type: "string" @@ -11513,6 +12048,11 @@ var column_metadata = { min: 0, max: 100 } + }, + supports: { + reusable: false, + html: false, + lightBlockWrapper: true } }; @@ -11520,26 +12060,8 @@ var column_name = column_metadata.name; var column_settings = { title: Object(external_this_wp_i18n_["__"])('Column'), - parent: ['core/columns'], icon: library_column, description: Object(external_this_wp_i18n_["__"])('A single column within a columns block.'), - supports: { - inserter: false, - reusable: false, - html: false - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if (Number.isFinite(width)) { - return { - style: { - flexBasis: width + '%' - }, - 'data-has-explicit-width': true - }; - } - }, edit: column_edit, save: column_save_save }; @@ -11555,11 +12077,29 @@ var cover = Object(external_this_wp_element_["createElement"])(external_this_wp_ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z" + d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z" })); /* harmony default export */ var library_cover = (cover); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/shared.js + + +function shared_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function shared_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { shared_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { shared_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var POSITION_CLASSNAMES = { + 'top left': 'is-position-top-left', + 'top center': 'is-position-top-center', + 'top right': 'is-position-top-right', + 'center left': 'is-position-center-left', + 'center center': 'is-position-center-center', + center: 'is-position-center-center', + 'center right': 'is-position-center-right', + 'bottom left': 'is-position-bottom-left', + 'bottom center': 'is-position-bottom-center', + 'bottom right': 'is-position-bottom-right' +}; var IMAGE_BACKGROUND_TYPE = 'image'; var VIDEO_BACKGROUND_TYPE = 'video'; var COVER_MIN_HEIGHT = 50; @@ -11568,9 +12108,76 @@ function backgroundImageStyles(url) { backgroundImage: "url(".concat(url, ")") } : {}; } +var CSS_UNITS = [{ + value: 'px', + label: 'px', + default: 430 +}, { + value: 'em', + label: 'em', + default: 20 +}, { + value: 'rem', + label: 'rem', + default: 20 +}, { + value: 'vw', + label: 'vw', + default: 20 +}, { + value: 'vh', + label: 'vh', + default: 50 +}]; function dimRatioToClass(ratio) { return ratio === 0 || ratio === 50 || !ratio ? null : 'has-background-dim-' + 10 * Math.round(ratio / 10); } +function attributesFromMedia(setAttributes) { + return function (media) { + if (!media || !media.url) { + setAttributes({ + url: undefined, + id: undefined + }); + return; + } + + var mediaType; // for media selections originated from a file upload. + + if (media.media_type) { + if (media.media_type === IMAGE_BACKGROUND_TYPE) { + mediaType = IMAGE_BACKGROUND_TYPE; + } else { + // only images and videos are accepted so if the media_type is not an image we can assume it is a video. + // Videos contain the media type of 'file' in the object returned from the rest api. + mediaType = VIDEO_BACKGROUND_TYPE; + } + } else { + // for media selections originated from existing files in the media library. + if (media.type !== IMAGE_BACKGROUND_TYPE && media.type !== VIDEO_BACKGROUND_TYPE) { + return; + } + + mediaType = media.type; + } + + setAttributes(shared_objectSpread({ + url: media.url, + id: media.id, + backgroundType: mediaType + }, mediaType === VIDEO_BACKGROUND_TYPE ? { + focalPoint: undefined, + hasParallax: undefined + } : {})); + }; +} +function getPositionClassName(contentPosition) { + if (contentPosition === undefined) return ''; + return POSITION_CLASSNAMES[contentPosition]; +} +function isContentPositionCenter(contentPosition) { + return !contentPosition || contentPosition === 'center center' || contentPosition === 'center'; +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/deprecated.js @@ -11948,11 +12555,11 @@ var cover_deprecated_deprecated = [{ /* harmony default export */ var cover_deprecated = (cover_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/fast-average-color/dist/index.js -var dist = __webpack_require__(264); +var dist = __webpack_require__(258); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(54); +var tinycolor = __webpack_require__(56); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit.js @@ -11960,6 +12567,8 @@ var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); + + function cover_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function cover_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { cover_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { cover_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -11996,6 +12605,7 @@ var INNER_BLOCKS_TEMPLATE = [['core/paragraph', { fontSize: 'large', placeholder: Object(external_this_wp_i18n_["__"])('Write title…') }]]; +var BoxControlVisualizer = external_this_wp_components_["__experimentalBoxControl"].__Visualizer; function retrieveFastAverageColor() { if (!retrieveFastAverageColor.fastAverageColor) { @@ -12005,47 +12615,63 @@ function retrieveFastAverageColor() { return retrieveFastAverageColor.fastAverageColor; } -var CoverHeightInput = Object(external_this_wp_compose_["withInstanceId"])(function (_ref) { - var _ref$value = _ref.value, - value = _ref$value === void 0 ? '' : _ref$value, - instanceId = _ref.instanceId, - _onChange = _ref.onChange; +function CoverHeightInput(_ref) { + var onChange = _ref.onChange, + onUnitChange = _ref.onUnitChange, + _ref$unit = _ref.unit, + unit = _ref$unit === void 0 ? 'px' : _ref$unit, + _ref$value = _ref.value, + value = _ref$value === void 0 ? '' : _ref$value; var _useState = Object(external_this_wp_element_["useState"])(null), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), temporaryInput = _useState2[0], setTemporaryInput = _useState2[1]; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(external_this_wp_blockEditor_["__experimentalUnitControl"]); var inputId = "block-cover-height-input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: Object(external_this_wp_i18n_["__"])('Minimum height in pixels'), - id: inputId - }, Object(external_this_wp_element_["createElement"])("input", { - type: "number", - id: inputId, - onChange: function onChange(event) { - var unprocessedValue = event.target.value; - var inputValue = unprocessedValue !== '' ? parseInt(event.target.value, 10) : undefined; + var isPx = unit === 'px'; - if ((isNaN(inputValue) || inputValue < COVER_MIN_HEIGHT) && inputValue !== undefined) { - setTemporaryInput(event.target.value); - return; - } + var handleOnChange = function handleOnChange(unprocessedValue) { + var inputValue = unprocessedValue !== '' ? parseInt(unprocessedValue, 10) : undefined; + if (isNaN(inputValue) && inputValue !== undefined) { + setTemporaryInput(unprocessedValue); + return; + } + + setTemporaryInput(null); + onChange(inputValue); + }; + + var handleOnBlur = function handleOnBlur() { + if (temporaryInput !== null) { setTemporaryInput(null); + } + }; - _onChange(inputValue); + var inputValue = temporaryInput !== null ? temporaryInput : value; + var min = isPx ? COVER_MIN_HEIGHT : 0; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + label: Object(external_this_wp_i18n_["__"])('Minimum height of cover'), + id: inputId + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalUnitControl"], { + id: inputId, + isResetValueOnUnitChange: true, + min: min, + onBlur: handleOnBlur, + onChange: handleOnChange, + onUnitChange: onUnitChange, + step: "1", + style: { + maxWidth: 80 }, - onBlur: function onBlur() { - if (temporaryInput !== null) { - setTemporaryInput(null); - } - }, - value: temporaryInput !== null ? temporaryInput : value, - min: COVER_MIN_HEIGHT, - step: "1" + unit: unit, + units: CSS_UNITS, + value: inputValue })); -}); +} + var RESIZABLE_BOX_ENABLE_OPTION = { top: false, right: false, @@ -12059,80 +12685,40 @@ var RESIZABLE_BOX_ENABLE_OPTION = { function ResizableCover(_ref2) { var className = _ref2.className, - children = _ref2.children, _onResizeStart = _ref2.onResizeStart, _onResize = _ref2.onResize, - _onResizeStop = _ref2.onResizeStop; + _onResizeStop = _ref2.onResizeStop, + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["className", "onResizeStart", "onResize", "onResizeStop"]); var _useState3 = Object(external_this_wp_element_["useState"])(false), _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), isResizing = _useState4[0], setIsResizing = _useState4[1]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], Object(esm_extends["a" /* default */])({ className: classnames_default()(className, { 'is-resizing': isResizing }), enable: RESIZABLE_BOX_ENABLE_OPTION, - onResizeStart: function onResizeStart(event, direction, elt) { + onResizeStart: function onResizeStart(_event, _direction, elt) { _onResizeStart(elt.clientHeight); _onResize(elt.clientHeight); }, - onResize: function onResize(event, direction, elt) { + onResize: function onResize(_event, _direction, elt) { _onResize(elt.clientHeight); if (!isResizing) { setIsResizing(true); } }, - onResizeStop: function onResizeStop(event, direction, elt) { + onResizeStop: function onResizeStop(_event, _direction, elt) { _onResizeStop(elt.clientHeight); setIsResizing(false); }, minHeight: COVER_MIN_HEIGHT - }, children); -} - -function onCoverSelectMedia(setAttributes) { - return function (media) { - if (!media || !media.url) { - setAttributes({ - url: undefined, - id: undefined - }); - return; - } - - var mediaType; // for media selections originated from a file upload. - - if (media.media_type) { - if (media.media_type === IMAGE_BACKGROUND_TYPE) { - mediaType = IMAGE_BACKGROUND_TYPE; - } else { - // only images and videos are accepted so if the media_type is not an image we can assume it is a video. - // Videos contain the media type of 'file' in the object returned from the rest api. - mediaType = VIDEO_BACKGROUND_TYPE; - } - } else { - // for media selections originated from existing files in the media library. - if (media.type !== IMAGE_BACKGROUND_TYPE && media.type !== VIDEO_BACKGROUND_TYPE) { - return; - } - - mediaType = media.type; - } - - setAttributes(cover_edit_objectSpread({ - url: media.url, - id: media.id, - backgroundType: mediaType - }, mediaType === VIDEO_BACKGROUND_TYPE ? { - focalPoint: undefined, - hasParallax: undefined - } : {})); - }; + }, props)); } /** * useCoverIsDark is a hook that returns a boolean variable specifying if the cover @@ -12192,23 +12778,25 @@ function useCoverIsDark(url) { } function CoverEdit(_ref3) { - var _classnames; + var _classnames, _styleAttribute$spaci, _styleAttribute$visua; var attributes = _ref3.attributes, setAttributes = _ref3.setAttributes, isSelected = _ref3.isSelected, - className = _ref3.className, noticeUI = _ref3.noticeUI, overlayColor = _ref3.overlayColor, setOverlayColor = _ref3.setOverlayColor, toggleSelection = _ref3.toggleSelection, noticeOperations = _ref3.noticeOperations; - var id = attributes.id, + var contentPosition = attributes.contentPosition, + id = attributes.id, backgroundType = attributes.backgroundType, dimRatio = attributes.dimRatio, focalPoint = attributes.focalPoint, hasParallax = attributes.hasParallax, minHeight = attributes.minHeight, + minHeightUnit = attributes.minHeightUnit, + styleAttribute = attributes.style, url = attributes.url; var _experimentalUseGrad = Object(external_this_wp_blockEditor_["__experimentalUseGradient"])(), @@ -12216,7 +12804,7 @@ function CoverEdit(_ref3) { gradientValue = _experimentalUseGrad.gradientValue, setGradient = _experimentalUseGrad.setGradient; - var onSelectMedia = onCoverSelectMedia(setAttributes); + var onSelectMedia = attributesFromMedia(setAttributes); var toggleParallax = function toggleParallax() { setAttributes(cover_edit_objectSpread({ @@ -12236,10 +12824,11 @@ function CoverEdit(_ref3) { var removeAllNotices = noticeOperations.removeAllNotices, createErrorNotice = noticeOperations.createErrorNotice; + var minHeightWithUnit = minHeightUnit ? "".concat(minHeight).concat(minHeightUnit) : minHeight; var style = cover_edit_objectSpread({}, backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}, { backgroundColor: overlayColor.color, - minHeight: temporaryMinHeight || minHeight + minHeight: temporaryMinHeight || minHeightWithUnit || undefined }); if (gradientValue && !url) { @@ -12251,7 +12840,15 @@ function CoverEdit(_ref3) { } var hasBackground = !!(url || overlayColor.color || gradientValue); - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, hasBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockAlignmentMatrixToolbar"], { + label: Object(external_this_wp_i18n_["__"])('Change content position'), + value: contentPosition, + onChange: function onChange(nextPosition) { + return setAttributes({ + contentPosition: nextPosition + }); + } + }), hasBackground && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { mediaId: id, mediaURL: url, allowedTypes: cover_edit_ALLOWED_MEDIA_TYPES, @@ -12295,10 +12892,16 @@ function CoverEdit(_ref3) { title: Object(external_this_wp_i18n_["__"])('Dimensions') }, Object(external_this_wp_element_["createElement"])(CoverHeightInput, { value: temporaryMinHeight || minHeight, + unit: minHeightUnit, onChange: function onChange(newMinHeight) { return setAttributes({ minHeight: newMinHeight }); + }, + onUnitChange: function onUnitChange(nextUnit) { + setAttributes({ + minHeightUnit: nextUnit + }); } })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalPanelColorGradientSettings"], { title: Object(external_this_wp_i18n_["__"])('Overlay'), @@ -12311,7 +12914,7 @@ function CoverEdit(_ref3) { label: Object(external_this_wp_i18n_["__"])('Color') }] }, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Background opacity'), + label: Object(external_this_wp_i18n_["__"])('Opacity'), value: dimRatio, onChange: function onChange(newDimRation) { return setAttributes({ @@ -12320,7 +12923,6 @@ function CoverEdit(_ref3) { }, min: 0, max: 100, - step: 10, required: true }))))); @@ -12331,9 +12933,10 @@ function CoverEdit(_ref3) { var label = Object(external_this_wp_i18n_["__"])('Cover'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, { + className: "is-placeholder" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: placeholderIcon, - className: className, labels: { title: label, instructions: Object(external_this_wp_i18n_["__"])('Upload an image or video file, or pick one from your media library.') @@ -12353,20 +12956,28 @@ function CoverEdit(_ref3) { value: overlayColor.color, onChange: setOverlayColor, clearable: false - })))); + }))))); } - var classes = classnames_default()(className, dimRatioToClass(dimRatio), (_classnames = { + var classes = classnames_default()(dimRatioToClass(dimRatio), (_classnames = { 'is-dark-theme': isDark, 'has-background-dim': dimRatio !== 0, 'has-parallax': hasParallax - }, Object(defineProperty["a" /* default */])(_classnames, overlayColor.class, overlayColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-background-gradient', gradientValue), Object(defineProperty["a" /* default */])(_classnames, gradientClass, !url && gradientClass), _classnames)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(ResizableCover, { - className: classnames_default()('block-library-cover__resize-container', { - 'is-selected': isSelected - }), + }, Object(defineProperty["a" /* default */])(_classnames, overlayColor.class, overlayColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-background-gradient', gradientValue), Object(defineProperty["a" /* default */])(_classnames, gradientClass, !url && gradientClass), Object(defineProperty["a" /* default */])(_classnames, 'has-custom-content-position', !isContentPositionCenter(contentPosition)), _classnames), getPositionClassName(contentPosition)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, { + className: classes, + "data-url": url, + style: style + }, Object(external_this_wp_element_["createElement"])(BoxControlVisualizer, { + values: styleAttribute === null || styleAttribute === void 0 ? void 0 : (_styleAttribute$spaci = styleAttribute.spacing) === null || _styleAttribute$spaci === void 0 ? void 0 : _styleAttribute$spaci.padding, + showValues: styleAttribute === null || styleAttribute === void 0 ? void 0 : (_styleAttribute$visua = styleAttribute.visualizers) === null || _styleAttribute$visua === void 0 ? void 0 : _styleAttribute$visua.padding + }), Object(external_this_wp_element_["createElement"])(ResizableCover, { + className: "block-library-cover__resize-container", onResizeStart: function onResizeStart() { - return toggleSelection(false); + setAttributes({ + minHeightUnit: 'px' + }); + toggleSelection(false); }, onResize: setTemporaryMinHeight, onResizeStop: function onResizeStop(newMinHeight) { @@ -12375,12 +12986,9 @@ function CoverEdit(_ref3) { minHeight: newMinHeight }); setTemporaryMinHeight(null); - } - }, Object(external_this_wp_element_["createElement"])("div", { - "data-url": url, - style: style, - className: classes - }, IMAGE_BACKGROUND_TYPE === backgroundType && // Used only to programmatically check if the image is dark or not + }, + showHandle: isSelected + }), IMAGE_BACKGROUND_TYPE === backgroundType && // Used only to programmatically check if the image is dark or not Object(external_this_wp_element_["createElement"])("img", { ref: isDarkElement, "aria-hidden": true, @@ -12402,11 +13010,13 @@ function CoverEdit(_ref3) { muted: true, loop: true, src: url - }), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-cover__inner-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + __experimentalTagName: "div", + __experimentalPassedProps: { + className: 'wp-block-cover__inner-container' + }, template: INNER_BLOCKS_TEMPLATE - }))))); + }))); } /* harmony default export */ var cover_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { @@ -12439,9 +13049,12 @@ function CoverEdit(_ref3) { function cover_save_save(_ref) { + var _classnames; + var attributes = _ref.attributes; var backgroundType = attributes.backgroundType, gradient = attributes.gradient, + contentPosition = attributes.contentPosition, customGradient = attributes.customGradient, customOverlayColor = attributes.customOverlayColor, dimRatio = attributes.dimRatio, @@ -12449,11 +13062,13 @@ function cover_save_save(_ref) { hasParallax = attributes.hasParallax, overlayColor = attributes.overlayColor, url = attributes.url, - minHeight = attributes.minHeight; + minHeightProp = attributes.minHeight, + minHeightUnit = attributes.minHeightUnit; var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); var gradientClass = Object(external_this_wp_blockEditor_["__experimentalGetGradientClass"])(gradient); + var minHeight = minHeightUnit ? "".concat(minHeightProp).concat(minHeightUnit) : minHeightProp; var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; if (!overlayColorClass) { @@ -12469,11 +13084,11 @@ function cover_save_save(_ref) { } style.minHeight = minHeight || undefined; - var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ + var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, (_classnames = { 'has-background-dim': dimRatio !== 0, 'has-parallax': hasParallax, 'has-background-gradient': gradient || customGradient - }, gradientClass, !url && gradientClass)); + }, Object(defineProperty["a" /* default */])(_classnames, gradientClass, !url && gradientClass), Object(defineProperty["a" /* default */])(_classnames, 'has-custom-content-position', !isContentPositionCenter(contentPosition)), _classnames), getPositionClassName(contentPosition)); return Object(external_this_wp_element_["createElement"])("div", { className: classes, style: style @@ -12488,6 +13103,7 @@ function cover_save_save(_ref) { autoPlay: true, muted: true, loop: true, + playsInline: true, src: url }), Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-cover__inner-container" @@ -12617,7 +13233,7 @@ var cover_transforms_transforms = { var cover_metadata = { name: "core/cover", - category: "common", + category: "media", attributes: { url: { type: "string" @@ -12649,12 +13265,24 @@ var cover_metadata = { minHeight: { type: "number" }, + minHeightUnit: { + type: "string" + }, gradient: { type: "string" }, customGradient: { type: "string" + }, + contentPosition: { + type: "string" } + }, + supports: { + align: true, + html: false, + lightBlockWrapper: true, + __experimentalPadding: true } }; @@ -12665,10 +13293,6 @@ var cover_settings = { title: Object(external_this_wp_i18n_["__"])('Cover'), description: Object(external_this_wp_i18n_["__"])('Add an image or video with a text overlay — great for headers.'), icon: library_cover, - supports: { - align: true, - html: false - }, example: { attributes: { customOverlayColor: '#065174', @@ -12691,7 +13315,7 @@ var cover_settings = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/pencil.js -var pencil = __webpack_require__(286); +var pencil = __webpack_require__(294); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js @@ -12712,7 +13336,7 @@ var embed_controls_EmbedControls = function EmbedControls(props) { getResponsiveHelp = props.getResponsiveHelp, toggleResponsive = props.toggleResponsive, switchBackToURLInput = props.switchBackToURLInput; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { className: "components-toolbar__control", label: Object(external_this_wp_i18n_["__"])('Edit URL'), icon: pencil["a" /* default */], @@ -12784,7 +13408,7 @@ var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { placeholder: Object(external_this_wp_i18n_["__"])('Enter URL to embed here…'), onChange: onChange }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, + isPrimary: true, type: "submit" }, Object(external_this_wp_i18n_["_x"])('Embed', 'button label'))), Object(external_this_wp_element_["createElement"])("div", { className: "components-placeholder__learn-more" @@ -12805,9 +13429,6 @@ var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { /* harmony default export */ var embed_placeholder = (embed_placeholder_EmbedPlaceholder); -// EXTERNAL MODULE: ./node_modules/url/url.js -var url_url = __webpack_require__(113); - // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/wp-embed-preview.js @@ -12817,6 +13438,10 @@ var url_url = __webpack_require__(113); +function wp_embed_preview_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (wp_embed_preview_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function wp_embed_preview_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -12829,17 +13454,17 @@ var url_url = __webpack_require__(113); var wp_embed_preview_window = window, FocusEvent = wp_embed_preview_window.FocusEvent; -var wp_embed_preview_WpEmbedPreview = -/*#__PURE__*/ -function (_Component) { +var wp_embed_preview_WpEmbedPreview = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(WpEmbedPreview, _Component); + var _super = wp_embed_preview_createSuper(WpEmbedPreview); + function WpEmbedPreview() { var _this; Object(classCallCheck["a" /* default */])(this, WpEmbedPreview); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WpEmbedPreview).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.checkFocus = _this.checkFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.node = Object(external_this_wp_element_["createRef"])(); return _this; @@ -12895,18 +13520,19 @@ function (_Component) { +function embed_preview_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (embed_preview_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function embed_preview_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * Internal dependencies */ - /** * External dependencies */ - - /** * WordPress dependencies */ @@ -12915,23 +13541,24 @@ function (_Component) { + /** * Internal dependencies */ -var embed_preview_EmbedPreview = -/*#__PURE__*/ -function (_Component) { +var embed_preview_EmbedPreview = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(EmbedPreview, _Component); + var _super = embed_preview_createSuper(EmbedPreview); + function EmbedPreview() { var _this; Object(classCallCheck["a" /* default */])(this, EmbedPreview); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(EmbedPreview).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.hideOverlay = _this.hideOverlay.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.state = { interactive: false @@ -12956,6 +13583,7 @@ function (_Component) { value: function render() { var _this$props = this.props, preview = _this$props.preview, + previewable = _this$props.previewable, url = _this$props.url, type = _this$props.type, caption = _this$props.caption, @@ -12963,15 +13591,15 @@ function (_Component) { isSelected = _this$props.isSelected, className = _this$props.className, icon = _this$props.icon, - label = _this$props.label; + label = _this$props.label, + insertBlocksAfter = _this$props.insertBlocksAfter; var scripts = preview.scripts; var interactive = this.state.interactive; var html = 'photo' === type ? util_getPhotoHtml(preview) : preview.html; - var parsedHost = Object(url_url["parse"])(url).host.split('.'); + var parsedHost = new URL(url).host.split('.'); var parsedHostBaseUrl = parsedHost.splice(parsedHost.length - 2, parsedHost.length - 1).join('.'); - var cannotPreview = Object(external_this_lodash_["includes"])(HOSTS_NO_PREVIEWS, parsedHostBaseUrl); // translators: %s: host providing embed content e.g: www.youtube.com - - var iframeTitle = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Embedded content from %s'), parsedHostBaseUrl); + var iframeTitle = Object(external_this_wp_i18n_["sprintf"])( // translators: %s: host providing embed content e.g: www.youtube.com + Object(external_this_wp_i18n_["__"])('Embedded content from %s'), parsedHostBaseUrl); var sandboxClassnames = dedupe_default()(type, className, 'wp-block-embed__wrapper'); // Disabled because the overlay div doesn't actually have a role or functionality // as far as the user is concerned. We're just catching the first click so that // the block can be selected without interacting with the embed preview that the overlay covers. @@ -12998,7 +13626,7 @@ function (_Component) { className: dedupe_default()(className, 'wp-block-embed', { 'is-type-video': 'video' === type }) - }, cannotPreview ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + }, previewable ? embedWrapper : Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { icon: icon, showColors: true @@ -13010,14 +13638,17 @@ function (_Component) { href: url }, url)), Object(external_this_wp_element_["createElement"])("p", { className: "components-placeholder__error" - }, + }, Object(external_this_wp_i18n_["sprintf"])( /* translators: %s: host providing embed content e.g: www.youtube.com */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))) : embedWrapper, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + Object(external_this_wp_i18n_["__"])("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { tagName: "figcaption", placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), value: caption, onChange: onCaptionChange, - inlineToolbar: true + inlineToolbar: true, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } })); } }], [{ @@ -13055,6 +13686,10 @@ function embed_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(obj function embed_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { embed_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { embed_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function embed_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (embed_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function embed_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * Internal dependencies */ @@ -13076,231 +13711,234 @@ function embed_edit_objectSpread(target) { for (var i = 1; i < arguments.length; function getEmbedEditComponent(title, icon) { var responsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); + var previewable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + return /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); - function _class() { - var _this; + var _super = embed_edit_createSuper(_class); - Object(classCallCheck["a" /* default */])(this, _class); + function _class() { + var _this; - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); - _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setUrl = _this.setUrl.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getMergedAttributes = _this.getMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setMergedAttributes = _this.setMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleResponsive = _this.toggleResponsive.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - editingURL: false, - url: _this.props.attributes.url - }; + Object(classCallCheck["a" /* default */])(this, _class); - if (_this.props.preview) { - _this.handleIncomingPreview(); - } + _this = _super.apply(this, arguments); + _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setUrl = _this.setUrl.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getMergedAttributes = _this.getMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setMergedAttributes = _this.setMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleResponsive = _this.toggleResponsive.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + editingURL: false, + url: _this.props.attributes.url + }; - return _this; + if (_this.props.preview) { + _this.handleIncomingPreview(); } - Object(createClass["a" /* default */])(_class, [{ - key: "handleIncomingPreview", - value: function handleIncomingPreview() { - this.setMergedAttributes(); + return _this; + } - if (this.props.onReplace) { - var upgradedBlock = util_createUpgradedEmbedBlock(this.props, this.getMergedAttributes()); + Object(createClass["a" /* default */])(_class, [{ + key: "handleIncomingPreview", + value: function handleIncomingPreview() { + this.setMergedAttributes(); - if (upgradedBlock) { - this.props.onReplace(upgradedBlock); - } + if (this.props.onReplace) { + var upgradedBlock = util_createUpgradedEmbedBlock(this.props, this.getMergedAttributes()); + + if (upgradedBlock) { + this.props.onReplace(upgradedBlock); } } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var hasPreview = undefined !== this.props.preview; - var hadPreview = undefined !== prevProps.preview; - var previewChanged = prevProps.preview && this.props.preview && this.props.preview.html !== prevProps.preview.html; - var switchedPreview = previewChanged || hasPreview && !hadPreview; - var switchedURL = this.props.attributes.url !== prevProps.attributes.url; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var hasPreview = undefined !== this.props.preview; + var hadPreview = undefined !== prevProps.preview; + var previewChanged = prevProps.preview && this.props.preview && this.props.preview.html !== prevProps.preview.html; + var switchedPreview = previewChanged || hasPreview && !hadPreview; + var switchedURL = this.props.attributes.url !== prevProps.attributes.url; - if (switchedPreview || switchedURL) { - if (this.props.cannotEmbed) { - // We either have a new preview or a new URL, but we can't embed it. - if (!this.props.fetching) { - // If we're not fetching the preview, then we know it can't be embedded, so try - // removing any trailing slash, and resubmit. - this.resubmitWithoutTrailingSlash(); - } - - return; + if (switchedPreview || switchedURL) { + if (this.props.cannotEmbed) { + // We either have a new preview or a new URL, but we can't embed it. + if (!this.props.fetching) { + // If we're not fetching the preview, then we know it can't be embedded, so try + // removing any trailing slash, and resubmit. + this.resubmitWithoutTrailingSlash(); } - this.handleIncomingPreview(); - } - } - }, { - key: "resubmitWithoutTrailingSlash", - value: function resubmitWithoutTrailingSlash() { - this.setState(function (prevState) { - return { - url: prevState.url.replace(/\/$/, '') - }; - }, this.setUrl); - } - }, { - key: "setUrl", - value: function setUrl(event) { - if (event) { - event.preventDefault(); + return; } - var url = this.state.url; - var setAttributes = this.props.setAttributes; - this.setState({ - editingURL: false - }); - setAttributes({ - url: url - }); + this.handleIncomingPreview(); } - /*** - * @return {Object} Attributes derived from the preview, merged with the current attributes. - */ - - }, { - key: "getMergedAttributes", - value: function getMergedAttributes() { - var preview = this.props.preview; - var _this$props$attribute = this.props.attributes, - className = _this$props$attribute.className, - allowResponsive = _this$props$attribute.allowResponsive; - return embed_edit_objectSpread({}, this.props.attributes, {}, getAttributesFromPreview(preview, title, className, responsive, allowResponsive)); + } + }, { + key: "resubmitWithoutTrailingSlash", + value: function resubmitWithoutTrailingSlash() { + this.setState(function (prevState) { + return { + url: prevState.url.replace(/\/$/, '') + }; + }, this.setUrl); + } + }, { + key: "setUrl", + value: function setUrl(event) { + if (event) { + event.preventDefault(); } - /*** - * Sets block attributes based on the current attributes and preview data. - */ - }, { - key: "setMergedAttributes", - value: function setMergedAttributes() { - var setAttributes = this.props.setAttributes; - setAttributes(this.getMergedAttributes()); - } - }, { - key: "switchBackToURLInput", - value: function switchBackToURLInput() { - this.setState({ - editingURL: true - }); - } - }, { - key: "getResponsiveHelp", - value: function getResponsiveHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); - } - }, { - key: "toggleResponsive", - value: function toggleResponsive() { - var _this$props$attribute2 = this.props.attributes, - allowResponsive = _this$props$attribute2.allowResponsive, - className = _this$props$attribute2.className; - var html = this.props.preview.html; - var newAllowResponsive = !allowResponsive; - this.props.setAttributes({ - allowResponsive: newAllowResponsive, - className: getClassNames(html, className, responsive && newAllowResponsive) - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; + var url = this.state.url; + var setAttributes = this.props.setAttributes; + this.setState({ + editingURL: false + }); + setAttributes({ + url: url + }); + } + /*** + * @return {Object} Attributes derived from the preview, merged with the current attributes. + */ - var _this$state = this.state, - url = _this$state.url, - editingURL = _this$state.editingURL; - var _this$props = this.props, - fetching = _this$props.fetching, - setAttributes = _this$props.setAttributes, - isSelected = _this$props.isSelected, - preview = _this$props.preview, - cannotEmbed = _this$props.cannotEmbed, - themeSupportsResponsive = _this$props.themeSupportsResponsive, - tryAgain = _this$props.tryAgain; + }, { + key: "getMergedAttributes", + value: function getMergedAttributes() { + var preview = this.props.preview; + var _this$props$attribute = this.props.attributes, + className = _this$props$attribute.className, + allowResponsive = _this$props$attribute.allowResponsive; + return embed_edit_objectSpread({}, this.props.attributes, {}, getAttributesFromPreview(preview, title, className, responsive, allowResponsive)); + } + /*** + * Sets block attributes based on the current attributes and preview data. + */ - if (fetching) { - return Object(external_this_wp_element_["createElement"])(embed_loading, null); - } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists + }, { + key: "setMergedAttributes", + value: function setMergedAttributes() { + var setAttributes = this.props.setAttributes; + setAttributes(this.getMergedAttributes()); + } + }, { + key: "switchBackToURLInput", + value: function switchBackToURLInput() { + this.setState({ + editingURL: true + }); + } + }, { + key: "getResponsiveHelp", + value: function getResponsiveHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); + } + }, { + key: "toggleResponsive", + value: function toggleResponsive() { + var _this$props$attribute2 = this.props.attributes, + allowResponsive = _this$props$attribute2.allowResponsive, + className = _this$props$attribute2.className; + var html = this.props.preview.html; + var newAllowResponsive = !allowResponsive; + this.props.setAttributes({ + allowResponsive: newAllowResponsive, + className: getClassNames(html, className, responsive && newAllowResponsive) + }); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$state = this.state, + url = _this$state.url, + editingURL = _this$state.editingURL; + var _this$props = this.props, + fetching = _this$props.fetching, + setAttributes = _this$props.setAttributes, + isSelected = _this$props.isSelected, + preview = _this$props.preview, + cannotEmbed = _this$props.cannotEmbed, + themeSupportsResponsive = _this$props.themeSupportsResponsive, + tryAgain = _this$props.tryAgain, + insertBlocksAfter = _this$props.insertBlocksAfter; + + if (fetching) { + return Object(external_this_wp_element_["createElement"])(embed_loading, null); + } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists - var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. + var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. - if (!preview || cannotEmbed || editingURL) { - return Object(external_this_wp_element_["createElement"])(embed_placeholder, { - icon: icon, - label: label, - onSubmit: this.setUrl, - value: url, - cannotEmbed: cannotEmbed, - onChange: function onChange(event) { - return _this2.setState({ - url: event.target.value - }); - }, - fallback: function fallback() { - return util_fallback(url, _this2.props.onReplace); - }, - tryAgain: tryAgain - }); - } // Even though we set attributes that get derived from the preview, - // we don't access them directly because for the initial render, - // the `setAttributes` call will not have taken effect. If we're - // rendering responsive content, setting the responsive classes - // after the preview has been rendered can result in unwanted - // clipping or scrollbars. The `getAttributesFromPreview` function - // that `getMergedAttributes` uses is memoized so that we're not - // calculating them on every render. - - - var previewAttributes = this.getMergedAttributes(); - var caption = previewAttributes.caption, - type = previewAttributes.type, - allowResponsive = previewAttributes.allowResponsive; - var className = classnames_default()(previewAttributes.className, this.props.className); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { - showEditButton: preview && !cannotEmbed, - themeSupportsResponsive: themeSupportsResponsive, - blockSupportsResponsive: responsive, - allowResponsive: allowResponsive, - getResponsiveHelp: this.getResponsiveHelp, - toggleResponsive: this.toggleResponsive, - switchBackToURLInput: this.switchBackToURLInput - }), Object(external_this_wp_element_["createElement"])(embed_preview, { - preview: preview, - className: className, - url: url, - type: type, - caption: caption, - onCaptionChange: function onCaptionChange(value) { - return setAttributes({ - caption: value + if (!preview || cannotEmbed || editingURL) { + return Object(external_this_wp_element_["createElement"])(embed_placeholder, { + icon: icon, + label: label, + onSubmit: this.setUrl, + value: url, + cannotEmbed: cannotEmbed, + onChange: function onChange(event) { + return _this2.setState({ + url: event.target.value }); }, - isSelected: isSelected, - icon: icon, - label: label - })); - } - }]); + fallback: function fallback() { + return util_fallback(url, _this2.props.onReplace); + }, + tryAgain: tryAgain + }); + } // Even though we set attributes that get derived from the preview, + // we don't access them directly because for the initial render, + // the `setAttributes` call will not have taken effect. If we're + // rendering responsive content, setting the responsive classes + // after the preview has been rendered can result in unwanted + // clipping or scrollbars. The `getAttributesFromPreview` function + // that `getMergedAttributes` uses is memoized so that we're not + // calculating them on every render. - return _class; - }(external_this_wp_element_["Component"]) - ); + + var previewAttributes = this.getMergedAttributes(); + var caption = previewAttributes.caption, + type = previewAttributes.type, + allowResponsive = previewAttributes.allowResponsive; + var className = classnames_default()(previewAttributes.className, this.props.className); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { + showEditButton: preview && !cannotEmbed, + themeSupportsResponsive: themeSupportsResponsive, + blockSupportsResponsive: responsive, + allowResponsive: allowResponsive, + getResponsiveHelp: this.getResponsiveHelp, + toggleResponsive: this.toggleResponsive, + switchBackToURLInput: this.switchBackToURLInput + }), Object(external_this_wp_element_["createElement"])(embed_preview, { + preview: preview, + previewable: previewable, + className: className, + url: url, + type: type, + caption: caption, + onCaptionChange: function onCaptionChange(value) { + return setAttributes({ + caption: value + }); + }, + isSelected: isSelected, + icon: icon, + label: label, + insertBlocksAfter: insertBlocksAfter + })); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/settings.js @@ -13360,11 +13998,13 @@ function getEmbedBlockSettings(_ref) { _ref$supports = _ref.supports, supports = _ref$supports === void 0 ? {} : _ref$supports, _ref$responsive = _ref.responsive, - responsive = _ref$responsive === void 0 ? true : _ref$responsive; + responsive = _ref$responsive === void 0 ? true : _ref$responsive, + _ref$previewable = _ref.previewable, + previewable = _ref$previewable === void 0 ? true : _ref$previewable; var blockDescription = description || Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'); - var edit = getEmbedEditComponent(title, icon, responsive); + var edit = getEmbedEditComponent(title, icon, responsive, previewable); return { title: title, description: blockDescription, @@ -13467,6 +14107,47 @@ function getEmbedBlockSettings(_ref) { }; } +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/transforms.js + + +/** + * WordPress dependencies + */ + + +/** + * Default transforms for generic embeds. + */ + +var embed_transforms_transforms = { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); + }, + transform: function transform(node) { + return Object(external_this_wp_blocks_["createBlock"])('core/embed', { + url: node.textContent.trim() + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref) { + var url = _ref.url, + caption = _ref.caption; + var link = Object(external_this_wp_element_["createElement"])("a", { + href: url + }, caption || url); + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: Object(external_this_wp_element_["renderToString"])(link) + }); + } + }] +}; +/* harmony default export */ var embed_transforms = (embed_transforms_transforms); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js @@ -13480,12 +14161,12 @@ function embed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) + /** * WordPress dependencies */ - var embed_name = 'core/embed'; var embed_settings = getEmbedBlockSettings({ title: Object(external_this_wp_i18n_["_x"])('Embed', 'block title'), @@ -13493,28 +14174,22 @@ var embed_settings = getEmbedBlockSettings({ icon: embedContentIcon, // Unknown embeds should not be responsive by default. responsive: false, - transforms: { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/embed', { - url: node.textContent.trim() - }); - } - }] - } + transforms: embed_transforms }); var embed_common = common.map(function (embedDefinition) { + var embedSettings = getEmbedBlockSettings(embedDefinition.settings); return embed_objectSpread({}, embedDefinition, { - settings: getEmbedBlockSettings(embedDefinition.settings) + settings: embed_objectSpread({}, embedSettings, { + transforms: embed_transforms + }) }); }); var embed_others = others.map(function (embedDefinition) { + var embedSettings = getEmbedBlockSettings(embedDefinition.settings); return embed_objectSpread({}, embedDefinition, { - settings: getEmbedBlockSettings(embedDefinition.settings) + settings: embed_objectSpread({}, embedSettings, { + transforms: embed_transforms + }) }); }); @@ -13529,7 +14204,7 @@ var file_file = Object(external_this_wp_element_["createElement"])(external_this viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" + 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" })); /* harmony default export */ var library_file = (file_file); @@ -13598,6 +14273,10 @@ function FileBlockInspector(_ref) { +function file_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (file_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function file_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -13620,17 +14299,17 @@ function FileBlockInspector(_ref) { -var edit_FileEdit = -/*#__PURE__*/ -function (_Component) { +var edit_FileEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(FileEdit, _Component); + var _super = file_edit_createSuper(FileEdit); + function FileEdit() { var _this; Object(classCallCheck["a" /* default */])(this, FileEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FileEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.onSelectFile = _this.onSelectFile.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -14065,7 +14744,7 @@ var file_transforms_transforms = { var file_metadata = { name: "core/file", - category: "common", + category: "media", attributes: { id: { type: "number" @@ -14099,6 +14778,9 @@ var file_metadata = { source: "html", selector: "a[download]" } + }, + supports: { + align: true } }; @@ -14110,9 +14792,6 @@ var file_settings = { description: Object(external_this_wp_i18n_["__"])('Add a link to a downloadable file.'), icon: library_file, keywords: [Object(external_this_wp_i18n_["__"])('document'), Object(external_this_wp_i18n_["__"])('pdf'), Object(external_this_wp_i18n_["__"])('download')], - supports: { - align: true - }, transforms: file_transforms, edit: file_edit, save: file_save_save @@ -14129,7 +14808,7 @@ var html_html = Object(external_this_wp_element_["createElement"])(external_this viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z" + d: "M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z" })); /* harmony default export */ var library_html = (html_html); @@ -14143,6 +14822,10 @@ var html_html = Object(external_this_wp_element_["createElement"])(external_this +function html_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (html_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function html_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -14152,17 +14835,17 @@ var html_html = Object(external_this_wp_element_["createElement"])(external_this -var edit_HTMLEdit = -/*#__PURE__*/ -function (_Component) { +var edit_HTMLEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(HTMLEdit, _Component); + var _super = html_edit_createSuper(HTMLEdit); + function HTMLEdit() { var _this; Object(classCallCheck["a" /* default */])(this, HTMLEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HTMLEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.state = { isPreview: false, styles: [] @@ -14200,6 +14883,8 @@ function (_Component) { }, { key: "render", value: function render() { + var _this2 = this; + var _this$props = this.props, attributes = _this$props.attributes, setAttributes = _this$props.setAttributes; @@ -14208,19 +14893,21 @@ function (_Component) { styles = _this$state.styles; return Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-html" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { className: "components-tab-button", isPressed: !isPreview, onClick: this.switchToHTML - }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { className: "components-tab-button", isPressed: isPreview, onClick: this.switchToPreview }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { - return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { + return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { html: attributes.content, styles: styles - }) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + }), !_this2.props.isSelected && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-html__preview-overlay" + })) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { value: attributes.content, onChange: function onChange(content) { return setAttributes({ @@ -14259,27 +14946,19 @@ function html_save_save(_ref) { } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/transforms.js +/** + * WordPress dependencies + */ + var html_transforms_transforms = { from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'FIGURE' && !!node.querySelector('iframe'); - }, - schema: function schema(_ref) { - var phrasingContentSchema = _ref.phrasingContentSchema; - return { - figure: { - require: ['iframe'], - children: { - iframe: { - attributes: ['src', 'allowfullscreen', 'height', 'width'] - }, - figcaption: { - children: phrasingContentSchema - } - } - } - }; + type: 'block', + blocks: ['core/code'], + transform: function transform(_ref) { + var content = _ref.content; + return Object(external_this_wp_blocks_["createBlock"])('core/html', { + content: content + }); } }] }; @@ -14298,12 +14977,17 @@ var html_transforms_transforms = { var html_metadata = { name: "core/html", - category: "formatting", + category: "widgets", attributes: { content: { type: "string", source: "html" } + }, + supports: { + customClassName: false, + className: false, + html: false } }; @@ -14320,14 +15004,9 @@ var html_settings = { content: '' + Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks…') + '' } }, - supports: { - customClassName: false, - className: false, - html: false - }, - transforms: html_transforms, edit: html_edit, - save: html_save_save + save: html_save_save, + transforms: html_transforms }; // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/media-and-text.js @@ -14341,7 +15020,7 @@ var mediaAndText = Object(external_this_wp_element_["createElement"])(external_t xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z" + d: "M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z" })); /* harmony default export */ var media_and_text = (mediaAndText); @@ -14368,8 +15047,9 @@ var mediaAndText = Object(external_this_wp_element_["createElement"])(external_t - - +/** + * External dependencies + */ /** @@ -14398,168 +15078,136 @@ function imageFillStyles(url, focalPoint) { } : {}; } -var media_container_MediaContainer = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaContainer, _Component); +function ResizableBoxContainer(_ref) { + var isSelected = _ref.isSelected, + isStackedOnMobile = _ref.isStackedOnMobile, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["isSelected", "isStackedOnMobile"]); - function MediaContainer() { - var _this; + var isMobile = Object(external_this_wp_compose_["useViewportMatch"])('small', '<'); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], Object(esm_extends["a" /* default */])({ + showHandle: isSelected && (!isMobile || !isStackedOnMobile) + }, props)); +} - Object(classCallCheck["a" /* default */])(this, MediaContainer); +function ToolbarEditButton(_ref2) { + var mediaId = _ref2.mediaId, + mediaUrl = _ref2.mediaUrl, + onSelectMedia = _ref2.onSelectMedia; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { + mediaId: mediaId, + mediaURL: mediaUrl, + allowedTypes: media_container_ALLOWED_MEDIA_TYPES, + accept: "image/*,video/*", + onSelect: onSelectMedia + })); +} - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaContainer).apply(this, arguments)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; +function PlaceholderContainer(_ref3) { + var className = _ref3.className, + noticeOperations = _ref3.noticeOperations, + noticeUI = _ref3.noticeUI, + onSelectMedia = _ref3.onSelectMedia; + + var onUploadError = function onUploadError(message) { + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: media_container_icon + }), + labels: { + title: Object(external_this_wp_i18n_["__"])('Media area') + }, + className: className, + onSelect: onSelectMedia, + accept: "image/*,video/*", + allowedTypes: media_container_ALLOWED_MEDIA_TYPES, + notices: noticeUI, + onError: onUploadError + }); +} + +function MediaContainer(props) { + var className = props.className, + commitWidthChange = props.commitWidthChange, + focalPoint = props.focalPoint, + imageFill = props.imageFill, + isSelected = props.isSelected, + isStackedOnMobile = props.isStackedOnMobile, + mediaAlt = props.mediaAlt, + mediaId = props.mediaId, + mediaPosition = props.mediaPosition, + mediaType = props.mediaType, + mediaUrl = props.mediaUrl, + mediaWidth = props.mediaWidth, + onSelectMedia = props.onSelectMedia, + onWidthChange = props.onWidthChange; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + toggleSelection = _useDispatch.toggleSelection; + + if (mediaType && mediaUrl) { + var onResizeStart = function onResizeStart() { + toggleSelection(false); + }; + + var onResize = function onResize(event, direction, elt) { + onWidthChange(parseInt(elt.style.width)); + }; + + var onResizeStop = function onResizeStop(event, direction, elt) { + toggleSelection(true); + commitWidthChange(parseInt(elt.style.width)); + }; + + var enablePositions = { + right: mediaPosition === 'left', + left: mediaPosition === 'right' + }; + var backgroundStyles = mediaType === 'image' && imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; + var mediaTypeRenderers = { + image: function image() { + return Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt + }); + }, + video: function video() { + return Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }); + } + }; + return Object(external_this_wp_element_["createElement"])(ResizableBoxContainer, { + as: "figure", + className: classnames_default()(className, 'editor-media-container__resizer'), + style: backgroundStyles, + size: { + width: mediaWidth + '%' + }, + minWidth: "10%", + maxWidth: "100%", + enable: enablePositions, + onResizeStart: onResizeStart, + onResize: onResize, + onResizeStop: onResizeStop, + axis: "x", + isSelected: isSelected, + isStackedOnMobile: isStackedOnMobile + }, Object(external_this_wp_element_["createElement"])(ToolbarEditButton, { + onSelectMedia: onSelectMedia, + mediaUrl: mediaUrl, + mediaId: mediaId + }), (mediaTypeRenderers[mediaType] || external_this_lodash_["noop"])()); } - Object(createClass["a" /* default */])(MediaContainer, [{ - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "renderToolbarEditButton", - value: function renderToolbarEditButton() { - var _this$props = this.props, - onSelectMedia = _this$props.onSelectMedia, - mediaUrl = _this$props.mediaUrl, - mediaId = _this$props.mediaId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], { - mediaId: mediaId, - mediaURL: mediaUrl, - allowedTypes: media_container_ALLOWED_MEDIA_TYPES, - accept: "image/*,video/*", - onSelect: onSelectMedia - })); - } - }, { - key: "renderImage", - value: function renderImage() { - var _this$props2 = this.props, - mediaAlt = _this$props2.mediaAlt, - mediaUrl = _this$props2.mediaUrl, - className = _this$props2.className, - imageFill = _this$props2.imageFill, - focalPoint = _this$props2.focalPoint; - var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { - className: className, - style: backgroundStyles - }, Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt - }))); - } - }, { - key: "renderVideo", - value: function renderVideo() { - var _this$props3 = this.props, - mediaUrl = _this$props3.mediaUrl, - className = _this$props3.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }))); - } - }, { - key: "renderPlaceholder", - value: function renderPlaceholder() { - var _this$props4 = this.props, - onSelectMedia = _this$props4.onSelectMedia, - className = _this$props4.className, - noticeUI = _this$props4.noticeUI; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: media_container_icon - }), - labels: { - title: Object(external_this_wp_i18n_["__"])('Media area') - }, - className: className, - onSelect: onSelectMedia, - accept: "image/*,video/*", - allowedTypes: media_container_ALLOWED_MEDIA_TYPES, - notices: noticeUI, - onError: this.onUploadError - }); - } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - mediaPosition = _this$props5.mediaPosition, - mediaUrl = _this$props5.mediaUrl, - mediaType = _this$props5.mediaType, - mediaWidth = _this$props5.mediaWidth, - commitWidthChange = _this$props5.commitWidthChange, - onWidthChange = _this$props5.onWidthChange, - toggleSelection = _this$props5.toggleSelection; + return Object(external_this_wp_element_["createElement"])(PlaceholderContainer, props); +} - if (mediaType && mediaUrl) { - var onResizeStart = function onResizeStart() { - toggleSelection(false); - }; - - var onResize = function onResize(event, direction, elt) { - onWidthChange(parseInt(elt.style.width)); - }; - - var onResizeStop = function onResizeStop(event, direction, elt) { - toggleSelection(true); - commitWidthChange(parseInt(elt.style.width)); - }; - - var enablePositions = { - right: mediaPosition === 'left', - left: mediaPosition === 'right' - }; - var mediaElement = null; - - switch (mediaType) { - case 'image': - mediaElement = this.renderImage(); - break; - - case 'video': - mediaElement = this.renderVideo(); - break; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - className: "editor-media-container__resizer", - size: { - width: mediaWidth + '%' - }, - minWidth: "10%", - maxWidth: "100%", - enable: enablePositions, - onResizeStart: onResizeStart, - onResize: onResize, - onResizeStop: onResizeStop, - axis: "x" - }, mediaElement); - } - - return this.renderPlaceholder(); - } - }]); - - return MediaContainer; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var media_container = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - toggleSelection = _dispatch.toggleSelection; - - return { - toggleSelection: toggleSelection - }; -}), external_this_wp_components_["withNotices"]])(media_container_MediaContainer)); +/* harmony default export */ var media_container = (Object(external_this_wp_components_["withNotices"])(MediaContainer)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/deprecated.js @@ -14585,6 +15233,22 @@ function media_text_deprecated_objectSpread(target) { for (var i = 1; i < argume var DEFAULT_MEDIA_WIDTH = 50; + +var media_text_deprecated_migrateCustomColors = function migrateCustomColors(attributes) { + if (!attributes.customBackgroundColor) { + return attributes; + } + + var style = { + color: { + background: attributes.customBackgroundColor + } + }; + return media_text_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customBackgroundColor']), { + style: style + }); +}; + var baseAttributes = { align: { type: 'string', @@ -14593,9 +15257,6 @@ var baseAttributes = { backgroundColor: { type: 'string' }, - customBackgroundColor: { - type: 'string' - }, mediaAlt: { type: 'string', source: 'attribute', @@ -14610,12 +15271,6 @@ var baseAttributes = { mediaId: { type: 'number' }, - mediaUrl: { - type: 'string', - source: 'attribute', - selector: 'figure video,figure img', - attribute: 'src' - }, mediaType: { type: 'string' }, @@ -14630,6 +15285,39 @@ var baseAttributes = { }; /* harmony default export */ var media_text_deprecated = ([{ attributes: media_text_deprecated_objectSpread({}, baseAttributes, { + customBackgroundColor: { + type: 'string' + }, + mediaLink: { + type: 'string' + }, + linkDestination: { + type: 'string' + }, + linkTarget: { + type: 'string', + source: 'attribute', + selector: 'figure a', + attribute: 'target' + }, + href: { + type: 'string', + source: 'attribute', + selector: 'figure a', + attribute: 'href' + }, + rel: { + type: 'string', + source: 'attribute', + selector: 'figure a', + attribute: 'rel' + }, + linkClass: { + type: 'string', + source: 'attribute', + selector: 'figure a', + attribute: 'class' + }, verticalAlignment: { type: 'string' }, @@ -14640,10 +15328,107 @@ var baseAttributes = { type: 'object' } }), + migrate: media_text_deprecated_migrateCustomColors, save: function save(_ref) { var _classnames; var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth, + mediaId = attributes.mediaId, + verticalAlignment = attributes.verticalAlignment, + imageFill = attributes.imageFill, + focalPoint = attributes.focalPoint, + linkClass = attributes.linkClass, + href = attributes.href, + linkTarget = attributes.linkTarget, + rel = attributes.rel; + var newRel = Object(external_this_lodash_["isEmpty"])(rel) ? undefined : rel; + + var _image = Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt, + className: mediaId && mediaType === 'image' ? "wp-image-".concat(mediaId) : null + }); + + if (href) { + _image = Object(external_this_wp_element_["createElement"])("a", { + className: linkClass, + href: href, + target: linkTarget, + rel: newRel + }, _image); + } + + var mediaTypeRenders = { + image: function image() { + return _image; + }, + video: function video() { + return Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }); + } + }; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()((_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition, + 'has-background': backgroundClass || customBackgroundColor + }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; + var gridTemplateColumns; + + if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { + gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); + } + + var style = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + gridTemplateColumns: gridTemplateColumns + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: style + }, Object(external_this_wp_element_["createElement"])("figure", { + className: "wp-block-media-text__media", + style: backgroundStyles + }, (mediaTypeRenders[mediaType] || external_this_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-media-text__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); + } +}, { + attributes: media_text_deprecated_objectSpread({}, baseAttributes, { + customBackgroundColor: { + type: 'string' + }, + mediaUrl: { + type: 'string', + source: 'attribute', + selector: 'figure video,figure img', + attribute: 'src' + }, + verticalAlignment: { + type: 'string' + }, + imageFill: { + type: 'boolean' + }, + focalPoint: { + type: 'object' + } + }), + migrate: media_text_deprecated_migrateCustomColors, + save: function save(_ref2) { + var _classnames2; + + var attributes = _ref2.attributes; var backgroundColor = attributes.backgroundColor, customBackgroundColor = attributes.customBackgroundColor, isStackedOnMobile = attributes.isStackedOnMobile, @@ -14672,9 +15457,9 @@ var baseAttributes = { } }; var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()((_classnames = { + var className = classnames_default()((_classnames2 = { 'has-media-on-the-right': 'right' === mediaPosition - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + }, Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames2, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames2, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames2, 'is-image-fill', imageFill), _classnames2)); var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; var gridTemplateColumns; @@ -14697,11 +15482,21 @@ var baseAttributes = { }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } }, { - attributes: baseAttributes, - save: function save(_ref2) { - var _classnames2; + attributes: media_text_deprecated_objectSpread({}, baseAttributes, { + customBackgroundColor: { + type: 'string' + }, + mediaUrl: { + type: 'string', + source: 'attribute', + selector: 'figure video,figure img', + attribute: 'src' + } + }), + save: function save(_ref3) { + var _classnames3; - var attributes = _ref2.attributes; + var attributes = _ref3.attributes; var backgroundColor = attributes.backgroundColor, customBackgroundColor = attributes.customBackgroundColor, isStackedOnMobile = attributes.isStackedOnMobile, @@ -14725,9 +15520,9 @@ var baseAttributes = { } }; var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()((_classnames2 = { + var className = classnames_default()((_classnames3 = { 'has-media-on-the-right': 'right' === mediaPosition - }, Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames2, 'is-stacked-on-mobile', isStackedOnMobile), _classnames2)); + }, Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames3, 'is-stacked-on-mobile', isStackedOnMobile), _classnames3)); var gridTemplateColumns; if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { @@ -14749,22 +15544,46 @@ var baseAttributes = { } }]); +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pull-left.js + + +/** + * WordPress dependencies + */ + +var pullLeft = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M4 18h6V6H4v12zm9-10v1.5h7V8h-7zm0 7.5h7V14h-7v1.5z" +})); +/* harmony default export */ var pull_left = (pullLeft); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pull-right.js + + +/** + * WordPress dependencies + */ + +var pullRight = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M14 6v12h6V6h-6zM4 9.5h7V8H4v1.5zm0 6h7V14H4v1.5z" +})); +/* harmony default export */ var pull_right = (pullRight); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js - - - - - /** * External dependencies */ - /** * WordPress dependencies */ @@ -14798,283 +15617,234 @@ var applyWidthConstraints = function applyWidthConstraints(width) { var edit_LINK_DESTINATION_MEDIA = 'media'; var edit_LINK_DESTINATION_ATTACHMENT = 'attachment'; -var edit_MediaTextEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaTextEdit, _Component); +function edit_attributesFromMedia(_ref) { + var _ref$attributes = _ref.attributes, + linkDestination = _ref$attributes.linkDestination, + href = _ref$attributes.href, + setAttributes = _ref.setAttributes; + return function (media) { + var mediaType; + var src; // for media selections originated from a file upload. - function MediaTextEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MediaTextEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaTextEdit).apply(this, arguments)); - _this.onSelectMedia = _this.onSelectMedia.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onWidthChange = _this.onWidthChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.commitWidthChange = _this.commitWidthChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - mediaWidth: null - }; - _this.onSetHref = _this.onSetHref.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(MediaTextEdit, [{ - key: "onSelectMedia", - value: function onSelectMedia(media) { - var setAttributes = this.props.setAttributes; - var _this$props$attribute = this.props.attributes, - linkDestination = _this$props$attribute.linkDestination, - href = _this$props$attribute.href; - var mediaType; - var src; // for media selections originated from a file upload. - - if (media.media_type) { - if (media.media_type === 'image') { - mediaType = 'image'; - } else { - // only images and videos are accepted so if the media_type is not an image we can assume it is a video. - // video contain the media type of 'file' in the object returned from the rest api. - mediaType = 'video'; - } + if (media.media_type) { + if (media.media_type === 'image') { + mediaType = 'image'; } else { - // for media selections originated from existing files in the media library. - mediaType = media.type; + // only images and videos are accepted so if the media_type is not an image we can assume it is a video. + // video contain the media type of 'file' in the object returned from the rest api. + mediaType = 'video'; } - - if (mediaType === 'image') { - // Try the "large" size URL, falling back to the "full" size URL below. - src = Object(external_this_lodash_["get"])(media, ['sizes', 'large', 'url']) || Object(external_this_lodash_["get"])(media, ['media_details', 'sizes', 'large', 'source_url']); - } - - var newHref = href; - - if (linkDestination === edit_LINK_DESTINATION_MEDIA) { - // Update the media link. - newHref = media.url; - } // Check if the image is linked to the attachment page. - - - if (linkDestination === edit_LINK_DESTINATION_ATTACHMENT) { - // Update the media link. - newHref = media.link; - } - - setAttributes({ - mediaAlt: media.alt, - mediaId: media.id, - mediaType: mediaType, - mediaUrl: src || media.url, - mediaLink: media.link || undefined, - href: newHref, - focalPoint: undefined - }); + } else { + // for media selections originated from existing files in the media library. + mediaType = media.type; } - }, { - key: "onWidthChange", - value: function onWidthChange(width) { - this.setState({ - mediaWidth: applyWidthConstraints(width) - }); + + if (mediaType === 'image') { + var _media$sizes, _media$sizes$large, _media$media_details, _media$media_details$, _media$media_details$2; + + // Try the "large" size URL, falling back to the "full" size URL below. + src = ((_media$sizes = media.sizes) === null || _media$sizes === void 0 ? void 0 : (_media$sizes$large = _media$sizes.large) === null || _media$sizes$large === void 0 ? void 0 : _media$sizes$large.url) || ( // eslint-disable-next-line camelcase + (_media$media_details = media.media_details) === null || _media$media_details === void 0 ? void 0 : (_media$media_details$ = _media$media_details.sizes) === null || _media$media_details$ === void 0 ? void 0 : (_media$media_details$2 = _media$media_details$.large) === null || _media$media_details$2 === void 0 ? void 0 : _media$media_details$2.source_url); } - }, { - key: "onSetHref", - value: function onSetHref(props) { - this.props.setAttributes(props); + + var newHref = href; + + if (linkDestination === edit_LINK_DESTINATION_MEDIA) { + // Update the media link. + newHref = media.url; + } // Check if the image is linked to the attachment page. + + + if (linkDestination === edit_LINK_DESTINATION_ATTACHMENT) { + // Update the media link. + newHref = media.link; } - }, { - key: "commitWidthChange", - value: function commitWidthChange(width) { - var setAttributes = this.props.setAttributes; - setAttributes({ - mediaWidth: applyWidthConstraints(width) - }); - this.setState({ - mediaWidth: null - }); - } - }, { - key: "renderMediaArea", - value: function renderMediaArea() { - var attributes = this.props.attributes; - var mediaAlt = attributes.mediaAlt, - mediaId = attributes.mediaId, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth, - imageFill = attributes.imageFill, - focalPoint = attributes.focalPoint; - return Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ - className: "wp-block-media-text__media", - onSelectMedia: this.onSelectMedia, - onWidthChange: this.onWidthChange, - commitWidthChange: this.commitWidthChange - }, { - mediaAlt: mediaAlt, - mediaId: mediaId, - mediaType: mediaType, - mediaUrl: mediaUrl, - mediaPosition: mediaPosition, - mediaWidth: mediaWidth, - imageFill: imageFill, - focalPoint: focalPoint - })); - } - }, { - key: "render", - value: function render() { - var _classnames; - var _this$props = this.props, - attributes = _this$props.attributes, - className = _this$props.className, - backgroundColor = _this$props.backgroundColor, - isSelected = _this$props.isSelected, - setAttributes = _this$props.setAttributes, - setBackgroundColor = _this$props.setBackgroundColor, - image = _this$props.image; - var isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaWidth = attributes.mediaWidth, - verticalAlignment = attributes.verticalAlignment, - mediaUrl = attributes.mediaUrl, - imageFill = attributes.imageFill, - focalPoint = attributes.focalPoint, - rel = attributes.rel, - href = attributes.href, - linkTarget = attributes.linkTarget, - linkClass = attributes.linkClass, - linkDestination = attributes.linkDestination; - var temporaryMediaWidth = this.state.mediaWidth; - var classNames = classnames_default()(className, (_classnames = { - 'has-media-on-the-right': 'right' === mediaPosition, - 'is-selected': isSelected, - 'has-background': backgroundColor.class || backgroundColor.color - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); - var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); - var gridTemplateColumns = 'right' === mediaPosition ? "1fr ".concat(widthString) : "".concat(widthString, " 1fr"); - var style = { - gridTemplateColumns: gridTemplateColumns, - msGridColumns: gridTemplateColumns, - backgroundColor: backgroundColor.color - }; - var colorSettings = [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background color') - }]; - var toolbarControls = [{ - icon: 'align-pull-left', - title: Object(external_this_wp_i18n_["__"])('Show media on left'), - isActive: mediaPosition === 'left', - onClick: function onClick() { - return setAttributes({ - mediaPosition: 'left' - }); - } - }, { - icon: 'align-pull-right', - title: Object(external_this_wp_i18n_["__"])('Show media on right'), - isActive: mediaPosition === 'right', - onClick: function onClick() { - return setAttributes({ - mediaPosition: 'right' - }); - } - }]; - - var onMediaAltChange = function onMediaAltChange(newMediaAlt) { - setAttributes({ - mediaAlt: newMediaAlt - }); - }; - - var onVerticalAlignmentChange = function onVerticalAlignmentChange(alignment) { - setAttributes({ - verticalAlignment: alignment - }); - }; - - var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Media & Text settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Stack on mobile'), - checked: isStackedOnMobile, - onChange: function onChange() { - return setAttributes({ - isStackedOnMobile: !isStackedOnMobile - }); - } - }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Crop image to fill entire column'), - checked: imageFill, - onChange: function onChange() { - return setAttributes({ - imageFill: !imageFill - }); - } - }), imageFill && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { - label: Object(external_this_wp_i18n_["__"])('Focal point picker'), - url: mediaUrl, - value: focalPoint, - onChange: function onChange(value) { - return setAttributes({ - focalPoint: value - }); - } - }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - label: Object(external_this_wp_i18n_["__"])('Alt text (alternative text)'), - value: mediaAlt, - onChange: onMediaAltChange, - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: "https://www.w3.org/WAI/tutorials/images/decision-tree" - }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) - })); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color settings'), - initialOpen: false, - colorSettings: colorSettings - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - controls: toolbarControls - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { - onChange: onVerticalAlignmentChange, - value: verticalAlignment - }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageURLInputUI"], { - url: href || '', - onChangeUrl: this.onSetHref, - linkDestination: linkDestination, - mediaType: mediaType, - mediaUrl: image && image.source_url, - mediaLink: image && image.link, - linkTarget: linkTarget, - linkClass: linkClass, - rel: rel - }))), Object(external_this_wp_element_["createElement"])("div", { - className: classNames, - style: style - }, this.renderMediaArea(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - template: TEMPLATE, - templateInsertUpdatesSelection: false - }))); - } - }]); - - return MediaTextEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var media_text_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor'), Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; - - var mediaId = props.attributes.mediaId, - isSelected = props.isSelected; - return { - image: mediaId && isSelected ? getMedia(mediaId) : null + setAttributes({ + mediaAlt: media.alt, + mediaId: media.id, + mediaType: mediaType, + mediaUrl: src || media.url, + mediaLink: media.link || undefined, + href: newHref, + focalPoint: undefined + }); }; -})])(edit_MediaTextEdit)); +} + +function MediaTextEdit(_ref2) { + var _classnames; + + var attributes = _ref2.attributes, + isSelected = _ref2.isSelected, + setAttributes = _ref2.setAttributes; + var focalPoint = attributes.focalPoint, + href = attributes.href, + imageFill = attributes.imageFill, + isStackedOnMobile = attributes.isStackedOnMobile, + linkClass = attributes.linkClass, + linkDestination = attributes.linkDestination, + linkTarget = attributes.linkTarget, + mediaAlt = attributes.mediaAlt, + mediaId = attributes.mediaId, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth, + rel = attributes.rel, + verticalAlignment = attributes.verticalAlignment; + var image = Object(external_this_wp_data_["useSelect"])(function (select) { + return mediaId && isSelected ? select('core').getMedia(mediaId) : null; + }, [isSelected, mediaId]); + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + temporaryMediaWidth = _useState2[0], + setTemporaryMediaWidth = _useState2[1]; + + var onSelectMedia = edit_attributesFromMedia({ + attributes: attributes, + setAttributes: setAttributes + }); + + var onSetHref = function onSetHref(props) { + setAttributes(props); + }; + + var onWidthChange = function onWidthChange(width) { + setTemporaryMediaWidth(applyWidthConstraints(width)); + }; + + var commitWidthChange = function commitWidthChange(width) { + setAttributes({ + mediaWidth: applyWidthConstraints(width) + }); + setTemporaryMediaWidth(applyWidthConstraints(width)); + }; + + var classNames = classnames_default()((_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition, + 'is-selected': isSelected, + 'is-stacked-on-mobile': isStackedOnMobile + }, Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); + var gridTemplateColumns = 'right' === mediaPosition ? "1fr ".concat(widthString) : "".concat(widthString, " 1fr"); + var style = { + gridTemplateColumns: gridTemplateColumns, + msGridColumns: gridTemplateColumns + }; + var toolbarControls = [{ + icon: pull_left, + title: Object(external_this_wp_i18n_["__"])('Show media on left'), + isActive: mediaPosition === 'left', + onClick: function onClick() { + return setAttributes({ + mediaPosition: 'left' + }); + } + }, { + icon: pull_right, + title: Object(external_this_wp_i18n_["__"])('Show media on right'), + isActive: mediaPosition === 'right', + onClick: function onClick() { + return setAttributes({ + mediaPosition: 'right' + }); + } + }]; + + var onMediaAltChange = function onMediaAltChange(newMediaAlt) { + setAttributes({ + mediaAlt: newMediaAlt + }); + }; + + var onVerticalAlignmentChange = function onVerticalAlignmentChange(alignment) { + setAttributes({ + verticalAlignment: alignment + }); + }; + + var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Media & Text settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Stack on mobile'), + checked: isStackedOnMobile, + onChange: function onChange() { + return setAttributes({ + isStackedOnMobile: !isStackedOnMobile + }); + } + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Crop image to fill entire column'), + checked: imageFill, + onChange: function onChange() { + return setAttributes({ + imageFill: !imageFill + }); + } + }), imageFill && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { + label: Object(external_this_wp_i18n_["__"])('Focal point picker'), + url: mediaUrl, + value: focalPoint, + onChange: function onChange(value) { + return setAttributes({ + focalPoint: value + }); + } + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + label: Object(external_this_wp_i18n_["__"])('Alt text (alternative text)'), + value: mediaAlt, + onChange: onMediaAltChange, + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: "https://www.w3.org/WAI/tutorials/images/decision-tree" + }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) + })); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + controls: toolbarControls + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { + onChange: onVerticalAlignmentChange, + value: verticalAlignment + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageURLInputUI"], { + url: href || '', + onChangeUrl: onSetHref, + linkDestination: linkDestination, + mediaType: mediaType, + mediaUrl: image && image.source_url, + mediaLink: image && image.link, + linkTarget: linkTarget, + linkClass: linkClass, + rel: rel + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, { + className: classNames, + style: style + }, Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ + className: "wp-block-media-text__media", + onSelectMedia: onSelectMedia, + onWidthChange: onWidthChange, + commitWidthChange: commitWidthChange + }, { + focalPoint: focalPoint, + imageFill: imageFill, + isSelected: isSelected, + isStackedOnMobile: isStackedOnMobile, + mediaAlt: mediaAlt, + mediaId: mediaId, + mediaPosition: mediaPosition, + mediaType: mediaType, + mediaUrl: mediaUrl, + mediaWidth: mediaWidth + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + __experimentalTagName: "div", + __experimentalPassedProps: { + className: 'wp-block-media-text__content' + }, + template: TEMPLATE, + templateInsertUpdatesSelection: false + }))); +} + +/* harmony default export */ var media_text_edit = (MediaTextEdit); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/save.js @@ -15100,9 +15870,7 @@ function media_text_save_save(_ref) { var _classnames; var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - isStackedOnMobile = attributes.isStackedOnMobile, + var isStackedOnMobile = attributes.isStackedOnMobile, mediaAlt = attributes.mediaAlt, mediaPosition = attributes.mediaPosition, mediaType = attributes.mediaType, @@ -15144,11 +15912,10 @@ function media_text_save_save(_ref) { }); } }; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); var className = classnames_default()((_classnames = { 'has-media-on-the-right': 'right' === mediaPosition, - 'has-background': backgroundClass || customBackgroundColor - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + 'is-stacked-on-mobile': isStackedOnMobile + }, Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; var gridTemplateColumns; @@ -15157,7 +15924,6 @@ function media_text_save_save(_ref) { } var style = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, gridTemplateColumns: gridTemplateColumns }; return Object(external_this_wp_element_["createElement"])("div", { @@ -15256,18 +16022,12 @@ var media_text_transforms_transforms = { var media_text_metadata = { name: "core/media-text", - category: "layout", + category: "media", attributes: { align: { type: "string", "default": "wide" }, - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, mediaAlt: { type: "string", source: "attribute", @@ -15338,6 +16098,15 @@ var media_text_metadata = { focalPoint: { type: "object" } + }, + supports: { + align: ["wide", "full"], + html: false, + lightBlockWrapper: true, + __experimentalColor: { + gradients: true, + linkColor: true + } } }; @@ -15349,10 +16118,6 @@ var media_text_settings = { description: Object(external_this_wp_i18n_["__"])('Set media and words side-by-side for a richer layout.'), icon: media_and_text, keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('video')], - supports: { - align: ['wide', 'full'], - html: false - }, example: { attributes: { mediaType: 'image', @@ -15387,7 +16152,7 @@ var comment = Object(external_this_wp_element_["createElement"])(external_this_w viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" + d: "M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z" })); /* harmony default export */ var library_comment = (comment); @@ -15401,6 +16166,10 @@ var comment = Object(external_this_wp_element_["createElement"])(external_this_w +function latest_comments_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (latest_comments_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function latest_comments_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -15424,17 +16193,17 @@ var MIN_COMMENTS = 1; var MAX_COMMENTS = 100; -var edit_LatestComments = -/*#__PURE__*/ -function (_Component) { +var edit_LatestComments = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(LatestComments, _Component); + var _super = latest_comments_edit_createSuper(LatestComments); + function LatestComments() { var _this; Object(classCallCheck["a" /* default */])(this, LatestComments); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestComments).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(assertThisInitialized["a" /* default */])(_this)); // Create toggles for each attribute; we create them here rather than // passing `this.createToggleAttribute( 'displayAvatar' )` directly to // `onChange` to avoid re-renders. @@ -15514,18 +16283,50 @@ function (_Component) { * Internal dependencies */ +var latest_comments_metadata = { + name: "core/latest-comments", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + commentsToShow: { + type: "number", + "default": 5, + minimum: 1, + maximum: 100 + }, + displayAvatar: { + type: "boolean", + "default": true + }, + displayDate: { + type: "boolean", + "default": true + }, + displayExcerpt: { + type: "boolean", + "default": true + } + }, + supports: { + align: true, + html: false + } +}; + +var latest_comments_name = latest_comments_metadata.name; -var latest_comments_name = 'core/latest-comments'; var latest_comments_settings = { title: Object(external_this_wp_i18n_["__"])('Latest Comments'), description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent comments.'), icon: library_comment, - category: 'widgets', keywords: [Object(external_this_wp_i18n_["__"])('recent comments')], - supports: { - align: true, - html: false - }, + example: {}, edit: latest_comments_edit }; @@ -15539,47 +16340,160 @@ var latest_comments_settings = { var postList = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "11", - y: "7", - width: "6", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "11", - y: "11", - width: "6", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "11", - y: "15", - width: "6", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "7", - y: "7", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "7", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "7", - y: "15", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" })); /* harmony default export */ var post_list = (postList); -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(42); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/deprecated.js + + +function latest_posts_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function latest_posts_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { latest_posts_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { latest_posts_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * Internal dependencies + */ +var deprecated_metadata = { + name: "core/latest-posts", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + categories: { + type: "array", + items: { + type: "object" + } + }, + selectedAuthor: { + type: "number" + }, + postsToShow: { + type: "number", + "default": 5 + }, + displayPostContent: { + type: "boolean", + "default": false + }, + displayPostContentRadio: { + type: "string", + "default": "excerpt" + }, + excerptLength: { + type: "number", + "default": 55 + }, + displayAuthor: { + type: "boolean", + "default": false + }, + displayPostDate: { + type: "boolean", + "default": false + }, + postLayout: { + type: "string", + "default": "list" + }, + columns: { + type: "number", + "default": 3 + }, + order: { + type: "string", + "default": "desc" + }, + orderBy: { + type: "string", + "default": "date" + }, + displayFeaturedImage: { + type: "boolean", + "default": false + }, + featuredImageAlign: { + type: "string", + "enum": ["left", "center", "right"] + }, + featuredImageSizeSlug: { + type: "string", + "default": "thumbnail" + }, + featuredImageSizeWidth: { + type: "number", + "default": null + }, + featuredImageSizeHeight: { + type: "number", + "default": null + } + }, + supports: { + align: true, + html: false + } +}; +var deprecated_attributes = deprecated_metadata.attributes; +/* harmony default export */ var latest_posts_deprecated = ([{ + attributes: latest_posts_deprecated_objectSpread({}, deprecated_attributes, { + categories: { + type: 'string' + } + }), + supports: { + align: true, + html: false + }, + migrate: function migrate(oldAttributes) { + // This needs the full category object, not just the ID. + return latest_posts_deprecated_objectSpread({}, oldAttributes, { + categories: [{ + id: Number(oldAttributes.categories) + }] + }); + }, + isEligible: function isEligible(_ref) { + var categories = _ref.categories; + return categories && 'string' === typeof categories; + }, + save: function save() { + return null; + } +}]); // EXTERNAL MODULE: external {"this":["wp","date"]} -var external_this_wp_date_ = __webpack_require__(60); +var external_this_wp_date_ = __webpack_require__(68); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list.js + + +/** + * WordPress dependencies + */ + +var list = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["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" +})); +/* harmony default export */ var library_list = (list); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/grid.js +var grid = __webpack_require__(296); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/constants.js +var MIN_EXCERPT_LENGTH = 10; +var MAX_EXCERPT_LENGTH = 100; +var MAX_POSTS_COLUMNS = 6; // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js @@ -15595,6 +16509,10 @@ function latest_posts_edit_ownKeys(object, enumerableOnly) { var keys = Object.k function latest_posts_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { latest_posts_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { latest_posts_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function latest_posts_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (latest_posts_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function latest_posts_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -15612,6 +16530,12 @@ function latest_posts_edit_objectSpread(target) { for (var i = 1; i < arguments. + +/** + * Internal dependencies + */ + + /** * Module Constants */ @@ -15619,21 +16543,24 @@ function latest_posts_edit_objectSpread(target) { for (var i = 1; i < arguments. var CATEGORIES_LIST_QUERY = { per_page: -1 }; -var MAX_POSTS_COLUMNS = 6; +var USERS_LIST_QUERY = { + per_page: -1 +}; -var edit_LatestPostsEdit = -/*#__PURE__*/ -function (_Component) { +var edit_LatestPostsEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(LatestPostsEdit, _Component); + var _super = latest_posts_edit_createSuper(LatestPostsEdit); + function LatestPostsEdit() { var _this; Object(classCallCheck["a" /* default */])(this, LatestPostsEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestPostsEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.state = { - categoriesList: [] + categoriesList: [], + authorList: [] }; return _this; } @@ -15659,6 +16586,21 @@ function (_Component) { }); } }); + this.fetchRequest = external_this_wp_apiFetch_default()({ + path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/users", USERS_LIST_QUERY) + }).then(function (authorList) { + if (_this2.isStillMounted) { + _this2.setState({ + authorList: authorList + }); + } + }).catch(function () { + if (_this2.isStillMounted) { + _this2.setState({ + authorList: [] + }); + } + }); } }, { key: "componentWillUnmount", @@ -15675,22 +16617,55 @@ function (_Component) { latestPosts = _this$props.latestPosts, defaultImageWidth = _this$props.defaultImageWidth, defaultImageHeight = _this$props.defaultImageHeight; - var categoriesList = this.state.categoriesList; + var _this$state = this.state, + categoriesList = _this$state.categoriesList, + authorList = _this$state.authorList; var displayFeaturedImage = attributes.displayFeaturedImage, displayPostContentRadio = attributes.displayPostContentRadio, displayPostContent = attributes.displayPostContent, displayPostDate = attributes.displayPostDate, + displayAuthor = attributes.displayAuthor, postLayout = attributes.postLayout, columns = attributes.columns, order = attributes.order, orderBy = attributes.orderBy, categories = attributes.categories, + selectedAuthor = attributes.selectedAuthor, postsToShow = attributes.postsToShow, excerptLength = attributes.excerptLength, featuredImageAlign = attributes.featuredImageAlign, featuredImageSizeSlug = attributes.featuredImageSizeSlug, featuredImageSizeWidth = attributes.featuredImageSizeWidth, featuredImageSizeHeight = attributes.featuredImageSizeHeight; + var categorySuggestions = categoriesList.reduce(function (accumulator, category) { + return latest_posts_edit_objectSpread({}, accumulator, Object(defineProperty["a" /* default */])({}, category.name, category)); + }, {}); + + var selectCategories = function selectCategories(tokens) { + var hasNoSuggestion = tokens.some(function (token) { + return typeof token === 'string' && !categorySuggestions[token]; + }); + + if (hasNoSuggestion) { + return; + } // Categories that are already will be objects, while new additions will be strings (the name). + // allCategories nomalizes the array so that they are all objects. + + + var allCategories = tokens.map(function (token) { + return typeof token === 'string' ? categorySuggestions[token] : token; + }); // We do nothing if the category is not selected + // from suggestions. + + if (Object(external_this_lodash_["includes"])(allCategories, null)) { + return false; + } + + setAttributes({ + categories: allCategories + }); + }; + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Post content settings') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { @@ -15724,11 +16699,19 @@ function (_Component) { excerptLength: value }); }, - min: 10, - max: 100 + min: MIN_EXCERPT_LENGTH, + max: MAX_EXCERPT_LENGTH })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Post meta settings') }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display author name'), + checked: displayAuthor, + onChange: function onChange(value) { + return setAttributes({ + displayAuthor: value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { label: Object(external_this_wp_i18n_["__"])('Display post date'), checked: displayPostDate, onChange: function onChange(value) { @@ -15789,8 +16772,6 @@ function (_Component) { orderBy: orderBy }, { numberOfItems: postsToShow, - categoriesList: categoriesList, - selectedCategoryId: categories, onOrderChange: function onOrderChange(value) { return setAttributes({ order: value @@ -15801,16 +16782,21 @@ function (_Component) { orderBy: value }); }, - onCategoryChange: function onCategoryChange(value) { - return setAttributes({ - categories: '' !== value ? value : undefined - }); - }, onNumberOfItemsChange: function onNumberOfItemsChange(value) { return setAttributes({ postsToShow: value }); - } + }, + categorySuggestions: categorySuggestions, + onCategoryChange: selectCategories, + selectedCategories: categories, + onAuthorChange: function onAuthorChange(value) { + return setAttributes({ + selectedAuthor: '' !== value ? Number(value) : undefined + }); + }, + authorList: authorList, + selectedAuthorId: selectedAuthor })), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { label: Object(external_this_wp_i18n_["__"])('Columns'), value: columns, @@ -15827,7 +16813,7 @@ function (_Component) { if (!hasPosts) { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "admin-post", + icon: library_pin, label: Object(external_this_wp_i18n_["__"])('Latest Posts') }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); } // Removing posts from display should be instant. @@ -15835,7 +16821,7 @@ function (_Component) { var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; var layoutControls = [{ - icon: 'list-view', + icon: library_list, title: Object(external_this_wp_i18n_["__"])('List view'), onClick: function onClick() { return setAttributes({ @@ -15844,7 +16830,7 @@ function (_Component) { }, isActive: postLayout === 'list' }, { - icon: 'grid-view', + icon: grid["a" /* default */], title: Object(external_this_wp_i18n_["__"])('Grid view'), onClick: function onClick() { return setAttributes({ @@ -15862,11 +16848,15 @@ function (_Component) { className: classnames_default()(this.props.className, Object(defineProperty["a" /* default */])({ 'wp-block-latest-posts__list': true, 'is-grid': postLayout === 'grid', - 'has-dates': displayPostDate + 'has-dates': displayPostDate, + 'has-author': displayAuthor }, "columns-".concat(columns), postLayout === 'grid')) }, displayPosts.map(function (post, i) { var titleTrimmed = Object(external_this_lodash_["invoke"])(post, ['title', 'rendered', 'trim']); var excerpt = post.excerpt.rendered; + var currentAuthor = authorList.find(function (author) { + return author.id === post.author; + }); var excerptElement = document.createElement('div'); excerptElement.innerHTML = excerpt; excerpt = excerptElement.textContent || excerptElement.innerText || ''; @@ -15874,7 +16864,12 @@ function (_Component) { var imageClasses = classnames_default()(Object(defineProperty["a" /* default */])({ 'wp-block-latest-posts__featured-image': true }, "align".concat(featuredImageAlign), !!featuredImageAlign)); - var postExcerpt = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === '' ? excerpt.trim().split(' ', excerptLength).join(' ') + ' ... ' + Object(external_this_wp_i18n_["__"])('Read more') + '' : excerpt; + var needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === ''; + var postExcerpt = needsReadMore ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, excerpt.trim().split(' ', excerptLength).join(' '), Object(external_this_wp_i18n_["__"])(' … '), Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noopener noreferrer" + }, Object(external_this_wp_i18n_["__"])('Read more'))) : excerpt; return Object(external_this_wp_element_["createElement"])("li", { key: i }, displayFeaturedImage && Object(external_this_wp_element_["createElement"])("div", { @@ -15890,14 +16885,16 @@ function (_Component) { href: post.link, target: "_blank", rel: "noreferrer noopener" - }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(no title)')), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { + }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(no title)')), displayAuthor && currentAuthor && Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-latest-posts__post-author" + }, Object(external_this_wp_i18n_["sprintf"])( + /* translators: byline. %s: current author. */ + Object(external_this_wp_i18n_["__"])('by %s'), currentAuthor.name)), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), className: "wp-block-latest-posts__post-date" }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt)), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-latest-posts__post-excerpt" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { - key: "html" - }, postExcerpt)), displayPostContent && displayPostContentRadio === 'full_post' && Object(external_this_wp_element_["createElement"])("div", { + }, postExcerpt), displayPostContent && displayPostContentRadio === 'full_post' && Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-latest-posts__post-full-content" }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { key: "html" @@ -15915,7 +16912,8 @@ function (_Component) { postsToShow = _props$attributes.postsToShow, order = _props$attributes.order, orderBy = _props$attributes.orderBy, - categories = _props$attributes.categories; + categories = _props$attributes.categories, + selectedAuthor = _props$attributes.selectedAuthor; var _select = select('core'), getEntityRecords = _select.getEntityRecords, @@ -15928,8 +16926,12 @@ function (_Component) { imageSizes = _getSettings.imageSizes, imageDimensions = _getSettings.imageDimensions; + var catIds = categories && categories.length > 0 ? categories.map(function (cat) { + return cat.id; + }) : []; var latestPostsQuery = Object(external_this_lodash_["pickBy"])({ - categories: categories, + categories: catIds, + author: selectedAuthor, order: order, orderby: orderBy, per_page: postsToShow @@ -15982,34 +16984,224 @@ function (_Component) { */ -var latest_posts_name = 'core/latest-posts'; + +var latest_posts_metadata = { + name: "core/latest-posts", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + categories: { + type: "array", + items: { + type: "object" + } + }, + selectedAuthor: { + type: "number" + }, + postsToShow: { + type: "number", + "default": 5 + }, + displayPostContent: { + type: "boolean", + "default": false + }, + displayPostContentRadio: { + type: "string", + "default": "excerpt" + }, + excerptLength: { + type: "number", + "default": 55 + }, + displayAuthor: { + type: "boolean", + "default": false + }, + displayPostDate: { + type: "boolean", + "default": false + }, + postLayout: { + type: "string", + "default": "list" + }, + columns: { + type: "number", + "default": 3 + }, + order: { + type: "string", + "default": "desc" + }, + orderBy: { + type: "string", + "default": "date" + }, + displayFeaturedImage: { + type: "boolean", + "default": false + }, + featuredImageAlign: { + type: "string", + "enum": ["left", "center", "right"] + }, + featuredImageSizeSlug: { + type: "string", + "default": "thumbnail" + }, + featuredImageSizeWidth: { + type: "number", + "default": null + }, + featuredImageSizeHeight: { + type: "number", + "default": null + } + }, + supports: { + align: true, + html: false + } +}; +var latest_posts_name = latest_posts_metadata.name; + var latest_posts_settings = { title: Object(external_this_wp_i18n_["__"])('Latest Posts'), description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent posts.'), icon: post_list, - category: 'widgets', keywords: [Object(external_this_wp_i18n_["__"])('recent posts')], - supports: { - align: true, - html: false - }, - edit: latest_posts_edit + example: {}, + edit: latest_posts_edit, + deprecated: latest_posts_deprecated }; -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list.js +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets-rtl.js /** * WordPress dependencies */ -var list = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" +var formatListBulletsRTL = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z" + d: "M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z" })); -/* harmony default export */ var library_list = (list); +/* harmony default export */ var format_list_bullets_rtl = (formatListBulletsRTL); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-bullets.js + + +/** + * WordPress dependencies + */ + +var formatListBullets = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" +})); +/* harmony default export */ var format_list_bullets = (formatListBullets); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-numbered-rtl.js + + +/** + * WordPress dependencies + */ + +var formatListNumberedRTL = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z" +})); +/* harmony default export */ var format_list_numbered_rtl = (formatListNumberedRTL); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-list-numbered.js + + +/** + * WordPress dependencies + */ + +var formatListNumbered = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z" +})); +/* harmony default export */ var format_list_numbered = (formatListNumbered); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-outdent-rtl.js + + +/** + * WordPress dependencies + */ + +var formatOutdentRTL = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z" +})); +/* harmony default export */ var format_outdent_rtl = (formatOutdentRTL); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-outdent.js + + +/** + * WordPress dependencies + */ + +var formatOutdent = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z" +})); +/* harmony default export */ var format_outdent = (formatOutdent); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-indent-rtl.js + + +/** + * WordPress dependencies + */ + +var formatIndentRTL = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z" +})); +/* harmony default export */ var format_indent_rtl = (formatIndentRTL); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-indent.js + + +/** + * WordPress dependencies + */ + +var formatIndent = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z" +})); +/* harmony default export */ var format_indent = (formatIndent); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/ordered-list-settings.js @@ -16070,6 +17262,8 @@ function list_edit_objectSpread(target) { for (var i = 1; i < arguments.length; + + /** * Internal dependencies */ @@ -16081,7 +17275,6 @@ function ListEdit(_ref) { setAttributes = _ref.setAttributes, mergeBlocks = _ref.mergeBlocks, onReplace = _ref.onReplace, - className = _ref.className, isSelected = _ref.isSelected; var ordered = attributes.ordered, values = attributes.values, @@ -16089,6 +17282,9 @@ function ListEdit(_ref) { reversed = attributes.reversed, start = attributes.start; var tagName = ordered ? 'ol' : 'ul'; + var isRTL = Object(external_this_wp_data_["useSelect"])(function (select) { + return !!select('core/block-editor').getSettings().isRTL; + }, []); var controls = function controls(_ref2) { var value = _ref2.value, @@ -16124,7 +17320,7 @@ function ListEdit(_ref) { } })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { controls: [{ - icon: 'editor-ul', + icon: isRTL ? format_list_bullets_rtl : format_list_bullets, title: Object(external_this_wp_i18n_["__"])('Convert to unordered list'), isActive: Object(external_this_wp_richText_["__unstableIsActiveListType"])(value, 'ul', tagName), onClick: function onClick() { @@ -16140,7 +17336,7 @@ function ListEdit(_ref) { } } }, { - icon: 'editor-ol', + icon: isRTL ? format_list_numbered_rtl : format_list_numbered, title: Object(external_this_wp_i18n_["__"])('Convert to ordered list'), isActive: Object(external_this_wp_richText_["__unstableIsActiveListType"])(value, 'ol', tagName), onClick: function onClick() { @@ -16156,7 +17352,7 @@ function ListEdit(_ref) { } } }, { - icon: 'editor-outdent', + icon: isRTL ? format_outdent_rtl : format_outdent, title: Object(external_this_wp_i18n_["__"])('Outdent list item'), shortcut: Object(external_this_wp_i18n_["_x"])('Backspace', 'keyboard key'), isDisabled: !Object(external_this_wp_richText_["__unstableCanOutdentListItems"])(value), @@ -16165,7 +17361,7 @@ function ListEdit(_ref) { onFocus(); } }, { - icon: 'editor-indent', + icon: isRTL ? format_indent_rtl : format_indent, title: Object(external_this_wp_i18n_["__"])('Indent list item'), shortcut: Object(external_this_wp_i18n_["_x"])('Space', 'keyboard key'), isDisabled: !Object(external_this_wp_richText_["__unstableCanIndentListItems"])(value), @@ -16182,14 +17378,14 @@ function ListEdit(_ref) { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { identifier: "values", multiline: "li", - tagName: tagName, + __unstableMultilineRootTag: tagName, + tagName: external_this_wp_blockEditor_["__experimentalBlock"][tagName], onChange: function onChange(nextValues) { return setAttributes({ values: nextValues }); }, value: values, - className: className, placeholder: Object(external_this_wp_i18n_["__"])('Write list…'), onMerge: mergeBlocks, onSplit: function onSplit(value) { @@ -16431,7 +17627,7 @@ function list_objectSpread(target) { for (var i = 1; i < arguments.length; i++) var list_metadata = { name: "core/list", - category: "common", + category: "text", attributes: { ordered: { type: "boolean", @@ -16454,6 +17650,11 @@ var list_metadata = { reversed: { type: "boolean" } + }, + supports: { + className: false, + __unstablePasteTextInline: true, + lightBlockWrapper: true } }; @@ -16465,10 +17666,6 @@ var list_settings = { description: Object(external_this_wp_i18n_["__"])('Create a bulleted or numbered list.'), icon: library_list, keywords: [Object(external_this_wp_i18n_["__"])('bullet list'), Object(external_this_wp_i18n_["__"])('ordered list'), Object(external_this_wp_i18n_["__"])('numbered list')], - supports: { - className: false, - __unstablePasteTextInline: true - }, example: { attributes: { values: '
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • ' @@ -16514,7 +17711,9 @@ function MissingBlockWarning(_ref) { var messageHTML; if (hasContent && hasHTMLBlock) { - messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName); + messageHTML = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: block name */ + Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName); actions.push(Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { key: "convert", onClick: convertToHTML, @@ -16522,7 +17721,9 @@ function MissingBlockWarning(_ref) { isPrimary: true }, Object(external_this_wp_i18n_["__"])('Keep as HTML'))); } else { - messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); + messageHTML = Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: block name */ + Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); } return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { @@ -16573,7 +17774,7 @@ function missing_save_save(_ref) { var missing_metadata = { name: "core/missing", - category: "common", + category: "text", attributes: { originalName: { type: "string" @@ -16585,6 +17786,13 @@ var missing_metadata = { type: "string", source: "html" } + }, + supports: { + className: false, + customClassName: false, + inserter: false, + html: false, + reusable: false } }; @@ -16594,13 +17802,6 @@ var missing_settings = { name: missing_name, title: Object(external_this_wp_i18n_["__"])('Unsupported'), description: Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for this block.'), - supports: { - className: false, - customClassName: false, - inserter: false, - html: false, - reusable: false - }, __experimentalLabel: function __experimentalLabel(attributes, _ref) { var context = _ref.context; @@ -16630,7 +17831,7 @@ var more = Object(external_this_wp_element_["createElement"])(external_this_wp_p viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z" + d: "M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z" })); /* harmony default export */ var library_more = (more); @@ -16643,6 +17844,10 @@ var more = Object(external_this_wp_element_["createElement"])(external_this_wp_p +function more_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (more_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function more_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -16653,17 +17858,17 @@ var more = Object(external_this_wp_element_["createElement"])(external_this_wp_p -var edit_MoreEdit = -/*#__PURE__*/ -function (_Component) { +var edit_MoreEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(MoreEdit, _Component); + var _super = more_edit_createSuper(MoreEdit); + function MoreEdit() { var _this; Object(classCallCheck["a" /* default */])(this, MoreEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MoreEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.onChangeInput = _this.onChangeInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.state = { @@ -16812,7 +18017,7 @@ var more_transforms_transforms = { var more_metadata = { name: "core/more", - category: "layout", + category: "design", attributes: { customText: { type: "string" @@ -16821,6 +18026,12 @@ var more_metadata = { type: "boolean", "default": false } + }, + supports: { + customClassName: false, + className: false, + html: false, + multiple: false } }; @@ -16831,12 +18042,6 @@ var more_settings = { title: Object(external_this_wp_i18n_["_x"])('More', 'block name'), description: Object(external_this_wp_i18n_["__"])('Content before this block will be shown in the excerpt on your archives page.'), icon: library_more, - supports: { - customClassName: false, - className: false, - html: false, - multiple: false - }, example: {}, __experimentalLabel: function __experimentalLabel(attributes, _ref) { var context = _ref.context; @@ -16861,7 +18066,7 @@ var pageBreak = Object(external_this_wp_element_["createElement"])(external_this xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z" + d: "M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z" })); /* harmony default export */ var page_break = (pageBreak); @@ -16925,7 +18130,13 @@ var nextpage_transforms_transforms = { var nextpage_metadata = { name: "core/nextpage", - category: "layout" + category: "design", + parent: ["core/post-content"], + supports: { + customClassName: false, + className: false, + html: false + } }; @@ -16933,15 +18144,9 @@ var nextpage_name = nextpage_metadata.name; var nextpage_settings = { title: Object(external_this_wp_i18n_["__"])('Page Break'), - parent: ['core/post-content'], description: Object(external_this_wp_i18n_["__"])('Separate your content into a multi-page experience.'), icon: page_break, keywords: [Object(external_this_wp_i18n_["__"])('next page'), Object(external_this_wp_i18n_["__"])('pagination')], - supports: { - customClassName: false, - className: false, - html: false - }, example: {}, transforms: nextpage_transforms, edit: NextPageEdit, @@ -16959,27 +18164,7 @@ var preformatted = Object(external_this_wp_element_["createElement"])(external_t viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "6", - y: "10", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "6", - y: "14", - width: "8", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "16", - y: "14", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "10", - y: "10", - width: "8", - height: "2" + 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 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z" })); /* harmony default export */ var library_preformatted = (preformatted); @@ -16999,7 +18184,7 @@ function PreformattedEdit(_ref) { style = _ref.style; var content = attributes.content; return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "pre", + tagName: external_this_wp_blockEditor_["__experimentalBlock"].pre, identifier: "content", preserveWhiteSpace: true, value: content, @@ -17066,6 +18251,12 @@ var preformatted_transforms_transforms = { transform: function transform(attributes) { return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); } + }, { + type: 'block', + blocks: ['core/code'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/code', attributes); + } }] }; /* harmony default export */ var preformatted_transforms = (preformatted_transforms_transforms); @@ -17083,7 +18274,7 @@ var preformatted_transforms_transforms = { var preformatted_metadata = { name: "core/preformatted", - category: "formatting", + category: "text", attributes: { content: { type: "string", @@ -17092,6 +18283,9 @@ var preformatted_metadata = { "default": "", __unstablePreserveWhiteSpace: true } + }, + supports: { + lightBlockWrapper: true } }; @@ -17104,8 +18298,11 @@ var preformatted_settings = { icon: library_preformatted, example: { attributes: { + /* eslint-disable @wordpress/i18n-no-collapsible-whitespace */ // translators: Sample content for the Preformatted block. Can be replaced with a more locale-adequate work. content: Object(external_this_wp_i18n_["__"])('EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;') + /* eslint-enable @wordpress/i18n-no-collapsible-whitespace */ + } }, transforms: preformatted_transforms, @@ -17128,12 +18325,8 @@ var preformatted_settings = { var pullquote = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Polygon"], { - points: "21 18 2 18 2 20 21 20" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Polygon"], { - points: "21 4 2 4 2 6 21 6" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z" })); /* harmony default export */ var library_pullquote = (pullquote); @@ -17397,6 +18590,12 @@ var pullquote_deprecated_deprecated = [{ }]; /* harmony default export */ var pullquote_deprecated = (pullquote_deprecated_deprecated); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/figure.js +var Figure = 'figure'; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/blockquote.js +var BlockQuote = 'blockquote'; + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js @@ -17408,6 +18607,10 @@ var pullquote_deprecated_deprecated = [{ +function pullquote_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (pullquote_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function pullquote_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -17420,23 +18623,30 @@ var pullquote_deprecated_deprecated = [{ + /** * Internal dependencies */ -var edit_PullQuoteEdit = -/*#__PURE__*/ -function (_Component) { +/** + * Internal dependencies + */ + + + +var edit_PullQuoteEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(PullQuoteEdit, _Component); + var _super = pullquote_edit_createSuper(PullQuoteEdit); + function PullQuoteEdit(props) { var _this; Object(classCallCheck["a" /* default */])(this, PullQuoteEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PullQuoteEdit).call(this, props)); + _this = _super.call(this, props); _this.wasTextColorAutomaticallyComputed = false; _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -17509,7 +18719,8 @@ function (_Component) { textColor = _this$props3.textColor, setAttributes = _this$props3.setAttributes, isSelected = _this$props3.isSelected, - className = _this$props3.className; + className = _this$props3.className, + insertBlocksAfter = _this$props3.insertBlocksAfter; var value = attributes.value, citation = attributes.citation; var isSolidColorStyle = Object(external_this_lodash_["includes"])(className, SOLID_COLOR_CLASS); @@ -17525,13 +18736,14 @@ function (_Component) { color: textColor.color }; var blockquoteClasses = textColor.color && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(Figure, { style: figureStyles, className: figureClasses - }, Object(external_this_wp_element_["createElement"])("blockquote", { + }, Object(external_this_wp_element_["createElement"])(BlockQuote, { style: blockquoteStyles, className: blockquoteClasses }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "value", multiline: true, value: value, onChange: function onChange(nextValue) { @@ -17540,8 +18752,10 @@ function (_Component) { }); }, placeholder: // translators: placeholder text used for the quote - Object(external_this_wp_i18n_["__"])('Write quote…') + Object(external_this_wp_i18n_["__"])('Write quote…'), + textAlign: "center" }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "citation", value: citation, placeholder: // translators: placeholder text used for the citation Object(external_this_wp_i18n_["__"])('Write citation…'), @@ -17550,8 +18764,13 @@ function (_Component) { citation: nextCitation }); }, - className: "wp-block-pullquote__citation" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + className: "wp-block-pullquote__citation", + __unstableMobileNoFocusOnMount: true, + textAlign: "center", + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } + }))), external_this_wp_element_["Platform"].OS === 'web' && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { title: Object(external_this_wp_i18n_["__"])('Color settings'), colorSettings: [{ value: mainColor.color, @@ -17659,7 +18878,7 @@ function pullquote_save_save(_ref) { var pullquote_metadata = { name: "core/pullquote", - category: "formatting", + category: "text", attributes: { value: { type: "string", @@ -17685,6 +18904,9 @@ var pullquote_metadata = { customTextColor: { type: "string" } + }, + supports: { + align: ["left", "right", "wide", "full"] } }; @@ -17709,9 +18931,6 @@ var pullquote_settings = { name: SOLID_COLOR_STYLE_NAME, label: Object(external_this_wp_i18n_["__"])('Solid color') }], - supports: { - align: ['left', 'right', 'wide', 'full'] - }, edit: pullquote_edit, save: pullquote_save_save, deprecated: pullquote_deprecated @@ -17726,6 +18945,10 @@ var pullquote_settings = { +function edit_panel_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (edit_panel_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function edit_panel_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -17735,17 +18958,17 @@ var pullquote_settings = { -var edit_panel_ReusableBlockEditPanel = -/*#__PURE__*/ -function (_Component) { +var edit_panel_ReusableBlockEditPanel = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(ReusableBlockEditPanel, _Component); + var _super = edit_panel_createSuper(ReusableBlockEditPanel); + function ReusableBlockEditPanel() { var _this; Object(classCallCheck["a" /* default */])(this, ReusableBlockEditPanel); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEditPanel).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.titleField = Object(external_this_wp_element_["createRef"])(); _this.editButton = Object(external_this_wp_element_["createRef"])(); _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -17853,6 +19076,10 @@ function (_Component) { +function block_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (block_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function block_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -17874,11 +19101,11 @@ function (_Component) { -var edit_ReusableBlockEdit = -/*#__PURE__*/ -function (_Component) { +var edit_ReusableBlockEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(ReusableBlockEdit, _Component); + var _super = block_edit_createSuper(ReusableBlockEdit); + function ReusableBlockEdit(_ref) { var _this; @@ -17886,7 +19113,7 @@ function (_Component) { Object(classCallCheck["a" /* default */])(this, ReusableBlockEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.startEditing = _this.startEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.stopEditing = _this.stopEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.setBlocks = _this.setBlocks.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -18077,17 +19304,26 @@ function (_Component) { * Internal dependencies */ - -var block_name = 'core/block'; -var block_settings = { - title: Object(external_this_wp_i18n_["__"])('Reusable Block'), - category: 'reusable', - description: Object(external_this_wp_i18n_["__"])('Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), +var block_metadata = { + name: "core/block", + category: "reusable", + attributes: { + ref: { + type: "number" + } + }, supports: { customClassName: false, html: false, inserter: false - }, + } +}; + +var block_name = block_metadata.name; + +var block_settings = { + title: Object(external_this_wp_i18n_["__"])('Reusable Block'), + description: Object(external_this_wp_i18n_["__"])('Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), edit: block_edit }; @@ -18100,9 +19336,9 @@ var block_settings = { var rss = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z" + d: "M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z" })); /* harmony default export */ var library_rss = (rss); @@ -18111,11 +19347,6 @@ var rss = Object(external_this_wp_element_["createElement"])(external_this_wp_pr - - - - - /** * WordPress dependencies */ @@ -18127,173 +19358,140 @@ var rss = Object(external_this_wp_element_["createElement"])(external_this_wp_pr var DEFAULT_MIN_ITEMS = 1; var DEFAULT_MAX_ITEMS = 10; +function RSSEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes; -var edit_RSSEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(RSSEdit, _Component); + var _useState = Object(external_this_wp_element_["useState"])(!attributes.feedURL), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isEditing = _useState2[0], + setIsEditing = _useState2[1]; - function RSSEdit() { - var _this; + var blockLayout = attributes.blockLayout, + columns = attributes.columns, + displayAuthor = attributes.displayAuthor, + displayDate = attributes.displayDate, + displayExcerpt = attributes.displayExcerpt, + excerptLength = attributes.excerptLength, + feedURL = attributes.feedURL, + itemsToShow = attributes.itemsToShow; - Object(classCallCheck["a" /* default */])(this, RSSEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RSSEdit).apply(this, arguments)); - _this.state = { - editing: !_this.props.attributes.feedURL + function toggleAttribute(propName) { + return function () { + var value = attributes[propName]; + setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); }; - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSubmitURL = _this.onSubmitURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; } - Object(createClass["a" /* default */])(RSSEdit, [{ - key: "toggleAttribute", - value: function toggleAttribute(propName) { - var _this2 = this; + function onSubmitURL(event) { + event.preventDefault(); - return function () { - var value = _this2.props.attributes[propName]; - var setAttributes = _this2.props.setAttributes; - setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); - }; + if (feedURL) { + setIsEditing(false); } - }, { - key: "onSubmitURL", - value: function onSubmitURL(event) { - event.preventDefault(); - var feedURL = this.props.attributes.feedURL; + } - if (feedURL) { - this.setState({ - editing: false + if (isEditing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: library_rss, + label: "RSS" + }, Object(external_this_wp_element_["createElement"])("form", { + onSubmit: onSubmitURL, + className: "wp-block-rss__placeholder-form" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + placeholder: Object(external_this_wp_i18n_["__"])('Enter URL here…'), + value: feedURL, + onChange: function onChange(value) { + return setAttributes({ + feedURL: value }); - } + }, + className: "wp-block-rss__placeholder-input" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isPrimary: true, + type: "submit" + }, Object(external_this_wp_i18n_["__"])('Use URL')))); + } + + var toolbarControls = [{ + icon: pencil["a" /* default */], + title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), + onClick: function onClick() { + return setIsEditing(true); } }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props$attribute = this.props.attributes, - blockLayout = _this$props$attribute.blockLayout, - columns = _this$props$attribute.columns, - displayAuthor = _this$props$attribute.displayAuthor, - displayExcerpt = _this$props$attribute.displayExcerpt, - displayDate = _this$props$attribute.displayDate, - excerptLength = _this$props$attribute.excerptLength, - feedURL = _this$props$attribute.feedURL, - itemsToShow = _this$props$attribute.itemsToShow; - var setAttributes = this.props.setAttributes; - - if (this.state.editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: library_rss, - label: "RSS" - }, Object(external_this_wp_element_["createElement"])("form", { - onSubmit: this.onSubmitURL - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - placeholder: Object(external_this_wp_i18n_["__"])('Enter URL here…'), - value: feedURL, - onChange: function onChange(value) { - return setAttributes({ - feedURL: value - }); - }, - className: 'components-placeholder__input' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, - type: "submit" - }, Object(external_this_wp_i18n_["__"])('Use URL')))); - } - - var toolbarControls = [{ - icon: pencil["a" /* default */], - title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), - onClick: function onClick() { - return _this3.setState({ - editing: true - }); - } - }, { - icon: 'list-view', - title: Object(external_this_wp_i18n_["__"])('List view'), - onClick: function onClick() { - return setAttributes({ - blockLayout: 'list' - }); - }, - isActive: blockLayout === 'list' - }, { - icon: 'grid-view', - title: Object(external_this_wp_i18n_["__"])('Grid view'), - onClick: function onClick() { - return setAttributes({ - blockLayout: 'grid' - }); - }, - isActive: blockLayout === 'grid' - }]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { - controls: toolbarControls - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('RSS settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Number of items'), - value: itemsToShow, - onChange: function onChange(value) { - return setAttributes({ - itemsToShow: value - }); - }, - min: DEFAULT_MIN_ITEMS, - max: DEFAULT_MAX_ITEMS, - required: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display author'), - checked: displayAuthor, - onChange: this.toggleAttribute('displayAuthor') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display date'), - checked: displayDate, - onChange: this.toggleAttribute('displayDate') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display excerpt'), - checked: displayExcerpt, - onChange: this.toggleAttribute('displayExcerpt') - }), displayExcerpt && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), - value: excerptLength, - onChange: function onChange(value) { - return setAttributes({ - excerptLength: value - }); - }, - min: 10, - max: 100, - required: true - }), blockLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: 6, - required: true - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/rss", - attributes: this.props.attributes - }))); - } - }]); - - return RSSEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var rss_edit = (edit_RSSEdit); + icon: library_list, + title: Object(external_this_wp_i18n_["__"])('List view'), + onClick: function onClick() { + return setAttributes({ + blockLayout: 'list' + }); + }, + isActive: blockLayout === 'list' + }, { + icon: grid["a" /* default */], + title: Object(external_this_wp_i18n_["__"])('Grid view'), + onClick: function onClick() { + return setAttributes({ + blockLayout: 'grid' + }); + }, + isActive: blockLayout === 'grid' + }]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], { + controls: toolbarControls + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('RSS settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Number of items'), + value: itemsToShow, + onChange: function onChange(value) { + return setAttributes({ + itemsToShow: value + }); + }, + min: DEFAULT_MIN_ITEMS, + max: DEFAULT_MAX_ITEMS, + required: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display author'), + checked: displayAuthor, + onChange: toggleAttribute('displayAuthor') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display date'), + checked: displayDate, + onChange: toggleAttribute('displayDate') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display excerpt'), + checked: displayExcerpt, + onChange: toggleAttribute('displayExcerpt') + }), displayExcerpt && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), + value: excerptLength, + onChange: function onChange(value) { + return setAttributes({ + excerptLength: value + }); + }, + min: 10, + max: 100, + required: true + }), blockLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: 6, + required: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/rss", + attributes: attributes + }))); +} // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js /** @@ -18305,40 +19503,73 @@ function (_Component) { * Internal dependencies */ +var rss_metadata = { + name: "core/rss", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + columns: { + type: "number", + "default": 2 + }, + blockLayout: { + type: "string", + "default": "list" + }, + feedURL: { + type: "string", + "default": "" + }, + itemsToShow: { + type: "number", + "default": 5 + }, + displayExcerpt: { + type: "boolean", + "default": false + }, + displayAuthor: { + type: "boolean", + "default": false + }, + displayDate: { + type: "boolean", + "default": false + }, + excerptLength: { + type: "number", + "default": 55 + } + }, + supports: { + align: true, + html: false + } +}; + +var rss_name = rss_metadata.name; -var rss_name = 'core/rss'; var rss_settings = { title: Object(external_this_wp_i18n_["__"])('RSS'), description: Object(external_this_wp_i18n_["__"])('Display entries from any RSS or Atom feed.'), icon: library_rss, - category: 'widgets', keywords: [Object(external_this_wp_i18n_["__"])('atom'), Object(external_this_wp_i18n_["__"])('feed')], - supports: { - align: true, - html: false - }, example: { attributes: { feedURL: 'https://wordpress.org' } }, - edit: rss_edit + edit: RSSEdit }; -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js - - -/** - * WordPress dependencies - */ - -var search = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z" -})); -/* harmony default export */ var library_search = (search); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js +var search = __webpack_require__(285); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js @@ -18395,6 +19626,21 @@ function SearchEdit(_ref) { })); } +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/variations.js +/** + * WordPress dependencies + */ + +var search_variations_variations = [{ + name: 'default', + isDefault: true, + attributes: { + buttonText: Object(external_this_wp_i18n_["__"])('Search'), + label: Object(external_this_wp_i18n_["__"])('Search') + } +}]; +/* harmony default export */ var search_variations = (search_variations_variations); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/index.js /** * WordPress dependencies @@ -18405,18 +19651,44 @@ function SearchEdit(_ref) { * Internal dependencies */ +var search_metadata = { + name: "core/search", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + label: { + type: "string" + }, + placeholder: { + type: "string", + "default": "" + }, + buttonText: { + type: "string" + } + }, + supports: { + align: true, + html: false + } +}; + + +var search_name = search_metadata.name; -var search_name = 'core/search'; var search_settings = { title: Object(external_this_wp_i18n_["__"])('Search'), description: Object(external_this_wp_i18n_["__"])('Help visitors find your content.'), - icon: library_search, - category: 'widgets', + icon: search["a" /* default */], keywords: [Object(external_this_wp_i18n_["__"])('find')], - supports: { - align: true - }, example: {}, + variations: search_variations, edit: SearchEdit }; @@ -18431,29 +19703,58 @@ var group = Object(external_this_wp_element_["createElement"])(external_this_wp_ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z" + d: "M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z" })); /* harmony default export */ var library_group = (group); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/deprecated.js + +function group_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function group_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { group_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { group_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + /** * External dependencies */ + /** * WordPress dependencies */ -var group_deprecated_deprecated = [// Version of the group block with a bug that made text color class not applied. + +var deprecated_migrateAttributes = function migrateAttributes(attributes) { + if (!attributes.tagName) { + attributes = group_deprecated_objectSpread({}, attributes, { + tagName: 'div' + }); + } + + if (!attributes.customTextColor && !attributes.customBackgroundColor) { + return attributes; + } + + var style = { + color: {} + }; + + if (attributes.customTextColor) { + style.color.text = attributes.customTextColor; + } + + if (attributes.customBackgroundColor) { + style.color.background = attributes.customBackgroundColor; + } + + return group_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor']), { + style: style + }); +}; + +var group_deprecated_deprecated = [// Version of the block without global styles support { attributes: { backgroundColor: { @@ -18474,6 +19775,7 @@ var group_deprecated_deprecated = [// Version of the group block with a bug that anchor: true, html: false }, + migrate: deprecated_migrateAttributes, save: function save(_ref) { var attributes = _ref.attributes; var backgroundColor = attributes.backgroundColor, @@ -18482,6 +19784,51 @@ var group_deprecated_deprecated = [// Version of the group block with a bug that customTextColor = attributes.customTextColor; var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var className = classnames_default()(backgroundClass, textClass, { + 'has-text-color': textColor || customTextColor, + 'has-background': backgroundColor || customBackgroundColor + }); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: styles + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-group__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); + } +}, // Version of the group block with a bug that made text color class not applied. +{ + attributes: { + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + } + }, + migrate: deprecated_migrateAttributes, + supports: { + align: ['wide', 'full'], + anchor: true, + html: false + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + textColor = attributes.textColor, + customTextColor = attributes.customTextColor; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); var className = classnames_default()(backgroundClass, { 'has-text-color': textColor || customTextColor, 'has-background': backgroundColor || customBackgroundColor @@ -18512,8 +19859,9 @@ var group_deprecated_deprecated = [// Version of the group block with a bug that anchor: true, html: false }, - save: function save(_ref2) { - var attributes = _ref2.attributes; + migrate: deprecated_migrateAttributes, + save: function save(_ref3) { + var attributes = _ref3.attributes; var backgroundColor = attributes.backgroundColor, customBackgroundColor = attributes.customBackgroundColor; var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); @@ -18540,86 +19888,44 @@ var group_deprecated_deprecated = [// Version of the group block with a bug that - - function GroupEdit(_ref) { - var hasInnerBlocks = _ref.hasInnerBlocks, - className = _ref.className; - var ref = Object(external_this_wp_element_["useRef"])(); + var attributes = _ref.attributes, + className = _ref.className, + clientId = _ref.clientId; + var hasInnerBlocks = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlock = _select.getBlock; - var _experimentalUseColo = Object(external_this_wp_blockEditor_["__experimentalUseColors"])([{ - name: 'textColor', - property: 'color' - }, { - name: 'backgroundColor', - className: 'has-background' - }], { - contrastCheckers: [{ - backgroundColor: true, - textColor: true - }], - colorDetector: { - targetRef: ref - } - }), - TextColor = _experimentalUseColo.TextColor, - BackgroundColor = _experimentalUseColo.BackgroundColor, - InspectorControlsColorPanel = _experimentalUseColo.InspectorControlsColorPanel; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, InspectorControlsColorPanel, Object(external_this_wp_element_["createElement"])(BackgroundColor, null, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])("div", { - className: className, - ref: ref - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-group__inner-container" + var block = getBlock(clientId); + return !!(block && block.innerBlocks.length); + }, [clientId]); + var BlockWrapper = external_this_wp_blockEditor_["__experimentalBlock"][attributes.tagName]; + return Object(external_this_wp_element_["createElement"])(BlockWrapper, { + className: className }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - renderAppender: !hasInnerBlocks && external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender - })))))); + renderAppender: hasInnerBlocks ? undefined : function () { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, null); + }, + __experimentalTagName: "div", + __experimentalPassedProps: { + className: 'wp-block-group__inner-container' + } + })); } -/* harmony default export */ var group_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock; - - var block = getBlock(clientId); - return { - hasInnerBlocks: !!(block && block.innerBlocks.length) - }; -})])(GroupEdit)); +/* harmony default export */ var group_edit = (GroupEdit); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/save.js -/** - * External dependencies - */ - /** * WordPress dependencies */ - function group_save_save(_ref) { var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - textColor = attributes.textColor, - customTextColor = attributes.customTextColor; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var className = classnames_default()(backgroundClass, textClass, { - 'has-text-color': textColor || customTextColor, - 'has-background': backgroundColor || customBackgroundColor - }); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: styles - }, Object(external_this_wp_element_["createElement"])("div", { + var Tag = attributes.tagName; + return Object(external_this_wp_element_["createElement"])(Tag, null, Object(external_this_wp_element_["createElement"])("div", { className: "wp-block-group__inner-container" }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); } @@ -18639,19 +19945,21 @@ function group_save_save(_ref) { var group_metadata = { name: "core/group", - category: "layout", + category: "design", attributes: { - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" + tagName: { + type: "string", + "default": "div" + } + }, + supports: { + align: ["wide", "full"], + anchor: true, + html: false, + lightBlockWrapper: true, + __experimentalColor: { + gradients: true, + linkColor: true } } }; @@ -18665,8 +19973,12 @@ var group_settings = { keywords: [Object(external_this_wp_i18n_["__"])('container'), Object(external_this_wp_i18n_["__"])('wrapper'), Object(external_this_wp_i18n_["__"])('row'), Object(external_this_wp_i18n_["__"])('section')], example: { attributes: { - customBackgroundColor: '#ffffff', - customTextColor: '#000000' + style: { + color: { + text: '#000000', + background: '#ffffff' + } + } }, innerBlocks: [{ name: 'core/paragraph', @@ -18712,11 +20024,6 @@ var group_settings = { } }] }, - supports: { - align: ['wide', 'full'], - anchor: true, - html: false - }, transforms: { from: [{ type: 'block', @@ -18764,7 +20071,7 @@ var separator = Object(external_this_wp_element_["createElement"])(external_this viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M19 13H5v-2h14v2z" + d: "M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z" })); /* harmony default export */ var library_separator = (separator); @@ -18907,7 +20214,7 @@ var separator_transforms_transforms = { var separator_metadata = { name: "core/separator", - category: "layout", + category: "design", attributes: { color: { type: "string" @@ -18959,10 +20266,13 @@ var shortcode_shortcode = Object(external_this_wp_element_["createElement"])(ext viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z" + d: "M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z" })); /* harmony default export */ var library_shortcode = (shortcode_shortcode); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js +var build_module_icon = __webpack_require__(130); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/edit.js @@ -18979,14 +20289,14 @@ function ShortcodeEdit(_ref) { var instanceId = Object(external_this_wp_compose_["useInstanceId"])(ShortcodeEdit); var inputId = "blocks-shortcode-input-".concat(instanceId); return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-shortcode components-placeholder" + className: "wp-block-shortcode components-placeholder" }, Object(external_this_wp_element_["createElement"])("label", { htmlFor: inputId, className: "components-placeholder__label" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { - icon: "shortcode" + }, Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], { + icon: library_shortcode }), Object(external_this_wp_i18n_["__"])('Shortcode')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - className: "input-control", + className: "blocks-shortcode__textarea", id: inputId, value: attributes.text, placeholder: Object(external_this_wp_i18n_["__"])('Write shortcode here…'), @@ -19011,7 +20321,7 @@ function shortcode_save_save(_ref) { } // EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(85); +var external_this_wp_autop_ = __webpack_require__(94); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/transforms.js /** @@ -19064,6 +20374,11 @@ var shortcode_metadata = { type: "string", source: "html" } + }, + supports: { + className: false, + customClassName: false, + html: false } }; var shortcode_name = shortcode_metadata.name; @@ -19073,11 +20388,6 @@ var shortcode_settings = { description: Object(external_this_wp_i18n_["__"])('Insert additional custom elements with a WordPress shortcode.'), icon: library_shortcode, transforms: shortcode_transforms, - supports: { - customClassName: false, - className: false, - html: false - }, edit: ShortcodeEdit, save: shortcode_save_save }; @@ -19093,14 +20403,13 @@ var resizeCornerNE = Object(external_this_wp_element_["createElement"])(external viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7" + d: "M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z" })); /* harmony default export */ var resize_corner_n_e = (resizeCornerNE); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/edit.js - /** * External dependencies */ @@ -19114,22 +20423,22 @@ var resizeCornerNE = Object(external_this_wp_element_["createElement"])(external - +var MIN_SPACER_HEIGHT = 20; +var MAX_SPACER_HEIGHT = 500; var edit_SpacerEdit = function SpacerEdit(_ref) { var attributes = _ref.attributes, isSelected = _ref.isSelected, setAttributes = _ref.setAttributes, - instanceId = _ref.instanceId, onResizeStart = _ref.onResizeStart, _onResizeStop = _ref.onResizeStop; var height = attributes.height; - var id = "block-spacer-height-input-".concat(instanceId); - var _useState = Object(external_this_wp_element_["useState"])(height), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - inputHeightValue = _useState2[0], - setInputHeightValue = _useState2[1]; + var updateHeight = function updateHeight(value) { + setAttributes({ + height: value + }); + }; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { className: classnames_default()('block-library-spacer__resize-container', { @@ -19138,7 +20447,7 @@ var edit_SpacerEdit = function SpacerEdit(_ref) { size: { height: height }, - minHeight: "20", + minHeight: MIN_SPACER_HEIGHT, enable: { top: false, right: false, @@ -19153,41 +20462,19 @@ var edit_SpacerEdit = function SpacerEdit(_ref) { onResizeStop: function onResizeStop(event, direction, elt, delta) { _onResizeStop(); - var spacerHeight = parseInt(height + delta.height, 10); - setAttributes({ - height: spacerHeight - }); - setInputHeightValue(spacerHeight); - } + var spacerHeight = Math.min(parseInt(height + delta.height, 10), MAX_SPACER_HEIGHT); + updateHeight(spacerHeight); + }, + showHandle: isSelected }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { title: Object(external_this_wp_i18n_["__"])('Spacer settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { label: Object(external_this_wp_i18n_["__"])('Height in pixels'), - id: id - }, Object(external_this_wp_element_["createElement"])("input", { - type: "number", - id: id, - onChange: function onChange(event) { - var spacerHeight = parseInt(event.target.value, 10); - setInputHeightValue(spacerHeight); - - if (isNaN(spacerHeight)) { - // Set spacer height to default size and input box to empty string - setInputHeightValue(''); - spacerHeight = 100; - } else if (spacerHeight < 20) { - // Set spacer height to minimum size - spacerHeight = 20; - } - - setAttributes({ - height: spacerHeight - }); - }, - value: inputHeightValue, - min: "20", - step: "10" - }))))); + min: MIN_SPACER_HEIGHT, + max: Math.max(MAX_SPACER_HEIGHT, height), + value: height, + onChange: updateHeight + })))); }; /* harmony default export */ var spacer_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { @@ -19229,7 +20516,7 @@ function spacer_save_save(_ref) { var spacer_metadata = { name: "core/spacer", - category: "layout", + category: "design", attributes: { height: { type: "number", @@ -19346,7 +20633,7 @@ var subhead_transforms_transforms = { var subhead_metadata = { name: "core/subhead", - category: "common", + category: "text", attributes: { align: { type: "string" @@ -19356,6 +20643,10 @@ var subhead_metadata = { source: "html", selector: "p" } + }, + supports: { + inserter: false, + multiple: false } }; @@ -19371,30 +20662,25 @@ var subhead_settings = { }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { d: "M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z" })), - supports: { - // Hide from inserter as this block is deprecated. - inserter: false, - multiple: false - }, transforms: subhead_transforms, edit: SubheadEdit, save: subhead_save_save }; -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table.js +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-table.js /** * WordPress dependencies */ -var table = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { +var blockTable = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z" + 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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z" })); -/* harmony default export */ var library_table = (table); +/* harmony default export */ var block_table = (blockTable); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/deprecated.js @@ -19583,6 +20869,111 @@ var align_center = __webpack_require__(282); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js var align_right = __webpack_require__(283); +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-before.js + + +/** + * WordPress dependencies + */ + +var tableRowBefore = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z" +})); +/* harmony default export */ var table_row_before = (tableRowBefore); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-after.js + + +/** + * WordPress dependencies + */ + +var tableRowAfter = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z" +})); +/* harmony default export */ var table_row_after = (tableRowAfter); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-delete.js + + +/** + * WordPress dependencies + */ + +var tableRowDelete = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z" +})); +/* harmony default export */ var table_row_delete = (tableRowDelete); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-column-before.js + + +/** + * WordPress dependencies + */ + +var tableColumnBefore = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z" +})); +/* harmony default export */ var table_column_before = (tableColumnBefore); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-column-after.js + + +/** + * WordPress dependencies + */ + +var tableColumnAfter = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z" +})); +/* harmony default export */ var table_column_after = (tableColumnAfter); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-column-delete.js + + +/** + * WordPress dependencies + */ + +var tableColumnDelete = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z" +})); +/* harmony default export */ var table_column_delete = (tableColumnDelete); + +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table.js + + +/** + * WordPress dependencies + */ + +var table = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z" +})); +/* harmony default export */ var library_table = (table); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/state.js @@ -19734,6 +21125,7 @@ function isCellSelected(cellLocation, selection) { * @param {Object} options * @param {string} options.sectionName Section in which to insert the row. * @param {number} options.rowIndex Row index at which to insert the row. + * @param {number} options.columnCount Column count for the table to create. * * @return {Object} New table state. */ @@ -19904,6 +21296,10 @@ function table_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(obj function table_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { table_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { table_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function table_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (table_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function table_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -19917,6 +21313,7 @@ function table_edit_objectSpread(target) { for (var i = 1; i < arguments.length; + /** * Internal dependencies */ @@ -19953,17 +21350,17 @@ var ALIGNMENT_CONTROLS = [{ align: 'right' }]; var withCustomBackgroundColors = Object(external_this_wp_blockEditor_["createCustomColorsHOC"])(BACKGROUND_COLORS); -var edit_TableEdit = -/*#__PURE__*/ -function (_Component) { +var edit_TableEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(TableEdit, _Component); + var _super = table_edit_createSuper(TableEdit); + function TableEdit() { var _this; Object(classCallCheck["a" /* default */])(this, TableEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TableEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.onCreateTable = _this.onCreateTable.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -20326,32 +21723,32 @@ function (_Component) { value: function getTableControls() { var selectedCell = this.state.selectedCell; return [{ - icon: 'table-row-before', + icon: table_row_before, title: Object(external_this_wp_i18n_["__"])('Add Row Before'), isDisabled: !selectedCell, onClick: this.onInsertRowBefore }, { - icon: 'table-row-after', + icon: table_row_after, title: Object(external_this_wp_i18n_["__"])('Add Row After'), isDisabled: !selectedCell, onClick: this.onInsertRowAfter }, { - icon: 'table-row-delete', + icon: table_row_delete, title: Object(external_this_wp_i18n_["__"])('Delete Row'), isDisabled: !selectedCell, onClick: this.onDeleteRow }, { - icon: 'table-col-before', + icon: table_column_before, title: Object(external_this_wp_i18n_["__"])('Add Column Before'), isDisabled: !selectedCell, onClick: this.onInsertColumnBefore }, { - icon: 'table-col-after', + icon: table_column_after, title: Object(external_this_wp_i18n_["__"])('Add Column After'), isDisabled: !selectedCell, onClick: this.onInsertColumnAfter }, { - icon: 'table-col-delete', + icon: table_column_delete, title: Object(external_this_wp_i18n_["__"])('Delete Column'), isDisabled: !selectedCell, onClick: this.onDeleteColumn @@ -20361,7 +21758,7 @@ function (_Component) { * Renders a table section. * * @param {Object} options - * @param {string} options.type Section type: head, body, or foot. + * @param {string} options.name Section type: head, body, or foot. * @param {Array} options.rows The rows to render. * * @return {Object} React element for the section. @@ -20438,7 +21835,8 @@ function (_Component) { className = _this$props10.className, backgroundColor = _this$props10.backgroundColor, setBackgroundColor = _this$props10.setBackgroundColor, - setAttributes = _this$props10.setAttributes; + setAttributes = _this$props10.setAttributes, + insertBlocksAfter = _this$props10.insertBlocksAfter; var _this$state2 = this.state, initialRowCount = _this$state2.initialRowCount, initialColumnCount = _this$state2.initialColumnCount; @@ -20454,12 +21852,12 @@ function (_Component) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { label: Object(external_this_wp_i18n_["__"])('Table'), icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: library_table, + icon: block_table, showColors: true }), instructions: Object(external_this_wp_i18n_["__"])('Insert a table for sharing data.') }, Object(external_this_wp_element_["createElement"])("form", { - className: "wp-block-table__placeholder-form", + className: "blocks-table__placeholder-form", onSubmit: this.onCreateTable }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { type: "number", @@ -20467,17 +21865,17 @@ function (_Component) { value: initialColumnCount, onChange: this.onChangeInitialColumnCount, min: "1", - className: "wp-block-table__placeholder-input" + className: "blocks-table__placeholder-input" }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { type: "number", label: Object(external_this_wp_i18n_["__"])('Row Count'), value: initialRowCount, onChange: this.onChangeInitialRowCount, min: "1", - className: "wp-block-table__placeholder-input" + className: "blocks-table__placeholder-input" }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "wp-block-table__placeholder-button", - isSecondary: true, + className: "blocks-table__placeholder-button", + isPrimary: true, type: "submit" }, Object(external_this_wp_i18n_["__"])('Create Table')))); } @@ -20486,11 +21884,14 @@ function (_Component) { 'has-fixed-layout': hasFixedLayout, 'has-background': !!backgroundColor.color }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { - hasArrowIndicator: true, - icon: "editor-table", - label: Object(external_this_wp_i18n_["__"])('Edit table'), - controls: this.getTableControls() + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + hasArrowIndicator: true, + icon: library_table, + toggleProps: toggleProps, + label: Object(external_this_wp_i18n_["__"])('Edit table'), + controls: _this4.getTableControls() + }); })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { label: Object(external_this_wp_i18n_["__"])('Change column alignment'), alignmentControls: ALIGNMENT_CONTROLS, @@ -20551,6 +21952,9 @@ function (_Component) { return _this4.setState({ selectedCell: null }); + }, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); } }))); } @@ -20707,7 +22111,7 @@ var table_transforms_transforms = { var table_metadata = { name: "core/table", - category: "formatting", + category: "text", attributes: { hasFixedLayout: { type: "boolean", @@ -20827,6 +22231,9 @@ var table_metadata = { } } } + }, + supports: { + align: true } }; @@ -20836,7 +22243,7 @@ var table_name = table_metadata.name; var table_settings = { title: Object(external_this_wp_i18n_["__"])('Table'), description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'), - icon: library_table, + icon: block_table, example: { attributes: { head: [{ @@ -20895,9 +22302,6 @@ var table_settings = { name: 'stripes', label: Object(external_this_wp_i18n_["__"])('Stripes') }], - supports: { - align: true - }, transforms: table_transforms, edit: table_edit, save: table_save_save, @@ -21043,7 +22447,7 @@ var text_columns_transforms_transforms = { var text_columns_metadata = { name: "core/text-columns", icon: "columns", - category: "layout", + category: "design", attributes: { content: { type: "array", @@ -21064,6 +22468,9 @@ var text_columns_metadata = { width: { type: "string" } + }, + supports: { + inserter: false } }; @@ -21071,10 +22478,6 @@ var text_columns_metadata = { var text_columns_name = text_columns_metadata.name; var text_columns_settings = { - // Disable insertion as this block is deprecated and ultimately replaced by the Columns block. - supports: { - inserter: false - }, title: Object(external_this_wp_i18n_["__"])('Text Columns (deprecated)'), description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Columns block instead.'), transforms: text_columns_transforms, @@ -21102,7 +22505,7 @@ var verse = Object(external_this_wp_element_["createElement"])(external_this_wp_ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z" + d: "M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z" })); /* harmony default export */ var library_verse = (verse); @@ -21170,7 +22573,8 @@ function VerseEdit(_ref) { }); } })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "pre", + tagName: external_this_wp_blockEditor_["__experimentalBlock"].pre, + identifier: "content", preserveWhiteSpace: true, value: content, onChange: function onChange(nextContent) { @@ -21180,7 +22584,8 @@ function VerseEdit(_ref) { }, placeholder: Object(external_this_wp_i18n_["__"])('Write…'), className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)), - onMerge: mergeBlocks + onMerge: mergeBlocks, + textAlign: textAlign })); } @@ -21246,7 +22651,7 @@ var verse_transforms_transforms = { var verse_metadata = { name: "core/verse", - category: "formatting", + category: "text", attributes: { content: { type: "string", @@ -21258,6 +22663,9 @@ var verse_metadata = { textAlign: { type: "string" } + }, + supports: { + lightBlockWrapper: true } }; @@ -21270,8 +22678,11 @@ var verse_settings = { icon: library_verse, example: { attributes: { + /* eslint-disable @wordpress/i18n-no-collapsible-whitespace */ // translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work. content: Object(external_this_wp_i18n_["__"])('WHAT was he doing, the great god Pan,\n Down in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.') + /* eslint-enable @wordpress/i18n-no-collapsible-whitespace */ + } }, keywords: [Object(external_this_wp_i18n_["__"])('poetry'), Object(external_this_wp_i18n_["__"])('poem')], @@ -21297,7 +22708,7 @@ var video_video = Object(external_this_wp_element_["createElement"])(external_th viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z" + d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z" })); /* harmony default export */ var library_video = (video_video); @@ -21385,6 +22796,10 @@ var edit_common_settings_VideoSettings = function VideoSettings(_ref) { +function video_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (video_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function video_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -21396,6 +22811,7 @@ var edit_common_settings_VideoSettings = function VideoSettings(_ref) { + /** * Internal dependencies */ @@ -21405,17 +22821,17 @@ var edit_common_settings_VideoSettings = function VideoSettings(_ref) { var video_edit_ALLOWED_MEDIA_TYPES = ['video']; var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; -var edit_VideoEdit = -/*#__PURE__*/ -function (_Component) { +var edit_VideoEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(VideoEdit, _Component); + var _super = video_edit_createSuper(VideoEdit); + function VideoEdit() { var _this; Object(classCallCheck["a" /* default */])(this, VideoEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(VideoEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.videoPlayer = Object(external_this_wp_element_["createRef"])(); _this.posterImageButton = Object(external_this_wp_element_["createRef"])(); _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -21530,12 +22946,12 @@ function (_Component) { poster = _this$props$attribute.poster, src = _this$props$attribute.src; var _this$props3 = this.props, - className = _this$props3.className, instanceId = _this$props3.instanceId, isSelected = _this$props3.isSelected, noticeUI = _this$props3.noticeUI, attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; + setAttributes = _this$props3.setAttributes, + insertBlocksAfter = _this$props3.insertBlocksAfter; var onSelectVideo = function onSelectVideo(media) { if (!media || !media.url) { @@ -21558,11 +22974,10 @@ function (_Component) { }; if (!src) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].div, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { icon: library_video }), - className: className, onSelect: onSelectVideo, onSelectURL: this.onSelectURL, accept: "video/*", @@ -21570,7 +22985,7 @@ function (_Component) { value: this.props.attributes, notices: noticeUI, onError: this.onUploadError - }); + })); } var videoPosterDescription = "video-block__poster-image-description-".concat(instanceId); @@ -21596,22 +23011,21 @@ function (_Component) { render: function render(_ref3) { var open = _ref3.open; return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSecondary: true, + isPrimary: true, onClick: open, ref: _this2.posterImageButton, "aria-describedby": videoPosterDescription - }, !_this2.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select Poster Image') : Object(external_this_wp_i18n_["__"])('Replace image')); + }, !_this2.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select') : Object(external_this_wp_i18n_["__"])('Replace')); } }), Object(external_this_wp_element_["createElement"])("p", { id: videoPosterDescription, hidden: true - }, this.props.attributes.poster ? Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), this.props.attributes.poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + }, this.props.attributes.poster ? Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: poster image URL. */ + Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), this.props.attributes.poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { onClick: this.onRemovePoster, - isLink: true, - isDestructive: true - }, Object(external_this_wp_i18n_["__"])('Remove Poster Image')))))), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { + isTertiary: true + }, Object(external_this_wp_i18n_["__"])('Remove')))))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { controls: controls, poster: poster, src: src, @@ -21625,7 +23039,10 @@ function (_Component) { caption: value }); }, - inlineToolbar: true + inlineToolbar: true, + __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() { + return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); + } }))); } }]); @@ -21763,7 +23180,7 @@ var video_transforms_transforms = { var video_metadata = { name: "core/video", - category: "common", + category: "media", attributes: { autoplay: { type: "boolean", @@ -21823,6 +23240,10 @@ var video_metadata = { selector: "video", attribute: "playsinline" } + }, + supports: { + align: true, + lightBlockWrapper: true } }; @@ -21835,9 +23256,6 @@ var video_settings = { icon: library_video, keywords: [Object(external_this_wp_i18n_["__"])('movie')], transforms: video_transforms, - supports: { - align: true - }, edit: video_edit, save: video_save_save }; @@ -21851,9 +23269,9 @@ var video_settings = { var tag_tag = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" + viewBox: "0 0 24 24" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z" + 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" })); /* harmony default export */ var library_tag = (tag_tag); @@ -21867,6 +23285,10 @@ var tag_tag = Object(external_this_wp_element_["createElement"])(external_this_w +function tag_cloud_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (tag_cloud_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function tag_cloud_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -21882,17 +23304,17 @@ var tag_tag = Object(external_this_wp_element_["createElement"])(external_this_w -var edit_TagCloudEdit = -/*#__PURE__*/ -function (_Component) { +var edit_TagCloudEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(TagCloudEdit, _Component); + var _super = tag_cloud_edit_createSuper(TagCloudEdit); + function TagCloudEdit() { var _this; Object(classCallCheck["a" /* default */])(this, TagCloudEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TagCloudEdit).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.state = { editing: !_this.props.attributes.taxonomy }; @@ -21983,17 +23405,39 @@ function (_Component) { * Internal dependencies */ +var tag_cloud_metadata = { + name: "core/tag-cloud", + category: "widgets", + attributes: { + align: { + type: "string", + "enum": ["left", "center", "right", "wide", "full"] + }, + className: { + type: "string" + }, + taxonomy: { + type: "string", + "default": "post_tag" + }, + showTagCounts: { + type: "boolean", + "default": false + } + }, + supports: { + html: false, + align: true + } +}; + +var tag_cloud_name = tag_cloud_metadata.name; -var tag_cloud_name = 'core/tag-cloud'; var tag_cloud_settings = { title: Object(external_this_wp_i18n_["__"])('Tag Cloud'), description: Object(external_this_wp_i18n_["__"])('A cloud of your most used tags.'), icon: library_tag, - category: 'widgets', - supports: { - html: false, - align: true - }, + example: {}, edit: tag_cloud_edit }; @@ -22008,62 +23452,7 @@ var classic = Object(external_this_wp_element_["createElement"])(external_this_w viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "11", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "11", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "8", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "8", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "5", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "5", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "8", - y: "14", - width: "8", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "14", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "14", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "17", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Rect"], { - x: "17", - y: "8", - width: "2", - height: "2" + d: "M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z" })); /* harmony default export */ var library_classic = (classic); @@ -22081,6 +23470,10 @@ function classic_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(o function classic_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { classic_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { classic_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +function classic_edit_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (classic_edit_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function classic_edit_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -22109,17 +23502,17 @@ function isTmceEmpty(editor) { return /^\n?$/.test(body.innerText || body.textContent); } -var edit_ClassicEdit = -/*#__PURE__*/ -function (_Component) { +var edit_ClassicEdit = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(ClassicEdit, _Component); + var _super = classic_edit_createSuper(ClassicEdit); + function ClassicEdit(props) { var _this; Object(classCallCheck["a" /* default */])(this, ClassicEdit); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ClassicEdit).call(this, props)); + _this = _super.call(this, props); _this.initialize = _this.initialize.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.onSetup = _this.onSetup.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.focus = _this.focus.bind(Object(assertThisInitialized["a" /* default */])(_this)); @@ -22339,12 +23732,17 @@ function classic_save_save(_ref) { var classic_metadata = { name: "core/freeform", - category: "formatting", + category: "text", attributes: { content: { type: "string", source: "html" } + }, + supports: { + className: false, + customClassName: false, + reusable: false } }; @@ -22354,17 +23752,25 @@ var classic_settings = { title: Object(external_this_wp_i18n_["_x"])('Classic', 'block title'), description: Object(external_this_wp_i18n_["__"])('Use the classic WordPress editor.'), icon: library_classic, - supports: { - className: false, - customClassName: false, - // Hide 'Add to Reusable blocks' on Classic blocks. Showing it causes a - // confusing UX, because of its similarity to the 'Convert to Blocks' button. - reusable: false - }, edit: edit_ClassicEdit, save: classic_save_save }; +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/share.js + + +/** + * WordPress dependencies + */ + +var share = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { + d: "M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z" +})); +/* harmony default export */ var library_share = (share); + // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/edit.js @@ -22388,18 +23794,17 @@ var edit_TEMPLATE = [['core/social-link', { }], ['core/social-link', { service: 'youtube' }]]; -var edit_SocialLinksEdit = function SocialLinksEdit(_ref) { - var className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { +function SocialLinksEdit() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { allowedBlocks: social_links_edit_ALLOWED_BLOCKS, templateLock: false, template: edit_TEMPLATE, - __experimentalMoverDirection: 'horizontal' - })); -}; -/* harmony default export */ var social_links_edit = (edit_SocialLinksEdit); + __experimentalMoverDirection: 'horizontal', + __experimentalTagName: external_this_wp_blockEditor_["__experimentalBlock"].ul, + __experimentalAppenderTagName: "li" + }); +} +/* harmony default export */ var social_links_edit = (SocialLinksEdit); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/save.js @@ -22420,6 +23825,7 @@ function social_links_save_save(_ref) { * WordPress dependencies */ + /** * Internal dependencies */ @@ -22428,8 +23834,10 @@ function social_links_save_save(_ref) { var social_links_metadata = { name: "core/social-links", category: "widgets", - icon: "share", - attributes: {} + supports: { + align: ["left", "center", "right"], + lightBlockWrapper: true + } }; var social_links_name = social_links_metadata.name; @@ -22438,9 +23846,6 @@ var social_links_settings = { title: Object(external_this_wp_i18n_["__"])('Social Icons'), description: Object(external_this_wp_i18n_["__"])('Display icons linking to your social media profiles or websites.'), keywords: [Object(external_this_wp_i18n_["_x"])('links', 'block keywords')], - supports: { - align: ['left', 'center', 'right'] - }, example: { innerBlocks: [{ name: 'core/social-link', @@ -22473,12 +23878,13 @@ var social_links_settings = { name: 'pill-shape', label: Object(external_this_wp_i18n_["__"])('Pill Shape') }], + icon: library_share, edit: social_links_edit, save: social_links_save_save }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(192); +var keyboard_return = __webpack_require__(195); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js @@ -23071,7 +24477,7 @@ var tumblr_TumblrIcon = function TumblrIcon() { viewBox: "0 0 24 24", version: "1.1" }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { - d: "M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z" + d: "M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z" })); }; @@ -23548,12 +24954,13 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { var classes = classnames_default()('wp-social-link', 'wp-social-link-' + service, { 'wp-social-link__is-incomplete': !url - }); // Import icon. - + }); var IconComponent = social_list_getIconBySite(service); var socialLinkName = social_list_getNameBySite(service); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s label'), socialLinkName), + title: Object(external_this_wp_i18n_["sprintf"])( + /* translators: %s: name of the social service. */ + Object(external_this_wp_i18n_["__"])('%s label'), socialLinkName), initialOpen: false }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { label: Object(external_this_wp_i18n_["__"])('Link label'), @@ -23564,8 +24971,9 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { label: value }); } - })))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: classes, + })))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].li, { + className: classes + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { onClick: function onClick() { return setPopover(true); } @@ -23594,7 +25002,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { icon: keyboard_return["a" /* default */], label: Object(external_this_wp_i18n_["__"])('Apply'), type: "submit" - }))))); + })))))); }; /* harmony default export */ var social_link_edit = (edit_SocialLinkEdit); @@ -23604,6 +25012,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { * WordPress dependencies */ + /** * Internal dependencies */ @@ -23612,7 +25021,7 @@ var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { var social_link_metadata = { name: "core/social-link", category: "widgets", - icon: "share", + parent: ["core/social-links"], attributes: { url: { type: "string" @@ -23623,6 +25032,11 @@ var social_link_metadata = { label: { type: "string" } + }, + supports: { + reusable: false, + html: false, + lightBlockWrapper: true } }; @@ -23630,11 +25044,7 @@ var social_link_name = social_link_metadata.name; var social_link_settings = { title: Object(external_this_wp_i18n_["__"])('Social Icon'), - parent: ['core/social-links'], - supports: { - reusable: false, - html: false - }, + icon: library_share, edit: social_link_edit, description: Object(external_this_wp_i18n_["__"])('Display an icon linking to a social media profile or website.'), variations: social_link_variations @@ -23699,6 +25109,7 @@ var social_link_settings = { + // Full Site Editing Blocks @@ -23710,6 +25121,14 @@ var social_link_settings = { + + + + + + + + /** * Function to register an individual block. * @@ -23749,7 +25168,7 @@ var build_module_registerCoreBlocks = function registerCoreBlocks() { // in various contexts — like the inserter and auto-complete components. build_module_paragraph_namespaceObject, build_module_image_namespaceObject, build_module_heading_namespaceObject, build_module_gallery_namespaceObject, build_module_list_namespaceObject, build_module_quote_namespaceObject, // Register all remaining core blocks. build_module_shortcode_namespaceObject, archives_namespaceObject, build_module_audio_namespaceObject, build_module_button_namespaceObject, buttons_namespaceObject, build_module_calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, build_module_columns_namespaceObject, build_module_column_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject].concat(Object(toConsumableArray["a" /* default */])(embed_common), Object(toConsumableArray["a" /* default */])(embed_others), [build_module_file_namespaceObject, build_module_group_namespaceObject, window.wp && window.wp.oldEditor ? build_module_classic_namespaceObject : null, // Only add the classic block in WP Context - build_module_html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, build_module_rss_namespaceObject, build_module_search_namespaceObject, build_module_separator_namespaceObject, block_namespaceObject, social_links_namespaceObject, social_link_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, build_module_table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject]).forEach(build_module_registerBlock); + build_module_html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, block_namespaceObject, social_links_namespaceObject, social_link_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, build_module_table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject]).forEach(build_module_registerBlock); Object(external_this_wp_blocks_["setDefaultBlockName"])(paragraph_name); if (window.wp && window.wp.oldEditor) { @@ -23757,10 +25176,7 @@ var build_module_registerCoreBlocks = function registerCoreBlocks() { } Object(external_this_wp_blocks_["setUnregisteredTypeHandlerName"])(missing_name); - - if (build_module_group_namespaceObject) { - Object(external_this_wp_blocks_["setGroupingBlockName"])(group_name); - } + Object(external_this_wp_blocks_["setGroupingBlockName"])(group_name); }; /** * Function to register experimental core blocks depending on editor settings. @@ -23780,29 +25196,43 @@ var __experimentalRegisterExperimentalCoreBlocks = false ? undefined : undefine /***/ }), -/***/ 43: +/***/ 44: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 45: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 5: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; } - return target; + return obj; } /***/ }), -/***/ 46: +/***/ 50: /***/ (function(module, exports, __webpack_require__) { /** @@ -23970,29 +25400,7 @@ module.exports = memize; /***/ }), -/***/ 5: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -} - -/***/ }), - -/***/ 54: +/***/ 56: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -25191,107 +26599,97 @@ else {} })(Math); -/***/ }), - -/***/ 56: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["viewport"]; }()); - /***/ }), /***/ 6: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["blockEditor"]; }()); - -/***/ }), - -/***/ 60: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["date"]; }()); - -/***/ }), - -/***/ 67: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["serverSideRender"]; }()); +(function() { module.exports = this["wp"]["primitives"]; }()); /***/ }), /***/ 68: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["escapeHtml"]; }()); +(function() { module.exports = this["wp"]["date"]; }()); /***/ }), /***/ 7: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blockEditor"]; }()); + +/***/ }), + +/***/ 72: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["viewport"]; }()); + +/***/ }), + +/***/ 74: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["serverSideRender"]; }()); + +/***/ }), + +/***/ 79: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["escapeHtml"]; }()); + +/***/ }), + +/***/ 8: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - return self; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); } /***/ }), -/***/ 73: -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), - -/***/ 75: +/***/ 89: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), -/***/ 8: +/***/ 9: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/***/ 85: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["autop"]; }()); /***/ }), -/***/ 87: +/***/ 95: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -25405,13 +26803,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! }()); -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["primitives"]; }()); - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 85b7d9f64f..21efdbab57 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,14 +1,29 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=420)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},11:function(e,t,r){var n; +this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=432)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},11:function(e,t,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=r(163);function v(e,t,r){if(e&&o.isObject(e)&&e instanceof c)return e;var n=new c;return n.parse(e,t,r),n}c.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),i=-1!==c&&c127?A+="x":A+=B[R];if(!A.match(d)){var z=T.slice(0,x),I=T.slice(x+1),L=B.match(p);L&&(z.push(L[1]),I.unshift(L[2])),I.length&&(v="/"+I.join(".")+v),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[w])for(x=0,N=u.length;x0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!k.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=k.slice(-1)[0],E=(r.host||e.host||k.length>1)&&("."===C||".."===C)||""===C,x=0,S=k.length;S>=0;S--)"."===(C=k[S])?k.splice(S,1):".."===C?(k.splice(S,1),x++):x&&(k.splice(S,1),x--);if(!y&&!w)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var P,T=""===k[0]||k[0]&&"/"===k[0].charAt(0);_&&(r.hostname=r.host=T?"":k.length?k.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(y=y||r.host&&k.length)&&!T&&k.unshift(""),k.length?r.pathname=k.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},c.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},12:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function h(e){throw RangeError(m[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function f(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],o=0,c=e.length;o=55296&&t<=56319&&o65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=36)e=d(e/35);return d(n+36*e/(e+38))}function w(e){var t,r,n,o,c,a,i,s,u,b,m,p=[],g=e.length,f=0,O=128,j=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&h("not-basic"),p.push(e.charCodeAt(n));for(o=r>0?r+1:0;o=g&&h("invalid-input"),((s=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36)>=36||s>d((l-f)/a))&&h("overflow"),f+=s*a,!(s<(u=i<=j?1:i>=j+26?26:i-j));i+=36)a>d(l/(b=36-u))&&h("overflow"),a*=b;j=y(f-c,t=p.length+1,0==c),d(f/t)>l-O&&h("overflow"),O+=d(f/t),f%=t,p.splice(f++,0,O)}return v(p)}function k(e){var t,r,n,o,c,a,i,s,u,b,m,g,f,v,w,k=[];for(g=(e=O(e)).length,t=128,r=0,c=72,a=0;a=t&&md((l-r)/(f=n+1))&&h("overflow"),r+=(i-t)*f,t=i,a=0;al&&h("overflow"),m==t){for(s=r,u=36;!(s<(b=u<=c?1:u>=c+26?26:u-c));u+=36)w=s-b,v=36-b,k.push(p(j(b+w%v,0))),s=d(w/v);k.push(p(j(s,0))),c=y(r,f,n==o),r=0,++n}++r,++t}return k.join("")}i={version:"1.3.2",ucs2:{decode:O,encode:v},decode:w,encode:k,toASCII:function(e){return f(e,(function(e){return u.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return f(e,(function(e){return s.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,r,t,e))||(e.exports=o)}()}).call(this,r(161)(e),r(73))},161:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},162:function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},163:function(e,t,r){"use strict";t.decode=t.parse=r(164),t.encode=t.stringify=r(165)},164:function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,c){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var i=/\+/g;e=e.split(t);var l=1e3;c&&"number"==typeof c.maxKeys&&(l=c.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=h.substr(0,g),m=h.substr(g+1)):(b=h,m=""),d=decodeURIComponent(b),p=decodeURIComponent(m),n(a,d)?o(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},165:function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?c(a(e),(function(a){var i=encodeURIComponent(n(a))+r;return o(e[a])?c(e[a],(function(e){return i+encodeURIComponent(n(e))})).join(t):i+encodeURIComponent(n(e[a]))})).join(t):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function c(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},192:function(e,t,r){"use strict";var n=r(0),o=r(9),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,r){"use strict";var n=r(38);var o=r(27),c=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}r.d(t,"a",(function(){return a}))},22:function(e,t){!function(){e.exports=this.wp.keycodes}()},24:function(e,t){!function(){e.exports=this.wp.richText}()},25:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},15:function(e,t,r){"use strict";var n=r(38);var o=r(28),c=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}r.d(t,"a",(function(){return a}))},16:function(e,t,r){"use strict";var n=r(26);var o=r(35),c=r(28);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,"a",(function(){return a}))},17:function(e,t){!function(){e.exports=this.React}()},170:function(e,t,r){"use strict";var n=r(0),o=r(6),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},18:function(e,t,r){"use strict";function n(e,t){for(var r=0;ra?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,o),c&&e(n,c),r}()}()},27:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(25);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},281:function(e,t,r){"use strict";var n=r(0),o=r(9),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z"}));t.a=c},282:function(e,t,r){"use strict";var n=r(0),o=r(9),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z"}));t.a=c},283:function(e,t,r){"use strict";var n=r(0),o=r(9),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z"}));t.a=c},286:function(e,t,r){"use strict";var n=r(0),o=r(9),c=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},290:function(e,t,r){"use strict";var n=r(0),o=r(9),c=Object(n.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(o.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"}));t.a=c},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.wp.url}()},33:function(e,t){!function(){e.exports=this.moment}()},34:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.blob}()},42:function(e,t){!function(){e.exports=this.wp.apiFetch}()},420:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"metadata",(function(){return Oe})),r.d(n,"name",(function(){return ve})),r.d(n,"settings",(function(){return je}));var o={};r.r(o),r.d(o,"metadata",(function(){return kt})),r.d(o,"name",(function(){return _t})),r.d(o,"settings",(function(){return Ct}));var c={};r.r(c),r.d(c,"metadata",(function(){return Mt})),r.d(c,"name",(function(){return zt})),r.d(c,"settings",(function(){return It}));var a={};r.r(a),r.d(a,"metadata",(function(){return Yt})),r.d(a,"name",(function(){return Qt})),r.d(a,"settings",(function(){return Jt}));var i={};r.r(i),r.d(i,"metadata",(function(){return _r})),r.d(i,"name",(function(){return Cr})),r.d(i,"settings",(function(){return Er}));var l={};r.r(l),r.d(l,"name",(function(){return Tr})),r.d(l,"settings",(function(){return Nr}));var s={};r.r(s),r.d(s,"metadata",(function(){return Lr})),r.d(s,"name",(function(){return Hr})),r.d(s,"settings",(function(){return Dr}));var u={};r.r(u),r.d(u,"metadata",(function(){return rn})),r.d(u,"name",(function(){return nn})),r.d(u,"settings",(function(){return on}));var b={};r.r(b),r.d(b,"metadata",(function(){return bn})),r.d(b,"name",(function(){return mn})),r.d(b,"settings",(function(){return dn}));var m={};r.r(m),r.d(m,"name",(function(){return jn})),r.d(m,"settings",(function(){return yn}));var d={};r.r(d),r.d(d,"name",(function(){return Cn})),r.d(d,"settings",(function(){return En}));var p={};r.r(p),r.d(p,"metadata",(function(){return Bn})),r.d(p,"name",(function(){return An})),r.d(p,"settings",(function(){return Rn}));var h={};r.r(h),r.d(h,"metadata",(function(){return $n})),r.d(h,"name",(function(){return Yn})),r.d(h,"settings",(function(){return Qn}));var g={};r.r(g),r.d(g,"metadata",(function(){return eo})),r.d(g,"name",(function(){return to})),r.d(g,"settings",(function(){return ro}));var f={};r.r(f),r.d(f,"metadata",(function(){return Co})),r.d(f,"name",(function(){return Eo})),r.d(f,"settings",(function(){return xo}));var O={};r.r(O),r.d(O,"name",(function(){return qo})),r.d(O,"settings",(function(){return Wo})),r.d(O,"common",(function(){return Zo})),r.d(O,"others",(function(){return Ko}));var v={};r.r(v),r.d(v,"metadata",(function(){return ec})),r.d(v,"name",(function(){return tc})),r.d(v,"settings",(function(){return rc}));var j={};r.r(j),r.d(j,"metadata",(function(){return ic})),r.d(j,"name",(function(){return lc})),r.d(j,"settings",(function(){return sc}));var y={};r.r(y),r.d(y,"metadata",(function(){return _c})),r.d(y,"name",(function(){return Cc})),r.d(y,"settings",(function(){return Ec}));var w={};r.r(w),r.d(w,"name",(function(){return Pc})),r.d(w,"settings",(function(){return Tc}));var k={};r.r(k),r.d(k,"name",(function(){return Hc})),r.d(k,"settings",(function(){return Dc}));var _={};r.r(_),r.d(_,"metadata",(function(){return $c})),r.d(_,"name",(function(){return Yc})),r.d(_,"settings",(function(){return Qc}));var C={};r.r(C),r.d(C,"metadata",(function(){return Xc})),r.d(C,"name",(function(){return ea})),r.d(C,"settings",(function(){return ta}));var E={};r.r(E),r.d(E,"metadata",(function(){return ca})),r.d(E,"name",(function(){return aa})),r.d(E,"settings",(function(){return ia}));var x={};r.r(x),r.d(x,"metadata",(function(){return ua})),r.d(x,"name",(function(){return ba})),r.d(x,"settings",(function(){return ma}));var S={};r.r(S),r.d(S,"metadata",(function(){return ha})),r.d(S,"name",(function(){return ga})),r.d(S,"settings",(function(){return fa}));var P={};r.r(P),r.d(P,"metadata",(function(){return xa})),r.d(P,"name",(function(){return Sa})),r.d(P,"settings",(function(){return Pa}));var T={};r.r(T),r.d(T,"name",(function(){return Ra})),r.d(T,"settings",(function(){return Ma}));var N={};r.r(N),r.d(N,"name",(function(){return La})),r.d(N,"settings",(function(){return Ha}));var B={};r.r(B),r.d(B,"name",(function(){return Va})),r.d(B,"settings",(function(){return Fa}));var A={};r.r(A),r.d(A,"metadata",(function(){return Wa})),r.d(A,"name",(function(){return Za})),r.d(A,"settings",(function(){return Ka}));var R={};r.r(R),r.d(R,"metadata",(function(){return Xa})),r.d(R,"name",(function(){return ei})),r.d(R,"settings",(function(){return ti}));var M={};r.r(M),r.d(M,"metadata",(function(){return ci})),r.d(M,"name",(function(){return ai})),r.d(M,"settings",(function(){return ii}));var z={};r.r(z),r.d(z,"metadata",(function(){return ui})),r.d(z,"name",(function(){return bi})),r.d(z,"settings",(function(){return mi}));var I={};r.r(I),r.d(I,"metadata",(function(){return gi})),r.d(I,"name",(function(){return fi})),r.d(I,"settings",(function(){return Oi}));var L={};r.r(L),r.d(L,"metadata",(function(){return Vi})),r.d(L,"name",(function(){return Fi})),r.d(L,"settings",(function(){return Ui}));var H={};r.r(H),r.d(H,"metadata",(function(){return qi})),r.d(H,"name",(function(){return Wi})),r.d(H,"settings",(function(){return Zi}));var D={};r.r(D),r.d(D,"metadata",(function(){return Qi})),r.d(D,"name",(function(){return Ji})),r.d(D,"settings",(function(){return Xi}));var V={};r.r(V),r.d(V,"metadata",(function(){return il})),r.d(V,"name",(function(){return ll})),r.d(V,"settings",(function(){return sl}));var F={};r.r(F),r.d(F,"name",(function(){return dl})),r.d(F,"settings",(function(){return pl}));var U={};r.r(U),r.d(U,"metadata",(function(){return jl})),r.d(U,"name",(function(){return yl})),r.d(U,"settings",(function(){return wl}));var G={};r.r(G),r.d(G,"metadata",(function(){return El})),r.d(G,"name",(function(){return xl})),r.d(G,"settings",(function(){return Sl}));var q={};r.r(q),r.d(q,"metadata",(function(){return Al})),r.d(q,"name",(function(){return Rl})),r.d(q,"settings",(function(){return Ml}));var W=r(18),Z=r(5),K=(r(75),r(6)),$=r(10),Y=r(2),Q=r(1),J=r(0),X=r(9),ee=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"})),te=r(11),re=r.n(te);function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},_e=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(J.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(J.createElement)("figure",{className:b},i?Object(J.createElement)("a",{href:i},m):m,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(J.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(J.createElement)("figure",{className:c?"align".concat(c):null},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(J.createElement)("img",Object(we.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(J.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}}],Ce=r(14),Ee=r(13),xe=r(15),Se=r(16),Pe=r(7),Te=r(17),Ne=r(41),Be=r(30),Ae=r(56),Re=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(J.createElement)(se.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),Me=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(J.createElement)(se.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),ze=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(J.createElement)(se.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(J.createElement)(se.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),Ie=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(J.createElement)(se.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),Le={foreground:"#1da1f2",src:Object(J.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(se.G,null,Object(J.createElement)(se.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},He={foreground:"#ff0000",src:Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},De={foreground:"#3b5998",src:Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ve=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.G,null,Object(J.createElement)(se.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Fe={foreground:"#0073AA",src:Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.G,null,Object(J.createElement)(se.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Ue={foreground:"#1db954",src:Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Ge=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),qe={foreground:"#1ab7ea",src:Object(J.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(se.G,null,Object(J.createElement)(se.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},We=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Ze={foreground:"#35465c",src:Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},Ke=Object(J.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(J.createElement)(se.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(J.createElement)(se.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),$e=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Le,keywords:["tweet"],description:Object(Q.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:He,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:De,description:Object(Q.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Ve,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Fe,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],responsive:!1,description:Object(Q.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Me,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:Ue,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:Ge,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:qe,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],Ye=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:Ie,description:Object(Q.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Re,description:Object(Q.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Ie,description:Object(Q.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Re,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object($.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Ie,description:Object(Q.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Ie,description:Object(Q.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:ze,description:Object(Q.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Re,description:Object(Q.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Re,description:Object(Q.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Re,description:Object(Q.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Me,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Re,description:Object(Q.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:We,description:Object(Q.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Me,description:Object(Q.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Ie,description:Object(Q.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Re,description:Object(Q.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Re,description:Object(Q.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:ze,description:Object(Q.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Me,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Re,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object($.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Q.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:"TikTok",icon:Ie,description:Object(Q.__)("Embed a TikTok video.")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Ie,description:Object(Q.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Ze,description:Object(Q.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Ie,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Ie,description:Object(Q.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Ke,keywords:[Object(Q.__)("ebook")],responsive:!1,description:Object(Q.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Qe=["facebook.com","smugmug.com"],Je=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Xe=r(87),et=r.n(Xe),tt=r(46),rt=r.n(tt);function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},ct=function(e){return Object(Y.includes)(e,'class="wp-embedded-content"')},at=function(e,t){var r=e.preview,n=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,r=[].concat(Object(W.a)($e),Object(W.a)(Ye));t1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r){for(var n={"wp-has-aspect-ratio":!1},o=0;o=b.ratio)return et()(t,(u={},Object(Z.a)(u,b.className,r),Object(Z.a)(u,"wp-has-aspect-ratio",r),u))}return t}function lt(e,t){var r=Object(J.createElement)("a",{href:e},e);t(Object($.createBlock)("core/paragraph",{content:Object(J.renderToString)(r)}))}var st=rt()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(Y.kebabCase)(Object(Y.toLower)(""!==s?s:t));return ct(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=it(l,r,n&&o),c})),ut=["image"];var bt=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(Pe.a)(e)),e.calculateSize=e.calculateSize.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=Y.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,r,n,o,c=(e=this.image,t=this.container,r=t.clientWidth,n=e.width>r,o=e.height/e.width,{width:n?r:e.width,height:n?r*o:e.height}),a=c.width,i=c.height;this.setState({width:a,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(J.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(J.Component),mt=Object(ue.withGlobalEvents)({resize:"calculateSize"})(bt);function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},_t=kt.name,Ct={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:ye,keywords:["img",Object(Q.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},transforms:wt,getEditWrapperProps:function(e){var t=e.align,r=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!r}},edit:ft,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,h=r.title,g=Object(Y.isEmpty)(l)?void 0:l,f=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(J.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),v=Object(J.createElement)(J.Fragment,null,i?Object(J.createElement)("a",{className:s,href:i,target:d,rel:g},O):O,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(J.createElement)("div",null,Object(J.createElement)("figure",{className:f},v)):Object(J.createElement)("figure",{className:f},v)},deprecated:_e},Et=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4"})),xt={className:!1,anchor:!0},St={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},Pt=[{attributes:St,save:function(e){var t,r=e.attributes,n=r.align,o=r.content,c=r.customTextColor,a=r.level,i=r.textColor,l="h"+a,s=Object(K.getColorClassName)("color",i),u=re()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-align-".concat(n),n),t));return Object(J.createElement)(K.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})},supports:xt},{supports:xt,attributes:St,save:function(e){var t=e.attributes,r=t.align,n=t.level,o=t.content,c=t.textColor,a=t.customTextColor,i="h"+n,l=Object(K.getColorClassName)("color",c),s=re()(Object(Z.a)({},l,l));return Object(J.createElement)(K.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:r,color:l?void 0:a},value:o})}}];function Tt(e){var t=e.level,r=e.isPressed,n=void 0!==r&&r,o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(t)?Object(J.createElement)(se.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(J.createElement)(se.Path,{d:o[t]})):null}var Nt=function(e){function t(){return Object(Ce.a)(this,t),Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"createLevelControl",value:function(e,t,r){var n=e===t;return{icon:Object(J.createElement)(Tt,{level:e,isPressed:n}),title:Object(Q.sprintf)(Object(Q.__)("Heading %d"),e),isActive:n,onClick:function(){return r(e)}}}},{key:"render",value:function(){var e=this,t=this.props,r=t.isCollapsed,n=void 0===r||r,o=t.minLevel,c=t.maxLevel,a=t.selectedLevel,i=t.onChange;return Object(J.createElement)(se.ToolbarGroup,{isCollapsed:n,icon:Object(J.createElement)(Tt,{level:a}),controls:Object(Y.range)(o,c).map((function(t){return e.createLevelControl(t,a,i)})),label:Object(Q.__)("Change heading level")})}}]),t}(J.Component);function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var At=function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,o=e.onReplace,c=e.className,a=Object(J.useRef)(),i=Object(K.__experimentalUseColors)([{name:"textColor",property:"color"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:a}},[]),l=i.TextColor,s=i.InspectorControlsColorPanel,u=t.align,b=t.content,m=t.level,d=t.placeholder,p="h"+m;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(Nt,{minLevel:2,maxLevel:5,selectedLevel:m,onChange:function(e){return r({level:e})}}),Object(J.createElement)(K.AlignmentToolbar,{value:u,onChange:function(e){r({align:e})}})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Heading settings")},Object(J.createElement)("p",null,Object(Q.__)("Level")),Object(J.createElement)(Nt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:m,onChange:function(e){return r({level:e})}}))),s,Object(J.createElement)(l,null,Object(J.createElement)(K.RichText,{ref:a,identifier:"content",tagName:p,value:b,onChange:function(e){return r({content:e})},onMerge:n,onSplit:function(e){return e?Object($.createBlock)("core/heading",function(e){for(var t=1;t".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation;return Object($.createBlock)("core/quote",{value:t,citation:r})}},{type:"prefix",prefix:">",transform:function(e){return Object($.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

    "!==t&&n.push.apply(n,Object(W.a)(Object(qt.split)(Object(qt.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(qt.toHTMLString)({value:e})})})))),r&&"

    "!==r&&n.push(Object($.createBlock)("core/paragraph",{content:r})),0===n.length?Object($.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Gt.a)(e,["value","citation"]);if("

    "===t)return Object($.createBlock)("core/heading",{content:r});var o=Object(qt.split)(Object(qt.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object($.createBlock)("core/heading",{content:Object(qt.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object($.createBlock)("core/quote",function(e){for(var t=1;t"+Object(Q.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:Zt,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=t.align,l=t.value,s=t.citation;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:i,onChange:function(e){r({align:e})}})),Object(J.createElement)(se.BlockQuotation,{className:re()(a,Object(Z.a)({},"has-text-align-".concat(i),i))},Object(J.createElement)(K.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return r({value:e})},onMerge:o,onRemove:function(e){var t=!s||0===s.length;!e&&t&&c([])},placeholder:Object(Q.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object($.createBlock)("core/quote",function(e){for(var t=1;t

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:Ft},Xt=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}));function er(e){return Math.min(3,e.images.length)}var tr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(Y.pick)(e,["alt","id","link","caption"]);r.url=Object(Y.get)(e,["sizes",t,"url"])||Object(Y.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(Y.get)(e,["sizes","full","url"])||Object(Y.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t0&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(Y.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return nr({},e,{ids:Object(Y.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?er(t):n,c=t.imageCrop,a=t.linkTo;return Object(J.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?er(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(J.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(J.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(J.createElement)("a",{href:t},r):r)})))}}],cr=Object(J.createElement)(K.BlockIcon,{icon:Xt}),ar=r(22),ir=r(120),lr=Object(J.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),sr=Object(J.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),ur=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(Pe.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Pe.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Pe.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Pe.a)(e)),e.state={captionSelected:!1},e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[ar.BACKSPACE,ar.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,h=t["aria-label"];switch(c){case"media":e=r;break;case"attachment":e=a}var g=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":h,ref:this.bindContainer}),Object(Ne.isBlobURL)(r)&&Object(J.createElement)(se.Spinner,null)),f=re()({"is-selected":s,"is-transient":Object(Ne.isBlobURL)(r)});return Object(J.createElement)("figure",{className:f},e?Object(J.createElement)("a",{href:e},g):g,Object(J.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(J.createElement)(se.Button,{icon:lr,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(J.createElement)(se.Button,{icon:sr,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(J.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(J.createElement)(se.Button,{icon:ir.a,onClick:b,className:"blocks-gallery-item__remove",label:Object(Q.__)("Remove image"),disabled:!s})),(s||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(J.Component),br=Object(ue.compose)([Object(be.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(n):null}})),Object(be.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(ur),mr=function(e){var t,r=e.attributes,n=e.className,o=e.isSelected,c=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onSetImageAttributes,d=e.onFocusGalleryCaption,p=r.align,h=r.columns,g=void 0===h?er(r):h,f=r.caption,O=r.imageCrop,v=r.images,j=re()("blocks-gallery-caption",{"screen-reader-text":!o&&K.RichText.isEmpty(f)});return Object(J.createElement)("figure",{className:re()(n,(t={},Object(Z.a)(t,"align".concat(p),p),Object(Z.a)(t,"columns-".concat(g),g),Object(Z.a)(t,"is-cropped",O),t))},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},v.map((function(e,t){var r=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,v.length);return Object(J.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(J.createElement)(br,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===v.length,isSelected:o&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),setAttributes:function(e){return m(t,e)},caption:e.caption,"aria-label":r}))}))),i,Object(J.createElement)(K.RichText,{tagName:"figcaption",className:j,placeholder:Object(Q.__)("Write gallery caption…"),value:f,unstableOnFocus:d,onChange:function(e){return c({caption:e})},inlineToolbar:!0}))};function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t0&&Object(Y.every)(n,(function(e){var t=e.url;return Object(Ne.isBlobURL)(t)}))){var o=Object(Y.map)(n,(function(e){var t=e.url;return Object(Ne.getBlobByURL)(t)}));Object(Y.forEach)(n,(function(e){var t=e.url;return Object(Ne.revokeBlobURL)(t)})),r({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.className,n=e.isSelected,o=e.noticeUI,c=t.columns,a=void 0===c?er(t):c,i=t.imageCrop,l=t.images,s=t.linkTo,u=t.sizeSlug,b=!!l.length,m=b&&Object(Y.some)(l,(function(e){return e.id})),d=Object(J.createElement)(K.MediaPlaceholder,{addToGallery:m,isAppender:b,className:r,disableMediaButtons:b&&!n,icon:!b&&cr,labels:{title:!b&&Object(Q.__)("Gallery"),instructions:!b&&fr},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:gr,multiple:!0,value:m?l:void 0,onError:this.onUploadError,notices:b?void 0:o,onFocus:this.props.onFocus});if(!b)return d;var p=this.getImagesSizeOptions(),h=b&&!Object(Y.isEmpty)(p),g=h?Or:vr;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Gallery settings")},l.length>1&&Object(J.createElement)(se.RangeControl,Object(we.a)({label:Object(Q.__)("Columns")},Or,{value:a,onChange:this.setColumnsNumber,min:1,max:Math.min(8,l.length),required:!0})),Object(J.createElement)(se.ToggleControl,Object(we.a)({label:Object(Q.__)("Crop images")},Or,{checked:!!i,onChange:this.toggleImageCrop,help:this.getImageCropHelp})),Object(J.createElement)(se.SelectControl,Object(we.a)({label:Object(Q.__)("Link to")},g,{value:s,onChange:this.setLinkTo,options:hr})),h&&Object(J.createElement)(se.SelectControl,Object(we.a)({label:Object(Q.__)("Images size")},vr,{value:u,options:p,onChange:this.updateImagesSize})))),o,Object(J.createElement)(mr,Object(we.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption})))}}]),t}(J.Component),yr=Object(ue.compose)([Object(be.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return n&&(l=Object(Y.reduce)(r,(function(e,t){if(!t)return e;var r=o(t),n=Object(Y.reduce)(a,(function(e,t){var n=Object(Y.get)(r,["sizes",t.slug,"url"]),o=Object(Y.get)(r,["media_details","sizes",t.slug,"source_url"]);return pr({},e,Object(Z.a)({},t.slug,n||o))}),{});return pr({},e,Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),se.withNotices,Object(Ae.withViewportMatch)({isNarrow:"< small"})])(jr);var wr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},kr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(Y.every)(e,["align",r])?r:void 0,n=Object(Y.every)(e,["sizeSlug",n])?n:void 0;var o=Object(Y.filter)(e,(function(e){return e.url}));return Object($.createBlock)("core/gallery",{images:o.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:o.map((function(e){return e.id})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return wr(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return wr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,r=void 0===t?"attachment":t;return"file"===r?"media":r}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Y.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object($.createBlock)("core/gallery",{images:e.map((function(e){return tr({url:Object(Ne.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug;return t.length>0?t.map((function(e){var t=e.id,o=e.url,c=e.alt,a=e.caption;return Object($.createBlock)("core/image",{id:t,url:o,alt:c,caption:a,align:r,sizeSlug:n})})):Object($.createBlock)("core/image",{align:r})}}]},_r={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}}},Cr=_r.name,Er={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:Xt,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:kr,edit:yr,save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?er(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(J.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:or},xr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"})),Sr=r(67),Pr=r.n(Sr);var Tr="core/archives",Nr={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:xr,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Archives settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(J.createElement)(se.Disabled,null,Object(J.createElement)(Pr.a,{block:"core/archives",attributes:t})))}},Br=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),Ar=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],Rr=["audio"],Mr=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).toggleAttribute=e.toggleAttribute.bind(Object(Pe.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(Pe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,r=e.mediaUpload,n=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ne.isBlobURL)(i)){var l=Object(Ne.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(e){var t=Object(le.a)(e,1)[0],r=t.id,n=t.url;o({id:r,src:n})},onError:function(e){o({src:void 0,id:void 0}),n.createErrorNotice(e)},allowedTypes:Rr})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(r){t.props.setAttributes(Object(Z.a)({},e,r))}}},{key:"onSelectURL",value:function(e){var t=this.props,r=t.attributes,n=t.setAttributes;if(e!==r.src){var o=at({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);n({src:e,id:void 0})}}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this.props.attributes,t=e.id,r=e.autoplay,n=e.caption,o=e.loop,c=e.preload,a=e.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeUI,m=function(e){e&&e.url?l({src:e.url,id:e.id}):l({src:void 0,id:void 0})};return a?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:a,allowedTypes:Rr,accept:"audio/*",onSelect:m,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Audio settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:r,help:this.getAutoplayHelp}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object(J.createElement)(se.SelectControl,{label:Object(Q.__)("Preload"),value:void 0!==c?c:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(J.createElement)("figure",{className:u},Object(J.createElement)(se.Disabled,null,Object(J.createElement)("audio",{controls:"controls",src:a})),(!K.RichText.isEmpty(n)||s)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:n,onChange:function(e){return l({caption:e})},inlineToolbar:!0}))):Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:Br}),className:u,onSelect:m,onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:Rr,value:this.props.attributes,notices:b,onError:this.onUploadError})}}]),t}(J.Component),zr=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),se.withNotices])(Mr);var Ir={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/audio",{src:Object(Ne.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Lr={name:"core/audio",category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}}},Hr=Lr.name,Dr={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:Br,transforms:Ir,deprecated:Ar,supports:{align:!0},edit:zr,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},Vr=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"})),Fr={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object($.createBlock)("core/buttons",{},e.map((function(e){return Object($.createBlock)("core/button",e)})))}}]};function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Y.unescape)(e.name).trim():Object(Q.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,r=this.getCategories(t);return Object(J.createElement)("ul",{className:this.getCategoryListClassName(0)},r.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return Object(J.createElement)("li",{key:e.id},Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(J.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(J.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return r.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,r=this.props.attributes.showHierarchy?0:null,n=this.getCategories(r),o="blocks-category-select-".concat(t);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)("label",{htmlFor:o,className:"screen-reader-text"},Object(Q.__)("Categories")),Object(J.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},n.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return[Object(J.createElement)("option",{key:e.id},Object(Y.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return r.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.isRequesting,n=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Categories settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:n,onChange:this.toggleDisplayAsDropdown}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return r?Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)(se.Placeholder,{icon:"admin-post",label:Object(Q.__)("Categories")},Object(J.createElement)(se.Spinner,null))):Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)("div",{className:this.props.className},n?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(J.Component),_n=Object(ue.compose)(Object(be.withSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}})),ue.withInstanceId)(kn),Cn="core/categories",En={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:wn,category:"widgets",supports:{align:!0,html:!1},edit:_n},xn=r(290);var Sn=r(68);function Pn(e){return e.replace(/\[/g,"[")}function Tn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Nn={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object($.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Bn={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},An=Bn.name,Rn={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:xn.a,example:{attributes:{content:Object(Q.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},supports:{html:!1},transforms:Nn,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className;return Object(J.createElement)("div",{className:n},Object(J.createElement)(K.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(J.createElement)("pre",null,Object(J.createElement)("code",null,(t=r.content,Object(Y.flow)(Sn.escapeEditableHTML,Pn,Tn)(t||""))))}},Mn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}));function zn(e){var t,r=zn.doc;r||(r=document.implementation.createHTMLDocument(""),zn.doc=r),r.body.innerHTML=e;var n=!0,o=!1,c=void 0;try{for(var a,i=r.body.firstChild.classList[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){if(t=a.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}}var In=[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==zn(e.originalContent)}))},migrate:function(e,t){var r=t.reduce((function(e,t){var r=zn(t.originalContent);return void 0===r&&(r=0),e[r]||(e[r]=[]),e[r].push(t),e}),[]).map((function(e){return Object($.createBlock)("core/column",{},e)}));return[Object(Y.omit)(e,["columns"]),r]},save:function(e){var t=e.attributes.columns;return Object(J.createElement)("div",{className:"has-".concat(t,"-columns")},Object(J.createElement)(K.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(Y.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,r=t.verticalAlignment,n=t.columns,o=re()("has-".concat(n,"-columns"),Object(Z.a)({},"are-vertically-aligned-".concat(r),r));return Object(J.createElement)("div",{className:o},Object(J.createElement)(K.InnerBlocks.Content,null))}}],Ln=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function Hn(e,t){var r=e.attributes.width;return Ln(void 0===r?100/t:r)}function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Y.sumBy)(e,(function(e){return Hn(e,t)}))}function Vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Hn(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Fn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Dn(e,r),o=t-n,c=o/e.length;return Object(Y.mapValues)(Vn(e,r),(function(e){return Ln(e+c)}))}function Un(e,t){return e.map((function(e){return Object(Y.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Gn=["core/column"];var qn=Object(be.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>n;if(s&&l){var u=Ln(100/o),b=Fn(i,100-u);i=[].concat(Object(W.a)(Un(i,b)),Object(W.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(W.a)(i),Object(W.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column")}))));else{if(i=Object(Y.dropRight)(i,n-o),l)i=Un(i,Fn(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,r=e.className,n=e.updateAlignment,o=e.updateColumns,c=e.clientId,a=t.verticalAlignment,i=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,l=Object(J.useRef)(),s=Object(K.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0}],colorDetector:{targetRef:l}}),u=s.BackgroundColor,b=s.InspectorControlsColorPanel,m=s.TextColor,d=re()(r,Object(Z.a)({},"are-vertically-aligned-".concat(a),a));return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:n,value:a})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,null,Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Columns"),value:i,onChange:function(e){return o(i,e)},min:2,max:6}))),b,Object(J.createElement)(u,null,Object(J.createElement)(m,null,Object(J.createElement)("div",{className:d,ref:l},Object(J.createElement)(K.InnerBlocks,{templateLock:"all",allowedBlocks:Gn})))))})),Wn=function e(t){return Object(Y.map)(t,(function(t){var r=Object(le.a)(t,3),n=r[0],o=r[1],c=r[2],a=void 0===c?[]:c;return Object($.createBlock)(n,o,e(a))}))},Zn=function(e){var t=e.clientId,r=e.name,n=Object(be.useSelect)((function(e){var n=e("core/blocks"),o=n.getBlockVariations,c=n.getBlockType,a=n.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:a(r,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(r,"block")}}),[t,r]),o=n.blockType,c=n.defaultVariation,a=n.hasInnerBlocks,i=n.variations,l=Object(be.useDispatch)("core/block-editor").replaceInnerBlocks;return a?Object(J.createElement)(qn,e):Object(J.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(Y.get)(o,["icon","src"]),label:Object(Y.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,Wn(t.innerBlocks))},allowSkip:!0})};var Kn=[{name:"two-columns-equal",title:Object(Q.__)("Two columns; equal split"),icon:Object(J.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(J.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:33.33}],["core/column",{width:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(J.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:66.66}],["core/column",{width:33.33}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("Three columns; equal split"),icon:Object(J.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("Three columns; wide center column"),icon:Object(J.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]],scope:["block"]}],$n={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}}},Yn=$n.name,Qn={title:Object(Q.__)("Columns"),icon:Mn,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},variations:Kn,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:In,edit:Zn,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.backgroundColor,c=r.customBackgroundColor,a=r.textColor,i=r.customTextColor,l=Object(K.getColorClassName)("background-color",o),s=Object(K.getColorClassName)("color",a),u=re()((t={"has-background":o||c,"has-text-color":a||i},Object(Z.a)(t,l,l),Object(Z.a)(t,s,s),Object(Z.a)(t,"are-vertically-aligned-".concat(n),n),t)),b={backgroundColor:l?void 0:c,color:s?void 0:i};return Object(J.createElement)("div",{className:u||void 0,style:b},Object(J.createElement)(K.InnerBlocks.Content,null))}},Jn=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}));var Xn=Object(ue.compose)(Object(be.withSelect)((function(e,t){var r=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(r).length>0}})),Object(be.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockRootClientId;c({verticalAlignment:n}),a(i(o),{verticalAlignment:null})}}})))((function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=e.updateAlignment,c=e.hasChildBlocks,a=t.verticalAlignment,i=t.width,l=re()(n,"block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(a),a));return Object(J.createElement)("div",{className:l},Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:o,value:a})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Column settings")},Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Percentage width"),value:i||"",onChange:function(e){r({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===i?Object(Q.__)("Auto"):void 0}))),Object(J.createElement)(K.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(J.createElement)(K.InnerBlocks.ButtonBlockAppender,null)}}))}));var eo={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},to=eo.name,ro={title:Object(Q.__)("Column"),parent:["core/columns"],icon:Jn,description:Object(Q.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"},"data-has-explicit-width":!0}},edit:Xn,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=re()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(J.createElement)("div",{className:c,style:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},no=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}));function oo(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function co(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function io(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(J.useState)(!1),c=Object(le.a)(o,2),a=c[0],i=c[1];return Object(J.useEffect)((function(){e&&t<=50&&n.current&&vo().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(J.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(po()(r).isDark())}}),[r,t>50||!e,i]),Object(J.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(f,d,i.color,k),C=Object(J.useState)(null),E=Object(le.a)(C,2),x=E[0],S=E[1],P=u.removeAllNotices,T=u.createErrorNotice,N=go({},"image"===m?oo(f):{},{backgroundColor:i.color,minHeight:x||g});j&&!f&&(N.background=j),p&&(N.backgroundPosition="".concat(100*p.x,"% ").concat(100*p.y,"%"));var B=!!(f||i.color||j),A=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,B&&Object(J.createElement)(K.MediaReplaceFlow,{mediaId:b,mediaURL:f,allowedTypes:fo,accept:"image/*,video/*",onSelect:w})),Object(J.createElement)(K.InspectorControls,null,!!f&&Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Media settings")},"image"===m&&Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:h,onChange:function(){n(go({hasParallax:!h},h?{}:{focalPoint:void 0}))}}),"image"===m&&!h&&Object(J.createElement)(se.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:f,value:p,onChange:function(e){return n({focalPoint:e})}}),"video"===m&&Object(J.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:f}),Object(J.createElement)(se.PanelRow,null,Object(J.createElement)(se.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return n({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(Q.__)("Clear Media")))),B&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Dimensions")},Object(J.createElement)(jo,{value:x||g,onChange:function(e){return n({minHeight:e})}})),Object(J.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:i.color,gradientValue:j,onColorChange:l,onGradientChange:y,label:Object(Q.__)("Color")}]},!!f&&Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Background opacity"),value:d,onChange:function(e){return n({dimRatio:e})},min:0,max:100,step:10,required:!0})))));if(!B){var R=Object(J.createElement)(K.BlockIcon,{icon:no}),M=Object(Q.__)("Cover");return Object(J.createElement)(J.Fragment,null,A,Object(J.createElement)(K.MediaPlaceholder,{icon:R,className:c,labels:{title:M,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:w,accept:"image/*,video/*",allowedTypes:fo,notices:a,onError:function(e){P(),T(e)}},Object(J.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(J.createElement)(K.ColorPalette,{disableCustomColors:!0,value:i.color,onChange:l,clearable:!1}))))}var z=re()(c,co(d),(t={"is-dark-theme":_,"has-background-dim":0!==d,"has-parallax":h},Object(Z.a)(t,i.class,i.class),Object(Z.a)(t,"has-background-gradient",j),Object(Z.a)(t,v,!f&&v),t));return Object(J.createElement)(J.Fragment,null,A,Object(J.createElement)(wo,{className:re()("block-library-cover__resize-container",{"is-selected":o}),onResizeStart:function(){return s(!1)},onResize:S,onResizeStop:function(e){s(!0),n({minHeight:e}),S(null)}},Object(J.createElement)("div",{"data-url":f,style:N,className:z},"image"===m&&Object(J.createElement)("img",{ref:k,"aria-hidden":!0,alt:"",style:{display:"none"},src:f}),f&&j&&0!==d&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",v),style:{background:j}}),"video"===m&&Object(J.createElement)("video",{ref:k,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:f}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)(K.InnerBlocks,{template:Oo})))))}));var _o={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id;return Object($.createBlock)("core/image",{caption:t,url:r,align:n,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id;return Object($.createBlock)("core/video",{caption:t,src:r,id:o,align:n})}}]},Co={name:"core/cover",category:"common",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}},Eo=Co.name,xo={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:no,supports:{align:!0,html:!1},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Q.__)("Snow Patrol"),align:"center"}}]},transforms:_o,save:function(e){var t=e.attributes,r=t.backgroundType,n=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(K.getColorClassName)("background-color",s),d=Object(K.__experimentalGetGradientClass)(n),p="image"===r?oo(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var h=re()(co(a),m,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":n||o},d,!u&&d));return Object(J.createElement)("div",{className:h,style:p},u&&(n||o)&&0!==a&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===r&&u&&Object(J.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},edit:ko,deprecated:so},So=r(286),Po=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(se.ToolbarGroup,null,r&&Object(J.createElement)(se.Button,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:So.a,onClick:i}))),n&&t&&Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},To=function(){return Object(J.createElement)("div",{className:"wp-block-embed is-loading"},Object(J.createElement)(se.Spinner,null),Object(J.createElement)("p",null,Object(Q.__)("Embedding…")))},No=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(J.createElement)(se.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(J.createElement)("form",{onSubmit:o},Object(J.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:c}),Object(J.createElement)(se.Button,{isSecondary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(J.createElement)("div",{className:"components-placeholder__learn-more"},Object(J.createElement)(se.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(J.createElement)("div",{className:"components-placeholder__error"},Object(J.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(J.createElement)(se.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(J.createElement)(se.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))},Bo=r(113),Ao=window.FocusEvent,Ro=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(Pe.a)(e)),e.node=Object(J.createRef)(),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Ao("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(J.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(J.Component),Mo=Object(ue.withGlobalEvents)({blur:"checkFocus"})(Ro),zo=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(Pe.a)(e)),e.state={interactive:!1},e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.url,a=n.type,i=n.caption,l=n.onCaptionChange,s=n.isSelected,u=n.className,b=n.icon,m=n.label,d=o.scripts,p=this.state.interactive,h="photo"===a?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,r=Object(J.createElement)("p",null,Object(J.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(J.renderToString)(r)):o.html,g=Object(Bo.parse)(c).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),O=Object(Y.includes)(Qe,f),v=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),f),j=et()(a,u,"wp-block-embed__wrapper"),y="wp-embed"===a?Object(J.createElement)(Mo,{html:h}):Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},Object(J.createElement)(se.SandBox,{html:h,scripts:d,title:v,type:j,onFocus:this.hideOverlay}),!p&&Object(J.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(J.createElement)("figure",{className:et()(u,"wp-block-embed",{"is-type-video":"video"===a})},O?Object(J.createElement)(se.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:b,showColors:!0}),label:m},Object(J.createElement)("p",{className:"components-placeholder__error"},Object(J.createElement)("a",{href:c},c)),Object(J.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!K.RichText.isEmpty(i)||s)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(J.Component);function Io(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lo(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return function(n){function o(){var e;return Object(Ce.a)(this,o),(e=Object(xe.a)(this,Object(Se.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(Pe.a)(e)),e.setUrl=e.setUrl.bind(Object(Pe.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(Pe.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(Pe.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(Pe.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(Pe.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(Pe.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(Te.a)(o,n),Object(Ee.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=at(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,r=void 0!==e.preview,n=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!r,o=this.props.attributes.url!==e.attributes.url;if(n||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,r=this.props.setAttributes;this.setState({editingURL:!1}),r({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,n=this.props.attributes,o=n.className,c=n.allowResponsive;return Lo({},this.props.attributes,{},st(t,e,o,r,c))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(Q.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Q.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,n=e.className,o=this.props.preview.html,c=!t;this.props.setAttributes({allowResponsive:c,className:it(o,n,r&&c)})}},{key:"render",value:function(){var n=this,o=this.state,c=o.url,a=o.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,p=i.tryAgain;if(l)return Object(J.createElement)(To,null);var h=Object(Q.sprintf)(Object(Q.__)("%s URL"),e);if(!b||m||a)return Object(J.createElement)(No,{icon:t,label:h,onSubmit:this.setUrl,value:c,cannotEmbed:m,onChange:function(e){return n.setState({url:e.target.value})},fallback:function(){return lt(c,n.props.onReplace)},tryAgain:p});var g=this.getMergedAttributes(),f=g.caption,O=g.type,v=g.allowResponsive,j=re()(g.className,this.props.className);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(Po,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:r,allowResponsive:v,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(J.createElement)(zo,{preview:b,className:j,url:c,type:O,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:h}))}}]),o}(J.Component)}(t,n,m);return{title:t,description:d,icon:n,category:c,keywords:l,attributes:Vo,supports:Do({align:!0},u),transforms:a,edit:Object(ue.compose)(Object(be.withSelect)((function(e,t){var r=t.attributes.url,n=e("core"),o=n.getEmbedPreview,c=n.isPreviewEmbedFallback,a=n.isRequestingEmbedPreview,i=n.getThemeSupports,l=void 0!==r&&o(r),s=void 0!==r&&c(r),u=void 0!==r&&a(r),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,p=!!l&&!m&&!d,h=void 0!==r&&(!p||s);return{preview:p?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:h}})),Object(be.withDispatch)((function(e,t){var r=t.attributes.url,n=e("core/data");return{tryAgain:function(){n.invalidateResolution("core","getEmbedPreview",[r])}}})))(p),save:function(e){var t,r=e.attributes,n=r.url,o=r.caption,c=r.type,a=r.providerNameSlug;if(!n)return null;var i=et()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(c),c),Object(Z.a)(t,"is-provider-".concat(a),a),t));return Object(J.createElement)("figure",{className:i},Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(n,"\n")),!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:Vo,save:function(e){var t,r=e.attributes,n=r.url,o=r.caption,c=r.type,a=r.providerNameSlug;if(!n)return null;var i=et()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(c),c),Object(Z.a)(t,"is-provider-".concat(a),a),t));return Object(J.createElement)("figure",{className:i},"\n".concat(n,"\n"),!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}}]}}function Uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Go(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ne.createBlobURL)(e);t.push(Object($.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object($.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object($.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object($.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"audio")},transform:function(e){return Object($.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"video")},transform:function(e){return Object($.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"image")},transform:function(e){return Object($.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},ec={name:"core/file",category:"common",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}}},tc=ec.name,rc={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:$o,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],supports:{align:!0},transforms:Xo,edit:Jo,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(J.createElement)("div",null,!K.RichText.isEmpty(n)&&Object(J.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(J.createElement)(K.RichText.Content,{value:n})),a&&Object(J.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(J.createElement)(K.RichText.Content,{value:i})))}},nc=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),oc=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(Pe.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(W.a)(Object(K.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=this.state,o=n.isPreview,c=n.styles;return Object(J.createElement)("div",{className:"wp-block-html"},Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(se.ToolbarGroup,null,Object(J.createElement)(se.Button,{className:"components-tab-button",isPressed:!o,onClick:this.switchToHTML},Object(J.createElement)("span",null,"HTML")),Object(J.createElement)(se.Button,{className:"components-tab-button",isPressed:o,onClick:this.switchToPreview},Object(J.createElement)("span",null,Object(Q.__)("Preview"))))),Object(J.createElement)(se.Disabled.Consumer,null,(function(e){return o||e?Object(J.createElement)(se.SandBox,{html:t.content,styles:c}):Object(J.createElement)(K.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))}}]),t}(J.Component),cc=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(oc);var ac={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:function(e){return{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:e.phrasingContentSchema}}}}}}]},ic={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},lc=ic.name,sc={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:nc,keywords:[Object(Q.__)("embed")],example:{attributes:{content:""+Object(Q.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:ac,edit:cc,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.content)}},uc=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),bc=Object(J.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(J.createElement)(se.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(J.createElement)(se.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),mc=["image","video"];function dc(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var pc=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.onSelectMedia,r=e.mediaUrl,n=e.mediaId;return Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:n,mediaURL:r,allowedTypes:mc,accept:"image/*,video/*",onSelect:t}))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,r=e.mediaUrl,n=e.className,o=e.imageFill,c=e.focalPoint,a=o?dc(r,c):{};return Object(J.createElement)(J.Fragment,null,this.renderToolbarEditButton(),Object(J.createElement)("figure",{className:n,style:a},Object(J.createElement)("img",{src:r,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,r=e.className;return Object(J.createElement)(J.Fragment,null,this.renderToolbarEditButton(),Object(J.createElement)("figure",{className:r},Object(J.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,r=e.className,n=e.noticeUI;return Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:bc}),labels:{title:Object(Q.__)("Media area")},className:r,onSelect:t,accept:"image/*,video/*",allowedTypes:mc,notices:n,onError:this.onUploadError})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,r=e.mediaUrl,n=e.mediaType,o=e.mediaWidth,c=e.commitWidthChange,a=e.onWidthChange,i=e.toggleSelection;if(n&&r){var l={right:"left"===t,left:"right"===t},s=null;switch(n){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object(J.createElement)(se.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,r){a(parseInt(r.style.width))},onResizeStop:function(e,t,r){i(!0),c(parseInt(r.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(J.Component),hc=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),se.withNotices])(pc);function gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var fc={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Oc=[{attributes:function(e){for(var t=1;tEarns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:kc,edit:wc,save:function(e){var t,r=e.attributes,n=r.backgroundColor,o=r.customBackgroundColor,c=r.isStackedOnMobile,a=r.mediaAlt,i=r.mediaPosition,l=r.mediaType,s=r.mediaUrl,u=r.mediaWidth,b=r.mediaId,m=r.verticalAlignment,d=r.imageFill,p=r.focalPoint,h=r.linkClass,g=r.href,f=r.linkTarget,O=r.rel,v=Object(Y.isEmpty)(O)?void 0:O,j=Object(J.createElement)("img",{src:s,alt:a,className:b&&"image"===l?"wp-image-".concat(b):null});g&&(j=Object(J.createElement)("a",{className:h,href:g,target:f,rel:v},j));var y,w={image:function(){return j},video:function(){return Object(J.createElement)("video",{controls:!0,src:s})}},k=Object(K.getColorClassName)("background-color",n),_=re()((t={"has-media-on-the-right":"right"===i,"has-background":k||o},Object(Z.a)(t,k,k),Object(Z.a)(t,"is-stacked-on-mobile",c),Object(Z.a)(t,"is-vertically-aligned-".concat(m),m),Object(Z.a)(t,"is-image-fill",d),t)),C=d?dc(s,p):{};50!==u&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var E={backgroundColor:k?void 0:o,gridTemplateColumns:y};return Object(J.createElement)("div",{className:_,style:E},Object(J.createElement)("figure",{className:"wp-block-media-text__media",style:C},(w[l]||Y.noop)()),Object(J.createElement)("div",{className:"wp-block-media-text__content"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Oc},xc=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"})),Sc=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(Pe.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,r=e.displayAvatar,n=e.displayDate,o=e.displayExcerpt;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display date"),checked:n,onChange:this.toggleDisplayDate}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(J.createElement)(se.Disabled,null,Object(J.createElement)(Pr.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(J.Component),Pc="core/latest-comments",Tc={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:xc,category:"widgets",keywords:[Object(Q.__)("recent comments")],supports:{align:!0,html:!1},edit:Sc},Nc=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(J.createElement)(X.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(J.createElement)(X.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(J.createElement)(X.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(J.createElement)(X.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),Bc=r(42),Ac=r.n(Bc),Rc=r(60);function Mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var zc={per_page:-1},Ic=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Ac()({path:Object(Be.addQueryArgs)("/wp/v2/categories",zc)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=e.imageSizeOptions,o=e.latestPosts,c=e.defaultImageWidth,a=e.defaultImageHeight,i=this.state.categoriesList,l=t.displayFeaturedImage,s=t.displayPostContentRadio,u=t.displayPostContent,b=t.displayPostDate,m=t.postLayout,d=t.columns,p=t.order,h=t.orderBy,g=t.categories,f=t.postsToShow,O=t.excerptLength,v=t.featuredImageAlign,j=t.featuredImageSizeSlug,y=t.featuredImageSizeWidth,w=t.featuredImageSizeHeight,k=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Post content settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(J.createElement)(se.RadioControl,{label:Object(Q.__)("Show:"),selected:s,options:[{label:Object(Q.__)("Excerpt"),value:"excerpt"},{label:Object(Q.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:O,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Post meta settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Featured image settings")},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:j,width:y,height:w,imageWidth:c,imageHeight:a,imageSizeOptions:n,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(J.createElement)(se.BaseControl,null,Object(J.createElement)(se.BaseControl.VisualLabel,null,Object(Q.__)("Image alignment")),Object(J.createElement)(K.BlockAlignmentToolbar,{value:v,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})))),Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Sorting and filtering")},Object(J.createElement)(se.QueryControls,Object(we.a)({order:p,orderBy:h},{numberOfItems:f,categoriesList:i,selectedCategoryId:g,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onCategoryChange:function(e){return r({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return r({postsToShow:e})}})),"grid"===m&&Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Columns"),value:d,onChange:function(e){return r({columns:e})},min:2,max:_?Math.min(6,o.length):6,required:!0}))),_=Array.isArray(o)&&o.length;if(!_)return Object(J.createElement)(J.Fragment,null,k,Object(J.createElement)(se.Placeholder,{icon:"admin-post",label:Object(Q.__)("Latest Posts")},Array.isArray(o)?Object(Q.__)("No posts found."):Object(J.createElement)(se.Spinner,null)));var C=o.length>f?o.slice(0,f):o,E=[{icon:"list-view",title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===m},{icon:"grid-view",title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===m}],x=Object(Rc.__experimentalGetSettings)().formats.date;return Object(J.createElement)(J.Fragment,null,k,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(se.ToolbarGroup,{controls:E})),Object(J.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===m,"has-dates":b},"columns-".concat(d),"grid"===m))},C.map((function(e,t){var r=Object(Y.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";var c=e.featuredImageSourceUrl,a=re()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(v),!!v)),i=O'+Object(Q.__)("Read more")+"":n;return Object(J.createElement)("li",{key:t},l&&Object(J.createElement)("div",{className:a},c&&Object(J.createElement)("img",{src:c,alt:"",style:{maxWidth:y,maxHeight:w}})),Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},r?Object(J.createElement)(J.RawHTML,null,r):Object(Q.__)("(no title)")),b&&e.date_gmt&&Object(J.createElement)("time",{dateTime:Object(Rc.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Rc.dateI18n)(x,e.date_gmt)),u&&"excerpt"===s&&Object(J.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(J.createElement)(J.RawHTML,{key:"html"},i)),u&&"full_post"===s&&Object(J.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(J.createElement)(J.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}(J.Component),Lc=Object(be.withSelect)((function(e,t){var r=t.attributes,n=r.featuredImageSizeSlug,o=r.postsToShow,c=r.order,a=r.orderBy,i=r.categories,l=e("core"),s=l.getEntityRecords,u=l.getMedia,b=(0,e("core/block-editor").getSettings)(),m=b.imageSizes,d=b.imageDimensions,p=s("postType","post",Object(Y.pickBy)({categories:i,order:c,orderby:a,per_page:o},(function(e){return!Object(Y.isUndefined)(e)}))),h=m.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:Object(Y.get)(d,[n,"width"],0),defaultImageHeight:Object(Y.get)(d,[n,"height"],0),imageSizeOptions:h,latestPosts:Array.isArray(p)?p.map((function(e){if(e.featured_media){var t=u(e.featured_media),r=Object(Y.get)(t,["media_details","sizes",n,"source_url"],null);return r||(r=Object(Y.get)(t,"source_url",null)),function(e){for(var t=1;t1?n:Object(qt.replace)(n,/\n/g,qt.__UNSTABLE_LINE_SEPARATOR)})),qt.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object($.createBlock)("core/list",{values:Object(qt.toHTMLString)({value:Object(qt.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Wc(e).ol,ul:Wc(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object($.createBlock)("core/list",qc({},Object($.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(W.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(W.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(qt.split)(Object(qt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),qt.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(qt.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object($.createBlock)("core/quote",{value:Object(qt.toHTMLString)({value:Object(qt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var $c={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}}},Yc=$c.name,Qc={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:Vc,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],supports:{className:!1,__unstablePasteTextInline:!0},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Zc,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?function(e){for(var t=1;t"+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid color")}],supports:{align:["left","right","wide","full"]},edit:Ea,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(Y.includes)(u,va)){var b=Object(K.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(J.createElement)("figure",{className:t,style:r},Object(J.createElement)("blockquote",{className:d,style:p},Object(J.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(J.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:_a},Ta=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).titleField=Object(J.createRef)(),e.editButton=Object(J.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(Pe.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(Pe.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===ar.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,r=e.title,n=e.isSaving,o=e.isEditDisabled,c=e.onEdit,a=e.instanceId;return Object(J.createElement)(J.Fragment,null,!t&&!n&&Object(J.createElement)("div",{className:"reusable-block-edit-panel"},Object(J.createElement)("b",{className:"reusable-block-edit-panel__info"},r),Object(J.createElement)(se.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:c},Object(Q.__)("Edit"))),(t||n)&&Object(J.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(J.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(J.createElement)("input",{ref:this.titleField,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:r,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(J.createElement)(se.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!r||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}}]),t}(J.Component),Na=Object(ue.withInstanceId)(Ta),Ba=function(e){function t(e){var r,n=e.reusableBlock;return Object(Ce.a)(this,t),(r=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).startEditing=r.startEditing.bind(Object(Pe.a)(r)),r.stopEditing=r.stopEditing.bind(Object(Pe.a)(r)),r.setBlocks=r.setBlocks.bind(Object(Pe.a)(r)),r.setTitle=r.setTitle.bind(Object(Pe.a)(r)),r.save=r.save.bind(Object(Pe.a)(r)),r.state=n?{isEditing:n.isTemporary,title:n.title,blocks:Object($.parse)(n.content)}:{isEditing:!1,title:null,blocks:[]},r}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object($.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object($.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,r=e.onSave,n=this.state,o=n.blocks;t({title:n.title,content:Object($.serialize)(o)}),r(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,r=e.reusableBlock,n=e.isFetching,o=e.isSaving,c=e.canUpdateBlock,a=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!r&&n)return Object(J.createElement)(se.Placeholder,null,Object(J.createElement)(se.Spinner,null));if(!r)return Object(J.createElement)(se.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable."));var b=Object(J.createElement)(K.BlockEditorProvider,{settings:a,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(J.createElement)(K.WritingFlow,null,Object(J.createElement)(K.BlockList,null)));return l||(b=Object(J.createElement)(se.Disabled,null,b)),Object(J.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(J.createElement)(Na,{isEditing:l,title:null!==s?s:r.title,isSaving:o&&!r.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),t}(J.Component),Aa=Object(ue.compose)([Object(be.withSelect)((function(e,t){var r=e("core/editor"),n=r.__experimentalGetReusableBlock,o=r.__experimentalIsFetchingReusableBlock,c=r.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=n(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var r=e("core/editor"),n=r.__experimentalFetchReusableBlocks,o=r.__experimentalUpdateReusableBlock,c=r.__experimentalSaveReusableBlock,a=t.attributes.ref;return{fetchReusableBlock:Object(Y.partial)(n,a),onChange:Object(Y.partial)(o,a),onSave:Object(Y.partial)(c,a)}}))])(Ba),Ra="core/block",Ma={title:Object(Q.__)("Reusable Block"),category:"reusable",description:Object(Q.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),supports:{customClassName:!1,html:!1,inserter:!1},edit:Aa},za=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z"})),Ia=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(Pe.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,r=t.blockLayout,n=t.columns,o=t.displayAuthor,c=t.displayExcerpt,a=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object(J.createElement)(se.Placeholder,{icon:za,label:"RSS"},Object(J.createElement)("form",{onSubmit:this.onSubmitURL},Object(J.createElement)(se.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object(J.createElement)(se.Button,{isSecondary:!0,type:"submit"},Object(Q.__)("Use URL"))));var b=[{icon:So.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(Q.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===r},{icon:"grid-view",title:Object(Q.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===r}];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(se.ToolbarGroup,{controls:b})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("RSS settings")},Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display date"),checked:a,onChange:this.toggleAttribute("displayDate")}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===r&&Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Columns"),value:n,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object(J.createElement)(se.Disabled,null,Object(J.createElement)(Pr.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(J.Component),La="core/rss",Ha={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:za,category:"widgets",keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:Ia},Da=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z"}));var Va="core/search",Fa={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:Da,category:"widgets",keywords:[Object(Q.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=r.label,c=r.placeholder,a=r.buttonText;return Object(J.createElement)("div",{className:t},Object(J.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return n({label:e})}}),Object(J.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:c?void 0:Object(Q.__)("Optional placeholder…"),value:c,onChange:function(e){return n({placeholder:e.target.value})}}),Object(J.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({buttonText:e})}}))}},Ua=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object(J.createElement)(X.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"})),Ga=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(K.getColorClassName)("background-color",r),i=Object(K.getColorClassName)("color",o),l=re()(a,{"has-text-color":o||c,"has-background":r||n}),s={backgroundColor:a?void 0:n,color:i?void 0:c};return Object(J.createElement)("div",{className:l,style:s},Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,o=Object(K.getColorClassName)("background-color",r),c=re()(o,{"has-background":r||n}),a={backgroundColor:o?void 0:n};return Object(J.createElement)("div",{className:c,style:a},Object(J.createElement)(K.InnerBlocks.Content,null))}}];var qa=Object(ue.compose)([Object(be.withSelect)((function(e,t){var r=t.clientId,n=(0,e("core/block-editor").getBlock)(r);return{hasInnerBlocks:!(!n||!n.innerBlocks.length)}}))])((function(e){var t=e.hasInnerBlocks,r=e.className,n=Object(J.useRef)(),o=Object(K.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0}],colorDetector:{targetRef:n}}),c=o.TextColor,a=o.BackgroundColor,i=o.InspectorControlsColorPanel;return Object(J.createElement)(J.Fragment,null,i,Object(J.createElement)(a,null,Object(J.createElement)(c,null,Object(J.createElement)("div",{className:r,ref:n},Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)(K.InnerBlocks,{renderAppender:!t&&K.InnerBlocks.ButtonBlockAppender}))))))}));var Wa={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Za=Wa.name,Ka={title:Object(Q.__)("Group"),icon:Ua,description:Object(Q.__)("A block that groups other blocks."),keywords:[Object(Q.__)("container"),Object(Q.__)("wrapper"),Object(Q.__)("row"),Object(Q.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff",customTextColor:"#000000"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Q.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Q.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Q.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Q.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Q.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Q.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],r=e.reduce((function(e,r){var n=r.attributes.align;return t.indexOf(n)>t.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object($.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object($.createBlock)("core/group",{align:r},n)}}}]},edit:qa,save:function(e){var t=e.attributes,r=t.backgroundColor,n=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(K.getColorClassName)("background-color",r),i=Object(K.getColorClassName)("color",o),l=re()(a,i,{"has-text-color":o||c,"has-background":r||n}),s={backgroundColor:a?void 0:n,color:i?void 0:c};return Object(J.createElement)("div",{className:l,style:s},Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ga},$a=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 13H5v-2h14v2z"})),Ya=function(e){var t=e.color,r=e.setColor;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var Qa=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(se.HorizontalRule,{className:re()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(J.createElement)(Ya,{color:t,setColor:r}))}));var Ja={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object($.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Xa={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},ei=Xa.name,ti={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:$a,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:Ja,edit:Qa,save:function(e){var t,r=e.attributes,n=r.color,o=r.customColor,c=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=re()((t={"has-text-color has-background":n||o},Object(Z.a)(t,c,c),Object(Z.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(J.createElement)("hr",{className:i,style:l})}},ri=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"}));var ni=r(85),oi={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(ni.removep)(Object(ni.autop)(r))}}},priority:20}]},ci={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}}},ai=ci.name,ii={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:ri,transforms:oi,supports:{customClassName:!1,className:!1,html:!1},edit:function e(t){var r=t.attributes,n=t.setAttributes,o=Object(ue.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(J.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(J.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(J.createElement)(se.Dashicon,{icon:"shortcode"}),Object(Q.__)("Shortcode")),Object(J.createElement)(K.PlainText,{className:"input-control",id:c,value:r.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.text)}},li=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})),si=Object(ue.compose)([Object(be.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),ue.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,o=e.instanceId,c=e.onResizeStart,a=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object(J.useState)(i),u=Object(le.a)(s,2),b=u[0],m=u[1];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(se.ResizableBox,{className:re()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:i},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:c,onResizeStop:function(e,t,r,o){a();var c=parseInt(i+o.height,10);n({height:c}),m(c)}}),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(J.createElement)(se.BaseControl,{label:Object(Q.__)("Height in pixels"),id:l},Object(J.createElement)("input",{type:"number",id:l,onChange:function(e){var t=parseInt(e.target.value,10);m(t),isNaN(t)?(m(""),t=100):t<20&&(t=20),n({height:t})},value:b,min:"20",step:"10"})))))}));var ui={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},bi=ui.name,mi={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:li,edit:si,save:function(e){var t=e.attributes;return Object(J.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},di=r(37),pi=r.n(di);var hi={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},gi={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},fi=gi.name,Oi={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(J.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(se.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),supports:{inserter:!1,multiple:!1},transforms:hi,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.align,c=t.content,a=t.placeholder;return pi()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:o,onChange:function(e){r({align:e})}})),Object(J.createElement)(K.RichText,{tagName:"p",value:c,onChange:function(e){r({content:e})},style:{textAlign:o},className:n,placeholder:a||Object(Q.__)("Write subheading…")}))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"p",style:{textAlign:r},value:n})}},vi=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"})),ji=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!n.length&&!o.length&&!c.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=re()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope;return Object(J.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("table",{className:l},Object(J.createElement)(s,{type:"head",rows:n}),Object(J.createElement)(s,{type:"body",rows:o}),Object(J.createElement)(s,{type:"foot",rows:c}))}}],yi=r(281),wi=r(282),ki=r(283);function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ci=["align"];function Ei(e,t,r){if(!t)return e;var n=Object(Y.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(Y.mapValues)(n,(function(e,n){return o&&o!==n?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:n,columnIndex:c,rowIndex:o},t)?r(e):e}))}}))}))}function xi(e,t){var r=t.sectionName,n=t.rowIndex,o=t.columnCount,c=function(e){return Ti(e.head)?Ti(e.body)?Ti(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Y.get)(c,["cells","length"]):o;return a?Object(Z.a)({},r,[].concat(Object(W.a)(e[r].slice(0,n)),[{cells:Object(Y.times)(a,(function(e){var t=Object(Y.get)(c,["cells",e],{});return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var r=this.props,n=r.attributes,o=r.setAttributes,c=t.columnIndex;this.setState({selectedCell:null}),o(Si(n,{columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,r=t.attributes,n=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),n(function(e,t){var r=t.columnIndex,n=Object(Y.pick)(e,["head","body","foot"]);return Object(Y.mapValues)(n,(function(e){return Ti(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(r,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Ai({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(Q.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(Q.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(Q.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(Q.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(Q.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(Q.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,r=e.name,n=e.rows;if(Ti(n))return null;var o="t".concat(r);return Object(J.createElement)(o,null,n.map((function(e,n){var o=e.cells;return Object(J.createElement)("tr",{key:n},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:r,rowIndex:n,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===r?b=Object(Q.__)("Header label"):"foot"===r&&(b=Object(Q.__)("Footer label")),Object(J.createElement)(K.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=this.state,l=i.initialRowCount,s=i.initialColumnCount,u=r.hasFixedLayout,b=r.caption,m=r.head,d=r.body,p=r.foot,h=Ti(m)&&Ti(d)&&Ti(p),g=this.renderSection;if(h)return Object(J.createElement)(se.Placeholder,{label:Object(Q.__)("Table"),icon:Object(J.createElement)(K.BlockIcon,{icon:vi,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(J.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object(J.createElement)(se.TextControl,{type:"number",label:Object(Q.__)("Column Count"),value:s,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(J.createElement)(se.TextControl,{type:"number",label:Object(Q.__)("Row Count"),value:l,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(J.createElement)(se.Button,{className:"wp-block-table__placeholder-button",isSecondary:!0,type:"submit"},Object(Q.__)("Create Table"))));var f=re()(o.class,{"has-fixed-layout":u,"has-background":!!o.color});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(se.ToolbarGroup,null,Object(J.createElement)(se.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(Q.__)("Edit table"),controls:this.getTableControls()})),Object(J.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Mi,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!u,onChange:this.onChangeFixedLayout}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!m||!m.length),onChange:this.onToggleHeaderSection}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!p||!p.length),onChange:this.onToggleFooterSection})),Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:Ri}]})),Object(J.createElement)("figure",{className:n},Object(J.createElement)("table",{className:f},Object(J.createElement)(g,{name:"head",rows:m}),Object(J.createElement)(g,{name:"body",rows:d}),Object(J.createElement)(g,{name:"foot",rows:p})),Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:b,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})}})))}}]),t}(J.Component),Li=zi("backgroundColor")(Ii);var Hi=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},Di={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Hi(e)},tfoot:{allowEmpty:!0,children:Hi(e)},tbody:{allowEmpty:!0,children:Hi(e)}}}}}}]},Vi={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},Fi=Vi.name,Ui={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:vi,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],supports:{align:!0},transforms:Di,edit:Li,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!o.length&&!c.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=re()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!K.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope,c=e.align,a=re()(Object(Z.a)({},"has-text-align-".concat(c),c));return Object(J.createElement)(K.RichText.Content,{className:a||void 0,"data-align":c,tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("figure",null,Object(J.createElement)("table",{className:""===s?void 0:s},Object(J.createElement)(b,{type:"head",rows:n}),Object(J.createElement)(b,{type:"body",rows:o}),Object(J.createElement)(b,{type:"foot",rows:c})),u&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:ji};var Gi={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,o=e.width;return Object($.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object($.createBlock)("core/column",{},[Object($.createBlock)("core/paragraph",{content:t})])})))}}]},qi={name:"core/text-columns",icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}}},Wi=qi.name,Zi={supports:{inserter:!1},title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:Gi,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.width,c=t.content,a=t.columns;return pi()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockAlignmentToolbar,{value:o,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,null,Object(J.createElement)(se.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(J.createElement)("div",{className:"".concat(n," align").concat(o," columns-").concat(a)},Object(Y.times)(a,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText,{tagName:"p",value:Object(Y.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(W.a)(c.slice(0,e)),[{children:t}],Object(W.a)(c.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,o=t.columns;return Object(J.createElement)("div",{className:"align".concat(r," columns-").concat(o)},Object(Y.times)(o,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText.Content,{tagName:"p",value:Object(Y.get)(n,[e,"children"])}))})))}},Ki=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"})),$i=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var Yi={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},Qi={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}}},Ji=Qi.name,Xi={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Ki,example:{attributes:{content:Object(Q.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Q.__)("poetry"),Object(Q.__)("poem")],transforms:Yi,deprecated:$i,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=e.mergeBlocks,c=t.textAlign,a=t.content;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(J.createElement)(K.RichText,{tagName:"pre",preserveWhiteSpace:!0,value:a,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),className:re()(n,Object(Z.a)({},"has-text-align-".concat(c),c)),onMerge:o}))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(J.createElement)(K.RichText.Content,{tagName:"pre",className:o,value:n})}},el=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),tl=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,o=r.controls,c=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:c}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(J.createElement)(se.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))},rl=["video"],nl=["image"],ol=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).videoPlayer=Object(J.createRef)(),e.posterImageButton=Object(J.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(Pe.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(Pe.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(Pe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,r=e.mediaUpload,n=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ne.isBlobURL)(i)){var l=Object(Ne.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(e){var t=Object(le.a)(e,1)[0].url;o({src:t})},onError:function(e){n.createErrorNotice(e)},allowedTypes:rl})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"onSelectURL",value:function(e){var t=this.props,r=t.attributes,n=t.setAttributes;if(e!==r.src){var o=at({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);n({src:e,id:void 0})}}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this,t=this.props.attributes,r=t.id,n=t.caption,o=t.controls,c=t.poster,a=t.src,i=this.props,l=i.className,s=i.instanceId,u=i.isSelected,b=i.noticeUI,m=i.attributes,d=i.setAttributes,p=function(e){e&&e.url?d({src:e.url,id:e.id}):d({src:void 0,id:void 0})};if(!a)return Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:el}),className:l,onSelect:p,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:rl,value:this.props.attributes,notices:b,onError:this.onUploadError});var h="video-block__poster-image-description-".concat(s);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:r,mediaURL:a,allowedTypes:rl,accept:"video/*",onSelect:p,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Video settings")},Object(J.createElement)(tl,{setAttributes:d,attributes:m}),Object(J.createElement)(K.MediaUploadCheck,null,Object(J.createElement)(se.BaseControl,{className:"editor-video-poster-control"},Object(J.createElement)(se.BaseControl.VisualLabel,null,Object(Q.__)("Poster image")),Object(J.createElement)(K.MediaUpload,{title:Object(Q.__)("Select poster image"),onSelect:this.onSelectPoster,allowedTypes:nl,render:function(t){var r=t.open;return Object(J.createElement)(se.Button,{isSecondary:!0,onClick:r,ref:e.posterImageButton,"aria-describedby":h},e.props.attributes.poster?Object(Q.__)("Replace image"):Object(Q.__)("Select Poster Image"))}}),Object(J.createElement)("p",{id:h,hidden:!0},this.props.attributes.poster?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Q.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(J.createElement)(se.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(Q.__)("Remove Poster Image")))))),Object(J.createElement)("figure",{className:l},Object(J.createElement)(se.Disabled,null,Object(J.createElement)("video",{controls:o,poster:c,src:a,ref:this.videoPlayer})),(!K.RichText.isEmpty(n)||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:n,onChange:function(e){return d({caption:e})},inlineToolbar:!0})))}}]),t}(J.Component),cl=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),se.withNotices,ue.withInstanceId])(ol);var al={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/video",{src:Object(Ne.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return r||n||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},il={name:"core/video",category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},ll=il.name,sl={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:el,keywords:[Object(Q.__)("movie")],transforms:al,supports:{align:!0},edit:cl,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(J.createElement)("figure",null,s&&Object(J.createElement)("video",{autoPlay:r,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},ul=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),bl=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(xe.a)(this,Object(Se.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(Pe.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(Pe.a)(e)),e}return Object(Te.a)(t,e),Object(Ee.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(Y.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},r=Object(Y.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(W.a)(r))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,r=e.showTagCounts,n=this.getTaxonomyOptions(),o=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.__)("Tag Cloud settings")},Object(J.createElement)(se.SelectControl,{label:Object(Q.__)("Taxonomy"),options:n,value:t,onChange:this.setTaxonomy}),Object(J.createElement)(se.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:r,onChange:this.toggleShowTagCounts})));return Object(J.createElement)(J.Fragment,null,o,Object(J.createElement)(Pr.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(J.Component),ml=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(bl),dl="core/tag-cloud",pl={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:ul,category:"widgets",supports:{html:!1,align:!0},edit:ml},hl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(J.createElement)(X.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(J.createElement)(X.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(J.createElement)(X.Rect,{x:"17",y:"8",width:"2",height:"2"}));function gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(r.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===ar.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Q._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(a,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(a,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Q.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=r.editor.getBody();document.activeElement===e&&(e.blur(),r.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(J.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Q.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(J.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(J.Component);var jl={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},yl=jl.name,wl={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:hl,supports:{className:!1,customClassName:!1,reusable:!1},edit:vl,save:function(e){var t=e.attributes.content;return Object(J.createElement)(J.RawHTML,null,t)}},kl=["core/social-link"],_l=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]],Cl=function(e){var t=e.className;return Object(J.createElement)("div",{className:t},Object(J.createElement)(K.InnerBlocks,{allowedBlocks:kl,templateLock:!1,template:_l,__experimentalMoverDirection:"horizontal"}))};var El={name:"core/social-links",category:"widgets",icon:"share",attributes:{}},xl=El.name,Sl={title:Object(Q.__)("Social Icons"),description:Object(Q.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Q._x)("links","block keywords")],supports:{align:["left","center","right"]},example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Q.__)("Logos Only")},{name:"pill-shape",label:Object(Q.__)("Pill Shape")}],edit:Cl,save:function(e){var t=e.className;return Object(J.createElement)("ul",{className:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},Pl=r(192),Tl=function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},Nl=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Tl},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],Bl=function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(J.useState)(!1),u=Object(le.a)(s,2),b=u[0],m=u[1],d=re()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(Y.find)(Nl,{name:t}))?r.icon:Tl),h=function(e){var t=Object(Y.find)(Nl,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(se.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),h),initialOpen:!1},Object(J.createElement)(se.PanelRow,null,Object(J.createElement)(se.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(J.createElement)(se.Button,{className:d,onClick:function(){return m(!0)}},Object(J.createElement)(p,null),c&&b&&Object(J.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(J.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(J.createElement)("div",{className:"block-editor-url-input"},Object(J.createElement)(K.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(J.createElement)(se.Button,{icon:Pl.a,label:Object(Q.__)("Apply"),type:"submit"})))))},Al={name:"core/social-link",category:"widgets",icon:"share",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}}},Rl=Al.name,Ml={title:Object(Q.__)("Social Icon"),parent:["core/social-links"],supports:{reusable:!1,html:!1},edit:Bl,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:Nl};r.d(t,"registerCoreBlocks",(function(){return Il})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Ll}));var zl=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object($.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object($.registerBlockType)(n,r)}},Il=function(){[n,o,c,i,_,a,M,l,s,u,b,m,d,p,h,g,f,O].concat(Object(W.a)(Zo),Object(W.a)(Ko),[v,A,window.wp&&window.wp.oldEditor?U:null,j,y,w,k,C,E,x,S,P,N,B,R,T,G,q,z,I,L,F,H,D,V]).forEach(zl),Object($.setDefaultBlockName)(ve),window.wp&&window.wp.oldEditor&&Object($.setFreeformContentHandlerName)(yl),Object($.setUnregisteredTypeHandlerName)(ea),A&&Object($.setGroupingBlockName)(Za)},Ll=void 0},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},46:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function c(){var c,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=A(e,360),t=A(t,100),r=A(r,100),0===t)n=o=c=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*n,g:255*o,b:255*c}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,h;return r=B(r),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=i++}function d(e,t,r){e=A(e,255),t=A(t,255),r=A(r,255);var n,o,c=u(e,t,r),a=s(e,t,r),i=(c+a)/2;if(c==a)n=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,c.push(m(n));return c}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,o=r.s,c=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:o,v:c})),c=(c+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var c=[z(l(e).toString(16)),z(l(t).toString(16)),z(l(r).toString(16)),z(L(n))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*A(this._r,255))+"%",g:l(100*A(this._g,255))+"%",b:l(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*A(this._r,255))+"%, "+l(100*A(this._g,255))+"%, "+l(100*A(this._b,255))+"%)":"rgba("+l(100*A(this._r,255))+"%, "+l(100*A(this._g,255))+"%, "+l(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);r="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:I(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),o=m(t).toRgb(),c=r/100;return m({r:(o.r-n.r)*c+n.r,g:(o.g-n.g)*c+n.g,b:(o.b-n.b)*c+n.b,a:(o.a-n.a)*c+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,o,c=m.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,r){var n,o,c,a,i=null,l=0;o=(r=r||{}).includeFallbackColors,c=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var T=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return M(e)/255}var D,V,F,U=(V="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",F="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},56:function(e,t){!function(){e.exports=this.wp.viewport}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t){!function(){e.exports=this.wp.date}()},67:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},68:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},7:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},73:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},75:function(e,t){!function(){e.exports=this.wp.coreData}()},8:function(e,t){!function(){e.exports=this.wp.compose}()},85:function(e,t){!function(){e.exports=this.wp.autop}()},87:function(e,t,r){var n; +e.exports=function(){"use strict";function e(e,t){for(var r=0;ra?(r=c/a,i=100,l=Math.round(i/r)):(r=a/c,l=100,i=Math.round(l/r)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:n,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,o=0,c=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,o=(r=r||{})&&r.data,c=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),o)},i=function(){s(),t.call(e,n._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,n._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,o),c&&e(n,c),r}()}()},26:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},43:function(e,t){!function(){e.exports=this.moment}()},432:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"metadata",(function(){return Oe})),r.d(n,"name",(function(){return je})),r.d(n,"settings",(function(){return ye}));var o={};r.r(o),r.d(o,"metadata",(function(){return Gt})),r.d(o,"name",(function(){return Wt})),r.d(o,"settings",(function(){return qt}));var c={};r.r(c),r.d(c,"metadata",(function(){return lr})),r.d(c,"name",(function(){return sr})),r.d(c,"settings",(function(){return ur}));var a={};r.r(a),r.d(a,"metadata",(function(){return _r})),r.d(a,"name",(function(){return kr})),r.d(a,"settings",(function(){return Cr}));var i={};r.r(i),r.d(i,"metadata",(function(){return cn})),r.d(i,"name",(function(){return an})),r.d(i,"settings",(function(){return ln}));var l={};r.r(l),r.d(l,"metadata",(function(){return mn})),r.d(l,"name",(function(){return dn})),r.d(l,"settings",(function(){return pn}));var s={};r.r(s),r.d(s,"metadata",(function(){return jn})),r.d(s,"name",(function(){return yn})),r.d(s,"settings",(function(){return wn}));var u={};r.r(u),r.d(u,"metadata",(function(){return qn})),r.d(u,"name",(function(){return Zn})),r.d(u,"settings",(function(){return Kn}));var b={};r.r(b),r.d(b,"metadata",(function(){return Xn})),r.d(b,"name",(function(){return eo})),r.d(b,"settings",(function(){return to}));var m={};r.r(m),r.d(m,"metadata",(function(){return so})),r.d(m,"name",(function(){return uo})),r.d(m,"settings",(function(){return bo}));var d={};r.r(d),r.d(d,"metadata",(function(){return vo})),r.d(d,"name",(function(){return Oo})),r.d(d,"settings",(function(){return jo}));var p={};r.r(p),r.d(p,"metadata",(function(){return Eo})),r.d(p,"name",(function(){return xo})),r.d(p,"settings",(function(){return So}));var h={};r.r(h),r.d(h,"metadata",(function(){return qo})),r.d(h,"name",(function(){return Zo})),r.d(h,"settings",(function(){return Ko}));var g={};r.r(g),r.d(g,"metadata",(function(){return Qo})),r.d(g,"name",(function(){return Jo})),r.d(g,"settings",(function(){return Xo}));var f={};r.r(f),r.d(f,"metadata",(function(){return Sc})),r.d(f,"name",(function(){return Pc})),r.d(f,"settings",(function(){return Tc}));var v={};r.r(v),r.d(v,"name",(function(){return Jc})),r.d(v,"settings",(function(){return Xc})),r.d(v,"common",(function(){return ea})),r.d(v,"others",(function(){return ta}));var O={};r.r(O),r.d(O,"metadata",(function(){return la})),r.d(O,"name",(function(){return sa})),r.d(O,"settings",(function(){return ua}));var j={};r.r(j),r.d(j,"metadata",(function(){return ga})),r.d(j,"name",(function(){return fa})),r.d(j,"settings",(function(){return va}));var y={};r.r(y),r.d(y,"metadata",(function(){return Ia})),r.d(y,"name",(function(){return Da})),r.d(y,"settings",(function(){return La}));var w={};r.r(w),r.d(w,"metadata",(function(){return Ga})),r.d(w,"name",(function(){return Wa})),r.d(w,"settings",(function(){return qa}));var _={};r.r(_),r.d(_,"metadata",(function(){return ii})),r.d(_,"name",(function(){return li})),r.d(_,"settings",(function(){return si}));var k={};r.r(k),r.d(k,"metadata",(function(){return Ci})),r.d(k,"name",(function(){return Ei})),r.d(k,"settings",(function(){return xi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Pi})),r.d(C,"name",(function(){return Ti})),r.d(C,"settings",(function(){return Bi}));var E={};r.r(E),r.d(E,"metadata",(function(){return Ai})),r.d(E,"name",(function(){return Hi})),r.d(E,"settings",(function(){return Ii}));var x={};r.r(x),r.d(x,"metadata",(function(){return Vi})),r.d(x,"name",(function(){return Fi})),r.d(x,"settings",(function(){return Ui}));var S={};r.r(S),r.d(S,"metadata",(function(){return qi})),r.d(S,"name",(function(){return Zi})),r.d(S,"settings",(function(){return Ki}));var P={};r.r(P),r.d(P,"metadata",(function(){return cl})),r.d(P,"name",(function(){return al})),r.d(P,"settings",(function(){return il}));var T={};r.r(T),r.d(T,"metadata",(function(){return pl})),r.d(T,"name",(function(){return hl})),r.d(T,"settings",(function(){return gl}));var B={};r.r(B),r.d(B,"metadata",(function(){return vl})),r.d(B,"name",(function(){return Ol})),r.d(B,"settings",(function(){return jl}));var z={};r.r(z),r.d(z,"metadata",(function(){return _l})),r.d(z,"name",(function(){return kl})),r.d(z,"settings",(function(){return Cl}));var R={};r.r(R),r.d(R,"metadata",(function(){return zl})),r.d(R,"name",(function(){return Rl})),r.d(R,"settings",(function(){return Ml}));var M={};r.r(M),r.d(M,"metadata",(function(){return Dl})),r.d(M,"name",(function(){return Ll})),r.d(M,"settings",(function(){return Vl}));var N={};r.r(N),r.d(N,"metadata",(function(){return ql})),r.d(N,"name",(function(){return Zl})),r.d(N,"settings",(function(){return Kl}));var A={};r.r(A),r.d(A,"metadata",(function(){return Ql})),r.d(A,"name",(function(){return Jl})),r.d(A,"settings",(function(){return Xl}));var H={};r.r(H),r.d(H,"metadata",(function(){return ns})),r.d(H,"name",(function(){return os})),r.d(H,"settings",(function(){return cs}));var I={};r.r(I),r.d(I,"metadata",(function(){return As})),r.d(I,"name",(function(){return Hs})),r.d(I,"settings",(function(){return Is}));var D={};r.r(D),r.d(D,"metadata",(function(){return Ls})),r.d(D,"name",(function(){return Vs})),r.d(D,"settings",(function(){return Fs}));var L={};r.r(L),r.d(L,"metadata",(function(){return qs})),r.d(L,"name",(function(){return Zs})),r.d(L,"settings",(function(){return Ks}));var V={};r.r(V),r.d(V,"metadata",(function(){return nu})),r.d(V,"name",(function(){return ou})),r.d(V,"settings",(function(){return cu}));var F={};r.r(F),r.d(F,"metadata",(function(){return uu})),r.d(F,"name",(function(){return bu})),r.d(F,"settings",(function(){return mu}));var U={};r.r(U),r.d(U,"metadata",(function(){return Ou})),r.d(U,"name",(function(){return ju})),r.d(U,"settings",(function(){return yu}));var G={};r.r(G),r.d(G,"metadata",(function(){return Eu})),r.d(G,"name",(function(){return xu})),r.d(G,"settings",(function(){return Su}));var W={};r.r(W),r.d(W,"metadata",(function(){return Ru})),r.d(W,"name",(function(){return Mu})),r.d(W,"settings",(function(){return Nu}));var q=r(16),Z=r(5),K=(r(89),r(7)),$=r(12),Y=r(2),Q=r(1),J=r(0),X=r(6),ee=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),te=r(11),re=r.n(te);function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ce=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(J.createElement)("img",{src:n,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(J.createElement)("figure",{className:b},i?Object(J.createElement)("a",{href:i},m):m,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(J.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(J.createElement)("figure",{className:c?"align".concat(c):null},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(J.createElement)("img",Object(_e.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(J.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(J.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}}],Ee=r(44),xe=r(9),Se=r(30),Pe=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Te=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Be=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),ze=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Re=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Me={foreground:"#1da1f2",src:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Ne={foreground:"#ff0000",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Ae={foreground:"#3b5998",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},He=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Ie={foreground:"#0073AA",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},De={foreground:"#1db954",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Le=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),Ve={foreground:"#1ab7ea",src:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.G,null,Object(J.createElement)(ue.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Fe=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Ue={foreground:"#35465c",src:Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Ge=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(J.createElement)(ue.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(J.createElement)(ue.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),We=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(J.createElement)(ue.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(J.createElement)(ue.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(J.createElement)(ue.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),qe=Object(J.createElement)(ue.SVG,{viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Ze=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Me,keywords:["tweet",Object(Q.__)("social")],description:Object(Q.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Ne,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Ae,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Facebook post."),previewable:!1},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:He,keywords:[Object(Q.__)("image"),Object(Q.__)("social")],description:Object(Q.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Ie,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],responsive:!1,description:Object(Q.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Be,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:De,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:Le,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Ve,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],Ke=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:We,description:Object(Q.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Te,description:Object(Q.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Re,description:Object(Q.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Te,keywords:["polldaddy",Object(Q.__)("survey")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object($.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:qe,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:ze,description:Object(Q.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Te,description:Object(Q.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Te,description:Object(Q.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Te,description:Object(Q.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Be,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Te,description:Object(Q.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:Fe,description:Object(Q.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Be,description:Object(Q.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Re,description:Object(Q.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Te,description:Object(Q.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Te,description:Object(Q.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:ze,description:Object(Q.__)("Embed SmugMug content."),previewable:!1},patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Be,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Te,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object($.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Q.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:"TikTok",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a TikTok video.")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Re,description:Object(Q.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Ue,keywords:[Object(Q.__)("social")],description:Object(Q.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Re,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Re,description:Object(Q.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Ge,keywords:[Object(Q.__)("ebook")],responsive:!1,description:Object(Q.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],$e=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Ye=r(95),Qe=r.n(Ye),Je=r(50),Xe=r.n(Je);function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},rt=function(e){return Object(Y.includes)(e,'class="wp-embedded-content"')},nt=function(e,t){var r=e.preview,n=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,r=[].concat(Object(q.a)(Ze),Object(q.a)(Ke));t1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r){for(var n={"wp-has-aspect-ratio":!1},o=0;o<$e.length;o++){var c=$e[o];n[c.className]=!1}return Qe()(t,n)}var a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;var i=a.body.querySelector("iframe");if(i&&i.height&&i.width)for(var l=(i.width/i.height).toFixed(2),s=0;s<$e.length;s++){var u,b=$e[s];if(l>=b.ratio)return Qe()(t,(u={},Object(Z.a)(u,b.className,r),Object(Z.a)(u,"wp-has-aspect-ratio",r),u))}return t}function ct(e,t){var r=Object(J.createElement)("a",{href:e},e);t(Object($.createBlock)("core/paragraph",{content:Object(J.renderToString)(r)}))}var at=Xe()((function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(Y.kebabCase)(Object(Y.toLower)(""!==s?s:t));return rt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=ot(l,r,n&&o),c})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var it=function(e,t){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var lt=function(){return(lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=t*r&&c>t*r?{width:t*r,height:t}:c>t*r?{width:e,height:e/r}:c>a*r?{width:a*r,height:a}:{width:c,height:c/r}}function mt(e,t,r,n,o){void 0===o&&(o=0);var c=wt(t.width,t.height,o),a=c.width,i=c.height;return{x:dt(e.x,a,r.width,n),y:dt(e.y,i,r.height,n)}}function dt(e,t,r,n){var o=t*n/2-r/2;return Math.min(o,Math.max(e,-o))}function pt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function ht(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function gt(e,t,r,n,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?ft:vt,l={x:i(100,((t.width-r.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-r.height/o)/2-e.y/o)/t.height*100),width:i(100,r.width/t.width*100/o),height:i(100,r.height/t.height*100/o)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:lt(lt({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function ft(e,t){return Math.min(e,Math.max(0,t))}function vt(e,t){return t}function Ot(e,t,r){var n=t.width/t.naturalWidth,o=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),c=n*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function jt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function yt(e,t,r,n,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-r)*c(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*c(i)+n]}function wt(e,t,r){var n=e/2,o=t/2,c=[yt(0,0,n,o,r),yt(e,0,n,o,r),yt(e,t,n,o,r),yt(0,t,n,o,r)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-l}}function _t(){for(var e=[],t=0;t0})).join(" ").trim()}var kt=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var o=Ot(t,r.mediaSize,n),c=o.crop,a=o.zoom;r.props.onCropChange(c),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,o,c=r.imageRef||r.videoRef;if(c){r.mediaSize={width:c.offsetWidth,height:c.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(o=r.videoRef)||void 0===o?void 0:o.videoHeight)||0};var a=r.props.cropSize?r.props.cropSize:bt(c.offsetWidth,c.offsetHeight,r.props.aspect,r.props.rotation);r.setState({cropSize:a},r.recomputeCropPosition)}r.containerRef&&(r.containerRect=r.containerRef.getBoundingClientRect())},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,o=e.x,c=e.y;r.dragStartPosition={x:o,y:c},r.dragStartCrop=lt({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,o=n-r.dragStartPosition.y,c={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},a=r.props.restrictPosition?mt(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),o=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(o,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,o=r.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(n+c.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),o=r.getPointOnMedia(n),c=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:o.x*c-n.x,y:o.y*c-n.y},i=r.props.restrictPosition?mt(a,r.mediaSize,r.state.cropSize,c,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(c)}},r.emitCropData=function(){if(r.state.cropSize){var e=gt(r.props.restrictPosition?mt(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition),t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?mt(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}it(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,o;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)===(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)&&(null===(n=e.cropSize)||void 0===n?void 0:n.width)===(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)||this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=pt(r,n),this.lastPinchRotation=ht(r,n),this.onDragStart(jt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=jt(n,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=pt(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,c),r.lastPinchDistance=e;var a=ht(n,o),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,o=t.mediaProps,c=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,h=d.cropAreaStyle,g=d.mediaStyle,f=t.classes,v=f.containerClassName,O=f.cropAreaClassName,j=f.mediaClassName;return ut.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:_t("reactEasyCrop_Container",v)},r?ut.a.createElement("img",lt({alt:"",className:_t("reactEasyCrop_Image",j)},o,{src:r,ref:function(t){return e.imageRef=t},style:lt(lt({},g),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&ut.a.createElement("video",lt({autoPlay:!0,loop:!0,muted:!0,className:_t("reactEasyCrop_Video",j)},o,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:lt(lt({},g),{transform:c||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&ut.a.createElement("div",{style:lt(lt({},h),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:_t("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",O)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(ut.a.Component),Ct=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),Et=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),xt=r(45),St=r.n(xt),Pt={position:"bottom right"};function Tt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,o=e.onClick;return Object(J.createElement)(ue.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(J.createElement)(ue.MenuItem,{key:n,isDisabled:r,onClick:function(){o(n)}},t)})))}function Bt(e){var t=e.isDisabled,r=e.onClick,n=e.toggleProps;return Object(J.createElement)(ue.DropdownMenu,{icon:Ct,label:Object(Q.__)("Aspect Ratio"),popoverProps:Pt,toggleProps:n},(function(e){var n=e.onClose;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(Tt,{label:Object(Q.__)("Landscape"),isDisabled:t,onClick:function(e){r(e),n()},aspectRatios:[{title:Object(Q.__)("16:10"),aspect:1.6},{title:Object(Q.__)("16:9"),aspect:16/9},{title:Object(Q.__)("4:3"),aspect:4/3},{title:Object(Q.__)("3:2"),aspect:1.5}]}),Object(J.createElement)(Tt,{label:Object(Q.__)("Portrait"),isDisabled:t,onClick:function(e){r(e),n()},aspectRatios:[{title:Object(Q.__)("10:16"),aspect:.625},{title:Object(Q.__)("9:16"),aspect:9/16},{title:Object(Q.__)("3:4"),aspect:3/4},{title:Object(Q.__)("2:3"),aspect:2/3}]}),Object(J.createElement)(Tt,{isDisabled:t,onClick:function(e){r(e),n()},aspectRatios:[{title:Object(Q.__)("Square"),aspect:1}]}))}))}function zt(e){var t=e.id,r=e.url,n=e.setAttributes,o=e.naturalWidth,c=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(be.useDispatch)("core/notices").createErrorNotice,b=Object(J.useState)(!1),m=Object(se.a)(b,2),d=m[0],p=m[1],h=Object(J.useState)(null),g=Object(se.a)(h,2),f=g[0],v=g[1],O=Object(J.useState)({x:0,y:0}),j=Object(se.a)(O,2),y=j[0],w=j[1],_=Object(J.useState)(100),k=Object(se.a)(_,2),C=k[0],E=k[1],x=Object(J.useState)(o/c),S=Object(se.a)(x,2),P=S[0],T=S[1],B=Object(J.useState)(0),z=Object(se.a)(B,2),R=z[0],M=z[1],N=Object(J.useState)(),A=Object(se.a)(N,2),H=A[0],I=A[1],D=a,L=i||l*c/o,V=o/c;return R%180==90&&(L=l*o/c,V=c/o),Object(J.createElement)(J.Fragment,null,Object(J.createElement)("div",{className:re()("richimage__crop-area",{"is-applying":d}),style:{width:D,height:L}},Object(J.createElement)(kt,{image:H||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:C/100,aspect:P,onCropChange:w,onCropComplete:v,onZoomChange:function(e){E(100*e)}}),d&&Object(J.createElement)(ue.Spinner,null)),!d&&Object(J.createElement)(ue.RangeControl,{className:"richimage__zoom-control",label:Object(Q.__)("Zoom"),min:100,max:300,value:Math.round(C),onChange:E}),Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{icon:Et,label:Object(Q.__)("Rotate"),onClick:function(){var e=(R+90)%360;if(0===e)return I(),M(e),T(1/P),void w({x:-y.y*V,y:y.x*V});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,o=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(o=r.height);var c=r.getContext("2d");c.translate(n,o),c.rotate(e*Math.PI/180),c.drawImage(t.target,0,0),r.toBlob((function(t){I(URL.createObjectURL(t)),M(e),T(1/P),w({x:-y.y*V,y:y.x*V})}))}},disabled:d})),Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.__experimentalToolbarItem,null,(function(e){return Object(J.createElement)(Bt,{toggleProps:e,isDisabled:d,onClick:T})}))),Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){p(!0);var e=f;R>0&&(e.rotation=R),St()({path:"__experimental/richimage/".concat(t,"/apply"),headers:{"Content-type":"application/json"},method:"POST",body:JSON.stringify(e)}).then((function(e){n({id:e.media_id,url:e.url,height:i&&a?a/P:void 0})})).catch((function(){u(Object(Q.__)("Unable to perform the image modification. Please check your media storage."),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Q.__)("Apply")),Object(J.createElement)(ue.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var Rt=["image"];function Mt(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,o=t.alt,c=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,h=t.linkTarget,g=t.sizeSlug,f=e.setAttributes,v=e.isSelected,O=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,w=e.onSelectURL,_=e.onUploadError,k=e.containerRef,C=Object(be.useSelect)((function(e){var t=e("core").getMedia;return i&&v?t(i):null}),[i,v]),E=Object(be.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(Y.pick)(t(),["imageSizes","isRTL","maxWidth"])})),x=E.maxWidth,S=E.isRTL,P=E.imageSizes,T=Object(be.useDispatch)("core/block-editor").toggleSelection,B=Object(xe.useViewportMatch)("medium"),z=Object(J.useState)(!1),R=Object(se.a)(z,2),M=R[0],N=R[1],A=Object(Y.includes)(["wide","full"],a),H=Object(J.useState)({}),I=Object(se.a)(H,2),D=I[0],L=D.naturalWidth,V=D.naturalHeight,F=I[1],U=Object(J.useState)(!1),G=Object(se.a)(U,2),W=G[0],q=G[1],Z=function(e,t){var r=Object(J.useState)(),n=Object(se.a)(r,2),o=n[0],c=n[1];function a(){c(e.current.clientWidth)}return Object(J.useEffect)(a,t),Object(J.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),o}(k,[a]),X=!A&&B,ee=Object(Y.map)(Object(Y.filter)(P,(function(e){var t=e.slug;return Object(Y.get)(C,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(J.useEffect)((function(){v||N(!1)}),[v]),Object(J.useEffect)((function(){v||q(!1)}),[v]);var te,re=i&&L&&V,ne=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,!W&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:C&&C.source_url,mediaLink:C&&C.link,linkTarget:h,linkClass:u,rel:s})),re&&!W&&Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{onClick:function(){return q(!0)},icon:Pe,label:Object(Q.__)("Crop")})),!W&&Object(J.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:Rt,accept:"image/*",onSelect:y,onSelectURL:w,onError:_})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Image settings")},Object(J.createElement)(ue.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:o,onChange:function(e){f({alt:e})},help:Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),Object(J.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(Y.get)(C,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:g,width:d,height:p,imageSizeOptions:ee,isResizable:X,imageWidth:L,imageHeight:V}))),Object(J.createElement)(K.InspectorAdvancedControls,null,Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(J.createElement)(J.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(J.createElement)(ue.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))}))),oe=function(e){var t=Object(Se.getPath)(e);if(t)return Object(Y.last)(t.split("/"))}(n);te=o||(oe?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),oe):Object(Q.__)("This image has an empty alt attribute"));var ce,ae,ie=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:n,alt:te,onClick:function(){M&&N(!1)},onError:function(){var e;void 0!==(e=nt({attributes:{url:n}}))&&j(e)},onLoad:function(e){F(Object(Y.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ee.isBlobURL)(n)&&Object(J.createElement)(ue.Spinner,null));if(Z&&L&&V){var le=L>Z;ce=le?Z:L,ae=le?Z*(V/L):V}if(re&&W)ie=Object(J.createElement)(zt,{id:i,url:n,setAttributes:f,naturalWidth:L,naturalHeight:V,width:d,height:p,clientWidth:Z,setIsEditingImage:q});else if(X&&ce){var me=d||ce,de=p||ae,pe=L/V,he=L a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{lightBlockWrapper:!0}},Wt=Gt.name,qt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Ut,edit:It,save:function(e){var t,r=e.attributes,n=r.url,o=r.alt,c=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,h=r.title,g=Object(Y.isEmpty)(l)?void 0:l,f=re()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),v=Object(J.createElement)("img",{src:n,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),O=Object(J.createElement)(J.Fragment,null,i?Object(J.createElement)("a",{className:s,href:i,target:d,rel:g},v):v,!K.RichText.isEmpty(c)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(J.createElement)("div",null,Object(J.createElement)("figure",{className:f},O)):Object(J.createElement)("figure",{className:f},O)},deprecated:Ce},Zt=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $t(e){for(var t=1;t".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation;return Object($.createBlock)("core/quote",{value:t,citation:r})}},{type:"prefix",prefix:">",transform:function(e){return Object($.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

    "!==t&&n.push.apply(n,Object(q.a)(Object(vr.split)(Object(vr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(vr.toHTMLString)({value:e})})})))),r&&"

    "!==r&&n.push(Object($.createBlock)("core/paragraph",{content:r})),0===n.length?Object($.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(fr.a)(e,["value","citation"]);if("

    "===t)return Object($.createBlock)("core/heading",{content:r});var o=Object(vr.split)(Object(vr.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object($.createBlock)("core/heading",{content:Object(vr.toHTMLString)({value:o[0]})});if(!r&&1===o.length)return c;var a=o.slice(1);return[c,Object($.createBlock)("core/quote",function(e){for(var t=1;t"+Object(Q.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:jr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(J.createElement)(ue.BlockQuotation,{className:re()(a,Object(Z.a)({},"has-text-align-".concat(l),l))},Object(J.createElement)(K.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:o,onRemove:function(e){var t=!u||0===u.length;!e&&t&&c([])},placeholder:Object(Q.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object($.createBlock)("core/quote",function(e){for(var t=1;t

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:hr},Er=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function xr(e){return Math.min(3,e.images.length)}var Sr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(Y.pick)(e,["alt","id","link","caption"]);r.url=Object(Y.get)(e,["sizes",t,"url"])||Object(Y.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(Y.get)(e,["sizes","full","url"])||Object(Y.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tr(e){for(var t=1;t0&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(Y.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return Tr({},e,{ids:Object(Y.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?xr(t):n,c=t.imageCrop,a=t.linkTo;return Object(J.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?xr(t):n,c=t.align,a=t.imageCrop,i=t.linkTo,l=re()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(J.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(J.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(J.createElement)("a",{href:t},r):r)})))}}],zr=r(19),Rr=r(18),Mr=r(10),Nr=r(21),Ar=r(13),Hr=r(20),Ir=r(72),Dr=Object(J.createElement)(K.BlockIcon,{icon:Er}),Lr=r(288),Vr=r(287),Fr=r(133);function Ur(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Gr=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(Ur()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).onBlur=e.onBlur.bind(Object(Mr.a)(e)),e.onFocus=e.onFocus.bind(Object(Mr.a)(e)),e.onSelectImage=e.onSelectImage.bind(Object(Mr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Mr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Mr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Mr.a)(e)),e.debouncedOnDeselect=Object(Y.debounce)(e.props.onDeselect,50),e.state={captionSelected:!1},e}return Object(Rr.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[er.BACKSPACE,er.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;n&&!o&&(c(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"onBlur",value:function(){this.debouncedOnDeselect()}},{key:"onFocus",value:function(){this.debouncedOnDeselect.cancel()}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,h=t["aria-label"];switch(c){case"media":e=r;break;case"attachment":e=a}var g=Object(J.createElement)(J.Fragment,null,Object(J.createElement)("img",{src:r,alt:n,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":h,ref:this.bindContainer}),Object(Ee.isBlobURL)(r)&&Object(J.createElement)(ue.Spinner,null)),f=re()({"is-selected":s,"is-transient":Object(Ee.isBlobURL)(r)});return Object(J.createElement)("figure",{className:f,onBlur:this.onBlur,onFocus:this.onFocus},e?Object(J.createElement)("a",{href:e},g):g,Object(J.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(J.createElement)(ue.Button,{icon:Lr.a,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(J.createElement)(ue.Button,{icon:Vr.a,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(J.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(J.createElement)(ue.Button,{icon:Fr.a,onClick:b,className:"blocks-gallery-item__remove",label:Object(Q.__)("Remove image"),disabled:!s})),(s||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),n}(J.Component),Wr=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(be.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Gr);function qr(e){var t=e.isHidden,r=Object(fr.a)(e,["isHidden"]);return t?Object(J.createElement)(ue.VisuallyHidden,Object(_e.a)({as:K.RichText},r)):Object(J.createElement)(K.RichText,r)}var Zr=function(e){var t,r=e.attributes,n=e.className,o=e.isSelected,c=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,h=e.insertBlocksAfter,g=r.align,f=r.columns,v=void 0===f?xr(r):f,O=r.caption,j=r.imageCrop,y=r.images;return Object(J.createElement)("figure",{className:re()(n,(t={},Object(Z.a)(t,"align".concat(g),g),Object(Z.a)(t,"columns-".concat(v),v),Object(Z.a)(t,"is-cropped",j),t))},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var r=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(J.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(J.createElement)(Wr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:o&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":r}))}))),i,Object(J.createElement)(qr,{isHidden:!o&&K.RichText.isEmpty(O),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return h(Object($.createBlock)("core/paragraph"))}}))};function Kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t0&&Object(Y.every)(n,(function(e){var t=e.url;return Object(Ee.isBlobURL)(t)}))){var o=Object(Y.map)(n,(function(e){var t=e.url;return Object(Ee.getBlobByURL)(t)}));Object(Y.forEach)(n,(function(e){var t=e.url;return Object(Ee.revokeBlobURL)(t)})),r({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.className,n=e.isSelected,o=e.noticeUI,c=e.insertBlocksAfter,a=t.columns,i=void 0===a?xr(t):a,l=t.imageCrop,s=t.images,u=t.linkTo,b=t.sizeSlug,m=!!s.length,d=Object(J.createElement)(K.MediaPlaceholder,{addToGallery:m,isAppender:m,className:r,disableMediaButtons:m&&!n,icon:!m&&Dr,labels:{title:!m&&Object(Q.__)("Gallery"),instructions:!m&&Xr},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Jr,multiple:!0,value:s,onError:this.onUploadError,notices:m?void 0:o,onFocus:this.props.onFocus});if(!m)return d;var p=this.getImagesSizeOptions(),h=m&&!Object(Y.isEmpty)(p);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Gallery settings")},s.length>1&&Object(J.createElement)(ue.RangeControl,Object(_e.a)({label:Object(Q.__)("Columns"),value:i,onChange:this.setColumnsNumber,min:1,max:Math.min(8,s.length)},en,{required:!0})),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!l,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Link to"),value:u,onChange:this.setLinkTo,options:Qr}),h&&Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Image size"),value:b,options:p,onChange:this.updateImagesSize}))),o,Object(J.createElement)(Zr,Object(_e.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onDeselectImage:this.onDeselectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption,insertBlocksAfter:c})))}}]),n}(J.Component),rn=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=t.attributes.ids,n=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return n&&(l=Object(Y.reduce)(r,(function(e,t){if(!t)return e;var r=o(t),n=Object(Y.reduce)(a,(function(e,t){var n=Object(Y.get)(r,["sizes",t.slug,"url"]),o=Object(Y.get)(r,["media_details","sizes",t.slug,"source_url"]);return $r({},e,Object(Z.a)({},t.slug,n||o))}),{});return $r({},e,Object(Z.a)({},parseInt(t,10),n))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),ue.withNotices,Object(Ir.withViewportMatch)({isNarrow:"< small"})])(tn);var nn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},on={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(Y.every)(e,["align",r])?r:void 0,n=Object(Y.every)(e,["sizeSlug",n])?n:void 0;var o=Object(Y.filter)(e,(function(e){return e.url}));return Object($.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,r=e.url,n=e.alt,o=e.caption;return{id:Object(Y.toString)(t),url:r,alt:n,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return nn(t).map((function(e){return{id:Object(Y.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return nn(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,r=void 0===t?"attachment":t;return"file"===r?"media":r}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Y.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object($.createBlock)("core/gallery",{images:e.map((function(e){return Sr({url:Object(Ee.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object($.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:r,sizeSlug:n})})):Object($.createBlock)("core/image",{align:r})}}]},cn={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0}},an=cn.name,ln={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:Er,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:on,edit:rn,save:function(e){var t=e.attributes,r=t.images,n=t.columns,o=void 0===n?xr(t):n,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(J.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(J.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var r=Object(J.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(J.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(J.createElement)("figure",null,t?Object(J.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:Br},sn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"})),un=r(74),bn=r.n(un);var mn={name:"core/archives",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},dn=mn.name,pn={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:sn,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,o=t.displayAsDropdown;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Archives settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:o,onChange:function(){return r({displayAsDropdown:!o})}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(bn.a,{block:"core/archives",attributes:t})))}},hn=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),gn=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],fn=["audio"];var vn=Object(ue.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(be.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function g(e){if(e!==d){var t=nt({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function f(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(J.useEffect)((function(){if(!l&&Object(Ee.isBlobURL)(d)){var e=Object(Ee.getBlobByURL)(d);e&&p({filesList:[e],onFileChange:function(e){var t=Object(se.a)(e,1)[0],r=t.id,o=t.url;n({id:r,src:o})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:fn})}}),[]),d?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:fn,accept:"audio/*",onSelect:v,onSelectURL:g,onError:f})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Audio settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Q.__)("Browser default")},{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(J.createElement)(K.__experimentalBlock.figure,null,Object(J.createElement)(ue.Disabled,null,Object(J.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||c)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object($.createBlock)("core/paragraph"))}}))):Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:hn}),onSelect:v,onSelectURL:g,accept:"audio/*",allowedTypes:fn,value:t,notices:a,onError:f}))}));var On={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/audio",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},jn={name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0,lightBlockWrapper:!0}},yn=jn.name,wn={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:hn,transforms:On,deprecated:gn,edit:vn,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(J.createElement)("figure",null,Object(J.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:o,preload:c}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},_n=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),kn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object($.createBlock)("core/buttons",{},e.map((function(e){return Object($.createBlock)("core/button",e)})))}}]};function Cn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function En(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Y.unescape)(e.name).trim():Object(Q.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,r=this.getCategories(t);return Object(J.createElement)("ul",{className:this.getCategoryListClassName(0)},r.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return Object(J.createElement)("li",{key:e.id},Object(J.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(J.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(J.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return r.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,r=this.props.attributes.showHierarchy?0:null,n=this.getCategories(r),o="blocks-category-select-".concat(t);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.VisuallyHidden,{as:"label",htmlFor:o},Object(Q.__)("Categories")),Object(J.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},n.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var r=this,n=this.props.attributes,o=n.showHierarchy,c=n.showPostCounts,a=this.getCategories(e.id);return[Object(J.createElement)("option",{key:e.id},Object(Y.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return r.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.isRequesting,n=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Categories settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:n,onChange:this.toggleDisplayAsDropdown}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return r?Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)(ue.Placeholder,{icon:po,label:Object(Q.__)("Categories")},Object(J.createElement)(ue.Spinner,null))):Object(J.createElement)(J.Fragment,null,a,Object(J.createElement)("div",{className:this.props.className},n?this.renderCategoryDropdown():this.renderCategoryList()))}}]),n}(J.Component),fo=Object(xe.compose)(Object(be.withSelect)((function(e){var t=e("core").getEntityRecords,r=e("core/data").isResolving,n={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",n),isRequesting:r("core","getEntityRecords",["taxonomy","category",n])}})),xe.withInstanceId)(go),vo={name:"core/categories",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},Oo=vo.name,jo={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:mo,example:{},edit:fo},yo=r(295);var wo=r(79);function _o(e){return e.replace(/\[/g,"[")}function ko(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Co={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object($.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object($.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Eo={name:"core/code",category:"text",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1,lightBlockWrapper:!0}},xo=Eo.name,So={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:yo.a,example:{attributes:{content:Object(Q.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:Co,edit:function(e){var t=e.attributes,r=e.setAttributes;return Object(J.createElement)(K.__experimentalBlock.pre,null,Object(J.createElement)(K.PlainText,{__experimentalVersion:2,tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,r=e.attributes;return Object(J.createElement)("pre",null,Object(J.createElement)("code",null,(t=r.content,Object(Y.flow)(wo.escapeEditableHTML,_o,ko)(t||""))))}},Po=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function To(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bo(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return zo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zo(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw o}}}}function zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Y.sumBy)(e,(function(e){return Ao(e,t)}))}function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Ao(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Do(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Ho(e,r),o=t-n,c=o/e.length;return Object(Y.mapValues)(Io(e,r),(function(e){return No(e+c)}))}function Lo(e,t){return e.map((function(e){return Object(Y.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Vo=["core/column"];var Fo=Object(be.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;c({verticalAlignment:n}),i(o).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>n;if(s&&l){var u=No(100/o),b=Do(i,100-u);i=[].concat(Object(q.a)(Lo(i,b)),Object(q.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(Y.times)(o-n,(function(){return Object($.createBlock)("core/column")}))));else{if(i=Object(Y.dropRight)(i,n-o),l)i=Lo(i,Do(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=re()(Object(Z.a)({},"are-vertically-aligned-".concat(c),c));return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,null,Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:2,max:Math.max(6,a)}),a>6&&Object(J.createElement)(ue.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(J.createElement)(K.InnerBlocks,{allowedBlocks:Vo,__experimentalMoverDirection:"horizontal",__experimentalTagName:K.__experimentalBlock.div,__experimentalPassedProps:{className:i},renderAppender:!1}))})),Uo=function e(t){return Object(Y.map)(t,(function(t){var r=Object(se.a)(t,3),n=r[0],o=r[1],c=r[2],a=void 0===c?[]:c;return Object($.createBlock)(n,o,e(a))}))},Go=function(e){var t=e.clientId,r=e.name,n=Object(be.useSelect)((function(e){var n=e("core/blocks"),o=n.getBlockVariations,c=n.getBlockType,a=n.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:a(r,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(r,"block")}}),[t,r]),o=n.blockType,c=n.defaultVariation,a=n.hasInnerBlocks,i=n.variations,l=Object(be.useDispatch)("core/block-editor").replaceInnerBlocks;return a?Object(J.createElement)(Fo,e):Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(Y.get)(o,["icon","src"]),label:Object(Y.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,Uo(t.innerBlocks))},allowSkip:!0}))};var Wo=[{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("30 / 70"),description:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:33.33}],["core/column",{width:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("70 / 30"),description:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:66.66}],["core/column",{width:33.33}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("33 / 33 / 33"),description:Object(Q.__)("Three columns; equal split"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("25 / 50 / 25"),description:Object(Q.__)("Three columns; wide center column"),icon:Object(J.createElement)(ue.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(ue.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]],scope:["block"]}],qo={name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{align:["wide","full"],html:!1,lightBlockWrapper:!0,__experimentalColor:{gradients:!0,linkColor:!0}}},Zo=qo.name,Ko={title:Object(Q.__)("Columns"),icon:Po,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:Wo,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Mo,edit:Go,save:function(e){var t=e.attributes.verticalAlignment,r=re()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(J.createElement)("div",{className:r||void 0},Object(J.createElement)(K.InnerBlocks.Content,null))}},$o=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var Yo=function(e){var t=e.attributes,r=t.verticalAlignment,n=t.width,o=e.setAttributes,c=e.clientId,a=re()("block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(r),r)),i=Object(be.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,n=t.getBlockRootClientId;return{hasChildBlocks:r(c).length>0,rootClientId:n(c)}}),[c]),l=i.hasChildBlocks,s=i.rootClientId,u=Object(be.useDispatch)("core/block-editor").updateBlockAttributes,b=Number.isFinite(n);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){o({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:r})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Column settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Percentage width"),value:n||"",onChange:function(e){o({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===n?Object(Q.__)("Auto"):void 0}))),Object(J.createElement)(K.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:function(){return Object(J.createElement)(K.InnerBlocks.ButtonBlockAppender,null)},__experimentalTagName:K.__experimentalBlock.div,__experimentalPassedProps:{className:a,style:b?{flexBasis:n+"%"}:void 0}}))};var Qo={name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},supports:{reusable:!1,html:!1,lightBlockWrapper:!0}},Jo=Qo.name,Xo={title:Object(Q.__)("Column"),icon:$o,description:Object(Q.__)("A single column within a columns block."),edit:Yo,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,o=r.width,c=re()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(J.createElement)("div",{className:c,style:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},ec=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function tc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var rc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function nc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var oc=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function cc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function ac(e){return function(t){if(t&&t.url){var r;if(t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=Object(J.useState)(!1),c=Object(se.a)(o,2),a=c[0],i=c[1];return Object(J.useEffect)((function(){e&&t<=50&&n.current&&wc().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(J.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(gc()(r).isDark())}}),[r,t>50||!e,i]),Object(J.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(y,h,l.color,x),P=Object(J.useState)(null),T=Object(se.a)(P,2),B=T[0],z=T[1],R=b.removeAllNotices,M=b.createErrorNotice,N=O?"".concat(v).concat(O):v,A=vc({},"image"===p?nc(y):{},{backgroundColor:l.color,minHeight:B||N||void 0});k&&!y&&(A.background=k),g&&(A.backgroundPosition="".concat(100*g.x,"% ").concat(100*g.y,"%"));var H=!!(y||l.color||k),I=Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:m,onChange:function(e){return c({contentPosition:e})}}),H&&Object(J.createElement)(K.MediaReplaceFlow,{mediaId:d,mediaURL:y,allowedTypes:Oc,accept:"image/*,video/*",onSelect:E})),Object(J.createElement)(K.InspectorControls,null,!!y&&Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Media settings")},"image"===p&&Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:f,onChange:function(){c(vc({hasParallax:!f},f?{}:{focalPoint:void 0}))}}),"image"===p&&!f&&Object(J.createElement)(ue.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:y,value:g,onChange:function(e){return c({focalPoint:e})}}),"video"===p&&Object(J.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:y}),Object(J.createElement)(ue.PanelRow,null,Object(J.createElement)(ue.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(Q.__)("Clear Media")))),H&&Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Dimensions")},Object(J.createElement)(_c,{value:B||v,unit:O,onChange:function(e){return c({minHeight:e})},onUnitChange:function(e){c({minHeightUnit:e})}})),Object(J.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:l.color,gradientValue:k,onColorChange:s,onGradientChange:C,label:Object(Q.__)("Color")}]},!!y&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return c({dimRatio:e})},min:0,max:100,required:!0})))));if(!H){var D=Object(J.createElement)(K.BlockIcon,{icon:ec}),L=Object(Q.__)("Cover");return Object(J.createElement)(J.Fragment,null,I,Object(J.createElement)(K.__experimentalBlock.div,{className:"is-placeholder"},Object(J.createElement)(K.MediaPlaceholder,{icon:D,labels:{title:L,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:E,accept:"image/*,video/*",allowedTypes:Oc,notices:i,onError:function(e){R(),M(e)}},Object(J.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(J.createElement)(K.ColorPalette,{disableCustomColors:!0,value:l.color,onChange:s,clearable:!1})))))}var V=re()(cc(h),(t={"is-dark-theme":S,"has-background-dim":0!==h,"has-parallax":f},Object(Z.a)(t,l.class,l.class),Object(Z.a)(t,"has-background-gradient",k),Object(Z.a)(t,_,!y&&_),Object(Z.a)(t,"has-custom-content-position",!lc(m)),t),ic(m));return Object(J.createElement)(J.Fragment,null,I,Object(J.createElement)(K.__experimentalBlock.div,{className:V,"data-url":y,style:A},Object(J.createElement)(yc,{values:null==j||null===(r=j.spacing)||void 0===r?void 0:r.padding,showValues:null==j||null===(n=j.visualizers)||void 0===n?void 0:n.padding}),Object(J.createElement)(Cc,{className:"block-library-cover__resize-container",onResizeStart:function(){c({minHeightUnit:"px"}),u(!1)},onResize:z,onResizeStop:function(e){u(!0),c({minHeight:e}),z(null)},showHandle:a}),"image"===p&&Object(J.createElement)("img",{ref:x,"aria-hidden":!0,alt:"",style:{display:"none"},src:y}),y&&k&&0!==h&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",_),style:{background:k}}),"video"===p&&Object(J.createElement)("video",{ref:x,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:y}),Object(J.createElement)(K.InnerBlocks,{__experimentalTagName:"div",__experimentalPassedProps:{className:"wp-block-cover__inner-container"},template:jc})))}));var xc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,o=e.id;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,o=e.id;return Object($.createBlock)("core/cover",{title:t,url:r,align:n,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"image"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id;return Object($.createBlock)("core/image",{caption:t,url:r,align:n,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return r?"video"===t:!(n||o||c||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,o=e.id;return Object($.createBlock)("core/video",{caption:t,src:r,id:o,align:n})}}]},Sc={name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0,html:!1,lightBlockWrapper:!0,__experimentalPadding:!0}},Pc=Sc.name,Tc={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:ec,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Q.__)("Snow Patrol"),align:"center"}}]},transforms:xc,save:function(e){var t,r=e.attributes,n=r.backgroundType,o=r.gradient,c=r.contentPosition,a=r.customGradient,i=r.customOverlayColor,l=r.dimRatio,s=r.focalPoint,u=r.hasParallax,b=r.overlayColor,m=r.url,d=r.minHeight,p=r.minHeightUnit,h=Object(K.getColorClassName)("background-color",b),g=Object(K.__experimentalGetGradientClass)(o),f=p?"".concat(d).concat(p):d,v="image"===n?nc(m):{};h||(v.backgroundColor=i),s&&!u&&(v.backgroundPosition="".concat(Math.round(100*s.x),"% ").concat(Math.round(100*s.y),"%")),a&&!m&&(v.background=a),v.minHeight=f||void 0;var O=re()(cc(l),h,(t={"has-background-dim":0!==l,"has-parallax":u,"has-background-gradient":o||a},Object(Z.a)(t,g,!m&&g),Object(Z.a)(t,"has-custom-content-position",!lc(c)),t),ic(c));return Object(J.createElement)("div",{className:O,style:v},m&&(o||a)&&0!==l&&Object(J.createElement)("span",{"aria-hidden":"true",className:re()("wp-block-cover__gradient-background",g),style:a?{background:a}:void 0}),"video"===n&&m&&Object(J.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m}),Object(J.createElement)("div",{className:"wp-block-cover__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},edit:Ec,deprecated:mc},Bc=r(294),zc=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,r&&Object(J.createElement)(ue.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Bc.a,onClick:i}))),n&&t&&Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},Rc=function(){return Object(J.createElement)("div",{className:"wp-block-embed is-loading"},Object(J.createElement)(ue.Spinner,null),Object(J.createElement)("p",null,Object(Q.__)("Embedding…")))},Mc=function(e){var t=e.icon,r=e.label,n=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(J.createElement)(ue.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(J.createElement)("form",{onSubmit:o},Object(J.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:c}),Object(J.createElement)(ue.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(J.createElement)("div",{className:"components-placeholder__learn-more"},Object(J.createElement)(ue.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(J.createElement)("div",{className:"components-placeholder__error"},Object(J.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(J.createElement)(ue.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(J.createElement)(ue.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function Nc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ac=window.FocusEvent,Hc=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(Nc()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Mr.a)(e)),e.node=Object(J.createRef)(),e}return Object(Rr.a)(n,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Ac("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(J.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),n}(J.Component),Ic=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Hc);function Dc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Lc=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(Dc()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Mr.a)(e)),e.state={interactive:!1},e}return Object(Rr.a)(n,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.preview,c=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,h=o.scripts,g=this.state.interactive,f="photo"===i?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,r=Object(J.createElement)("p",null,Object(J.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(J.renderToString)(r)):o.html,v=new URL(a).host.split("."),O=v.splice(v.length-2,v.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),O),y=Qe()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(J.createElement)(Ic,{html:f}):Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},Object(J.createElement)(ue.SandBox,{html:f,scripts:h,title:j,type:y,onFocus:this.hideOverlay}),!g&&Object(J.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(J.createElement)("figure",{className:Qe()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?w:Object(J.createElement)(ue.Placeholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(J.createElement)("p",{className:"components-placeholder__error"},Object(J.createElement)("a",{href:a},a)),Object(J.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),O))),(!K.RichText.isEmpty(l)||u)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object($.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),n}(J.Component);function Vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fc(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(o){Object(Hr.a)(a,o);var c=Uc(a);function a(){var e;return Object(zr.a)(this,a),(e=c.apply(this,arguments)).switchBackToURLInput=e.switchBackToURLInput.bind(Object(Mr.a)(e)),e.setUrl=e.setUrl.bind(Object(Mr.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(Mr.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(Mr.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(Mr.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(Mr.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(Mr.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(Rr.a)(a,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=nt(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,r=void 0!==e.preview,n=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!r,o=this.props.attributes.url!==e.attributes.url;if(n||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,r=this.props.setAttributes;this.setState({editingURL:!1}),r({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,n=this.props.attributes,o=n.className,c=n.allowResponsive;return Fc({},this.props.attributes,{},at(t,e,o,r,c))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(Q.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Q.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,n=e.className,o=this.props.preview.html,c=!t;this.props.setAttributes({allowResponsive:c,className:ot(o,n,r&&c)})}},{key:"render",value:function(){var o=this,c=this.state,a=c.url,i=c.editingURL,l=this.props,s=l.fetching,u=l.setAttributes,b=l.isSelected,m=l.preview,d=l.cannotEmbed,p=l.themeSupportsResponsive,h=l.tryAgain,g=l.insertBlocksAfter;if(s)return Object(J.createElement)(Rc,null);var f=Object(Q.sprintf)(Object(Q.__)("%s URL"),e);if(!m||d||i)return Object(J.createElement)(Mc,{icon:t,label:f,onSubmit:this.setUrl,value:a,cannotEmbed:d,onChange:function(e){return o.setState({url:e.target.value})},fallback:function(){return ct(a,o.props.onReplace)},tryAgain:h});var v=this.getMergedAttributes(),O=v.caption,j=v.type,y=v.allowResponsive,w=re()(v.className,this.props.className);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(zc,{showEditButton:m&&!d,themeSupportsResponsive:p,blockSupportsResponsive:r,allowResponsive:y,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(J.createElement)(Lc,{preview:m,previewable:n,className:w,url:a,type:j,caption:O,onCaptionChange:function(e){return u({caption:e})},isSelected:b,icon:t,label:f,insertBlocksAfter:g}))}}]),a}(J.Component)}(t,n,m,p);return{title:t,description:h,icon:n,category:c,keywords:l,attributes:Zc,supports:qc({align:!0},u),transforms:a,edit:Object(xe.compose)(Object(be.withSelect)((function(e,t){var r=t.attributes.url,n=e("core"),o=n.getEmbedPreview,c=n.isPreviewEmbedFallback,a=n.isRequestingEmbedPreview,i=n.getThemeSupports,l=void 0!==r&&o(r),s=void 0!==r&&c(r),u=void 0!==r&&a(r),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,p=!!l&&!m&&!d,h=void 0!==r&&(!p||s);return{preview:p?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:h}})),Object(be.withDispatch)((function(e,t){var r=t.attributes.url,n=e("core/data");return{tryAgain:function(){n.invalidateResolution("core","getEmbedPreview",[r])}}})))(g),save:function(e){var t,r=e.attributes,n=r.url,o=r.caption,c=r.type,a=r.providerNameSlug;if(!n)return null;var i=Qe()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(c),c),Object(Z.a)(t,"is-provider-".concat(a),a),t));return Object(J.createElement)("figure",{className:i},Object(J.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(n,"\n")),!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:Zc,save:function(e){var t,r=e.attributes,n=r.url,o=r.caption,c=r.type,a=r.providerNameSlug;if(!n)return null;var i=Qe()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(c),c),Object(Z.a)(t,"is-provider-".concat(a),a),t));return Object(J.createElement)("figure",{className:i},"\n".concat(n,"\n"),!K.RichText.isEmpty(o)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var $c={from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object($.createBlock)("core/embed",{url:e.textContent.trim()})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.url,r=e.caption,n=Object(J.createElement)("a",{href:t},r||t);return Object($.createBlock)("core/paragraph",{content:Object(J.renderToString)(n)})}}]};function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qc(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ee.createBlobURL)(e);t.push(Object($.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object($.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object($.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object($.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"audio")},transform:function(e){return Object($.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"video")},transform:function(e){return Object($.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(be.select)("core").getMedia)(t);return!!r&&Object(Y.includes)(r.mime_type,"image")},transform:function(e){return Object($.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},la={name:"core/file",category:"media",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}},supports:{align:!0}},sa=la.name,ua={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:ra,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:ia,edit:aa,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(J.createElement)("div",null,!K.RichText.isEmpty(n)&&Object(J.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(J.createElement)(K.RichText.Content,{value:n})),a&&Object(J.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(J.createElement)(K.RichText.Content,{value:i})))}},ba=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));function ma(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var da=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(ma()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(Mr.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(Mr.a)(e)),e}return Object(Rr.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(q.a)(Object(K.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.setAttributes,o=this.state,c=o.isPreview,a=o.styles;return Object(J.createElement)("div",{className:"wp-block-html"},Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.ToolbarButton,{className:"components-tab-button",isPressed:!c,onClick:this.switchToHTML},Object(J.createElement)("span",null,"HTML")),Object(J.createElement)(ue.ToolbarButton,{className:"components-tab-button",isPressed:c,onClick:this.switchToPreview},Object(J.createElement)("span",null,Object(Q.__)("Preview"))))),Object(J.createElement)(ue.Disabled.Consumer,null,(function(t){return c||t?Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.SandBox,{html:r.content,styles:a}),!e.props.isSelected&&Object(J.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(J.createElement)(K.PlainText,{value:r.content,onChange:function(e){return n({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))}}]),n}(J.Component),pa=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(da);var ha={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object($.createBlock)("core/html",{content:t})}}]},ga={name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},fa=ga.name,va={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:ba,keywords:[Object(Q.__)("embed")],example:{attributes:{content:""+Object(Q.__)("Welcome to the wonderful world of blocks…")+""}},edit:pa,save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.content)},transforms:ha},Oa=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),ja=Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(J.createElement)(ue.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(J.createElement)(ue.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),ya=["image","video"];function wa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function _a(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(fr.a)(e,["isSelected","isStackedOnMobile"]),o=Object(xe.useViewportMatch)("small","<");return Object(J.createElement)(ue.ResizableBox,Object(_e.a)({showHandle:t&&(!o||!r)},n))}function ka(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:ya,accept:"image/*,video/*",onSelect:n}))}function Ca(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,o=e.onSelectMedia;return Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:ja}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:ya,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Ea=Object(ue.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,o=e.imageFill,c=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,h=Object(be.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var g={right:"left"===s,left:"right"===s},f="image"===u&&o?wa(b,n):{},v={image:function(){return Object(J.createElement)("img",{src:b,alt:i})},video:function(){return Object(J.createElement)("video",{controls:!0,src:b})}};return Object(J.createElement)(_a,{as:"figure",className:re()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:g,onResizeStart:function(){h(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){h(!0),r(parseInt(n.style.width))},axis:"x",isSelected:c,isStackedOnMobile:a},Object(J.createElement)(ka,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(v[u]||Y.noop)())}return Object(J.createElement)(Ca,e)}));function xa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;tEarns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ha,edit:Aa,save:function(e){var t,r=e.attributes,n=r.isStackedOnMobile,o=r.mediaAlt,c=r.mediaPosition,a=r.mediaType,i=r.mediaUrl,l=r.mediaWidth,s=r.mediaId,u=r.verticalAlignment,b=r.imageFill,m=r.focalPoint,d=r.linkClass,p=r.href,h=r.linkTarget,g=r.rel,f=Object(Y.isEmpty)(g)?void 0:g,v=Object(J.createElement)("img",{src:i,alt:o,className:s&&"image"===a?"wp-image-".concat(s):null});p&&(v=Object(J.createElement)("a",{className:d,href:p,target:h,rel:f},v));var O,j={image:function(){return v},video:function(){return Object(J.createElement)("video",{controls:!0,src:i})}},y=re()((t={"has-media-on-the-right":"right"===c,"is-stacked-on-mobile":n},Object(Z.a)(t,"is-vertically-aligned-".concat(u),u),Object(Z.a)(t,"is-image-fill",b),t)),w=b?wa(i,m):{};50!==l&&(O="right"===c?"auto ".concat(l,"%"):"".concat(l,"% auto"));var _={gridTemplateColumns:O};return Object(J.createElement)("div",{className:y,style:_},Object(J.createElement)("figure",{className:"wp-block-media-text__media",style:w},(j[a]||Y.noop)()),Object(J.createElement)("div",{className:"wp-block-media-text__content"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ba},Va=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));function Fa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ua=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(Fa()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).setCommentsToShow=e.setCommentsToShow.bind(Object(Mr.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Rr.a)(n,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var r=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.a)({},e,!r))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,r=e.displayAvatar,n=e.displayDate,o=e.displayExcerpt;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display date"),checked:n,onChange:this.toggleDisplayDate}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(bn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),n}(J.Component),Ga={name:"core/latest-comments",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},Wa=Ga.name,qa={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:Va,keywords:[Object(Q.__)("recent comments")],example:{},edit:Ua},Za=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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"}));function Ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $a(e){for(var t=1;ty?o.slice(0,y):o,B=[{icon:Ja,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===h},{icon:Xa.a,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===h}],z=Object(Qa.__experimentalGetSettings)().formats.date;return Object(J.createElement)(J.Fragment,null,S,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,{controls:B})),Object(J.createElement)("ul",{className:re()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":p},"columns-".concat(g),"grid"===h))},T.map((function(e,t){var r=Object(Y.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,o=s.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=n,n=c.textContent||c.innerText||"";var a=e.featuredImageSourceUrl,i=re()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(_),!!_)),l=w0?i.map((function(e){return e.id})):[],g=u("postType","post",Object(Y.pickBy)({categories:h,author:l,order:c,orderby:a,per_page:o},(function(e){return!Object(Y.isUndefined)(e)}))),f=d.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:Object(Y.get)(p,[n,"width"],0),defaultImageHeight:Object(Y.get)(p,[n,"height"],0),imageSizeOptions:f,latestPosts:Array.isArray(g)?g.map((function(e){if(e.featured_media){var t=b(e.featured_media),r=Object(Y.get)(t,["media_details","sizes",n,"source_url"],null);return r||(r=Object(Y.get)(t,"source_url",null)),ti({},e,{featuredImageSourceUrl:r})}return e})):g}}))(ci),ii={name:"core/latest-posts",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null}},supports:{align:!0,html:!1}},li=ii.name,si={title:Object(Q.__)("Latest Posts"),description:Object(Q.__)("Display a list of your most recent posts."),icon:Za,keywords:[Object(Q.__)("recent posts")],example:{},edit:ai,deprecated:Ya},ui=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),bi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),mi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),di=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),pi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),hi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),gi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),fi=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),vi=function(e){var t=e.setAttributes,r=e.reversed,n=e.start;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Ordered list settings")},Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Start value"),type:"number",onChange:function(e){var r=parseInt(e,10);t({start:isNaN(r)?void 0:r})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Reverse list numbering"),checked:r||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yi(e){for(var t=1;t1?n:Object(vr.replace)(n,/\n/g,vr.__UNSTABLE_LINE_SEPARATOR)})),vr.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object($.createBlock)("core/list",{values:Object(vr.toHTMLString)({value:Object(vr.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:wi(e).ol,ul:wi(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object($.createBlock)("core/list",yi({},Object($.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object($.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(vr.split)(Object(vr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),vr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object($.createBlock)("core/paragraph",{content:Object(vr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object($.createBlock)("core/quote",{value:Object(vr.toHTMLString)({value:Object(vr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ci={name:"core/list",category:"text",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}},supports:{className:!1,__unstablePasteTextInline:!0,lightBlockWrapper:!0}},Ei=Ci.name,xi={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:Ja,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:_i,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?function(e){for(var t=1;t"+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid color")}],edit:ol,save:function(e){var t,r,n=e.attributes,o=n.mainColor,c=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(Y.includes)(u,Yi)){var b=Object(K.getColorClassName)("background-color",o);t=re()(Object(Z.a)({"has-background":b||c},b,b)),r={backgroundColor:b?void 0:c}}else c&&(r={borderColor:c});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&re()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(J.createElement)("figure",{className:t,style:r},Object(J.createElement)("blockquote",{className:d,style:p},Object(J.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(J.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:tl};function ll(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var sl=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(ll()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).titleField=Object(J.createRef)(),e.editButton=Object(J.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(Mr.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(Mr.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(Mr.a)(e)),e}return Object(Rr.a)(n,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===er.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,r=e.title,n=e.isSaving,o=e.isEditDisabled,c=e.onEdit,a=e.instanceId;return Object(J.createElement)(J.Fragment,null,!t&&!n&&Object(J.createElement)("div",{className:"reusable-block-edit-panel"},Object(J.createElement)("b",{className:"reusable-block-edit-panel__info"},r),Object(J.createElement)(ue.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:c},Object(Q.__)("Edit"))),(t||n)&&Object(J.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(J.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(J.createElement)("input",{ref:this.titleField,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:r,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(J.createElement)(ue.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!r||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}}]),n}(J.Component),ul=Object(xe.withInstanceId)(sl);function bl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ml=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(bl()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(e){var t,o=e.reusableBlock;return Object(zr.a)(this,n),(t=r.apply(this,arguments)).startEditing=t.startEditing.bind(Object(Mr.a)(t)),t.stopEditing=t.stopEditing.bind(Object(Mr.a)(t)),t.setBlocks=t.setBlocks.bind(Object(Mr.a)(t)),t.setTitle=t.setTitle.bind(Object(Mr.a)(t)),t.save=t.save.bind(Object(Mr.a)(t)),t.state=o?{isEditing:o.isTemporary,title:o.title,blocks:Object($.parse)(o.content)}:{isEditing:!1,title:null,blocks:[]},t}return Object(Rr.a)(n,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object($.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object($.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,r=e.onSave,n=this.state,o=n.blocks;t({title:n.title,content:Object($.serialize)(o)}),r(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,r=e.reusableBlock,n=e.isFetching,o=e.isSaving,c=e.canUpdateBlock,a=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!r&&n)return Object(J.createElement)(ue.Placeholder,null,Object(J.createElement)(ue.Spinner,null));if(!r)return Object(J.createElement)(ue.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable."));var b=Object(J.createElement)(K.BlockEditorProvider,{settings:a,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(J.createElement)(K.WritingFlow,null,Object(J.createElement)(K.BlockList,null)));return l||(b=Object(J.createElement)(ue.Disabled,null,b)),Object(J.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(J.createElement)(ul,{isEditing:l,title:null!==s?s:r.title,isSaving:o&&!r.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),n}(J.Component),dl=Object(xe.compose)([Object(be.withSelect)((function(e,t){var r=e("core/editor"),n=r.__experimentalGetReusableBlock,o=r.__experimentalIsFetchingReusableBlock,c=r.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=n(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var r=e("core/editor"),n=r.__experimentalFetchReusableBlocks,o=r.__experimentalUpdateReusableBlock,c=r.__experimentalSaveReusableBlock,a=t.attributes.ref;return{fetchReusableBlock:Object(Y.partial)(n,a),onChange:Object(Y.partial)(o,a),onSave:Object(Y.partial)(c,a)}}))])(ml),pl={name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},hl=pl.name,gl={title:Object(Q.__)("Reusable Block"),description:Object(Q.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:dl},fl=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var vl={name:"core/rss",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},Ol=vl.name,jl={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:fl,keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(J.useState)(!t.feedURL),o=Object(se.a)(n,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function h(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}if(c)return Object(J.createElement)(ue.Placeholder,{icon:fl,label:"RSS"},Object(J.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(J.createElement)(ue.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(J.createElement)(ue.Button,{isPrimary:!0,type:"submit"},Object(Q.__)("Use URL"))));var g=[{icon:Bc.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:Ja,title:Object(Q.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:Xa.a,title:Object(Q.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,{controls:g})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("RSS settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display author"),checked:s,onChange:h("displayAuthor")}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display date"),checked:u,onChange:h("displayDate")}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:b,onChange:h("displayExcerpt")}),b&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(J.createElement)(ue.Disabled,null,Object(J.createElement)(bn.a,{block:"core/rss",attributes:t})))}},yl=r(285);var wl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Q.__)("Search"),label:Object(Q.__)("Search")}}],_l={name:"core/search",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},label:{type:"string"},placeholder:{type:"string",default:""},buttonText:{type:"string"}},supports:{align:!0,html:!1}},kl=_l.name,Cl={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:yl.a,keywords:[Object(Q.__)("find")],example:{},variations:wl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,o=r.label,c=r.placeholder,a=r.buttonText;return Object(J.createElement)("div",{className:t},Object(J.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return n({label:e})}}),Object(J.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:c?void 0:Object(Q.__)("Optional placeholder…"),value:c,onChange:function(e){return n({placeholder:e.target.value})}}),Object(J.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({buttonText:e})}}))}},El=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sl(e){for(var t=1;tt.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object($.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object($.createBlock)("core/group",{align:r},n)}}}]},edit:Bl,save:function(e){var t=e.attributes.tagName;return Object(J.createElement)(t,null,Object(J.createElement)("div",{className:"wp-block-group__inner-container"},Object(J.createElement)(K.InnerBlocks.Content,null)))},deprecated:Tl},Nl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),Al=function(e){var t=e.color,r=e.setColor;return Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var Hl=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.HorizontalRule,{className:re()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(J.createElement)(Al,{color:t,setColor:r}))}));var Il={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object($.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Dl={name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}}},Ll=Dl.name,Vl={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Nl,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:Il,edit:Hl,save:function(e){var t,r=e.attributes,n=r.color,o=r.customColor,c=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=re()((t={"has-text-color has-background":n||o},Object(Z.a)(t,c,c),Object(Z.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(J.createElement)("hr",{className:i,style:l})}},Fl=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),Ul=r(130);var Gl=r(94),Wl={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(Gl.removep)(Object(Gl.autop)(r))}}},priority:20}]},ql={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},Zl=ql.name,Kl={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:Fl,transforms:Wl,edit:function e(t){var r=t.attributes,n=t.setAttributes,o=Object(xe.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(J.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(J.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(J.createElement)(Ul.a,{icon:Fl}),Object(Q.__)("Shortcode")),Object(J.createElement)(K.PlainText,{className:"blocks-shortcode__textarea",id:c,value:r.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(J.createElement)(J.RawHTML,null,t.text)}},$l=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),Yl=Object(xe.compose)([Object(be.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,o=e.onResizeStart,c=e.onResizeStop,a=t.height,i=function(e){n({height:e})};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ResizableBox,{className:re()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:a},minHeight:20,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:o,onResizeStop:function(e,t,r,n){c();var o=Math.min(parseInt(a+n.height,10),500);i(o)},showHandle:r}),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Height in pixels"),min:20,max:Math.max(500,a),value:a,onChange:i}))))}));var Ql={name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}}},Jl=Ql.name,Xl={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:$l,edit:Yl,save:function(e){var t=e.attributes;return Object(J.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},es=r(37),ts=r.n(es);var rs={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},ns={name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},os=ns.name,cs={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(J.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(ue.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:rs,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.align,c=t.content,a=t.placeholder;return ts()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:o,onChange:function(e){r({align:e})}})),Object(J.createElement)(K.RichText,{tagName:"p",value:c,onChange:function(e){r({content:e})},style:{textAlign:o},className:n,placeholder:a||Object(Q.__)("Write subheading…")}))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"p",style:{textAlign:r},value:n})}},as=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),is=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!n.length&&!o.length&&!c.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=re()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope;return Object(J.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("table",{className:l},Object(J.createElement)(s,{type:"head",rows:n}),Object(J.createElement)(s,{type:"body",rows:o}),Object(J.createElement)(s,{type:"foot",rows:c}))}}],ls=r(281),ss=r(282),us=r(283),bs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),ms=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),ds=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),ps=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),hs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),gs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(J.createElement)(X.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),fs=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Os=["align"];function js(e,t,r){if(!t)return e;var n=Object(Y.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(Y.mapValues)(n,(function(e,n){return o&&o!==n?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:n,columnIndex:c,rowIndex:o},t)?r(e):e}))}}))}))}function ys(e,t){var r=t.sectionName,n=t.rowIndex,o=t.columnCount,c=function(e){return ks(e.head)?ks(e.body)?ks(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Y.get)(c,["cells","length"]):o;return a?Object(Z.a)({},r,[].concat(Object(q.a)(e[r].slice(0,n)),[{cells:Object(Y.times)(a,(function(e){var t=Object(Y.get)(c,["cells",e],{});return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var r=this.props,n=r.attributes,o=r.setAttributes,c=t.columnIndex;this.setState({selectedCell:null}),o(ws(n,{columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,r=t.attributes,n=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),n(function(e,t){var r=t.columnIndex,n=Object(Y.pick)(e,["head","body","foot"]);return Object(Y.mapValues)(n,(function(e){return ks(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(r,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:xs({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:bs,title:Object(Q.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:ms,title:Object(Q.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:ds,title:Object(Q.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:ps,title:Object(Q.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:hs,title:Object(Q.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:gs,title:Object(Q.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,r=e.name,n=e.rows;if(ks(n))return null;var o="t".concat(r);return Object(J.createElement)(o,null,n.map((function(e,n){var o=e.cells;return Object(J.createElement)("tr",{key:n},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:r,rowIndex:n,columnIndex:o},u=re()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===r?b=Object(Q.__)("Header label"):"foot"===r&&(b=Object(Q.__)("Footer label")),Object(J.createElement)(K.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,n=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=t.insertBlocksAfter,l=this.state,s=l.initialRowCount,u=l.initialColumnCount,b=r.hasFixedLayout,m=r.caption,d=r.head,p=r.body,h=r.foot,g=ks(d)&&ks(p)&&ks(h),f=this.renderSection;if(g)return Object(J.createElement)(ue.Placeholder,{label:Object(Q.__)("Table"),icon:Object(J.createElement)(K.BlockIcon,{icon:as,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(J.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:this.onCreateTable},Object(J.createElement)(ue.TextControl,{type:"number",label:Object(Q.__)("Column Count"),value:u,onChange:this.onChangeInitialColumnCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(ue.TextControl,{type:"number",label:Object(Q.__)("Row Count"),value:s,onChange:this.onChangeInitialRowCount,min:"1",className:"blocks-table__placeholder-input"}),Object(J.createElement)(ue.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Q.__)("Create Table"))));var v=re()(o.class,{"has-fixed-layout":b,"has-background":!!o.color});return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(ue.ToolbarGroup,null,Object(J.createElement)(ue.__experimentalToolbarItem,null,(function(t){return Object(J.createElement)(ue.DropdownMenu,{hasArrowIndicator:!0,icon:fs,toggleProps:t,label:Object(Q.__)("Edit table"),controls:e.getTableControls()})}))),Object(J.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Ts,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!b,onChange:this.onChangeFixedLayout}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!d||!d.length),onChange:this.onToggleHeaderSection}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!h||!h.length),onChange:this.onToggleFooterSection})),Object(J.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:Ps}]})),Object(J.createElement)("figure",{className:n},Object(J.createElement)("table",{className:v},Object(J.createElement)(f,{name:"head",rows:d}),Object(J.createElement)(f,{name:"body",rows:p}),Object(J.createElement)(f,{name:"foot",rows:h})),Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:m,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})},__unstableOnSplitAtEnd:function(){return i(Object($.createBlock)("core/paragraph"))}})))}}]),n}(J.Component),Rs=Bs("backgroundColor")(zs);var Ms=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},Ns={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Ms(e)},tfoot:{allowEmpty:!0,children:Ms(e)},tbody:{allowEmpty:!0,children:Ms(e)}}}}}}]},As={name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{align:!0}},Hs=As.name,Is={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:as,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],transforms:Ns,edit:Rs,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!o.length&&!c.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=re()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!K.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(J.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(J.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,o=e.scope,c=e.align,a=re()(Object(Z.a)({},"has-text-align-".concat(c),c));return Object(J.createElement)(K.RichText.Content,{className:a||void 0,"data-align":c,tagName:n,value:r,key:t,scope:"th"===n?o:void 0})})))})))};return Object(J.createElement)("figure",null,Object(J.createElement)("table",{className:""===s?void 0:s},Object(J.createElement)(b,{type:"head",rows:n}),Object(J.createElement)(b,{type:"body",rows:o}),Object(J.createElement)(b,{type:"foot",rows:c})),u&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:is};var Ds={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,o=e.width;return Object($.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object($.createBlock)("core/column",{},[Object($.createBlock)("core/paragraph",{content:t})])})))}}]},Ls={name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},Vs=Ls.name,Fs={title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:Ds,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=t.width,c=t.content,a=t.columns;return ts()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.BlockAlignmentToolbar,{value:o,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,null,Object(J.createElement)(ue.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(J.createElement)("div",{className:"".concat(n," align").concat(o," columns-").concat(a)},Object(Y.times)(a,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText,{tagName:"p",value:Object(Y.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(q.a)(c.slice(0,e)),[{children:t}],Object(q.a)(c.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,o=t.columns;return Object(J.createElement)("div",{className:"align".concat(r," columns-").concat(o)},Object(Y.times)(o,(function(e){return Object(J.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(J.createElement)(K.RichText.Content,{tagName:"p",value:Object(Y.get)(n,[e,"children"])}))})))}},Us=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),Gs=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(J.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var Ws={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object($.createBlock)("core/paragraph",e)}}]},qs={name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{lightBlockWrapper:!0}},Zs=qs.name,Ks={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Us,example:{attributes:{content:Object(Q.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Q.__)("poetry"),Object(Q.__)("poem")],transforms:Ws,deprecated:Gs,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,o=e.mergeBlocks,c=t.textAlign,a=t.content;return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(J.createElement)(K.RichText,{tagName:K.__experimentalBlock.pre,identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),className:re()(n,Object(Z.a)({},"has-text-align-".concat(c),c)),onMerge:o,textAlign:c}))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,o=re()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(J.createElement)(K.RichText.Content,{tagName:"pre",className:o,value:n})}},$s=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),Ys=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,o=r.controls,c=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:c}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))};function Qs(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Js=["video"],Xs=["image"],eu=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(Qs()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).videoPlayer=Object(J.createRef)(),e.posterImageButton=Object(J.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(Mr.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(Mr.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(Mr.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Mr.a)(e)),e}return Object(Rr.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,r=e.mediaUpload,n=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ee.isBlobURL)(i)){var l=Object(Ee.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(e){var t=Object(se.a)(e,1)[0].url;o({src:t})},onError:function(e){n.createErrorNotice(e)},allowedTypes:Js})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"onSelectURL",value:function(e){var t=this.props,r=t.attributes,n=t.setAttributes;if(e!==r.src){var o=nt({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);n({src:e,id:void 0})}}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this,t=this.props.attributes,r=t.id,n=t.caption,o=t.controls,c=t.poster,a=t.src,i=this.props,l=i.instanceId,s=i.isSelected,u=i.noticeUI,b=i.attributes,m=i.setAttributes,d=i.insertBlocksAfter,p=function(e){e&&e.url?m({src:e.url,id:e.id}):m({src:void 0,id:void 0})};if(!a)return Object(J.createElement)(K.__experimentalBlock.div,null,Object(J.createElement)(K.MediaPlaceholder,{icon:Object(J.createElement)(K.BlockIcon,{icon:$s}),onSelect:p,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:Js,value:this.props.attributes,notices:u,onError:this.onUploadError}));var h="video-block__poster-image-description-".concat(l);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.BlockControls,null,Object(J.createElement)(K.MediaReplaceFlow,{mediaId:r,mediaURL:a,allowedTypes:Js,accept:"video/*",onSelect:p,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Video settings")},Object(J.createElement)(Ys,{setAttributes:m,attributes:b}),Object(J.createElement)(K.MediaUploadCheck,null,Object(J.createElement)(ue.BaseControl,{className:"editor-video-poster-control"},Object(J.createElement)(ue.BaseControl.VisualLabel,null,Object(Q.__)("Poster image")),Object(J.createElement)(K.MediaUpload,{title:Object(Q.__)("Select poster image"),onSelect:this.onSelectPoster,allowedTypes:Xs,render:function(t){var r=t.open;return Object(J.createElement)(ue.Button,{isPrimary:!0,onClick:r,ref:e.posterImageButton,"aria-describedby":h},e.props.attributes.poster?Object(Q.__)("Replace"):Object(Q.__)("Select"))}}),Object(J.createElement)("p",{id:h,hidden:!0},this.props.attributes.poster?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Q.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(J.createElement)(ue.Button,{onClick:this.onRemovePoster,isTertiary:!0},Object(Q.__)("Remove")))))),Object(J.createElement)(K.__experimentalBlock.figure,null,Object(J.createElement)(ue.Disabled,null,Object(J.createElement)("video",{controls:o,poster:c,src:a,ref:this.videoPlayer})),(!K.RichText.isEmpty(n)||s)&&Object(J.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:n,onChange:function(e){return m({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return d(Object($.createBlock)("core/paragraph"))}})))}}]),n}(J.Component),tu=Object(xe.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ue.withNotices,xe.withInstanceId])(eu);var ru={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object($.createBlock)("core/video",{src:Object(Ee.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return r||n||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},nu={name:"core/video",category:"media",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}},supports:{align:!0,lightBlockWrapper:!0}},ou=nu.name,cu={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:$s,keywords:[Object(Q.__)("movie")],transforms:ru,edit:tu,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(J.createElement)("figure",null,s&&Object(J.createElement)("video",{autoPlay:r,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!K.RichText.isEmpty(n)&&Object(J.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},au=Object(J.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(J.createElement)(X.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"}));function iu(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var lu=function(e){Object(Hr.a)(n,e);var t,r=(t=n,function(){var e,r=Object(Ar.a)(t);if(iu()){var n=Object(Ar.a)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return Object(Nr.a)(this,e)});function n(){var e;return Object(zr.a)(this,n),(e=r.apply(this,arguments)).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(Mr.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(Mr.a)(e)),e}return Object(Rr.a)(n,[{key:"getTaxonomyOptions",value:function(){var e=Object(Y.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},r=Object(Y.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(q.a)(r))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,r=e.showTagCounts,n=this.getTaxonomyOptions(),o=Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.__)("Tag Cloud settings")},Object(J.createElement)(ue.SelectControl,{label:Object(Q.__)("Taxonomy"),options:n,value:t,onChange:this.setTaxonomy}),Object(J.createElement)(ue.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:r,onChange:this.toggleShowTagCounts})));return Object(J.createElement)(J.Fragment,null,o,Object(J.createElement)(bn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),n}(J.Component),su=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(lu),uu={name:"core/tag-cloud",category:"widgets",attributes:{align:{type:"string",enum:["left","center","right","wide","full"]},className:{type:"string"},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},bu=uu.name,mu={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:au,example:{},edit:su},du=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));function pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(r.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===er.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Q._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(a,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(a,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Q.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=r.editor.getBody();document.activeElement===e&&(e.blur(),r.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(J.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Q.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(J.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),n}(J.Component);var Ou={name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},ju=Ou.name,yu={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:du,edit:vu,save:function(e){var t=e.attributes.content;return Object(J.createElement)(J.RawHTML,null,t)}},wu=Object(J.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),_u=["core/social-link"],ku=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]];var Cu=function(){return Object(J.createElement)(K.InnerBlocks,{allowedBlocks:_u,templateLock:!1,template:ku,__experimentalMoverDirection:"horizontal",__experimentalTagName:K.__experimentalBlock.ul,__experimentalAppenderTagName:"li"})};var Eu={name:"core/social-links",category:"widgets",supports:{align:["left","center","right"],lightBlockWrapper:!0}},xu=Eu.name,Su={title:Object(Q.__)("Social Icons"),description:Object(Q.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Q._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Q.__)("Logos Only")},{name:"pill-shape",label:Object(Q.__)("Pill Shape")}],icon:wu,edit:Cu,save:function(e){var t=e.className;return Object(J.createElement)("ul",{className:t},Object(J.createElement)(K.InnerBlocks.Content,null))}},Pu=r(195),Tu=function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},Bu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(J.createElement)(X.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Tu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(J.createElement)(X.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(J.createElement)(X.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],zu=function(e){var t,r,n=e.attributes,o=e.setAttributes,c=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(J.useState)(!1),u=Object(se.a)(s,2),b=u[0],m=u[1],d=re()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(Y.find)(Bu,{name:t}))?r.icon:Tu),h=function(e){var t=Object(Y.find)(Bu,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i);return Object(J.createElement)(J.Fragment,null,Object(J.createElement)(K.InspectorControls,null,Object(J.createElement)(ue.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),h),initialOpen:!1},Object(J.createElement)(ue.PanelRow,null,Object(J.createElement)(ue.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(J.createElement)(K.__experimentalBlock.li,{className:d},Object(J.createElement)(ue.Button,{onClick:function(){return m(!0)}},Object(J.createElement)(p,null),c&&b&&Object(J.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(J.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(J.createElement)("div",{className:"block-editor-url-input"},Object(J.createElement)(K.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(J.createElement)(ue.Button,{icon:Pu.a,label:Object(Q.__)("Apply"),type:"submit"}))))))},Ru={name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},supports:{reusable:!1,html:!1,lightBlockWrapper:!0}},Mu=Ru.name,Nu={title:Object(Q.__)("Social Icon"),icon:wu,edit:zu,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:Bu};r.d(t,"registerCoreBlocks",(function(){return Hu})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Iu}));var Au=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object($.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object($.registerBlockType)(n,r)}},Hu=function(){[n,o,c,i,k,a,N,l,s,u,b,m,d,p,h,g,f,v].concat(Object(q.a)(ea),Object(q.a)(ta),[O,R,window.wp&&window.wp.oldEditor?U:null,j,y,w,_,C,E,x,S,P,B,z,M,T,G,W,A,H,I,F,D,L,V]).forEach(Au),Object($.setDefaultBlockName)(je),window.wp&&window.wp.oldEditor&&Object($.setFreeformContentHandlerName)(ju),Object($.setUnregisteredTypeHandlerName)(Ti),Object($.setGroupingBlockName)(Rl)},Iu=void 0},44:function(e,t){!function(){e.exports=this.wp.blob}()},45:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},50:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function c(){var c,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=R(e,360),t=R(t,100),r=R(r,100),0===t)n=o=c=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*n,g:255*o,b:255*c}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,h;return r=z(r),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=i++}function d(e,t,r){e=R(e,255),t=R(t,255),r=R(r,255);var n,o,c=u(e,t,r),a=s(e,t,r),i=(c+a)/2;if(c==a)n=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,c.push(m(n));return c}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,o=r.s,c=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:o,v:c})),c=(c+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(r).toString(16)),A(I(n))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*R(this._r,255))+"%",g:l(100*R(this._g,255))+"%",b:l(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%)":"rgba("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);r="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),o=m(t).toRgb(),c=r/100;return m({r:(o.r-n.r)*c+n.r,g:(o.g-n.g)*c+n.g,b:(o.b-n.b)*c+n.b,a:(o.a-n.a)*c+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,o,c=m.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,r){var n,o,c,a,i=null,l=0;o=(r=r||{}).includeFallbackColors,c=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var T=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function I(e){return o.round(255*parseFloat(e)).toString(16)}function D(e){return N(e)/255}var L,V,F,U=(V="[\\s|\\(]+("+(L="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",F="[\\s|\\(]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",{CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},6:function(e,t){!function(){e.exports=this.wp.primitives}()},68:function(e,t){!function(){e.exports=this.wp.date}()},7:function(e,t){!function(){e.exports=this.wp.blockEditor}()},72:function(e,t){!function(){e.exports=this.wp.viewport}()},74:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},79:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tt.length)&&(n=t.length);for(var r=0,e=new Array(n);r)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function l(t,n,r,e,o){return{blockName:t,attrs:n,innerBlocks:r,innerHTML:e,innerContent:o}}function f(t){return l(null,{},[],t,[t])}var s=function(t){e=t,o=0,u=[],i=[],a.lastIndex=0;do{}while(p());return u};function p(){var t=function(){var t=a.exec(e);if(null===t)return["no-more-tokens"];var n=t.index,r=Object(c.a)(t,7),o=r[0],u=r[1],i=r[2],l=r[3],f=r[4],s=r[6],p=o.length,b=!!u,d=!!s,v=(i||"core/")+l,h=!!f,y=h?function(t){try{return JSON.parse(t)}catch(t){return null}}(f):{};if(d)return["void-block",v,y,n,p];if(b)return["block-closer",v,null,n,p];return["block-opener",v,y,n,p]}(),n=Object(c.a)(t,5),r=n[0],s=n[1],p=n[2],h=n[3],y=n[4],k=i.length,O=h>o?o:null;switch(r){case"no-more-tokens":if(0===k)return b(),!1;if(1===k)return v(),!1;for(;0t.length)&&(n=t.length);for(var r=0,e=new Array(n);r)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function l(t,n,r,e,o){return{blockName:t,attrs:n,innerBlocks:r,innerHTML:e,innerContent:o}}function f(t){return l(null,{},[],t,[t])}var s=function(t){e=t,o=0,u=[],i=[],a.lastIndex=0;do{}while(p());return u};function p(){var t=function(){var t=a.exec(e);if(null===t)return["no-more-tokens"];var n=t.index,r=Object(c.a)(t,7),o=r[0],u=r[1],i=r[2],l=r[3],f=r[4],s=r[6],p=o.length,b=!!u,d=!!s,v=(i||"core/")+l,h=!!f,y=h?function(t){try{return JSON.parse(t)}catch(t){return null}}(f):{};if(d)return["void-block",v,y,n,p];if(b)return["block-closer",v,null,n,p];return["block-opener",v,y,n,p]}(),n=Object(c.a)(t,5),r=n[0],s=n[1],p=n[2],h=n[3],y=n[4],k=i.length,O=h>o?o:null;switch(r){case"no-more-tokens":if(0===k)return b(),!1;if(1===k)return v(),!1;for(;0>> ((i & 0x03) << 3) & 0xff; - } - - return rnds; - }; -} - - /***/ }), /***/ 117: /***/ (function(module, exports) { -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; -for (var i = 0; i < 256; ++i) { - byteToHex[i] = (i + 0x100).toString(16).substr(1); -} - -function bytesToUuid(buf, offset) { - var i = offset || 0; - var bth = byteToHex; - // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - return ([bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]]]).join(''); -} - -module.exports = bytesToUuid; - - -/***/ }), - -/***/ 12: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -/***/ }), - -/***/ 13: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/***/ }), - -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 149: -/***/ (function(module, exports) { - (function() { module.exports = this["wp"]["shortcode"]; }()); /***/ }), -/***/ 18: +/***/ 140: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(25); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(35); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; }); +/* harmony import */ var _arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38); +/* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35); +/* harmony import */ var _unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28); +/* harmony import */ var _nonIterableRest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39); -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +function _toArray(arr) { + return Object(_arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(); } /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: +/***/ 15: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -319,7 +163,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); +var unsupportedIterableToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -336,7 +180,117 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 25: +/***/ 16: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(26); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(35); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(28); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 18: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 194: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (blockDefault); + + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 259: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blockSerializationDefaultParser"]; }()); + +/***/ }), + +/***/ 26: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -353,14 +307,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 265: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blockSerializationDefaultParser"]; }()); - -/***/ }), - -/***/ 266: +/***/ 260: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;;/*! showdown v 1.9.1 - 02-11-2019 */ @@ -5504,32 +5451,32 @@ if (true) { /***/ }), -/***/ 27: +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); + if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } /***/ }), -/***/ 28: +/***/ 29: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["dom"]; }()); /***/ }), -/***/ 32: +/***/ 31: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["hooks"]; }()); @@ -5576,7 +5523,7 @@ function _nonIterableRest() { /***/ }), -/***/ 40: +/***/ 41: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5858,14 +5805,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 41: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - -/***/ 425: +/***/ 437: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5910,7 +5850,7 @@ __webpack_require__.d(actions_namespaceObject, "removeBlockCollection", function var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -5940,18 +5880,27 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va /** - * Module Constants + * @typedef {Object} WPBlockCategory + * + * @property {string} slug Unique category slug. + * @property {string} title Category label, for display in user interface. + */ + +/** + * Default set of categories. + * + * @type {WPBlockCategory[]} */ var DEFAULT_CATEGORIES = [{ - slug: 'common', - title: Object(external_this_wp_i18n_["__"])('Common blocks') + slug: 'text', + title: Object(external_this_wp_i18n_["__"])('Text') }, { - slug: 'formatting', - title: Object(external_this_wp_i18n_["__"])('Formatting') + slug: 'media', + title: Object(external_this_wp_i18n_["__"])('Media') }, { - slug: 'layout', - title: Object(external_this_wp_i18n_["__"])('Layout elements') + slug: 'design', + title: Object(external_this_wp_i18n_["__"])('Design') }, { slug: 'widgets', title: Object(external_this_wp_i18n_["__"])('Widgets') @@ -6090,10 +6039,10 @@ var groupingBlockName = createBlockNameSetterReducer('SET_GROUPING_BLOCK_NAME'); /** * Reducer managing the categories * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. + * @param {WPBlockCategory[]} state Current state. + * @param {Object} action Dispatched action. * - * @return {Object} Updated state. + * @return {WPBlockCategory[]} Updated state. */ function reducer_categories() { @@ -6156,11 +6105,12 @@ function collections() { })); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(40); +var rememo = __webpack_require__(41); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js + function selectors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { selectors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { selectors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -6174,6 +6124,8 @@ function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; /** @typedef {import('../api/registration').WPBlockVariationScope} WPBlockVariationScope */ +/** @typedef {import('./reducer').WPBlockCategory} WPBlockCategory */ + /** * Given a block name or block type object, returns the corresponding * normalized block type object. @@ -6272,7 +6224,7 @@ function getDefaultBlockVariation(state, blockName, scope) { * * @param {Object} state Data state. * - * @return {Array} Categories list. + * @return {WPBlockCategory[]} Categories list. */ function getCategories(state) { @@ -6366,7 +6318,7 @@ var selectors_getChildBlockNames = Object(rememo["a" /* default */])(function (s var selectors_getBlockSupport = function getBlockSupport(state, nameOrType, feature, defaultSupports) { var blockType = getNormalizedBlockType(state, nameOrType); - return Object(external_this_lodash_["get"])(blockType, ['supports', feature], defaultSupports); + return Object(external_this_lodash_["get"])(blockType, ['supports'].concat(Object(toConsumableArray["a" /* default */])(feature.split('.'))), defaultSupports); }; /** * Returns true if the block defines support for a feature, or false otherwise. @@ -6681,22 +6633,84 @@ Object(external_this_wp_data_["registerStore"])('core/blocks', { actions: actions_namespaceObject }); -// EXTERNAL MODULE: ./node_modules/uuid/v4.js -var v4 = __webpack_require__(83); -var v4_default = /*#__PURE__*/__webpack_require__.n(v4); +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/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()). +// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, +// find the complete implementation of crypto (msCrypto) on IE11. +var getRandomValues = typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != 'undefined' && typeof msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto); +var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef +function rng() { + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + + return getRandomValues(rnds8); +} +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/bytesToUuid.js +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +var byteToHex = []; + +for (var bytesToUuid_i = 0; bytesToUuid_i < 256; ++bytesToUuid_i) { + byteToHex[bytesToUuid_i] = (bytesToUuid_i + 0x100).toString(16).substr(1); +} + +function bytesToUuid(buf, offset) { + var i = offset || 0; + var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 + + return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join(''); +} + +/* harmony default export */ var esm_browser_bytesToUuid = (bytesToUuid); +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/v4.js + + + +function v4(options, buf, offset) { + var i = buf && offset || 0; + + if (typeof options == 'string') { + buf = options === 'binary' ? new Array(16) : null; + options = null; + } + + options = options || {}; + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + for (var ii = 0; ii < 16; ++ii) { + buf[i + ii] = rnds[ii]; + } + } + + return buf || esm_browser_bytesToUuid(rnds); +} + +/* harmony default export */ var esm_browser_v4 = (v4); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(32); +var external_this_wp_hooks_ = __webpack_require__(31); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js +var block_default = __webpack_require__(194); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(54); +var tinycolor = __webpack_require__(56); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(28); +var external_this_wp_dom_ = __webpack_require__(29); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/utils.js @@ -6875,23 +6889,23 @@ function getAccessibleBlockLabel(blockType, attributes, position) { if (hasPosition && direction === 'vertical') { if (hasLabel) { return Object(external_this_wp_i18n_["sprintf"])( - /* translators: accessibility text. %1: The block title, %2: The block row number, %3: The block label.. */ + /* translators: accessibility text. 1: The block title. 2: The block row number. 3: The block label.. */ Object(external_this_wp_i18n_["__"])('%1$s Block. Row %2$d. %3$s'), title, position, label); } return Object(external_this_wp_i18n_["sprintf"])( - /* translators: accessibility text. %s: The block title, %d The block row number. */ - Object(external_this_wp_i18n_["__"])('%s Block. Row %d'), title, position); + /* translators: accessibility text. 1: The block title. 2: The block row number. */ + Object(external_this_wp_i18n_["__"])('%1$s Block. Row %2$d'), title, position); } else if (hasPosition && direction === 'horizontal') { if (hasLabel) { return Object(external_this_wp_i18n_["sprintf"])( - /* translators: accessibility text. %1: The block title, %2: The block column number, %3: The block label.. */ + /* translators: accessibility text. 1: The block title. 2: The block column number. 3: The block label.. */ Object(external_this_wp_i18n_["__"])('%1$s Block. Column %2$d. %3$s'), title, position, label); } return Object(external_this_wp_i18n_["sprintf"])( - /* translators: accessibility text. %s: The block title, %d The block column number. */ - Object(external_this_wp_i18n_["__"])('%s Block. Column %d'), title, position); + /* translators: accessibility text. 1: The block title. 2: The block column number. */ + Object(external_this_wp_i18n_["__"])('%1$s Block. Column %2$d'), title, position); } if (hasLabel) { @@ -6920,7 +6934,7 @@ function registration_ownKeys(object, enumerableOnly) { var keys = Object.keys(o function registration_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { registration_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { registration_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } -/* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */ +/* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */ /** * External dependencies @@ -6932,6 +6946,7 @@ function registration_objectSpread(target) { for (var i = 1; i < arguments.lengt + /** * Internal dependencies */ @@ -6991,7 +7006,7 @@ function registration_objectSpread(target) { for (var i = 1; i < arguments.lengt * * @property {string} name The unique and machine-readable name. * @property {string} title A human-readable variation title. - * @property {string} description A detailed variation description. + * @property {string} [description] A detailed variation description. * @property {WPIcon} [icon] An icon helping to visualize the variation. * @property {boolean} [isDefault] Indicates whether the current variation is * the default one. Defaults to `false`. @@ -7011,41 +7026,39 @@ function registration_objectSpread(target) { for (var i = 1; i < arguments.lengt * * @typedef {Object} WPBlock * - * @property {string} name Block type's namespaced name. - * @property {string} title Human-readable block type label. - * @property {string} description A detailed block type description. - * @property {string} category Block type category classification, - * used in search interfaces to arrange - * block types by category. - * @property {WPBlockTypeIcon} [icon] Block type icon. - * @property {string[]} [keywords] Additional keywords to produce block - * type as result in search interfaces. - * @property {Object} [attributes] Block type attributes. - * @property {WPComponent} [save] Optional component describing - * serialized markup structure of a - * block type. - * @property {WPComponent} edit Component rendering an element to - * manipulate the attributes of a block - * in the context of an editor. - * @property {WPBlockVariation[]} [variations] The list of block variations. - * @property {Object} [example] Example provides structured data for - * the block preview. When not defined - * then no preview is shown. + * @property {string} name Block type's namespaced name. + * @property {string} title Human-readable block type label. + * @property {string} [description] A detailed block type description. + * @property {string} [category] Block type category classification, + * used in search interfaces to arrange + * block types by category. + * @property {WPBlockTypeIcon} [icon] Block type icon. + * @property {string[]} [keywords] Additional keywords to produce block + * type as result in search interfaces. + * @property {Object} [attributes] Block type attributes. + * @property {WPComponent} [save] Optional component describing + * serialized markup structure of a + * block type. + * @property {WPComponent} edit Component rendering an element to + * manipulate the attributes of a block + * in the context of an editor. + * @property {WPBlockVariation[]} [variations] The list of block variations. + * @property {Object} [example] Example provides structured data for + * the block preview. When not defined + * then no preview is shown. */ /** - * Default values to assign for omitted optional block type settings. + * Mapping of legacy category slugs to their latest normal values, used to + * accommodate updates of the default set of block categories. * - * @type {Object} + * @type {Record} */ -var DEFAULT_BLOCK_TYPE_SETTINGS = { - icon: 'block-default', - attributes: {}, - keywords: [], - save: function save() { - return null; - } +var LEGACY_CATEGORY_MAPPING = { + common: 'text', + formatting: 'text', + layout: 'design' }; var serverSideBlockDefinitions = {}; /** @@ -7072,8 +7085,20 @@ function unstable__bootstrapServerSideBlockDefinitions(definitions) { function registerBlockType(name, settings) { settings = registration_objectSpread({ - name: name - }, DEFAULT_BLOCK_TYPE_SETTINGS, {}, Object(external_this_lodash_["get"])(serverSideBlockDefinitions, name), {}, settings); + name: name, + icon: block_default["a" /* default */], + keywords: [], + attributes: {}, + providesContext: {}, + usesContext: [], + supports: {}, + styles: [], + save: function save() { + return null; + } + }, Object(external_this_lodash_["pickBy"])(Object(external_this_lodash_["get"])(serverSideBlockDefinitions, name, {}), function (value) { + return !Object(external_this_lodash_["isNil"])(value); + }), {}, settings); if (typeof name !== 'string') { console.error('Block names must be strings.'); @@ -7117,18 +7142,18 @@ function registerBlockType(name, settings) { if ('edit' in settings && !Object(external_this_lodash_["isFunction"])(settings.edit)) { console.error('The "edit" property must be a valid function.'); return; - } + } // Canonicalize legacy categories to equivalent fallback. - if (!('category' in settings)) { - console.error('The block "' + name + '" must have a category.'); - return; + + if (LEGACY_CATEGORY_MAPPING.hasOwnProperty(settings.category)) { + settings.category = LEGACY_CATEGORY_MAPPING[settings.category]; } if ('category' in settings && !Object(external_this_lodash_["some"])(Object(external_this_wp_data_["select"])('core/blocks').getCategories(), { slug: settings.category })) { - console.error('The block "' + name + '" must have a registered category.'); - return; + console.warn('The block "' + name + '" is registered with an invalid category "' + settings.category + '".'); + delete settings.category; } if (!('title' in settings) || settings.title === '') { @@ -7154,9 +7179,10 @@ function registerBlockType(name, settings) { /** * Registers a new block collection to group blocks in the same namespace in the inserter. * - * @param {string} namespace The namespace to group blocks by in the inserter; corresponds to the block namespace - * @param {Object} settings An object composed of a title to show in the inserter, and an icon to show in the inserter - * + * @param {string} namespace The namespace to group blocks by in the inserter; corresponds to the block namespace. + * @param {Object} settings The block collection settings. + * @param {string} settings.title The title to display in the block inserter. + * @param {Object} [settings.icon] The icon to display in the block inserter. */ function registerBlockCollection(namespace, _ref) { @@ -7466,7 +7492,7 @@ function createBlock(name) { return accumulator; }, {}); - var clientId = v4_default()(); // Blocks are stored with a unique ID, the assigned type name, the block + var clientId = esm_browser_v4(); // Blocks are stored with a unique ID, the assigned type name, the block // attributes, and their inner blocks. return { @@ -7491,7 +7517,7 @@ function createBlock(name) { function cloneBlock(block) { var mergeAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var newInnerBlocks = arguments.length > 2 ? arguments[2] : undefined; - var clientId = v4_default()(); + var clientId = esm_browser_v4(); return factory_objectSpread({}, block, { clientId: clientId, attributes: factory_objectSpread({}, block.attributes, {}, mergeAttributes), @@ -7652,25 +7678,6 @@ var isWildcardBlockTransform = function isWildcardBlockTransform(t) { var factory_isContainerGroupBlock = function isContainerGroupBlock(name) { return name === registration_getGroupingBlockName(); }; -/** - * Determines whether the provided Blocks are of the same type - * (eg: all `core/paragraph`). - * - * @param {Array} blocksArray the Block definitions - * - * @return {boolean} whether or not the given Blocks pass the criteria - */ - -var factory_isBlockSelectionOfSameType = function isBlockSelectionOfSameType() { - var blocksArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - if (!blocksArray.length) { - return false; - } - - var sourceName = blocksArray[0].name; - return Object(external_this_lodash_["every"])(blocksArray, ['name', sourceName]); -}; /** * Returns an array of block types that the set of blocks received as argument * can be transformed into. @@ -7776,16 +7783,9 @@ function switchToBlockType(blocks, name) { var blocksArray = Object(external_this_lodash_["castArray"])(blocks); var isMultiBlock = blocksArray.length > 1; var firstBlock = blocksArray[0]; - var sourceName = firstBlock.name; // Unless it's a Grouping Block then for multi block selections - // check that all Blocks are of the same type otherwise - // we can't run a conversion - - if (!factory_isContainerGroupBlock(name) && isMultiBlock && !factory_isBlockSelectionOfSameType(blocksArray)) { - return null; - } // Find the right transformation by giving priority to the "to" + var sourceName = firstBlock.name; // Find the right transformation by giving priority to the "to" // transformation. - var transformationsFrom = getBlockTransforms('from', name); var transformationsTo = getBlockTransforms('to', sourceName); var transformation = findTransform(transformationsTo, function (t) { @@ -7877,7 +7877,7 @@ var factory_getBlockFromExample = function getBlockFromExample(name, example) { }; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(20); +var slicedToArray = __webpack_require__(15); // CONCATENATED MODULE: ./node_modules/hpq/es/get-path.js /** @@ -8059,36 +8059,19 @@ function query(selector, matchers) { }; } // EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(85); +var external_this_wp_autop_ = __webpack_require__(94); // EXTERNAL MODULE: external {"this":["wp","blockSerializationDefaultParser"]} -var external_this_wp_blockSerializationDefaultParser_ = __webpack_require__(265); +var external_this_wp_blockSerializationDefaultParser_ = __webpack_require__(259); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(38); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js +var toArray = __webpack_require__(140); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(35); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(27); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(39); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js - - - - -function _toArray(arr) { - return Object(arrayWithHoles["a" /* default */])(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || Object(nonIterableRest["a" /* default */])(); -} // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); +var classCallCheck = __webpack_require__(19); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); +var createClass = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/simple-html-tokenizer/dist/es6/index.js /** @@ -8758,7 +8741,7 @@ function tokenize(input, options) { // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(58); +var external_this_wp_htmlEntities_ = __webpack_require__(62); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/validation/logger.js function createLogger() { @@ -8833,14 +8816,14 @@ function createQueuedLogger() { } // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(51); +var external_this_wp_isShallowEqual_ = __webpack_require__(55); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(12); +var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); +var external_this_wp_compose_ = __webpack_require__(9); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/block-content-provider/index.js @@ -8875,6 +8858,10 @@ var _createContext = Object(external_this_wp_element_["createContext"])(function * * ``` * + * @param {Object} props Component props. + * @param {WPElement} props.children Block save result. + * @param {Array} props.innerBlocks Block(s) to serialize. + * * @return {WPComponent} Element with BlockContent injected via context. */ @@ -9366,9 +9353,7 @@ function isValidCharacterReference(text) { * @see https://github.com/tildeio/simple-html-tokenizer/tree/master/src/entity-parser.ts */ -var validation_DecodeEntityParser = -/*#__PURE__*/ -function () { +var validation_DecodeEntityParser = /*#__PURE__*/function () { function DecodeEntityParser() { Object(classCallCheck["a" /* default */])(this, DecodeEntityParser); } @@ -9503,7 +9488,7 @@ function getStyleProperties(text) { .map(function (style) { // ...split further into key-value pairs var _style$split = style.split(':'), - _style$split2 = _toArray(_style$split), + _style$split2 = Object(toArray["a" /* default */])(_style$split), key = _style$split2[0], valueParts = _style$split2.slice(1); @@ -9697,7 +9682,12 @@ function isClosedByToken(currentToken, nextToken) { function isEquivalentHTML(actual, expected) { var logger = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : createLogger(); - // Tokenize input content and reserialized save content + // Short-circuit if markup is identical. + if (actual === expected) { + return true; + } // Tokenize input content and reserialized save content + + var _map = [actual, expected].map(function (html) { return getHTMLTokens(html, logger); }), @@ -9817,6 +9807,197 @@ function isValidBlockContent(blockTypeOrName, attributes, originalBlockContent) return isValid; } +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/matchers.js +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +function matchers_html(selector, multilineTag) { + return function (domNode) { + var match = domNode; + + if (selector) { + match = domNode.querySelector(selector); + } + + if (!match) { + return ''; + } + + if (multilineTag) { + var value = ''; + var length = match.children.length; + + for (var index = 0; index < length; index++) { + var child = match.children[index]; + + if (child.nodeName.toLowerCase() !== multilineTag) { + continue; + } + + value += child.outerHTML; + } + + return value; + } + + return match.innerHTML; + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/node.js + + +function node_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function node_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { node_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { node_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * Internal dependencies + */ + +/** + * Browser dependencies + */ + +var _window$Node = window.Node, + TEXT_NODE = _window$Node.TEXT_NODE, + ELEMENT_NODE = _window$Node.ELEMENT_NODE; +/** + * A representation of a single node within a block's rich text value. If + * representing a text node, the value is simply a string of the node value. + * As representing an element node, it is an object of: + * + * 1. `type` (string): Tag name. + * 2. `props` (object): Attributes and children array of WPBlockNode. + * + * @typedef {string|Object} WPBlockNode + */ + +/** + * Given a single node and a node type (e.g. `'br'`), returns true if the node + * corresponds to that type, false otherwise. + * + * @param {WPBlockNode} node Block node to test + * @param {string} type Node to type to test against. + * + * @return {boolean} Whether node is of intended type. + */ + +function isNodeOfType(node, type) { + return node && node.type === type; +} +/** + * Given an object implementing the NamedNodeMap interface, returns a plain + * object equivalent value of name, value key-value pairs. + * + * @see https://dom.spec.whatwg.org/#interface-namednodemap + * + * @param {NamedNodeMap} nodeMap NamedNodeMap to convert to object. + * + * @return {Object} Object equivalent value of NamedNodeMap. + */ + + +function getNamedNodeMapAsObject(nodeMap) { + var result = {}; + + for (var i = 0; i < nodeMap.length; i++) { + var _nodeMap$i = nodeMap[i], + name = _nodeMap$i.name, + value = _nodeMap$i.value; + result[name] = value; + } + + return result; +} +/** + * Given a DOM Element or Text node, returns an equivalent block node. Throws + * if passed any node type other than element or text. + * + * @throws {TypeError} If non-element/text node is passed. + * + * @param {Node} domNode DOM node to convert. + * + * @return {WPBlockNode} Block node equivalent to DOM node. + */ + +function fromDOM(domNode) { + if (domNode.nodeType === TEXT_NODE) { + return domNode.nodeValue; + } + + if (domNode.nodeType !== ELEMENT_NODE) { + throw new TypeError('A block node can only be created from a node of type text or ' + 'element.'); + } + + return { + type: domNode.nodeName.toLowerCase(), + props: node_objectSpread({}, getNamedNodeMapAsObject(domNode.attributes), { + children: children_fromDOM(domNode.childNodes) + }) + }; +} +/** + * Given a block node, returns its HTML string representation. + * + * @param {WPBlockNode} node Block node to convert to string. + * + * @return {string} String HTML representation of block node. + */ + +function toHTML(node) { + return children_toHTML([node]); +} +/** + * Given a selector, returns an hpq matcher generating a WPBlockNode value + * matching the selector result. + * + * @param {string} selector DOM selector. + * + * @return {Function} hpq matcher. + */ + +function node_matcher(selector) { + return function (domNode) { + var match = domNode; + + if (selector) { + match = domNode.querySelector(selector); + } + + try { + return fromDOM(match); + } catch (error) { + return null; + } + }; +} +/** + * Object of utility functions used in managing block attribute values of + * source `node`. + * + * @see https://github.com/WordPress/gutenberg/pull/10439 + * + * @deprecated since 4.0. The `node` source should not be used, and can be + * replaced by the `html` source. + * + * @private + */ + +/* harmony default export */ var api_node = ({ + isNodeOfType: isNodeOfType, + fromDOM: fromDOM, + toHTML: toHTML, + matcher: node_matcher +}); + // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/children.js /** * External dependencies @@ -9908,12 +10089,12 @@ function concat() { * @return {WPBlockChildren} Block children equivalent to DOM nodes. */ -function fromDOM(domNodes) { +function children_fromDOM(domNodes) { var result = []; for (var i = 0; i < domNodes.length; i++) { try { - result.push(node_fromDOM(domNodes[i])); + result.push(fromDOM(domNodes[i])); } catch (error) {// Simply ignore if DOM node could not be converted. } } @@ -9928,7 +10109,7 @@ function fromDOM(domNodes) { * @return {string} String HTML representation of block node. */ -function toHTML(children) { +function children_toHTML(children) { var element = getSerializeCapableElement(children); return Object(external_this_wp_element_["renderToString"])(element); } @@ -9950,7 +10131,7 @@ function children_matcher(selector) { } if (match) { - return fromDOM(match.childNodes); + return children_fromDOM(match.childNodes); } return []; @@ -9971,202 +10152,11 @@ function children_matcher(selector) { /* harmony default export */ var api_children = ({ concat: concat, getChildrenArray: getChildrenArray, - fromDOM: fromDOM, - toHTML: toHTML, + fromDOM: children_fromDOM, + toHTML: children_toHTML, matcher: children_matcher }); -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/node.js - - -function node_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function node_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { node_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { node_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * Internal dependencies - */ - -/** - * Browser dependencies - */ - -var _window$Node = window.Node, - TEXT_NODE = _window$Node.TEXT_NODE, - ELEMENT_NODE = _window$Node.ELEMENT_NODE; -/** - * A representation of a single node within a block's rich text value. If - * representing a text node, the value is simply a string of the node value. - * As representing an element node, it is an object of: - * - * 1. `type` (string): Tag name. - * 2. `props` (object): Attributes and children array of WPBlockNode. - * - * @typedef {string|Object} WPBlockNode - */ - -/** - * Given a single node and a node type (e.g. `'br'`), returns true if the node - * corresponds to that type, false otherwise. - * - * @param {WPBlockNode} node Block node to test - * @param {string} type Node to type to test against. - * - * @return {boolean} Whether node is of intended type. - */ - -function isNodeOfType(node, type) { - return node && node.type === type; -} -/** - * Given an object implementing the NamedNodeMap interface, returns a plain - * object equivalent value of name, value key-value pairs. - * - * @see https://dom.spec.whatwg.org/#interface-namednodemap - * - * @param {NamedNodeMap} nodeMap NamedNodeMap to convert to object. - * - * @return {Object} Object equivalent value of NamedNodeMap. - */ - - -function getNamedNodeMapAsObject(nodeMap) { - var result = {}; - - for (var i = 0; i < nodeMap.length; i++) { - var _nodeMap$i = nodeMap[i], - name = _nodeMap$i.name, - value = _nodeMap$i.value; - result[name] = value; - } - - return result; -} -/** - * Given a DOM Element or Text node, returns an equivalent block node. Throws - * if passed any node type other than element or text. - * - * @throws {TypeError} If non-element/text node is passed. - * - * @param {Node} domNode DOM node to convert. - * - * @return {WPBlockNode} Block node equivalent to DOM node. - */ - -function node_fromDOM(domNode) { - if (domNode.nodeType === TEXT_NODE) { - return domNode.nodeValue; - } - - if (domNode.nodeType !== ELEMENT_NODE) { - throw new TypeError('A block node can only be created from a node of type text or ' + 'element.'); - } - - return { - type: domNode.nodeName.toLowerCase(), - props: node_objectSpread({}, getNamedNodeMapAsObject(domNode.attributes), { - children: fromDOM(domNode.childNodes) - }) - }; -} -/** - * Given a block node, returns its HTML string representation. - * - * @param {WPBlockNode} node Block node to convert to string. - * - * @return {string} String HTML representation of block node. - */ - -function node_toHTML(node) { - return toHTML([node]); -} -/** - * Given a selector, returns an hpq matcher generating a WPBlockNode value - * matching the selector result. - * - * @param {string} selector DOM selector. - * - * @return {Function} hpq matcher. - */ - -function node_matcher(selector) { - return function (domNode) { - var match = domNode; - - if (selector) { - match = domNode.querySelector(selector); - } - - try { - return node_fromDOM(match); - } catch (error) { - return null; - } - }; -} -/** - * Object of utility functions used in managing block attribute values of - * source `node`. - * - * @see https://github.com/WordPress/gutenberg/pull/10439 - * - * @deprecated since 4.0. The `node` source should not be used, and can be - * replaced by the `html` source. - * - * @private - */ - -/* harmony default export */ var api_node = ({ - isNodeOfType: isNodeOfType, - fromDOM: node_fromDOM, - toHTML: node_toHTML, - matcher: node_matcher -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/matchers.js -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - - -function matchers_html(selector, multilineTag) { - return function (domNode) { - var match = domNode; - - if (selector) { - match = domNode.querySelector(selector); - } - - if (!match) { - return ''; - } - - if (multilineTag) { - var value = ''; - var length = match.children.length; - - for (var index = 0; index < length; index++) { - var child = match.children[index]; - - if (child.nodeName.toLowerCase() !== multilineTag) { - continue; - } - - value += child.outerHTML; - } - - return value; - } - - return match.innerHTML; - }; -} - // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/parser.js @@ -11279,7 +11269,7 @@ function getSibling(node, which) { var normalise_blocks_window$Node = window.Node, normalise_blocks_ELEMENT_NODE = normalise_blocks_window$Node.ELEMENT_NODE, normalise_blocks_TEXT_NODE = normalise_blocks_window$Node.TEXT_NODE; -/* harmony default export */ var normalise_blocks = (function (HTML) { +function normaliseBlocks(HTML) { var decuDoc = document.implementation.createHTMLDocument(''); var accuDoc = document.implementation.createHTMLDocument(''); var decu = decuDoc.body; @@ -11336,7 +11326,7 @@ var normalise_blocks_window$Node = window.Node, } return accu.innerHTML; -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/special-comment-converter.js /** @@ -11365,7 +11355,7 @@ var COMMENT_NODE = window.Node.COMMENT_NODE; * @return {void} */ -/* harmony default export */ var special_comment_converter = (function (node, doc) { +function specialCommentConverter(node, doc) { if (node.nodeType !== COMMENT_NODE) { return; } @@ -11397,7 +11387,7 @@ var COMMENT_NODE = window.Node.COMMENT_NODE; Object(external_this_wp_dom_["replace"])(node, createMore(customText, noTeaser, doc)); } -}); +} function createMore(customText, noTeaser, doc) { var node = doc.createElement('wp-block'); @@ -11421,13 +11411,235 @@ function createNextpage(doc) { return node; } +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/comment-remover.js +/** + * WordPress dependencies + */ + +/** + * Browser dependencies + */ + +var comment_remover_COMMENT_NODE = window.Node.COMMENT_NODE; +/** + * Looks for comments, and removes them. + * + * @param {Node} node The node to be processed. + * @return {void} + */ + +function commentRemover(node) { + if (node.nodeType === comment_remover_COMMENT_NODE) { + Object(external_this_wp_dom_["remove"])(node); + } +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/is-inline-content.js +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * Checks if the given node should be considered inline content, optionally + * depending on a context tag. + * + * @param {Node} node Node name. + * @param {string} contextTag Tag name. + * + * @return {boolean} True if the node is inline content, false if nohe. + */ + +function isInline(node, contextTag) { + if (isTextContent(node)) { + return true; + } + + if (!contextTag) { + return false; + } + + var tag = node.nodeName.toLowerCase(); + var inlineWhitelistTagGroups = [['ul', 'li', 'ol'], ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']]; + return inlineWhitelistTagGroups.some(function (tagGroup) { + return Object(external_this_lodash_["difference"])([tag, contextTag], tagGroup).length === 0; + }); +} + +function deepCheck(nodes, contextTag) { + return nodes.every(function (node) { + return isInline(node, contextTag) && deepCheck(Array.from(node.children), contextTag); + }); +} + +function isDoubleBR(node) { + return node.nodeName === 'BR' && node.previousSibling && node.previousSibling.nodeName === 'BR'; +} + +function isInlineContent(HTML, contextTag) { + var doc = document.implementation.createHTMLDocument(''); + doc.body.innerHTML = HTML; + var nodes = Array.from(doc.body.children); + return !nodes.some(isDoubleBR) && deepCheck(nodes, contextTag); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content-reducer.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function phrasingContentReducer(node, doc) { + // In jsdom-jscore, 'node.style' can be null. + // TODO: Explore fixing this by patching jsdom-jscore. + if (node.nodeName === 'SPAN' && node.style) { + var _node$style = node.style, + fontWeight = _node$style.fontWeight, + fontStyle = _node$style.fontStyle, + textDecorationLine = _node$style.textDecorationLine, + textDecoration = _node$style.textDecoration, + verticalAlign = _node$style.verticalAlign; + + if (fontWeight === 'bold' || fontWeight === '700') { + Object(external_this_wp_dom_["wrap"])(doc.createElement('strong'), node); + } + + if (fontStyle === 'italic') { + Object(external_this_wp_dom_["wrap"])(doc.createElement('em'), node); + } // Some DOM implementations (Safari, JSDom) don't support + // style.textDecorationLine, so we check style.textDecoration as a + // fallback. + + + if (textDecorationLine === 'line-through' || Object(external_this_lodash_["includes"])(textDecoration, 'line-through')) { + Object(external_this_wp_dom_["wrap"])(doc.createElement('s'), node); + } + + if (verticalAlign === 'super') { + Object(external_this_wp_dom_["wrap"])(doc.createElement('sup'), node); + } else if (verticalAlign === 'sub') { + Object(external_this_wp_dom_["wrap"])(doc.createElement('sub'), node); + } + } else if (node.nodeName === 'B') { + node = Object(external_this_wp_dom_["replaceTag"])(node, 'strong'); + } else if (node.nodeName === 'I') { + node = Object(external_this_wp_dom_["replaceTag"])(node, 'em'); + } else if (node.nodeName === 'A') { + // In jsdom-jscore, 'node.target' can be null. + // TODO: Explore fixing this by patching jsdom-jscore. + if (node.target && node.target.toLowerCase() === '_blank') { + node.rel = 'noreferrer noopener'; + } else { + node.removeAttribute('target'); + node.removeAttribute('rel'); + } + } +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/head-remover.js +function headRemover(node) { + if (node.nodeName !== 'SCRIPT' && node.nodeName !== 'NOSCRIPT' && node.nodeName !== 'TEMPLATE' && node.nodeName !== 'STYLE') { + return; + } + + node.parentNode.removeChild(node); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-converter.js +/** + * Browser dependencies + */ +var _window = window, + ms_list_converter_parseInt = _window.parseInt; + +function isList(node) { + return node.nodeName === 'OL' || node.nodeName === 'UL'; +} + +function msListConverter(node, doc) { + if (node.nodeName !== 'P') { + return; + } + + var style = node.getAttribute('style'); + + if (!style) { + return; + } // Quick check. + + + if (style.indexOf('mso-list') === -1) { + return; + } + + var matches = /mso-list\s*:[^;]+level([0-9]+)/i.exec(style); + + if (!matches) { + return; + } + + var level = ms_list_converter_parseInt(matches[1], 10) - 1 || 0; + var prevNode = node.previousElementSibling; // Add new list if no previous. + + if (!prevNode || !isList(prevNode)) { + // See https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-type. + var type = node.textContent.trim().slice(0, 1); + var isNumeric = /[1iIaA]/.test(type); + var newListNode = doc.createElement(isNumeric ? 'ol' : 'ul'); + + if (isNumeric) { + newListNode.setAttribute('type', type); + } + + node.parentNode.insertBefore(newListNode, node); + } + + var listNode = node.previousElementSibling; + var listType = listNode.nodeName; + var listItem = doc.createElement('li'); + var receivingNode = listNode; // Remove the first span with list info. + + node.removeChild(node.firstElementChild); // Add content. + + while (node.firstChild) { + listItem.appendChild(node.firstChild); + } // Change pointer depending on indentation level. + + + while (level--) { + receivingNode = receivingNode.lastElementChild || receivingNode; // If it's a list, move pointer to the last item. + + if (isList(receivingNode)) { + receivingNode = receivingNode.lastElementChild || receivingNode; + } + } // Make sure we append to a list. + + + if (!isList(receivingNode)) { + receivingNode = receivingNode.appendChild(doc.createElement(listType)); + } // Append the list item to the list. + + + receivingNode.appendChild(listItem); // Remove the wrapper paragraph. + + node.parentNode.removeChild(node); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/list-reducer.js /** * WordPress dependencies */ -function isList(node) { +function list_reducer_isList(node) { return node.nodeName === 'OL' || node.nodeName === 'UL'; } @@ -11439,8 +11651,8 @@ function shallowTextContent(element) { }).join(''); } -/* harmony default export */ var list_reducer = (function (node) { - if (!isList(node)) { +function listReducer(node) { + if (!list_reducer_isList(node)) { return; } @@ -11475,7 +11687,7 @@ function shallowTextContent(element) { } // Invalid: OL/UL > OL/UL. - if (parentElement && isList(parentElement)) { + if (parentElement && list_reducer_isList(parentElement)) { var _prevListItem = node.previousElementSibling; if (_prevListItem) { @@ -11484,20 +11696,90 @@ function shallowTextContent(element) { Object(external_this_wp_dom_["unwrap"])(node); } } -}); +} + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(44); + +// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js + + +/** + * WordPress dependencies + */ + +/** + * Browser dependencies + */ + +var image_corrector_window = window, + atob = image_corrector_window.atob, + File = image_corrector_window.File; +function imageCorrector(node) { + if (node.nodeName !== 'IMG') { + return; + } + + if (node.src.indexOf('file:') === 0) { + node.src = ''; + } // This piece cannot be tested outside a browser env. + + + if (node.src.indexOf('data:') === 0) { + var _node$src$split = node.src.split(','), + _node$src$split2 = Object(slicedToArray["a" /* default */])(_node$src$split, 2), + properties = _node$src$split2[0], + data = _node$src$split2[1]; + + var _properties$slice$spl = properties.slice(5).split(';'), + _properties$slice$spl2 = Object(slicedToArray["a" /* default */])(_properties$slice$spl, 1), + type = _properties$slice$spl2[0]; + + if (!data || !type) { + node.src = ''; + return; + } + + var decoded; // Can throw DOMException! + + try { + decoded = atob(data); + } catch (e) { + node.src = ''; + return; + } + + var uint8Array = new Uint8Array(decoded.length); + + for (var i = 0; i < uint8Array.length; i++) { + uint8Array[i] = decoded.charCodeAt(i); + } + + var name = type.replace('/', '.'); + var file = new File([uint8Array], name, { + type: type + }); + node.src = Object(external_this_wp_blob_["createBlobURL"])(file); + } // Remove trackers and hardly visible images. + + + if (node.height === 1 || node.width === 1) { + node.parentNode.removeChild(node); + } +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/blockquote-normaliser.js /** * Internal dependencies */ -/* harmony default export */ var blockquote_normaliser = (function (node) { +function blockquoteNormaliser(node) { if (node.nodeName !== 'BLOCKQUOTE') { return; } - node.innerHTML = normalise_blocks(node.innerHTML); -}); + node.innerHTML = normaliseBlocks(node.innerHTML); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/figure-content-reducer.js /** @@ -11568,7 +11850,7 @@ function wrapFigureContent(element) { */ -/* harmony default export */ var figure_content_reducer = (function (node, doc, schema) { +function figureContentReducer(node, doc, schema) { if (!isFigureContent(node, schema)) { return; } @@ -11586,16 +11868,20 @@ function wrapFigureContent(element) { // Otherwise, if directly at the root, wrap in a figure element. if (wrapper) { - if (node.classList.contains('alignright') || node.classList.contains('alignleft') || node.classList.contains('aligncenter') || !wrapper.textContent.trim()) { + // In jsdom-jscore, 'node.classList' can be undefined. + // In this case, default to extract as it offers a better UI experience on mobile. + if (!node.classList) { + wrapFigureContent(nodeToInsert, wrapper); + } else if (node.classList.contains('alignright') || node.classList.contains('alignleft') || node.classList.contains('aligncenter') || !wrapper.textContent.trim()) { wrapFigureContent(nodeToInsert, wrapper); } } else if (nodeToInsert.parentNode.nodeName === 'BODY') { wrapFigureContent(nodeToInsert); } -}); +} // EXTERNAL MODULE: external {"this":["wp","shortcode"]} -var external_this_wp_shortcode_ = __webpack_require__(149); +var external_this_wp_shortcode_ = __webpack_require__(117); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js @@ -11688,300 +11974,8 @@ function segmentHTMLToShortcodeBlock(HTML) { /* harmony default export */ var shortcode_converter = (segmentHTMLToShortcodeBlock); -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/comment-remover.js -/** - * WordPress dependencies - */ - -/** - * Browser dependencies - */ - -var comment_remover_COMMENT_NODE = window.Node.COMMENT_NODE; -/** - * Looks for comments, and removes them. - * - * @param {Node} node The node to be processed. - * @return {void} - */ - -/* harmony default export */ var comment_remover = (function (node) { - if (node.nodeType === comment_remover_COMMENT_NODE) { - Object(external_this_wp_dom_["remove"])(node); - } -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/is-inline-content.js -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * Checks if the given node should be considered inline content, optionally - * depending on a context tag. - * - * @param {Node} node Node name. - * @param {string} contextTag Tag name. - * - * @return {boolean} True if the node is inline content, false if nohe. - */ - -function isInline(node, contextTag) { - if (isTextContent(node)) { - return true; - } - - if (!contextTag) { - return false; - } - - var tag = node.nodeName.toLowerCase(); - var inlineWhitelistTagGroups = [['ul', 'li', 'ol'], ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']]; - return inlineWhitelistTagGroups.some(function (tagGroup) { - return Object(external_this_lodash_["difference"])([tag, contextTag], tagGroup).length === 0; - }); -} - -function deepCheck(nodes, contextTag) { - return nodes.every(function (node) { - return isInline(node, contextTag) && deepCheck(Array.from(node.children), contextTag); - }); -} - -function isDoubleBR(node) { - return node.nodeName === 'BR' && node.previousSibling && node.previousSibling.nodeName === 'BR'; -} - -/* harmony default export */ var is_inline_content = (function (HTML, contextTag) { - var doc = document.implementation.createHTMLDocument(''); - doc.body.innerHTML = HTML; - var nodes = Array.from(doc.body.children); - return !nodes.some(isDoubleBR) && deepCheck(nodes, contextTag); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content-reducer.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/* harmony default export */ var phrasing_content_reducer = (function (node, doc) { - // In jsdom-jscore, 'node.style' can be null. - // TODO: Explore fixing this by patching jsdom-jscore. - if (node.nodeName === 'SPAN' && node.style) { - var _node$style = node.style, - fontWeight = _node$style.fontWeight, - fontStyle = _node$style.fontStyle, - textDecorationLine = _node$style.textDecorationLine, - textDecoration = _node$style.textDecoration, - verticalAlign = _node$style.verticalAlign; - - if (fontWeight === 'bold' || fontWeight === '700') { - Object(external_this_wp_dom_["wrap"])(doc.createElement('strong'), node); - } - - if (fontStyle === 'italic') { - Object(external_this_wp_dom_["wrap"])(doc.createElement('em'), node); - } // Some DOM implementations (Safari, JSDom) don't support - // style.textDecorationLine, so we check style.textDecoration as a - // fallback. - - - if (textDecorationLine === 'line-through' || Object(external_this_lodash_["includes"])(textDecoration, 'line-through')) { - Object(external_this_wp_dom_["wrap"])(doc.createElement('s'), node); - } - - if (verticalAlign === 'super') { - Object(external_this_wp_dom_["wrap"])(doc.createElement('sup'), node); - } else if (verticalAlign === 'sub') { - Object(external_this_wp_dom_["wrap"])(doc.createElement('sub'), node); - } - } else if (node.nodeName === 'B') { - node = Object(external_this_wp_dom_["replaceTag"])(node, 'strong'); - } else if (node.nodeName === 'I') { - node = Object(external_this_wp_dom_["replaceTag"])(node, 'em'); - } else if (node.nodeName === 'A') { - // In jsdom-jscore, 'node.target' can be null. - // TODO: Explore fixing this by patching jsdom-jscore. - if (node.target && node.target.toLowerCase() === '_blank') { - node.rel = 'noreferrer noopener'; - } else { - node.removeAttribute('target'); - node.removeAttribute('rel'); - } - } -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/head-remover.js -/* harmony default export */ var head_remover = (function (node) { - if (node.nodeName !== 'SCRIPT' && node.nodeName !== 'NOSCRIPT' && node.nodeName !== 'TEMPLATE' && node.nodeName !== 'STYLE') { - return; - } - - node.parentNode.removeChild(node); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-converter.js -/** - * Browser dependencies - */ -var _window = window, - ms_list_converter_parseInt = _window.parseInt; - -function ms_list_converter_isList(node) { - return node.nodeName === 'OL' || node.nodeName === 'UL'; -} - -/* harmony default export */ var ms_list_converter = (function (node, doc) { - if (node.nodeName !== 'P') { - return; - } - - var style = node.getAttribute('style'); - - if (!style) { - return; - } // Quick check. - - - if (style.indexOf('mso-list') === -1) { - return; - } - - var matches = /mso-list\s*:[^;]+level([0-9]+)/i.exec(style); - - if (!matches) { - return; - } - - var level = ms_list_converter_parseInt(matches[1], 10) - 1 || 0; - var prevNode = node.previousElementSibling; // Add new list if no previous. - - if (!prevNode || !ms_list_converter_isList(prevNode)) { - // See https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-type. - var type = node.textContent.trim().slice(0, 1); - var isNumeric = /[1iIaA]/.test(type); - var newListNode = doc.createElement(isNumeric ? 'ol' : 'ul'); - - if (isNumeric) { - newListNode.setAttribute('type', type); - } - - node.parentNode.insertBefore(newListNode, node); - } - - var listNode = node.previousElementSibling; - var listType = listNode.nodeName; - var listItem = doc.createElement('li'); - var receivingNode = listNode; // Remove the first span with list info. - - node.removeChild(node.firstElementChild); // Add content. - - while (node.firstChild) { - listItem.appendChild(node.firstChild); - } // Change pointer depending on indentation level. - - - while (level--) { - receivingNode = receivingNode.lastElementChild || receivingNode; // If it's a list, move pointer to the last item. - - if (ms_list_converter_isList(receivingNode)) { - receivingNode = receivingNode.lastElementChild || receivingNode; - } - } // Make sure we append to a list. - - - if (!ms_list_converter_isList(receivingNode)) { - receivingNode = receivingNode.appendChild(doc.createElement(listType)); - } // Append the list item to the list. - - - receivingNode.appendChild(listItem); // Remove the wrapper paragraph. - - node.parentNode.removeChild(node); -}); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(41); - -// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js - - -/** - * WordPress dependencies - */ - -/** - * Browser dependencies - */ - -var image_corrector_window = window, - atob = image_corrector_window.atob, - File = image_corrector_window.File; -/* harmony default export */ var image_corrector = (function (node) { - if (node.nodeName !== 'IMG') { - return; - } - - if (node.src.indexOf('file:') === 0) { - node.src = ''; - } // This piece cannot be tested outside a browser env. - - - if (node.src.indexOf('data:') === 0) { - var _node$src$split = node.src.split(','), - _node$src$split2 = Object(slicedToArray["a" /* default */])(_node$src$split, 2), - properties = _node$src$split2[0], - data = _node$src$split2[1]; - - var _properties$slice$spl = properties.slice(5).split(';'), - _properties$slice$spl2 = Object(slicedToArray["a" /* default */])(_properties$slice$spl, 1), - type = _properties$slice$spl2[0]; - - if (!data || !type) { - node.src = ''; - return; - } - - var decoded; // Can throw DOMException! - - try { - decoded = atob(data); - } catch (e) { - node.src = ''; - return; - } - - var uint8Array = new Uint8Array(decoded.length); - - for (var i = 0; i < uint8Array.length; i++) { - uint8Array[i] = decoded.charCodeAt(i); - } - - var name = type.replace('/', '.'); - var file = new File([uint8Array], name, { - type: type - }); - node.src = Object(external_this_wp_blob_["createBlobURL"])(file); - } // Remove trackers and hardly visible images. - - - if (node.height === 1 || node.width === 1) { - node.parentNode.removeChild(node); - } -}); - // EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js -var showdown = __webpack_require__(266); +var showdown = __webpack_require__(260); var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js @@ -12024,15 +12018,11 @@ function slackMarkdownVariantCorrector(text) { */ -/* harmony default export */ var markdown_converter = (function (text) { +function markdownConverter(text) { return converter.makeHtml(slackMarkdownVariantCorrector(text)); -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/iframe-remover.js -/** - * WordPress dependencies - */ - /** * Removes iframes. * @@ -12040,25 +12030,25 @@ function slackMarkdownVariantCorrector(text) { * * @return {void} */ - -/* harmony default export */ var iframe_remover = (function (node) { +function iframeRemover(node) { if (node.nodeName === 'IFRAME') { - Object(external_this_wp_dom_["remove"])(node); + var text = node.ownerDocument.createTextNode(node.src); + node.parentNode.replaceChild(text, node); } -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/google-docs-uid-remover.js /** * WordPress dependencies */ -/* harmony default export */ var google_docs_uid_remover = (function (node) { +function googleDocsUIdRemover(node) { if (!node.id || node.id.indexOf('docs-internal-guid-') !== 0) { return; } Object(external_this_wp_dom_["unwrap"])(node); -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/html-formatting-remover.js /** @@ -12079,14 +12069,24 @@ function isFormattingSpace(character) { */ -/* harmony default export */ var html_formatting_remover = (function (node) { +function htmlFormattingRemover(node) { if (node.nodeType !== node.TEXT_NODE) { return; - } // Ignore pre content. + } // Ignore pre content. Note that this does not use Element#closest due to + // a combination of (a) node may not be Element and (b) node.parentElement + // does not have full support in all browsers (Internet Exporer). + // + // See: https://developer.mozilla.org/en-US/docs/Web/API/Node/parentElement#Browser_compatibility + + /** @type {Node?} */ - if (node.parentElement.closest('pre')) { - return; + var parent = node; + + while (parent = parent.parentNode) { + if (parent.nodeType === window.Node.ELEMENT_NODE && parent.nodeName === 'PRE') { + return; + } } // First, replace any sequence of HTML formatting space with a single space. @@ -12120,7 +12120,7 @@ function isFormattingSpace(character) { } else { node.data = newData; } -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/br-remover.js /** @@ -12133,7 +12133,7 @@ function isFormattingSpace(character) { * @param {Element} node Node to check. */ -/* harmony default export */ var br_remover = (function (node) { +function brRemover(node) { if (node.nodeName !== 'BR') { return; } @@ -12143,7 +12143,7 @@ function isFormattingSpace(character) { } node.parentNode.removeChild(node); -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/empty-paragraph-remover.js /** @@ -12151,7 +12151,7 @@ function isFormattingSpace(character) { * * @param {Element} node Node to check. */ -/* harmony default export */ var empty_paragraph_remover = (function (node) { +function emptyParagraphRemover(node) { if (node.nodeName !== 'P') { return; } @@ -12161,7 +12161,7 @@ function isFormattingSpace(character) { } node.parentNode.removeChild(node); -}); +} // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/paste-handler.js @@ -12217,11 +12217,11 @@ var paste_handler_window = window, */ function filterInlineHTML(HTML) { - HTML = deepFilterHTML(HTML, [google_docs_uid_remover, phrasing_content_reducer, comment_remover]); + HTML = deepFilterHTML(HTML, [googleDocsUIdRemover, phrasingContentReducer, commentRemover]); HTML = removeInvalidHTML(HTML, getPhrasingContentSchema('paste'), { inline: true }); - HTML = deepFilterHTML(HTML, [html_formatting_remover, br_remover]); // Allows us to ask for this information when we get a report. + HTML = deepFilterHTML(HTML, [htmlFormattingRemover, brRemover]); // Allows us to ask for this information when we get a report. paste_handler_console.log('Processed inline HTML:\n\n', HTML); return HTML; @@ -12281,14 +12281,13 @@ function htmlToBlocks(_ref) { * Converts an HTML string to known blocks. Strips everything else. * * @param {Object} options - * @param {string} [options.HTML] The HTML to convert. - * @param {string} [options.plainText] Plain text version. - * @param {string} [options.mode] Handle content as blocks or inline content. - * * 'AUTO': Decide based on the content passed. - * * 'INLINE': Always handle as inline content, and return string. - * * 'BLOCKS': Always handle as blocks, and return array of blocks. - * @param {Array} [options.tagName] The tag into which content will be inserted. - * @param {boolean} [options.canUserUseUnfilteredHTML] Whether or not the user can use unfiltered HTML. + * @param {string} [options.HTML] The HTML to convert. + * @param {string} [options.plainText] Plain text version. + * @param {string} [options.mode] Handle content as blocks or inline content. + * * 'AUTO': Decide based on the content passed. + * * 'INLINE': Always handle as inline content, and return string. + * * 'BLOCKS': Always handle as blocks, and return array of blocks. + * @param {Array} [options.tagName] The tag into which content will be inserted. * * @return {Array|string} A list of blocks or a string, depending on `handlerMode`. */ @@ -12301,9 +12300,7 @@ function pasteHandler(_ref3) { plainText = _ref3$plainText === void 0 ? '' : _ref3$plainText, _ref3$mode = _ref3.mode, mode = _ref3$mode === void 0 ? 'AUTO' : _ref3$mode, - tagName = _ref3.tagName, - _ref3$canUserUseUnfil = _ref3.canUserUseUnfilteredHTML, - canUserUseUnfilteredHTML = _ref3$canUserUseUnfil === void 0 ? false : _ref3$canUserUseUnfil; + tagName = _ref3.tagName; // First of all, strip any meta tags. HTML = HTML.replace(/]+>/g, ''); // Strip Windows markers. @@ -12334,7 +12331,7 @@ function pasteHandler(_ref3) { if (plainText && (!HTML || isPlain(HTML))) { - HTML = markdown_converter(plainText); // Switch to inline mode if: + HTML = markdownConverter(plainText); // Switch to inline mode if: // * The current mode is AUTO. // * The original plain text had no line breaks. // * The original plain text was not an HTML paragraph. @@ -12357,7 +12354,7 @@ function pasteHandler(_ref3) { var hasShortcodes = pieces.length > 1; - if (mode === 'AUTO' && !hasShortcodes && is_inline_content(HTML, tagName)) { + if (mode === 'AUTO' && !hasShortcodes && isInlineContent(HTML, tagName)) { return filterInlineHTML(HTML); } @@ -12370,19 +12367,14 @@ function pasteHandler(_ref3) { return piece; } - var filters = [google_docs_uid_remover, ms_list_converter, head_remover, list_reducer, image_corrector, phrasing_content_reducer, special_comment_converter, comment_remover, figure_content_reducer, blockquote_normaliser]; - - if (!canUserUseUnfilteredHTML) { - // Should run before `figureContentReducer`. - filters.unshift(iframe_remover); - } + var filters = [googleDocsUIdRemover, msListConverter, headRemover, listReducer, imageCorrector, phrasingContentReducer, specialCommentConverter, commentRemover, iframeRemover, figureContentReducer, blockquoteNormaliser]; var schema = paste_handler_objectSpread({}, blockContentSchema, {}, phrasingContentSchema); piece = deepFilterHTML(piece, filters, blockContentSchema); piece = removeInvalidHTML(piece, schema); - piece = normalise_blocks(piece); - piece = deepFilterHTML(piece, [html_formatting_remover, br_remover, empty_paragraph_remover], blockContentSchema); // Allows us to ask for this information when we get a report. + piece = normaliseBlocks(piece); + piece = deepFilterHTML(piece, [htmlFormattingRemover, brRemover, emptyParagraphRemover], blockContentSchema); // Allows us to ask for this information when we get a report. paste_handler_console.log('Processed HTML piece:\n\n', piece); return htmlToBlocks({ @@ -12517,13 +12509,13 @@ function rawHandler(_ref3) { var filters = [// Needed to adjust invalid lists. - list_reducer, // Needed to create more and nextpage blocks. - special_comment_converter, // Needed to create media blocks. - figure_content_reducer, // Needed to create the quote block, which cannot handle text + listReducer, // Needed to create more and nextpage blocks. + specialCommentConverter, // Needed to create media blocks. + figureContentReducer, // Needed to create the quote block, which cannot handle text // without wrapper paragraphs. - blockquote_normaliser]; + blockquoteNormaliser]; piece = deepFilterHTML(piece, filters, blockContentSchema); - piece = normalise_blocks(piece); + piece = normaliseBlocks(piece); return raw_handling_htmlToBlocks({ html: piece, rawTransforms: rawTransforms @@ -12536,10 +12528,12 @@ function rawHandler(_ref3) { * WordPress dependencies */ +/** @typedef {import('../store/reducer').WPBlockCategory} WPBlockCategory */ + /** * Returns all the block categories. * - * @return {Object[]} Block categories. + * @return {WPBlockCategory[]} Block categories. */ function categories_getCategories() { @@ -12548,7 +12542,7 @@ function categories_getCategories() { /** * Sets the block categories. * - * @param {Object[]} categories Block categories. + * @param {WPBlockCategory[]} categories Block categories. */ function categories_setCategories(categories) { @@ -12557,8 +12551,9 @@ function categories_setCategories(categories) { /** * Updates a category. * - * @param {string} slug Block category slug. - * @param {Object} category Object containing the category properties that should be updated. + * @param {string} slug Block category slug. + * @param {WPBlockCategory} category Object containing the category properties + * that should be updated. */ function categories_updateCategory(slug, category) { @@ -12776,6 +12771,13 @@ function synchronizeBlocksWithTemplate() { +/***/ }), + +/***/ 44: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + /***/ }), /***/ 5: @@ -12800,14 +12802,14 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 51: +/***/ 55: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), -/***/ 54: +/***/ 56: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -14008,7 +14010,14 @@ else {} /***/ }), -/***/ 58: +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["primitives"]; }()); + +/***/ }), + +/***/ 62: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["htmlEntities"]; }()); @@ -14016,49 +14025,38 @@ else {} /***/ }), /***/ 8: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +/***/ }), + +/***/ 9: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/***/ 83: -/***/ (function(module, exports, __webpack_require__) { - -var rng = __webpack_require__(116); -var bytesToUuid = __webpack_require__(117); - -function v4(options, buf, offset) { - var i = buf && offset || 0; - - if (typeof(options) == 'string') { - buf = options === 'binary' ? new Array(16) : null; - options = null; - } - options = options || {}; - - var rnds = options.random || (options.rng || rng)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - for (var ii = 0; ii < 16; ++ii) { - buf[i + ii] = rnds[ii]; - } - } - - return buf || bytesToUuid(rnds); -} - -module.exports = v4; - - -/***/ }), - -/***/ 85: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["autop"]; }()); diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js index 7bde6f0784..088ba2d516 100644 --- a/wp-includes/js/dist/blocks.min.js +++ b/wp-includes/js/dist/blocks.min.js @@ -1,3 +1,3 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=425)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},116:function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},117:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}},12:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var o={},i={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,o,i,s,c,u=n||"",l=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;i=f.exec(e);)if(d.test(i[0]))a++||(s=(o=f.lastIndex)-i[0].length);else if(a&&!--a){c=i.index+i[0].length;var h={left:{start:s,end:o},match:{start:o,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(f.lastIndex=o));return p};o.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),o=[],i=0;i0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f=0?n+(r||0):n},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},o.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},o.Converter=function(e){"use strict";var t={},r=[],n=[],a={},i=u,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new o.Converter));o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(r.gUrls[a]))return e;i=r.gUrls[a],o.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,i){if("\\"===n)return r+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,i,s,c){var u=n=n.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",d=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'"+u+""+l+p}},w=function(e,t){"use strict";return function(r,n,a){var i="mailto:";return n=n||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,n+''+a+""}};o.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(g,v(t))).replace(_,w(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),o.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(b,v(t)):e.replace(h,v(t))).replace(m,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),o.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=o.subParser("blockQuotes")(e,t,r),e=o.subParser("headers")(e,t,r),e=o.subParser("horizontalRule")(e,t,r),e=o.subParser("lists")(e,t,r),e=o.subParser("codeBlocks")(e,t,r),e=o.subParser("tables")(e,t,r),e=o.subParser("hashHTMLBlocks")(e,t,r),e=o.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),o.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=o.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),o.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var i=n,s=a,c="\n";return i=o.subParser("outdent")(i,t,r),i=o.subParser("encodeCode")(i,t,r),i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="
    "+i+c+"
    ",o.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),o.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=o.subParser("encodeCode")(s,t,r))+"",s=o.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),o.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",o="",i='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+o+i+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),o.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),o.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),o.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),o.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,r),i="
    "+(i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",i=o.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),o.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),o.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),o.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i]*>)","im"),u="<"+n[i]+"\\b[^>]*>",l="";-1!==(s=o.helper.regexIndexOf(e,c));){var f=o.helper.splitAtIndex(e,s),d=o.helper.replaceRecursiveRegExp(f[1],a,u,l,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),o.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),o.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),o.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+i+"";return o.subParser("hashBlock")(u,t,r)}))).replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+i+"";return o.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,a=o.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(i)+'"',f=n-1+a.length,d=""+u+"";return o.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),o.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=o.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),o.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,i,s,c,u){var l=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,o.helper.isUndefined(l[n]))return e;a=l[n],o.helper.isUndefined(f[n])||(u=f[n]),o.helper.isUndefined(d[n])||(i=d[n].width,s=d[n].height)}t=t.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,o,i,s,c){return n(e,t,r,a=a.replace(/\s/g,""),o,i,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),o.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),o.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var f=o.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(f=o.subParser("githubCodeBlocks")(f,t,r),f=o.subParser("blockGamut")(f,t,r)):(f=(f=o.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=i?o.subParser("paragraphs")(f,t,r):o.subParser("spanGamut")(f,t,r)),f=""+(f=f.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,o){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?i:s,u="";if(-1!==e.search(c))!function t(l){var f=l.search(c),d=a(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,f),!!o)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(l.slice(f))):u+="\n\n<"+r+d+">\n"+n(l,!!o)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!o)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),o.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),o.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),o.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],i=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(i=a.length,s=0;s]*>\s*]*>/.test(l)&&(f=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),o.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+o.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,i=e.split("\n");for(a=0;a"+(c=o.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var o=0;o\n"}return r+="\n\n"}(h,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),o.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var i=0;i",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;itr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=b)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return o}.call(t,r,t,e))||(e.exports=n)}).call(this)},27:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(25);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},28:function(e,t){!function(){e.exports=this.wp.dom}()},32:function(e,t){!function(){e.exports=this.wp.hooks}()},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),b=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f({},e,{},Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f({},e,{},Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f({},e,Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f({},e,Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f({},e,{},Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f({},e,Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f({},e,Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:b,unregisteredFallbackBlockName:g,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f({},e,{},t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return f({},e,Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(40);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=function(e,t){return"string"==typeof t?O(e,t):t},k=Object(v.a)((function(e){return Object.values(e.blockTypes).map((function(t){return function(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(B(e,t),(function(t){return M(e,t,"inserter",!0)}))};function I(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function V(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function R(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function F(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function U(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function G(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function K(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function Q(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function X(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var J=r(83),ee=r.n(J),te=r(32),re=r(54),ne=r.n(re),ae=r(0),oe=r(28);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se=["#191e23","#f8f9f9"];function ce(e){var t=Se();if(e.name!==t)return!1;ce.block&&ce.block.name===t||(ce.block=Ue(t));var r=ce.block,n=Ee(t);return Object(c.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function ue(e){return!!e&&(Object(c.isString)(e)||Object(ae.isValidElement)(e)||Object(c.isFunction)(e)||e instanceof ae.Component)}function le(e){if(ue(e))return{src:e};if(Object(c.has)(e,["background"])){var t=ne()(e.background);return function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(oe.__unstableStripHTML)(o):a}function pe(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=de(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%s Block. Row %d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%s Block. Column %d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var he=["attributes","supports","save","migrate","isEligible"];function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Ee(e),a=Object(c.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{}),o=ee()();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=ee()();return qe({},e,{clientId:n,attributes:qe({},e.attributes,{},t),innerBlocks:r||e.innerBlocks.map((function(e){return Ge(e)}))})}var Ke=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(We(e)||!n||e.isMultiBlock))return!1;if(!We(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||We(e)))return!1;if(!n&&Ye(o.name)&&Ye(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},We=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},Ye=function(e){return e===Ce()};function Ze(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Ne();return Object(c.filter)(t,(function(t){return!!Qe(Xe("from",t.name),(function(t){return Ke(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=Xe("to",Ee(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&Ke(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Ee(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function Qe(e,t){for(var r=Object(te.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,a=r[0],o=a.name;if(!Ye(t)&&n&&!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return!1;var t=e[0].name;return Object(c.every)(e,["name",t])}(r))return null;var i,s=Xe("from",t),u=Qe(Xe("to",o),(function(e){return"block"===e.type&&(We(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)}))||Qe(s,(function(e){return"block"===e.type&&(We(e)||-1!==e.blocks.indexOf(o))&&(!n||e.isMultiBlock)}));if(!u)return null;if(i=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(r):u.transform(r.map((function(e){return e.attributes})),r.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(a):u.transform(a.attributes,a.innerBlocks),!Object(c.isObjectLike)(i))return null;if((i=Object(c.castArray)(i)).some((function(e){return!Ee(e.name)})))return null;var l=Object(c.findIndex)(i,(function(e){return e.name===t}));return l<0?null:i.map((function(t,r){var n=qe({},t,{clientId:r===l?a.clientId:t.clientId});return Object(te.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var et=function e(t,r){return Ue(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},tt=r(20);function rt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var nt,at=function(){return nt||(nt=document.implementation.createHTMLDocument("")),nt};function ot(e,t){if(t){if("string"==typeof e){var r=at();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=ot(e,t[n]),r}),{})}}function it(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return rt(n,t)}}var st=r(85),ct=r(265),ut=r(38),lt=r(35),ft=r(27),dt=r(39);var pt=r(14),ht=r(13),bt=/^#[xX]([A-Fa-f0-9]+)$/,gt=/^#([0-9]+)$/,mt=/^([A-Za-z0-9]+)$/,_t=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(bt);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(gt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(mt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),vt=/[A-Za-z]/,wt=/\r\n?/g;function yt(e){return _t.test(e)}function kt(e){return vt.test(e)}var Ot=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||kt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();yt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();yt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();yt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();yt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();yt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();yt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();yt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();yt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||kt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(wt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),jt=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Ot(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=fe(e),a=n.save;if(a.prototype instanceof ae.Component){var o=new a({attributes:t});a=o.render.bind(o)}var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(te.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(te.applyFilters)("blocks.getSaveContent.extraProps",Ht({},i.props),n,t);At()(s,i.props)||(i=Object(ae.cloneElement)(i,s))}return i=Object(te.applyFilters)("blocks.getSaveElement",i,n,t),Object(ae.createElement)(zt,{innerBlocks:r},i)}function Ft(e,t,r){var n=fe(e);return Object(ae.renderToString)(Rt(n,t,r))}function $t(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function qt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Ft(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Ut(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Gt(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=qt(e);if(a===xe()||!n&&a===je())return o;var i=Ee(a),s=$t(i,e.attributes);return Ut(a,s,o)}(e,t)})).join("\n\n")}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Wt=/[\t\n\r\v\f ]+/g,Yt=/^[\t\n\r\v\f ]*$/,Zt=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,Qt=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],Xt=[].concat(Qt,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Jt=[c.identity,function(e){return ar(e).join(" ")}],er=/^[\da-z]+$/i,tr=/^#\d+$/,rr=/^#x[\da-f]+$/i;var nr=function(){function e(){Object(pt.a)(this,e)}return Object(ht.a)(e,[{key:"parse",value:function(e){if(t=e,er.test(t)||tr.test(t)||rr.test(t))return Object(Ct.decodeEntities)("&"+e+";");var t}}]),e}();function ar(e){return e.trim().split(Wt)}function or(e){return e.attributes.filter((function(e){var t=Object(tt.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(Xt,r)}))}function ir(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tt(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:Tt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Tt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):lr.apply(void 0,Object(i.a)([e,t].map(or)).concat([r]))},Chars:ir,Comment:ir};function dr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!Yt.test(t.chars))return t}}function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt();try{return new jt(new nr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function hr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function br(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tt(),o=[e,t].map((function(e){return pr(e,a)})),i=Object(tt.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;r=dr(s);){if(!(n=dr(c)))return a.warning("Expected end of content, instead saw %o.",r),!1;if(r.type!==n.type)return a.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",n.type,n,r.type,r),!1;var u=fr[r.type];if(u&&!u(r,n,a))return!1;hr(r,c[0])?dr(c):hr(n,s[0])&&dr(s)}return!(n=dr(c))||(a.warning("Expected %o, instead saw end of content.",n),!1)}function gr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:xt(),o=fe(e);try{n=Ft(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=br(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function mr(e,t,r){return gr(e,t,r,Tt()).isValid}function _r(e){for(var t=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n=fe(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return zr(n,e,t,r)}));return Object(te.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Hr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=je(),l=xe()||u;r=r||{},o=o.trim();var f=t||u;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f&&0===f.indexOf("core/social-link-")&&(r.service=f.substring(17),f="core/social-link"),f===u&&(o=Object(st.autop)(o).trim());var d=Ee(f);if(!d){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:s},h=Ir(p,{isCommentDelimited:!1}),b=Ir(p,{isCommentDelimited:!0});f&&(o=b),r={originalName:t,originalContent:b,originalUndelimitedContent:h},d=Ee(f=l)}a=(a=a.map(Hr)).filter((function(e){return e}));var g=f===u||f===l;if(d&&(o||!g)){var m=Ue(f,Dr(d,o,r),a);if(!g){var _=gr(d,m.attributes,o),v=_.isValid,w=_.validationIssues;m.isValid=v,m.validationIssues=w}return m.originalContent=m.originalContent||o,(m=function(e,t){var r=Ee(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(m.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",d.name,d,Ft(d,m.attributes),m.originalContent):m.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),m}}function Ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Ir(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Ut(a,i,d):d}var Vr,Rr=(Vr=ct.parse,function(e){return Vr(e).reduce((function(e,t){var r=Hr(t);return r&&e.push(r),e}),[])}),Fr=Rr;function $r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,nn(n.body.childNodes,t,n,r),n.body.innerHTML}function on(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!n.hasOwnProperty(o)||n[o].isMatch&&!n[o].isMatch(t))e(t.childNodes,r,n,a),a&&!Wr(t)&&t.nextElementSibling&&Object(oe.insertAfter)(r.createElement("br"),t),Object(oe.unwrap)(t);else if(t.nodeType===Jr){var i=n[o],s=i.attributes,u=void 0===s?[]:s,l=i.classes,f=void 0===l?[]:l,d=i.children,p=i.require,h=void 0===p?[]:p,b=i.allowEmpty;if(d&&!b&&rn(t))return void Object(oe.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(c.includes)(u,r)||t.removeAttribute(r)})),t.classList&&t.classList.length)){var g=f.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:c.noop}));Array.from(t.classList).forEach((function(e){g.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===d)return;if(d)h.length&&!t.querySelector(h.join(","))?(e(t.childNodes,r,n,a),Object(oe.unwrap)(t)):"BODY"===t.parentNode.nodeName&&Wr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!Wr(e)}))&&Object(oe.unwrap)(t)):e(t.childNodes,r,d,a);else for(;t.firstChild;)Object(oe.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}function sn(e,t){var r=e["".concat(t,"Sibling")];if(r&&Wr(r))return r;var n=e.parentNode;return n&&Wr(n)?sn(n,t):void 0}var cn=window.Node,un=cn.ELEMENT_NODE,ln=cn.TEXT_NODE,fn=function(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===ln?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===un?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?rn(o)?n.removeChild(o):a.appendChild(o):Wr(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML},dn=window.Node.COMMENT_NODE,pn=function(e,t){if(e.nodeType===dn)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===dn&&"noteaser"===n.nodeValue){a=!0,Object(oe.remove)(n);break}Object(oe.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(oe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function hn(e){return"OL"===e.nodeName||"UL"===e.nodeName}var bn=function(e){if(hn(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&hn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(oe.unwrap)(e)}}},gn=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=fn(e.innerHTML))};function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}var _n=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Yr(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&mn(n,o):"BODY"===n.parentNode.nodeName&&mn(n)}},vn=r(149);function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=Xe("from"),o=Qe(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(vn.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(vn.regexp)(e).test(t)})),f=r;if(s=Object(vn.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

    )\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),b=Ue(o.blockName,Dr(yn({},Ee(o.blockName),{attributes:o.attributes}),s.shortcode.content,h));return[d,b].concat(Object(i.a)(e(t.substr(r))))}return[t]},On=window.Node.COMMENT_NODE,jn=function(e){e.nodeType===On&&Object(oe.remove)(e)};function Cn(e,t){return e.every((function(e){return function(e,t){if(Yr(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(c.difference)([r,t],e).length}))}(e,t)&&Cn(Array.from(e.children),t)}))}function Tn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var xn=function(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(oe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(oe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(oe.wrap)(t.createElement("s"),e),"super"===s?Object(oe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(oe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(oe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(oe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Pn=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},An=window.parseInt;function Sn(e){return"OL"===e.nodeName||"UL"===e.nodeName}var En=function(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=An(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!Sn(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)Sn(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);Sn(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}},Nn=r(41),Bn=window,Ln=Bn.atob,Mn=Bn.File,zn=function(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(tt.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(tt.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=Ln(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var d=n||o;if(-1!==d.indexOf("\x3c!-- wp:"))return Rr(d)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=Hn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("

    ")&&0===n.indexOf("

    ")&&(s="INLINE")),"INLINE"===s)return Kn(n);var p=kn(n),h=p.length>1;if("AUTO"===s&&!h&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Tn)&&Cn(n,t)}(n,u))return Kn(n);var b=Object(c.filter)(Xe("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Un({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),g=Kr("paste"),m=tn(b,g,!0),_=Object(c.compact)(Object(c.flatMap)(p,(function(e){if("string"!=typeof e)return e;var t=[Vn,En,Pn,bn,zn,xn,pn,jn,_n,gn];f||t.unshift(In);var r=Un({},m,{},g);return e=on(e=an(e,t,m),r),e=an(e=fn(e),[Rn,Fn,$n],m),Gn.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=Qe(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Ue("core/html",Dr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Ue(a,Dr(a,e.outerHTML))}))}({html:e,rawTransforms:b})})));if("AUTO"===s&&1===_.length&&Le(_[0].name,"__unstablePasteTextInline",!1)){var v=o.trim();if(""!==v&&-1===v.indexOf("\n"))return on(qt(_[0]),g)}return _}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(){return Object(c.filter)(Xe("from"),{type:"raw"}).map((function(e){return e.isMatch?e:function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(tt.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&na(i.innerBlocks,o)}))}function aa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(tt.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a)return ra({},s,{innerBlocks:aa(s.innerBlocks,i)});var u=Ee(a),l=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(ae.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return l(e.query,t)})):t;var r};return Ue(a,l(Object(c.get)(u,["attributes"],{}),o),aa([],i))})):e}r.d(t,"createBlock",(function(){return Ue})),r.d(t,"cloneBlock",(function(){return Ge})),r.d(t,"getPossibleBlockTransformations",(function(){return Ze})),r.d(t,"switchToBlockType",(function(){return Je})),r.d(t,"getBlockTransforms",(function(){return Xe})),r.d(t,"findTransform",(function(){return Qe})),r.d(t,"getBlockFromExample",(function(){return et})),r.d(t,"parse",(function(){return Fr})),r.d(t,"getBlockAttributes",(function(){return Dr})),r.d(t,"parseWithAttributeSchema",(function(){return Mr})),r.d(t,"pasteHandler",(function(){return Wn})),r.d(t,"rawHandler",(function(){return Qn})),r.d(t,"getPhrasingContentSchema",(function(){return Kr})),r.d(t,"serialize",(function(){return Gt})),r.d(t,"getBlockContent",(function(){return qt})),r.d(t,"getBlockDefaultClassName",(function(){return It})),r.d(t,"getBlockMenuDefaultClassName",(function(){return Vt})),r.d(t,"getSaveElement",(function(){return Rt})),r.d(t,"getSaveContent",(function(){return Ft})),r.d(t,"isValidBlockContent",(function(){return mr})),r.d(t,"getCategories",(function(){return Xn})),r.d(t,"setCategories",(function(){return Jn})),r.d(t,"updateCategory",(function(){return ea})),r.d(t,"registerBlockType",(function(){return we})),r.d(t,"registerBlockCollection",(function(){return ye})),r.d(t,"unregisterBlockType",(function(){return ke})),r.d(t,"setFreeformContentHandlerName",(function(){return Oe})),r.d(t,"getFreeformContentHandlerName",(function(){return je})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return Te})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return xe})),r.d(t,"setDefaultBlockName",(function(){return Pe})),r.d(t,"getDefaultBlockName",(function(){return Se})),r.d(t,"setGroupingBlockName",(function(){return Ae})),r.d(t,"getGroupingBlockName",(function(){return Ce})),r.d(t,"getBlockType",(function(){return Ee})),r.d(t,"getBlockTypes",(function(){return Ne})),r.d(t,"getBlockSupport",(function(){return Be})),r.d(t,"hasBlockSupport",(function(){return Le})),r.d(t,"isReusableBlock",(function(){return Me})),r.d(t,"getChildBlockNames",(function(){return ze})),r.d(t,"hasChildBlocks",(function(){return De})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return He})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return ve})),r.d(t,"registerBlockStyle",(function(){return Ie})),r.d(t,"unregisterBlockStyle",(function(){return Ve})),r.d(t,"registerBlockVariation",(function(){return Re})),r.d(t,"unregisterBlockVariation",(function(){return Fe})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return ce})),r.d(t,"normalizeIconObject",(function(){return le})),r.d(t,"isValidIcon",(function(){return ue})),r.d(t,"__experimentalGetBlockLabel",(function(){return de})),r.d(t,"__experimentalGetAccessibleBlockLabel",(function(){return pe})),r.d(t,"doBlocksMatchTemplate",(function(){return na})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return aa})),r.d(t,"children",(function(){return yr})),r.d(t,"node",(function(){return Sr})),r.d(t,"withBlockContentContext",(function(){return Mt}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},51:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},54:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(S[e])e=S[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*B(p,255),g:255*B(h,255),b:255*B(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*B(e,360),t=B(t,100),r=B(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=B(e,360),t=B(t,100),r=B(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,b;return r=N(r),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=B(e,255),t=B(t,255),r=B(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function A(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;uc&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var S=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(S);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},58:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},8:function(e,t){!function(){e.exports=this.wp.compose}()},83:function(e,t,r){var n=r(116),a=r(117);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[o+s]=i[s];return t||a(i)}},85:function(e,t){!function(){e.exports=this.wp.autop}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=437)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},117:function(e,t){!function(){e.exports=this.wp.shortcode}()},140:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(38),a=r(35),o=r(28),i=r(39);function s(e){return Object(n.a)(e)||Object(a.a)(e)||Object(o.a)(e)||Object(i.a)()}},15:function(e,t,r){"use strict";var n=r(38);var a=r(28),o=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}r.d(t,"a",(function(){return i}))},16:function(e,t,r){"use strict";var n=r(26);var a=r(35),o=r(28);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,"a",(function(){return i}))},18:function(e,t,r){"use strict";function n(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var o={},i={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,o,i,s,c,u=n||"",l=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;i=f.exec(e);)if(d.test(i[0]))a++||(s=(o=f.lastIndex)-i[0].length);else if(a&&!--a){c=i.index+i[0].length;var h={left:{start:s,end:o},match:{start:o,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(f.lastIndex=o));return p};o.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),o=[],i=0;i0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f=0?n+(r||0):n},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},o.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},o.Converter=function(e){"use strict";var t={},r=[],n=[],a={},i=u,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new o.Converter));o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(r.gUrls[a]))return e;i=r.gUrls[a],o.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,i){if("\\"===n)return r+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,i,s,c){var u=n=n.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",d=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'"+u+""+l+p}},w=function(e,t){"use strict";return function(r,n,a){var i="mailto:";return n=n||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,n+''+a+""}};o.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(g,v(t))).replace(_,w(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),o.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(b,v(t)):e.replace(h,v(t))).replace(m,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),o.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=o.subParser("blockQuotes")(e,t,r),e=o.subParser("headers")(e,t,r),e=o.subParser("horizontalRule")(e,t,r),e=o.subParser("lists")(e,t,r),e=o.subParser("codeBlocks")(e,t,r),e=o.subParser("tables")(e,t,r),e=o.subParser("hashHTMLBlocks")(e,t,r),e=o.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),o.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=o.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),o.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var i=n,s=a,c="\n";return i=o.subParser("outdent")(i,t,r),i=o.subParser("encodeCode")(i,t,r),i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="
    "+i+c+"
    ",o.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),o.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=o.subParser("encodeCode")(s,t,r))+"",s=o.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),o.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",o="",i='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+o+i+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),o.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),o.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),o.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),o.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,r),i="
    "+(i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",i=o.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),o.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),o.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),o.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i]*>)","im"),u="<"+n[i]+"\\b[^>]*>",l="";-1!==(s=o.helper.regexIndexOf(e,c));){var f=o.helper.splitAtIndex(e,s),d=o.helper.replaceRecursiveRegExp(f[1],a,u,l,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),o.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),o.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),o.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+i+"";return o.subParser("hashBlock")(u,t,r)}))).replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+i+"";return o.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,a=o.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(i)+'"',f=n-1+a.length,d=""+u+"";return o.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),o.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=o.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),o.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,i,s,c,u){var l=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,o.helper.isUndefined(l[n]))return e;a=l[n],o.helper.isUndefined(f[n])||(u=f[n]),o.helper.isUndefined(d[n])||(i=d[n].width,s=d[n].height)}t=t.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,o,i,s,c){return n(e,t,r,a=a.replace(/\s/g,""),o,i,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),o.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),o.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var f=o.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(f=o.subParser("githubCodeBlocks")(f,t,r),f=o.subParser("blockGamut")(f,t,r)):(f=(f=o.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=i?o.subParser("paragraphs")(f,t,r):o.subParser("spanGamut")(f,t,r)),f=""+(f=f.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,o){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?i:s,u="";if(-1!==e.search(c))!function t(l){var f=l.search(c),d=a(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,f),!!o)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(l.slice(f))):u+="\n\n<"+r+d+">\n"+n(l,!!o)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!o)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),o.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),o.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),o.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],i=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(i=a.length,s=0;s]*>\s*]*>/.test(l)&&(f=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),o.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+o.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,i=e.split("\n");for(a=0;a"+(c=o.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var o=0;o\n"}return r+="\n\n"}(h,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),o.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var i=0;i",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;itr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=b)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return o}.call(t,r,t,e))||(e.exports=n)}).call(this)},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},29:function(e,t){!function(){e.exports=this.wp.dom}()},31:function(e,t){!function(){e.exports=this.wp.hooks}()},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),b=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f({},e,{},Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f({},e,{},Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f({},e,Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f({},e,Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f({},e,{},Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f({},e,Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f({},e,Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:b,unregisteredFallbackBlockName:g,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f({},e,{},t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return f({},e,Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(41);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=function(e,t){return"string"==typeof t?O(e,t):t},k=Object(v.a)((function(e){return Object.values(e.blockTypes).map((function(t){return function(e){for(var t=1;t0},H=function(e,t){return Object(c.some)(B(e,t),(function(t){return M(e,t,"inserter",!0)}))};function I(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function V(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function R(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function F(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function U(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function G(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function K(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_CATEGORIES",categories:e}}function Z(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function Q(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function X(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var J="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ee=new Uint8Array(16);function te(){if(!J)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(ee)}for(var re=[],ne=0;ne<256;++ne)re[ne]=(ne+256).toString(16).substr(1);var ae=function(e,t){var r=t||0,n=re;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var oe=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||te)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||ae(a)},ie=r(31),se=r(194),ce=r(56),ue=r.n(ce),le=r(0),fe=r(29);function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var pe=["#191e23","#f8f9f9"];function he(e){var t=ze();if(e.name!==t)return!1;he.block&&he.block.name===t||(he.block=Qe(t));var r=he.block,n=De(t);return Object(c.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function be(e){return!!e&&(Object(c.isString)(e)||Object(le.isValidElement)(e)||Object(c.isFunction)(e)||e instanceof le.Component)}function ge(e){if(be(e))return{src:e};if(Object(c.has)(e,["background"])){var t=ue()(e.background);return function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(fe.__unstableStripHTML)(o):a}function ve(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=_e(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var we=["attributes","supports","save","migrate","isEligible"];function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=De(e),a=Object(c.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{}),o=oe();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=oe();return Ze({},e,{clientId:n,attributes:Ze({},e.attributes,{},t),innerBlocks:r||e.innerBlocks.map((function(e){return Xe(e)}))})}var Je=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(et(e)||!n||e.isMultiBlock))return!1;if(!et(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||et(e)))return!1;if(!n&&tt(o.name)&&tt(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},et=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},tt=function(e){return e===Ee()};function rt(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=He();return Object(c.filter)(t,(function(t){return!!nt(at("from",t.name),(function(t){return Je(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=at("to",De(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&Je(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return De(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function nt(e,t){for(var r=Object(ie.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,o=n[0],i=o.name,s=at("from",t),u=nt(at("to",i),(function(e){return"block"===e.type&&(et(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||nt(s,(function(e){return"block"===e.type&&(et(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!De(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=Ze({},t,{clientId:r===l?o.clientId:t.clientId});return Object(ie.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var it=function e(t,r){return Qe(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},st=r(15);function ct(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ut,lt=function(){return ut||(ut=document.implementation.createHTMLDocument("")),ut};function ft(e,t){if(t){if("string"==typeof e){var r=lt();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=ft(e,t[n]),r}),{})}}function dt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return ct(n,t)}}var pt=r(94),ht=r(259),bt=r(140),gt=r(19),mt=r(18),_t=/^#[xX]([A-Fa-f0-9]+)$/,vt=/^#([0-9]+)$/,wt=/^([A-Za-z0-9]+)$/,yt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(_t);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(vt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(wt))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),kt=/[A-Za-z]/,Ot=/\r\n?/g;function jt(e){return yt.test(e)}function Ct(e){return kt.test(e)}var Tt=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||Ct(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();jt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();jt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();jt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();jt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();jt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();jt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();jt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();jt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||Ct(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Ot,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),xt=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Tt(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=me(e),a=n.save;if(a.prototype instanceof le.Component){var o=new a({attributes:t});a=o.render.bind(o)}var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(ie.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(ie.applyFilters)("blocks.getSaveContent.extraProps",Rt({},i.props),n,t);Nt()(s,i.props)||(i=Object(le.cloneElement)(i,s))}return i=Object(ie.applyFilters)("blocks.getSaveElement",i,n,t),Object(le.createElement)(It,{innerBlocks:r},i)}function Ut(e,t,r){var n=me(e);return Object(le.renderToString)(qt(n,t,r))}function Gt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function Kt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Ut(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function Wt(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function Yt(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=Kt(e);if(a===Be()||!n&&a===Se())return o;var i=De(a),s=Gt(i,e.attributes);return Wt(a,s,o)}(e,t)})).join("\n\n")}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Qt=/[\t\n\r\v\f ]+/g,Xt=/^[\t\n\r\v\f ]*$/,Jt=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,er=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],tr=[].concat(er,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),rr=[c.identity,function(e){return sr(e).join(" ")}],nr=/^[\da-z]+$/i,ar=/^#\d+$/,or=/^#x[\da-f]+$/i;var ir=function(){function e(){Object(gt.a)(this,e)}return Object(mt.a)(e,[{key:"parse",value:function(e){if(t=e,nr.test(t)||ar.test(t)||or.test(t))return Object(Pt.decodeEntities)("&"+e+";");var t}}]),e}();function sr(e){return e.trim().split(Qt)}function cr(e){return e.attributes.filter((function(e){var t=Object(st.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(tr,r)}))}function ur(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:At();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:At();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):pr.apply(void 0,Object(i.a)([e,t].map(cr)).concat([r]))},Chars:ur,Comment:ur};function br(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!Xt.test(t.chars))return t}}function gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:At();try{return new xt(new ir).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function mr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function _r(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return gr(e,r)})),i=Object(st.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=br(s);){if(!(a=br(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=hr[n.type];if(u&&!u(n,a,r))return!1;mr(n,c[0])?br(c):mr(a,s[0])&&br(s)}return!(a=br(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function vr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:St(),o=me(e);try{n=Ut(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=_r(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function wr(e,t,r){return vr(e,t,r,At()).isValid}function yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=me(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return Ir(n,e,t,r)}));return Object(ie.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Rr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Se(),l=Be()||u;r=r||{},o=o.trim();var f=t||u;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f&&0===f.indexOf("core/social-link-")&&(r.service=f.substring(17),f="core/social-link"),f===u&&(o=Object(pt.autop)(o).trim());var d=De(f);if(!d){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:s},h=Fr(p,{isCommentDelimited:!1}),b=Fr(p,{isCommentDelimited:!0});f&&(o=b),r={originalName:t,originalContent:b,originalUndelimitedContent:h},d=De(f=l)}a=(a=a.map(Rr)).filter((function(e){return e}));var g=f===u||f===l;if(d&&(o||!g)){var m=Qe(f,Vr(d,o,r),a);if(!g){var _=vr(d,m.attributes,o),v=_.isValid,w=_.validationIssues;m.isValid=v,m.validationIssues=w}return m.originalContent=m.originalContent||o,(m=function(e,t){var r=De(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(m.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",d.name,d,Ut(d,m.attributes),m.originalContent):m.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),m}}function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Fr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?Wt(a,i,d):d}var $r,qr=($r=ht.parse,function(e){return $r(e).reduce((function(e,t){var r=Rr(t);return r&&e.push(r),e}),[])}),Ur=qr;function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,sn(n.body.childNodes,t,n,r),n.body.innerHTML}function un(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!n.hasOwnProperty(o)||n[o].isMatch&&!n[o].isMatch(t))e(t.childNodes,r,n,a),a&&!Qr(t)&&t.nextElementSibling&&Object(fe.insertAfter)(r.createElement("br"),t),Object(fe.unwrap)(t);else if(t.nodeType===rn){var i=n[o],s=i.attributes,u=void 0===s?[]:s,l=i.classes,f=void 0===l?[]:l,d=i.children,p=i.require,h=void 0===p?[]:p,b=i.allowEmpty;if(d&&!b&&on(t))return void Object(fe.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(c.includes)(u,r)||t.removeAttribute(r)})),t.classList&&t.classList.length)){var g=f.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:c.noop}));Array.from(t.classList).forEach((function(e){g.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===d)return;if(d)h.length&&!t.querySelector(h.join(","))?(e(t.childNodes,r,n,a),Object(fe.unwrap)(t)):"BODY"===t.parentNode.nodeName&&Qr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!Qr(e)}))&&Object(fe.unwrap)(t)):e(t.childNodes,r,d,a);else for(;t.firstChild;)Object(fe.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}function ln(e,t){var r=e["".concat(t,"Sibling")];if(r&&Qr(r))return r;var n=e.parentNode;return n&&Qr(n)?ln(n,t):void 0}var fn=window.Node,dn=fn.ELEMENT_NODE,pn=fn.TEXT_NODE;function hn(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===pn?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===dn?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?on(o)?n.removeChild(o):a.appendChild(o):Qr(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}var bn=window.Node.COMMENT_NODE;function gn(e,t){if(e.nodeType===bn)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===bn&&"noteaser"===n.nodeValue){a=!0,Object(fe.remove)(n);break}Object(fe.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(fe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}var mn=window.Node.COMMENT_NODE;function _n(e){e.nodeType===mn&&Object(fe.remove)(e)}function vn(e,t){return e.every((function(e){return function(e,t){if(Xr(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(c.difference)([r,t],e).length}))}(e,t)&&vn(Array.from(e.children),t)}))}function wn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function yn(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(fe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(fe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(fe.wrap)(t.createElement("s"),e),"super"===s?Object(fe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(fe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(fe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(fe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function kn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var On=window.parseInt;function jn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function Cn(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=On(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!jn(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)jn(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);jn(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function Tn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function xn(e){if(Tn(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&Tn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(fe.unwrap)(e)}}}var Pn=r(44),An=window,Sn=An.atob,En=An.File;function Nn(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(st.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(st.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=Sn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function Mn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Xr(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&Ln(n,o):Ln(n,o):"BODY"===n.parentNode.nodeName&&Ln(n)}}var zn=r(117);function Dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=at("from"),o=nt(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(zn.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(zn.regexp)(e).test(t)})),f=r;if(s=Object(zn.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

    )\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),b=Qe(o.blockName,Vr(Hn({},De(o.blockName),{attributes:o.attributes}),s.shortcode.content,h));return[d,b].concat(Object(i.a)(e(t.substr(r))))}return[t]},Vn=r(260),Rn=new(r.n(Vn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Fn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function $n(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(fe.unwrap)(e)}function qn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===window.Node.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=ln(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=ln(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Un(e){"BR"===e.nodeName&&(ln(e,"next")||e.parentNode.removeChild(e))}function Gn(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var l=n||o;if(-1!==l.indexOf("\x3c!-- wp:"))return qr(l)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=Rn.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("

    ")&&0===n.indexOf("

    ")&&(s="INLINE")),"INLINE"===s)return Zn(n);var f=In(n),d=f.length>1;if("AUTO"===s&&!d&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(wn)&&vn(n,t)}(n,u))return Zn(n);var p=Object(c.filter)(at("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Wn({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),h=Zr("paste"),b=an(p,h,!0),g=Object(c.compact)(Object(c.flatMap)(f,(function(e){if("string"!=typeof e)return e;var t=[$n,Cn,kn,xn,Nn,yn,gn,_n,Fn,Mn,Bn],r=Wn({},b,{},h);return e=cn(e,t,b),e=cn(e=hn(e=un(e,r)),[qn,Un,Gn],b),Yn.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=nt(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Qe("core/html",Vr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Qe(a,Vr(a,e.outerHTML))}))}({html:e,rawTransforms:p})})));if("AUTO"===s&&1===g.length&&Ve(g[0].name,"__unstablePasteTextInline",!1)){var m=o.trim();if(""!==m&&-1===m.indexOf("\n"))return un(Kt(g[0]),h)}return g}function Xn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jn(){return Object(c.filter)(at("from"),{type:"raw"}).map((function(e){return e.isMatch?e:function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(st.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&ia(i.innerBlocks,o)}))}function sa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(st.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a)return oa({},s,{innerBlocks:sa(s.innerBlocks,i)});var u=De(a),l=function(e,t){return Object(c.mapValues)(t,(function(t,r){return f(e[r],t)}))},f=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(le.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return l(e.query,t)})):t;var r};return Qe(a,l(Object(c.get)(u,["attributes"],{}),o),sa([],i))})):e}r.d(t,"createBlock",(function(){return Qe})),r.d(t,"cloneBlock",(function(){return Xe})),r.d(t,"getPossibleBlockTransformations",(function(){return rt})),r.d(t,"switchToBlockType",(function(){return ot})),r.d(t,"getBlockTransforms",(function(){return at})),r.d(t,"findTransform",(function(){return nt})),r.d(t,"getBlockFromExample",(function(){return it})),r.d(t,"parse",(function(){return Ur})),r.d(t,"getBlockAttributes",(function(){return Vr})),r.d(t,"parseWithAttributeSchema",(function(){return Hr})),r.d(t,"pasteHandler",(function(){return Qn})),r.d(t,"rawHandler",(function(){return ea})),r.d(t,"getPhrasingContentSchema",(function(){return Zr})),r.d(t,"serialize",(function(){return Yt})),r.d(t,"getBlockContent",(function(){return Kt})),r.d(t,"getBlockDefaultClassName",(function(){return Ft})),r.d(t,"getBlockMenuDefaultClassName",(function(){return $t})),r.d(t,"getSaveElement",(function(){return qt})),r.d(t,"getSaveContent",(function(){return Ut})),r.d(t,"isValidBlockContent",(function(){return wr})),r.d(t,"getCategories",(function(){return ta})),r.d(t,"setCategories",(function(){return ra})),r.d(t,"updateCategory",(function(){return na})),r.d(t,"registerBlockType",(function(){return Te})),r.d(t,"registerBlockCollection",(function(){return xe})),r.d(t,"unregisterBlockType",(function(){return Pe})),r.d(t,"setFreeformContentHandlerName",(function(){return Ae})),r.d(t,"getFreeformContentHandlerName",(function(){return Se})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return Ne})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return Be})),r.d(t,"setDefaultBlockName",(function(){return Le})),r.d(t,"getDefaultBlockName",(function(){return ze})),r.d(t,"setGroupingBlockName",(function(){return Me})),r.d(t,"getGroupingBlockName",(function(){return Ee})),r.d(t,"getBlockType",(function(){return De})),r.d(t,"getBlockTypes",(function(){return He})),r.d(t,"getBlockSupport",(function(){return Ie})),r.d(t,"hasBlockSupport",(function(){return Ve})),r.d(t,"isReusableBlock",(function(){return Re})),r.d(t,"getChildBlockNames",(function(){return Fe})),r.d(t,"hasChildBlocks",(function(){return $e})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return qe})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return Ce})),r.d(t,"registerBlockStyle",(function(){return Ue})),r.d(t,"unregisterBlockStyle",(function(){return Ge})),r.d(t,"registerBlockVariation",(function(){return Ke})),r.d(t,"unregisterBlockVariation",(function(){return We})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return he})),r.d(t,"normalizeIconObject",(function(){return ge})),r.d(t,"isValidIcon",(function(){return be})),r.d(t,"__experimentalGetBlockLabel",(function(){return _e})),r.d(t,"__experimentalGetAccessibleBlockLabel",(function(){return ve})),r.d(t,"doBlocksMatchTemplate",(function(){return ia})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return sa})),r.d(t,"children",(function(){return Br})),r.d(t,"node",(function(){return Ar})),r.d(t,"withBlockContentContext",(function(){return Ht}))},44:function(e,t){!function(){e.exports=this.wp.blob}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},55:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},56:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(S[e])e=S[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*B(p,255),g:255*B(h,255),b:255*B(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*B(e,360),t=B(t,100),r=B(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=B(e,360),t=B(t,100),r=B(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,b;return r=N(r),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=B(e,255),t=B(t,255),r=B(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function A(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;uc&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var S=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(S);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},6:function(e,t){!function(){e.exports=this.wp.primitives}()},62:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - - return arr2; -} - -/***/ }), -/* 26 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (false) { var throwOnDirectAccess, ReactIs; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(118)(); -} - - -/***/ }), -/* 27 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} - -/***/ }), -/* 28 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["dom"]; }()); - -/***/ }), -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["hooks"]; }()); - -/***/ }), -/* 33 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["moment"]; }()); - -/***/ }), -/* 34 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); -function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - - return _typeof(obj); -} - -/***/ }), -/* 35 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); -} - -/***/ }), -/* 36 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export Button */ -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37); -/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(110); -/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86); - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var disabledEventsOnDisabledButton = ['onMouseDown', 'onClick']; -function Button(props, ref) { - var href = props.href, - target = props.target, - isPrimary = props.isPrimary, - isLarge = props.isLarge, - isSmall = props.isSmall, - isTertiary = props.isTertiary, - isPressed = props.isPressed, - isBusy = props.isBusy, - isDefault = props.isDefault, - isSecondary = props.isSecondary, - isLink = props.isLink, - isDestructive = props.isDestructive, - className = props.className, - disabled = props.disabled, - icon = props.icon, - iconSize = props.iconSize, - showTooltip = props.showTooltip, - tooltipPosition = props.tooltipPosition, - shortcut = props.shortcut, - label = props.label, - children = props.children, - isFocusable = props.__experimentalIsFocusable, - additionalProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(props, ["href", "target", "isPrimary", "isLarge", "isSmall", "isTertiary", "isPressed", "isBusy", "isDefault", "isSecondary", "isLink", "isDestructive", "className", "disabled", "icon", "iconSize", "showTooltip", "tooltipPosition", "shortcut", "label", "children", "__experimentalIsFocusable"]); - - if (isDefault) { - _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5___default()('Button isDefault prop', { - alternative: 'isSecondary' - }); - } - - var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('components-button', className, { - 'is-secondary': isDefault || isSecondary, - 'is-primary': isPrimary, - 'is-large': isLarge, - 'is-small': isSmall, - 'is-tertiary': isTertiary, - 'is-pressed': isPressed, - 'is-busy': isBusy, - 'is-link': isLink, - 'is-destructive': isDestructive, - 'has-text': !!icon && !!children, - 'has-icon': !!icon - }); - var trulyDisabled = disabled && !isFocusable; - var Tag = href !== undefined && !trulyDisabled ? 'a' : 'button'; - var tagProps = Tag === 'a' ? { - href: href, - target: target - } : { - type: 'button', - disabled: trulyDisabled, - 'aria-pressed': isPressed - }; - - if (disabled && isFocusable) { - // In this case, the button will be disabled, but still focusable and - // perceivable by screen reader users. - tagProps['aria-disabled'] = true; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = disabledEventsOnDisabledButton[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var disabledEvent = _step.value; - - additionalProps[disabledEvent] = function (event) { - event.stopPropagation(); - event.preventDefault(); - }; - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - } // Should show the tooltip if... - - - var shouldShowTooltip = !trulyDisabled && ( // an explicit tooltip is passed or... - showTooltip && label || // there's a shortcut or... - shortcut || // there's a label and... - !!label && ( // the children are empty and... - !children || Object(lodash__WEBPACK_IMPORTED_MODULE_4__["isArray"])(children) && !children.length) && // the tooltip is not explicitly disabled. - false !== showTooltip); - var element = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(Tag, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, tagProps, additionalProps, { - className: classes, - "aria-label": additionalProps['aria-label'] || label, - ref: ref - }), icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_icon__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], { - icon: icon, - size: iconSize - }), children); - - if (!shouldShowTooltip) { - return element; - } - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_tooltip__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], { - text: label, - shortcut: shortcut, - position: tooltipPosition - }, element); -} -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(Button)); - - -/***/ }), -/* 37 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), -/* 38 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), -/* 39 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} - -/***/ }), -/* 40 */, -/* 41 */, -/* 42 */, -/* 43 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), -/* 44 */, -/* 45 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _objectSpread2; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _createForOfIteratorHelperLoose; }); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { @@ -853,58 +536,366 @@ function _objectWithoutPropertiesLoose(source, excluded) { return target; } +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); +} + +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + + return arr2; +} + +function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it; + + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + return function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + + it = o[Symbol.iterator](); + return it.next.bind(it); +} + /***/ }), -/* 46 */, -/* 47 */ -/***/ (function(module, exports, __webpack_require__) { +/* 25 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["richText"]; }()); + +/***/ }), +/* 26 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } -Object.defineProperty(exports, "__esModule", { - value: true -}); -var DISPLAY_FORMAT = exports.DISPLAY_FORMAT = 'L'; -var ISO_FORMAT = exports.ISO_FORMAT = 'YYYY-MM-DD'; -var ISO_MONTH_FORMAT = exports.ISO_MONTH_FORMAT = 'YYYY-MM'; - -var START_DATE = exports.START_DATE = 'startDate'; -var END_DATE = exports.END_DATE = 'endDate'; - -var HORIZONTAL_ORIENTATION = exports.HORIZONTAL_ORIENTATION = 'horizontal'; -var VERTICAL_ORIENTATION = exports.VERTICAL_ORIENTATION = 'vertical'; -var VERTICAL_SCROLLABLE = exports.VERTICAL_SCROLLABLE = 'verticalScrollable'; - -var ICON_BEFORE_POSITION = exports.ICON_BEFORE_POSITION = 'before'; -var ICON_AFTER_POSITION = exports.ICON_AFTER_POSITION = 'after'; - -var INFO_POSITION_TOP = exports.INFO_POSITION_TOP = 'top'; -var INFO_POSITION_BOTTOM = exports.INFO_POSITION_BOTTOM = 'bottom'; -var INFO_POSITION_BEFORE = exports.INFO_POSITION_BEFORE = 'before'; -var INFO_POSITION_AFTER = exports.INFO_POSITION_AFTER = 'after'; - -var ANCHOR_LEFT = exports.ANCHOR_LEFT = 'left'; -var ANCHOR_RIGHT = exports.ANCHOR_RIGHT = 'right'; - -var OPEN_DOWN = exports.OPEN_DOWN = 'down'; -var OPEN_UP = exports.OPEN_UP = 'up'; - -var DAY_SIZE = exports.DAY_SIZE = 39; -var BLOCKED_MODIFIER = exports.BLOCKED_MODIFIER = 'blocked'; -var WEEKDAYS = exports.WEEKDAYS = [0, 1, 2, 3, 4, 5, 6]; - -var FANG_WIDTH_PX = exports.FANG_WIDTH_PX = 20; -var FANG_HEIGHT_PX = exports.FANG_HEIGHT_PX = 10; -var DEFAULT_VERTICAL_SPACING = exports.DEFAULT_VERTICAL_SPACING = 22; - -var MODIFIER_KEY_NAMES = exports.MODIFIER_KEY_NAMES = new Set(['Shift', 'Control', 'Alt', 'Meta']); + return arr2; +} /***/ }), -/* 48 */, -/* 49 */ +/* 27 */, +/* 28 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); +/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); +} + +/***/ }), +/* 29 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["dom"]; }()); + +/***/ }), +/* 30 */, +/* 31 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["hooks"]; }()); + +/***/ }), +/* 32 */, +/* 33 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (false) { var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(131)(); +} + + +/***/ }), +/* 34 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export Button */ +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37); +/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76); +/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78); + + + + +function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var disabledEventsOnDisabledButton = ['onMouseDown', 'onClick']; +function Button(props, ref) { + var href = props.href, + target = props.target, + isPrimary = props.isPrimary, + isSmall = props.isSmall, + isTertiary = props.isTertiary, + isPressed = props.isPressed, + isBusy = props.isBusy, + isDefault = props.isDefault, + isSecondary = props.isSecondary, + isLink = props.isLink, + isDestructive = props.isDestructive, + className = props.className, + disabled = props.disabled, + icon = props.icon, + iconSize = props.iconSize, + showTooltip = props.showTooltip, + tooltipPosition = props.tooltipPosition, + shortcut = props.shortcut, + label = props.label, + children = props.children, + isFocusable = props.__experimentalIsFocusable, + additionalProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(props, ["href", "target", "isPrimary", "isSmall", "isTertiary", "isPressed", "isBusy", "isDefault", "isSecondary", "isLink", "isDestructive", "className", "disabled", "icon", "iconSize", "showTooltip", "tooltipPosition", "shortcut", "label", "children", "__experimentalIsFocusable"]); + + if (isDefault) { + _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_5___default()('Button isDefault prop', { + alternative: 'isSecondary' + }); + } + + var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('components-button', className, { + 'is-secondary': isDefault || isSecondary, + 'is-primary': isPrimary, + 'is-small': isSmall, + 'is-tertiary': isTertiary, + 'is-pressed': isPressed, + 'is-busy': isBusy, + 'is-link': isLink, + 'is-destructive': isDestructive, + 'has-text': !!icon && !!children, + 'has-icon': !!icon + }); + var trulyDisabled = disabled && !isFocusable; + var Tag = href !== undefined && !trulyDisabled ? 'a' : 'button'; + var tagProps = Tag === 'a' ? { + href: href, + target: target + } : { + type: 'button', + disabled: trulyDisabled, + 'aria-pressed': isPressed + }; + + if (disabled && isFocusable) { + // In this case, the button will be disabled, but still focusable and + // perceivable by screen reader users. + tagProps['aria-disabled'] = true; + + var _iterator = _createForOfIteratorHelper(disabledEventsOnDisabledButton), + _step; + + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var disabledEvent = _step.value; + + additionalProps[disabledEvent] = function (event) { + event.stopPropagation(); + event.preventDefault(); + }; + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + } // Should show the tooltip if... + + + var shouldShowTooltip = !trulyDisabled && ( // an explicit tooltip is passed or... + showTooltip && label || // there's a shortcut or... + shortcut || // there's a label and... + !!label && ( // the children are empty and... + !children || Object(lodash__WEBPACK_IMPORTED_MODULE_4__["isArray"])(children) && !children.length) && // the tooltip is not explicitly disabled. + false !== showTooltip); + var element = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(Tag, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, tagProps, additionalProps, { + className: classes, + "aria-label": additionalProps['aria-label'] || label, + ref: ref + }), icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_icon__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], { + icon: icon, + size: iconSize + }), children); + + if (!shouldShowTooltip) { + return element; + } + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_tooltip__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], { + text: label, + shortcut: shortcut, + position: tooltipPosition + }, element); +} +/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(Button)); + + +/***/ }), +/* 35 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); +} + +/***/ }), +/* 36 */, +/* 37 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), +/* 38 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +/***/ }), +/* 39 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +/***/ }), +/* 40 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); +function _typeof(obj) { + "@babel/helpers - typeof"; + + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +/***/ }), +/* 41 */, +/* 42 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +/***/ }), +/* 43 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["moment"]; }()); + +/***/ }), +/* 44 */, +/* 45 */, +/* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -946,19 +937,8 @@ function _asyncToGenerator(fn) { } /***/ }), -/* 50 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - -/***/ }), -/* 51 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["isShallowEqual"]; }()); - -/***/ }), -/* 52 */ +/* 47 */, +/* 48 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1000,7 +980,7 @@ var ThrowTypeError = $gOPD }()) : throwTypeError; -var hasSymbols = __webpack_require__(301)(); +var hasSymbols = __webpack_require__(197)(); var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto @@ -1126,7 +1106,7 @@ var INTRINSICS = { '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype }; -var bind = __webpack_require__(93); +var bind = __webpack_require__(110); var $replace = bind.call(Function.call, String.prototype.replace); /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ @@ -1183,15 +1163,1369 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ }), -/* 53 */ -/***/ (function(module, exports, __webpack_require__) { +/* 49 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), +/* 50 */, +/* 51 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: external {"this":"React"} +var external_this_React_ = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/SystemContext.js +var SystemContext = __webpack_require__(101); + +// CONCATENATED MODULE: ./node_modules/reakit-system/es/useToken.js + + + +/** + * React custom hook that returns the value of any token defined in the + * SystemContext. It's mainly used internally in [`useOptions`](#useoptions) + * and [`useProps`](#useprops). + * + * @example + * import { SystemProvider, useToken } from "reakit-system"; + * + * const system = { + * token: "value", + * }; + * + * function Component(props) { + * const token = useToken("token", "default value"); + * return

    {token}
    ; + * } + * + * function App() { + * return ( + * + * + * + * ); + * } + */ + +function useToken(token, defaultValue) { + Object(external_this_React_["useDebugValue"])(token); + var context = Object(external_this_React_["useContext"])(SystemContext["a" /* SystemContext */]); + return context[token] != null ? context[token] : defaultValue; +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-system/es/useProps.js + + + + +/** + * React custom hook that returns the props returned by a given + * `use${name}Props` in the SystemContext. + * + * @example + * import { SystemProvider, useProps } from "reakit-system"; + * + * const system = { + * useAProps(options, htmlProps) { + * return { + * ...htmlProps, + * href: options.url, + * }; + * }, + * }; + * + * function A({ url, ...htmlProps }) { + * const props = useProps("A", { url }, htmlProps); + * return ; + * } + * + * function App() { + * return ( + * + * It will convert url into href in useAProps + * + * ); + * } + */ + +function useProps(name, options, htmlProps) { + if (options === void 0) { + options = {}; + } + + if (htmlProps === void 0) { + htmlProps = {}; + } + + var hookName = "use" + name + "Props"; + Object(external_this_React_["useDebugValue"])(hookName); + var useHook = useToken(hookName); + + if (useHook) { + return useHook(options, htmlProps); + } + + return htmlProps; +} + + + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/_rollupPluginBabelHelpers-0c84a174.js +var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(69); + +// CONCATENATED MODULE: ./node_modules/reakit-system/es/useOptions.js + + + + + +/** + * React custom hook that returns the options returned by a given + * `use${name}Options` in the SystemContext. + * + * @example + * import React from "react"; + * import { SystemProvider, useOptions } from "reakit-system"; + * + * const system = { + * useAOptions(options, htmlProps) { + * return { + * ...options, + * url: htmlProps.href, + * }; + * }, + * }; + * + * function A({ url, ...htmlProps }) { + * const options = useOptions("A", { url }, htmlProps); + * return ; + * } + * + * function App() { + * return ( + * + * + * It will convert href into url in useAOptions and then url into href in A + * + * + * ); + * } + */ + +function useOptions(name, options, htmlProps) { + if (options === void 0) { + options = {}; + } + + if (htmlProps === void 0) { + htmlProps = {}; + } + + var hookName = "use" + name + "Options"; + Object(external_this_React_["useDebugValue"])(hookName); + var useHook = useToken(hookName); + + if (useHook) { + return Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])(Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])({}, options), useHook(options, htmlProps)); + } + + return options; +} + + + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/shallowEqual.js +var shallowEqual = __webpack_require__(58); + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/toArray.js +/** + * Transforms `arg` into an array if it's not already. + * + * @example + * import { toArray } from "reakit-utils"; + * + * toArray("a"); // ["a"] + * toArray(["a"]); // ["a"] + */ +function toArray(arg) { + if (Array.isArray(arg)) { + return arg; + } + + return typeof arg !== "undefined" ? [arg] : []; +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-system/es/createHook.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createHook; }); + + + + + + + + + +/** + * Creates a React custom hook that will return component props. + * + * @example + * import { createHook } from "reakit-system"; + * + * const useA = createHook({ + * name: "A", + * keys: ["url"], // custom props/options keys + * useProps(options, htmlProps) { + * return { + * ...htmlProps, + * href: options.url, + * }; + * }, + * }); + * + * function A({ url, ...htmlProps }) { + * const props = useA({ url }, htmlProps); + * return ; + * } + * + * @param options + */ +function createHook(options) { + var _options$useState, _composedHooks$; + + var composedHooks = toArray(options.compose); + + var __useOptions = function __useOptions(hookOptions, htmlProps) { + // Call the current hook's useOptions first + if (options.useOptions) { + hookOptions = options.useOptions(hookOptions, htmlProps); + } // If there's name, call useOptions from the system context + + + if (options.name) { + hookOptions = useOptions(options.name, hookOptions, htmlProps); + } // Run composed hooks useOptions + + + if (options.compose) { + for (var _iterator = Object(_rollupPluginBabelHelpers_0c84a174["c" /* b */])(composedHooks), _step; !(_step = _iterator()).done;) { + var hook = _step.value; + hookOptions = hook.__useOptions(hookOptions, htmlProps); + } + } + + return hookOptions; + }; + + var useHook = function useHook(hookOptions, htmlProps, unstable_ignoreUseOptions) { + if (hookOptions === void 0) { + hookOptions = {}; + } + + if (htmlProps === void 0) { + htmlProps = {}; + } + + if (unstable_ignoreUseOptions === void 0) { + unstable_ignoreUseOptions = false; + } + + // This won't execute when useHook was called from within another useHook + if (!unstable_ignoreUseOptions) { + hookOptions = __useOptions(hookOptions, htmlProps); + } // Call the current hook's useProps + + + if (options.useProps) { + htmlProps = options.useProps(hookOptions, htmlProps); + } // If there's name, call useProps from the system context + + + if (options.name) { + htmlProps = useProps(options.name, hookOptions, htmlProps); + } + + if (options.compose) { + if (options.useComposeOptions) { + hookOptions = options.useComposeOptions(hookOptions, htmlProps); + } + + if (options.useComposeProps) { + htmlProps = options.useComposeProps(hookOptions, htmlProps); + } else { + for (var _iterator2 = Object(_rollupPluginBabelHelpers_0c84a174["c" /* b */])(composedHooks), _step2; !(_step2 = _iterator2()).done;) { + var hook = _step2.value; + htmlProps = hook(hookOptions, htmlProps, true); + } + } + } // Remove undefined values from htmlProps + + + var finalHTMLProps = {}; + var definedHTMLProps = htmlProps || {}; + + for (var prop in definedHTMLProps) { + if (definedHTMLProps[prop] !== undefined) { + finalHTMLProps[prop] = definedHTMLProps[prop]; + } + } + + return finalHTMLProps; + }; + + useHook.__useOptions = __useOptions; + var composedKeys = composedHooks.reduce(function (keys, hook) { + keys.push.apply(keys, hook.__keys || []); + return keys; + }, []); // It's used by createComponent to split option props (keys) and html props + + useHook.__keys = [].concat(composedKeys, ((_options$useState = options.useState) === null || _options$useState === void 0 ? void 0 : _options$useState.__keys) || [], options.keys || []); + useHook.unstable_propsAreEqual = options.propsAreEqual || ((_composedHooks$ = composedHooks[0]) === null || _composedHooks$ === void 0 ? void 0 : _composedHooks$.unstable_propsAreEqual) || shallowEqual["a" /* shallowEqual */]; + + if (false) {} + + return useHook; +} + + + + +/***/ }), +/* 52 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: external {"this":"React"} +var external_this_React_ = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/_rollupPluginBabelHelpers-0c84a174.js +var _rollupPluginBabelHelpers_0c84a174 = __webpack_require__(69); + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js +var useCreateElement = __webpack_require__(90); + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/splitProps.js +/** + * Splits an object (`props`) into a tuple where the first item is an object + * with the passed `keys`, and the second item is an object with these keys + * omitted. + * + * @example + * import { splitProps } from "reakit-utils"; + * + * splitProps({ a: "a", b: "b" }, ["a"]); // [{ a: "a" }, { b: "b" }] + */ +function splitProps(props, keys) { + var propsKeys = Object.keys(props); + var picked = {}; + var omitted = {}; + + for (var _i = 0, _propsKeys = propsKeys; _i < _propsKeys.length; _i++) { + var key = _propsKeys[_i]; + + if (keys.indexOf(key) >= 0) { + picked[key] = props[key]; + } else { + omitted[key] = props[key]; + } + } + + return [picked, omitted]; +} + + + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/shallowEqual.js +var shallowEqual = __webpack_require__(58); + +// CONCATENATED MODULE: ./node_modules/reakit-system/es/createComponent.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createComponent; }); + + + + + + + +function forwardRef(component) { + return /*#__PURE__*/Object(external_this_React_["forwardRef"])(component); +} + +function memo(component, propsAreEqual) { + return /*#__PURE__*/Object(external_this_React_["memo"])(component, propsAreEqual); +} + +/** + * Creates a React component. + * + * @example + * import { createComponent } from "reakit-system"; + * + * const A = createComponent({ as: "a" }); + * + * @param options + */ +function createComponent(_ref) { + var type = _ref.as, + useHook = _ref.useHook, + shouldMemo = _ref.memo, + _ref$propsAreEqual = _ref.propsAreEqual, + propsAreEqual = _ref$propsAreEqual === void 0 ? useHook === null || useHook === void 0 ? void 0 : useHook.unstable_propsAreEqual : _ref$propsAreEqual, + _ref$keys = _ref.keys, + keys = _ref$keys === void 0 ? (useHook === null || useHook === void 0 ? void 0 : useHook.__keys) || [] : _ref$keys, + _ref$useCreateElement = _ref.useCreateElement, + useCreateElement$1 = _ref$useCreateElement === void 0 ? useCreateElement["a" /* useCreateElement */] : _ref$useCreateElement; + + var Comp = function Comp(_ref2, ref) { + var _ref2$as = _ref2.as, + as = _ref2$as === void 0 ? type : _ref2$as, + props = Object(_rollupPluginBabelHelpers_0c84a174["b" /* a */])(_ref2, ["as"]); + + if (useHook) { + var _as$render; + + var _splitProps = splitProps(props, keys), + _options = _splitProps[0], + htmlProps = _splitProps[1]; + + var _useHook = useHook(_options, Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])({ + ref: ref + }, htmlProps)), + wrapElement = _useHook.wrapElement, + elementProps = Object(_rollupPluginBabelHelpers_0c84a174["b" /* a */])(_useHook, ["wrapElement"]); // @ts-ignore + + + var asKeys = ((_as$render = as.render) === null || _as$render === void 0 ? void 0 : _as$render.__keys) || as.__keys; + var asOptions = asKeys && splitProps(props, asKeys)[0]; + var allProps = asOptions ? Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])(Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])({}, elementProps), asOptions) : elementProps; + + var _element = useCreateElement$1(as, allProps); + + if (wrapElement) { + return wrapElement(_element); + } + + return _element; + } + + return useCreateElement$1(as, Object(_rollupPluginBabelHelpers_0c84a174["a" /* _ */])({ + ref: ref + }, props)); + }; + + if (false) {} + + Comp = forwardRef(Comp); + + if (shouldMemo) { + Comp = memo(Comp, propsAreEqual); + } + + Comp.__keys = keys; + Comp.unstable_propsAreEqual = propsAreEqual || shallowEqual["a" /* shallowEqual */]; + return Comp; +} + + + + +/***/ }), +/* 53 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return findFirstEnabledItem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return flatten; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return groupItems; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return findEnabledItemById; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getCurrentId; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return reverse; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useCompositeState; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60); +/* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(64); +/* harmony import */ var reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65); +/* harmony import */ var _Id_IdState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70); + + + + + + + +function reverse(array) { + return array.slice().reverse(); +} + +function isElementPreceding(element1, element2) { + return Boolean(element2.compareDocumentPosition(element1) & Node.DOCUMENT_POSITION_PRECEDING); +} + +function findDOMIndex(items, item) { + return items.findIndex(function (currentItem) { + if (!currentItem.ref.current || !item.ref.current) { + return false; + } + + return isElementPreceding(item.ref.current, currentItem.ref.current); + }); +} + +function findFirstEnabledItem(items, excludeId) { + if (excludeId) { + return items.find(function (item) { + return !item.disabled && item.id !== excludeId; + }); + } + + return items.find(function (item) { + return !item.disabled; + }); +} + +function findEnabledItemById(items, id) { + if (!id) return undefined; + return items === null || items === void 0 ? void 0 : items.find(function (item) { + return item.id === id && !item.disabled; + }); +} + +function groupItems(items) { + var groups = [[]]; + + var _loop = function _loop() { + var item = _step.value; + var group = groups.find(function (g) { + return !g[0] || g[0].groupId === item.groupId; + }); + + if (group) { + group.push(item); + } else { + groups.push([item]); + } + }; + + for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(items), _step; !(_step = _iterator()).done;) { + _loop(); + } + + return groups; +} + +function getMaxLength(rows) { + var maxLength = 0; + + for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(rows), _step; !(_step = _iterator()).done;) { + var length = _step.value.length; + + if (length > maxLength) { + maxLength = length; + } + } + + return maxLength; +} + +/** + * Turns [row1, row1, row2, row2] into [row1, row2, row1, row2] + */ + +function verticalizeItems(items) { + var groups = groupItems(items); + var maxLength = getMaxLength(groups); + var verticalized = []; + + for (var i = 0; i < maxLength; i += 1) { + for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(groups), _step; !(_step = _iterator()).done;) { + var group = _step.value; + + if (group[i]) { + verticalized.push(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, group[i]), {}, { + // If there's no groupId, it means that it's not a grid composite, + // but a single row instead. So, instead of verticalizing it, that + // is, assigning a different groupId based on the column index, we + // keep it undefined so they will be part of the same group. + // It's useful when using up/down on one-dimensional composites. + groupId: group[i].groupId ? "" + i : undefined + })); + } + } + } + + return verticalized; +} + +function flatten(grid) { + var flattened = []; + + for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(grid), _step; !(_step = _iterator()).done;) { + var row = _step.value; + flattened.push.apply(flattened, row); + } + + return flattened; +} + +/** + * Turns [[row1, row1], [row2]] into [[row1, row1], [row2, row2]] + */ + +function fillGroups(groups) { + var maxLength = getMaxLength(groups); + + for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(groups), _step; !(_step = _iterator()).done;) { + var group = _step.value; + + if (group.length < maxLength) { + for (var i = 0; i < maxLength; i += 1) { + if (!group[i]) { + group[i] = { + id: "__EMPTY_ITEM__", + disabled: true, + ref: { + current: null + }, + groupId: group[i - 1].groupId + }; + } + } + } + } + + return groups; +} + +function getCurrentId(options, passedId) { + var _findFirstEnabledItem; + + if (passedId || passedId === null) { + return passedId; + } + + if (options.currentId || options.currentId === null) { + return options.currentId; + } + + return (_findFirstEnabledItem = findFirstEnabledItem(options.items || [])) === null || _findFirstEnabledItem === void 0 ? void 0 : _findFirstEnabledItem.id; +} + +var nullItem = { + id: null, + ref: { + current: null + } +}; +function placeItemsAfter(items, id, shouldInsertNullItem) { + var index = items.findIndex(function (item) { + return item.id === id; + }); + return [].concat(items.slice(index + 1), shouldInsertNullItem ? [nullItem] : [], items.slice(0, index)); +} + +function getItemsInGroup(items, groupId) { + return items.filter(function (item) { + return item.groupId === groupId; + }); +} + +var map = { + horizontal: "vertical", + vertical: "horizontal" +}; +function getOppositeOrientation(orientation) { + return orientation && map[orientation]; +} + +function addItemAtIndex(array, item, index) { + if (!(index in array)) { + return [].concat(array, [item]); + } + + return [].concat(array.slice(0, index), [item], array.slice(index)); +} + +function sortBasedOnDOMPosition(items) { + var copy = items.slice(); + var isOrderDifferent = false; + copy.sort(function (a, b) { + var elementA = a.ref.current; + var elementB = b.ref.current; + + if (elementA && elementB && isElementPreceding(elementA, elementB)) { + isOrderDifferent = true; + return -1; + } + + return 0; + }); + + if (isOrderDifferent) { + return copy; + } + + return items; +} + +function reducer(state, action) { + var virtual = state.unstable_virtual, + rtl = state.rtl, + orientation = state.orientation, + items = state.items, + groups = state.groups, + currentId = state.currentId, + loop = state.loop, + wrap = state.wrap, + pastIds = state.pastIds, + moves = state.unstable_moves, + initialVirtual = state.initialVirtual, + initialRTL = state.initialRTL, + initialOrientation = state.initialOrientation, + initialCurrentId = state.initialCurrentId, + initialLoop = state.initialLoop, + initialWrap = state.initialWrap, + hasSetCurrentId = state.hasSetCurrentId; + + switch (action.type) { + case "registerGroup": + { + var _group = action.group; // If there are no groups yet, just add it as the first one + + if (groups.length === 0) { + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + groups: [_group] + }); + } // Finds the group index based on DOM position + + + var index = findDOMIndex(groups, _group); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + groups: addItemAtIndex(groups, _group, index) + }); + } + + case "unregisterGroup": + { + var _id = action.id; + var nextGroups = groups.filter(function (group) { + return group.id !== _id; + }); // The group isn't registered, so do nothing + + if (nextGroups.length === groups.length) { + return state; + } + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + groups: nextGroups + }); + } + + case "registerItem": + { + var _item = action.item; // Finds the item group based on the DOM hierarchy + + var _group2 = groups.find(function (r) { + var _r$ref$current; + + return (_r$ref$current = r.ref.current) === null || _r$ref$current === void 0 ? void 0 : _r$ref$current.contains(_item.ref.current); + }); // Group will be null if it's a one-dimensional composite + + + var nextItem = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + groupId: _group2 === null || _group2 === void 0 ? void 0 : _group2.id + }, _item); + + var _index = findDOMIndex(items, nextItem); + + var nextState = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + items: addItemAtIndex(items, nextItem, _index) + }); + + if (!hasSetCurrentId && !moves && initialCurrentId === undefined) { + var _findFirstEnabledItem; + + // Sets currentId to the first enabled item. This runs whenever an item + // is registered because the first enabled item may be registered + // asynchronously. + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, nextState), {}, { + currentId: (_findFirstEnabledItem = findFirstEnabledItem(nextState.items)) === null || _findFirstEnabledItem === void 0 ? void 0 : _findFirstEnabledItem.id + }); + } + + return nextState; + } + + case "unregisterItem": + { + var _id2 = action.id; + var nextItems = items.filter(function (item) { + return item.id !== _id2; + }); // The item isn't registered, so do nothing + + if (nextItems.length === items.length) { + return state; + } // Filters out the item that is being removed from the pastIds list + + + var nextPastIds = pastIds.filter(function (pastId) { + return pastId !== _id2; + }); + + var _nextState = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + pastIds: nextPastIds, + items: nextItems + }); // If the current item is the item that is being removed, focus pastId + + + if (currentId && currentId === _id2) { + var nextId = getCurrentId(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState), {}, { + currentId: nextPastIds[0] + })); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState), {}, { + currentId: nextId + }); + } + + return _nextState; + } + + case "move": + { + var _id3 = action.id; // move() does nothing + + if (_id3 === undefined) { + return state; + } // Removes the current item and the item that is receiving focus from the + // pastIds list + + + var filteredPastIds = pastIds.filter(function (pastId) { + return pastId !== currentId && pastId !== _id3; + }); // If there's a currentId, add it to the pastIds list so it can be focused + // if the new item gets removed or disabled + + var _nextPastIds = currentId ? [currentId].concat(filteredPastIds) : filteredPastIds; + + var _nextState2 = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + pastIds: _nextPastIds + }); // move(null) will focus the composite element itself, not an item + + + if (_id3 === null) { + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState2), {}, { + unstable_moves: moves + 1, + currentId: getCurrentId(_nextState2, _id3) + }); + } + + var _item2 = findEnabledItemById(items, _id3); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState2), {}, { + unstable_moves: _item2 ? moves + 1 : moves, + currentId: getCurrentId(_nextState2, _item2 === null || _item2 === void 0 ? void 0 : _item2.id) + }); + } + + case "next": + { + // If there's no item focused, we just move the first one + if (currentId == null) { + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "first" + })); + } // RTL doesn't make sense on vertical navigation + + + var isHorizontal = orientation !== "vertical"; + var isRTL = rtl && isHorizontal; + var allItems = isRTL ? reverse(items) : items; + var currentItem = allItems.find(function (item) { + return item.id === currentId; + }); // If there's no item focused, we just move the first one + + if (!currentItem) { + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "first" + })); + } + + var isGrid = !!currentItem.groupId; + var currentIndex = allItems.indexOf(currentItem); + + var _nextItems = allItems.slice(currentIndex + 1); + + var nextItemsInGroup = getItemsInGroup(_nextItems, currentItem.groupId); // Home, End + + if (action.allTheWay) { + // We reverse so we can get the last enabled item in the group. If it's + // RTL, nextItems and nextItemsInGroup are already reversed and don't + // have the items before the current one anymore. So we have to get + // items in group again with allItems. + var _nextItem2 = findFirstEnabledItem(isRTL ? getItemsInGroup(allItems, currentItem.groupId) : reverse(nextItemsInGroup)); + + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "move", + id: _nextItem2 === null || _nextItem2 === void 0 ? void 0 : _nextItem2.id + })); + } + + var oppositeOrientation = getOppositeOrientation( // If it's a grid and orientation is not set, it's a next/previous + // call, which is inherently horizontal. up/down will call next with + // orientation set to vertical by default (see below on up/down cases). + isGrid ? orientation || "horizontal" : orientation); + var canLoop = loop && loop !== oppositeOrientation; + var canWrap = isGrid && wrap && wrap !== oppositeOrientation; + var hasNullItem = // `previous` and `up` will set action.hasNullItem, but when calling + // next directly, hasNullItem will only be true if it's not a grid and + // loop is set to true, which means that pressing right or down keys on + // grids will never focus the composite element. On one-dimensional + // composites that don't loop, pressing right or down keys also doesn't + // focus the composite element. + action.hasNullItem || !isGrid && canLoop && initialCurrentId === null; + + if (canLoop) { + var loopItems = canWrap && !hasNullItem ? allItems : getItemsInGroup(allItems, currentItem.groupId); // Turns [0, 1, current, 3, 4] into [3, 4, 0, 1] + + var sortedItems = placeItemsAfter(loopItems, currentId, hasNullItem); + + var _nextItem3 = findFirstEnabledItem(sortedItems, currentId); + + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "move", + id: _nextItem3 === null || _nextItem3 === void 0 ? void 0 : _nextItem3.id + })); + } + + if (canWrap) { + var _nextItem4 = findFirstEnabledItem( // We can use nextItems, which contains all the next items, including + // items from other groups, to wrap between groups. However, if there + // is a null item (the composite element), we'll only use the next + // items in the group. So moving next from the last item will focus + // the composite element (null). On grid composites, horizontal + // navigation never focuses the composite element, only vertical. + hasNullItem ? nextItemsInGroup : _nextItems, currentId); + + var _nextId = hasNullItem ? (_nextItem4 === null || _nextItem4 === void 0 ? void 0 : _nextItem4.id) || null : _nextItem4 === null || _nextItem4 === void 0 ? void 0 : _nextItem4.id; + + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "move", + id: _nextId + })); + } + + var _nextItem = findFirstEnabledItem(nextItemsInGroup, currentId); + + if (!_nextItem && hasNullItem) { + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "move", + id: null + })); + } + + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "move", + id: _nextItem === null || _nextItem === void 0 ? void 0 : _nextItem.id + })); + } + + case "previous": + { + // If currentId is initially set to null, the composite element will be + // focusable while navigating with arrow keys. But, if it's a grid, we + // don't want to focus the composite element with horizontal navigation. + var _isGrid = !!groups.length; + + var _hasNullItem = !_isGrid && initialCurrentId === null; + + var _nextState3 = reducer(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + items: reverse(items) + }), Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "next", + hasNullItem: _hasNullItem + })); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState3), {}, { + items: items + }); + } + + case "down": + { + // First, we make sure groups have the same number of items by filling it + // with disabled fake items. Then, we reorganize the items list so + // [1-1, 1-2, 2-1, 2-2] becomes [1-1, 2-1, 1-2, 2-2]. + var verticalItems = verticalizeItems(flatten(fillGroups(groupItems(items)))); + + var _canLoop = loop && loop !== "horizontal"; // Pressing down arrow key will only focus the composite element if loop + // is true or vertical. + + + var _hasNullItem2 = _canLoop && initialCurrentId === null; + + var _nextState4 = reducer(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + orientation: "vertical", + items: verticalItems + }), Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "next", + hasNullItem: _hasNullItem2 + })); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState4), {}, { + orientation: orientation, + items: items + }); + } + + case "up": + { + var _verticalItems = verticalizeItems(reverse(flatten(fillGroups(groupItems(items))))); // If currentId is initially set to null, we'll always focus the + // composite element when the up arrow key is pressed in the first row. + + + var _hasNullItem3 = initialCurrentId === null; + + var _nextState5 = reducer(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + orientation: "vertical", + items: _verticalItems + }), Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "next", + hasNullItem: _hasNullItem3 + })); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState5), {}, { + orientation: orientation, + items: items + }); + } + + case "first": + { + var firstItem = findFirstEnabledItem(items); + return reducer(state, Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "move", + id: firstItem === null || firstItem === void 0 ? void 0 : firstItem.id + })); + } + + case "last": + { + var _nextState6 = reducer(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + items: reverse(items) + }), Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, action), {}, { + type: "first" + })); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, _nextState6), {}, { + items: items + }); + } + + case "sort": + { + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + items: sortBasedOnDOMPosition(items), + groups: sortBasedOnDOMPosition(groups) + }); + } + + case "setVirtual": + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + unstable_virtual: Object(reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__[/* applyState */ "a"])(action.virtual, virtual) + }); + + case "setRTL": + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + rtl: Object(reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__[/* applyState */ "a"])(action.rtl, rtl) + }); + + case "setOrientation": + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + orientation: Object(reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__[/* applyState */ "a"])(action.orientation, orientation) + }); + + case "setCurrentId": + { + var nextCurrentId = getCurrentId(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + currentId: Object(reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__[/* applyState */ "a"])(action.currentId, currentId) + })); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + currentId: nextCurrentId, + hasSetCurrentId: true + }); + } + + case "setLoop": + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + loop: Object(reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__[/* applyState */ "a"])(action.loop, loop) + }); + + case "setWrap": + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + wrap: Object(reakit_utils_applyState__WEBPACK_IMPORTED_MODULE_4__[/* applyState */ "a"])(action.wrap, wrap) + }); + + case "reset": + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + unstable_virtual: initialVirtual, + rtl: initialRTL, + orientation: initialOrientation, + currentId: getCurrentId(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, state), {}, { + currentId: initialCurrentId + })), + loop: initialLoop, + wrap: initialWrap, + unstable_moves: 0, + pastIds: [] + }); + + default: + throw new Error(); + } +} + +function useAction(fn) { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(fn, []); +} + +function useIsUnmountedRef() { + var isUnmountedRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(false); + Object(reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_2__[/* useIsomorphicEffect */ "a"])(function () { + return function () { + isUnmountedRef.current = true; + }; + }, []); + return isUnmountedRef; +} + +function useCompositeState(initialState) { + if (initialState === void 0) { + initialState = {}; + } + + var _useSealedState = Object(reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_3__[/* useSealedState */ "a"])(initialState), + _useSealedState$unsta = _useSealedState.unstable_virtual, + virtual = _useSealedState$unsta === void 0 ? false : _useSealedState$unsta, + _useSealedState$rtl = _useSealedState.rtl, + rtl = _useSealedState$rtl === void 0 ? false : _useSealedState$rtl, + orientation = _useSealedState.orientation, + currentId = _useSealedState.currentId, + _useSealedState$loop = _useSealedState.loop, + loop = _useSealedState$loop === void 0 ? false : _useSealedState$loop, + _useSealedState$wrap = _useSealedState.wrap, + wrap = _useSealedState$wrap === void 0 ? false : _useSealedState$wrap, + sealed = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_useSealedState, ["unstable_virtual", "rtl", "orientation", "currentId", "loop", "wrap"]); + + var _React$useReducer = Object(react__WEBPACK_IMPORTED_MODULE_1__["useReducer"])(reducer, { + unstable_virtual: virtual, + rtl: rtl, + orientation: orientation, + items: [], + groups: [], + currentId: currentId, + loop: loop, + wrap: wrap, + unstable_moves: 0, + pastIds: [], + initialVirtual: virtual, + initialRTL: rtl, + initialOrientation: orientation, + initialCurrentId: currentId, + initialLoop: loop, + initialWrap: wrap + }), + _React$useReducer$ = _React$useReducer[0], + pastIds = _React$useReducer$.pastIds, + initialVirtual = _React$useReducer$.initialVirtual, + initialRTL = _React$useReducer$.initialRTL, + initialOrientation = _React$useReducer$.initialOrientation, + initialCurrentId = _React$useReducer$.initialCurrentId, + initialLoop = _React$useReducer$.initialLoop, + initialWrap = _React$useReducer$.initialWrap, + hasSetCurrentId = _React$useReducer$.hasSetCurrentId, + state = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_React$useReducer$, ["pastIds", "initialVirtual", "initialRTL", "initialOrientation", "initialCurrentId", "initialLoop", "initialWrap", "hasSetCurrentId"]), + dispatch = _React$useReducer[1]; + + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])(false), + hasActiveWidget = _React$useState[0], + setHasActiveWidget = _React$useState[1]; + + var idState = Object(_Id_IdState_js__WEBPACK_IMPORTED_MODULE_5__[/* unstable_useIdState */ "a"])(sealed); // register/unregister may be called when this component is unmounted. We + // store the unmounted state here so we don't update the state if it's true. + // This only happens in a very specific situation. + // See https://github.com/reakit/reakit/issues/650 + + var isUnmountedRef = useIsUnmountedRef(); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, idState), state), {}, { + unstable_hasActiveWidget: hasActiveWidget, + unstable_setHasActiveWidget: setHasActiveWidget, + registerItem: useAction(function (item) { + if (isUnmountedRef.current) return; + dispatch({ + type: "registerItem", + item: item + }); + }), + unregisterItem: useAction(function (id) { + if (isUnmountedRef.current) return; + dispatch({ + type: "unregisterItem", + id: id + }); + }), + registerGroup: useAction(function (group) { + if (isUnmountedRef.current) return; + dispatch({ + type: "registerGroup", + group: group + }); + }), + unregisterGroup: useAction(function (id) { + if (isUnmountedRef.current) return; + dispatch({ + type: "unregisterGroup", + id: id + }); + }), + move: useAction(function (id) { + return dispatch({ + type: "move", + id: id + }); + }), + next: useAction(function (allTheWay) { + return dispatch({ + type: "next", + allTheWay: allTheWay + }); + }), + previous: useAction(function (allTheWay) { + return dispatch({ + type: "previous", + allTheWay: allTheWay + }); + }), + up: useAction(function (allTheWay) { + return dispatch({ + type: "up", + allTheWay: allTheWay + }); + }), + down: useAction(function (allTheWay) { + return dispatch({ + type: "down", + allTheWay: allTheWay + }); + }), + first: useAction(function () { + return dispatch({ + type: "first" + }); + }), + last: useAction(function () { + return dispatch({ + type: "last" + }); + }), + unstable_sort: useAction(function () { + return dispatch({ + type: "sort" + }); + }), + unstable_setVirtual: useAction(function (value) { + return dispatch({ + type: "setVirtual", + virtual: value + }); + }), + setRTL: useAction(function (value) { + return dispatch({ + type: "setRTL", + rtl: value + }); + }), + setOrientation: useAction(function (value) { + return dispatch({ + type: "setOrientation", + orientation: value + }); + }), + setCurrentId: useAction(function (value) { + return dispatch({ + type: "setCurrentId", + currentId: value + }); + }), + setLoop: useAction(function (value) { + return dispatch({ + type: "setLoop", + loop: value + }); + }), + setWrap: useAction(function (value) { + return dispatch({ + type: "setWrap", + wrap: value + }); + }), + reset: useAction(function () { + return dispatch({ + type: "reset" + }); + }) + }); +} +var keys = [].concat(_Id_IdState_js__WEBPACK_IMPORTED_MODULE_5__[/* unstable_useIdState */ "a"].__keys, ["unstable_virtual", "rtl", "orientation", "items", "groups", "currentId", "loop", "wrap", "unstable_moves", "unstable_hasActiveWidget", "registerItem", "unregisterItem", "registerGroup", "unregisterGroup", "move", "next", "previous", "up", "down", "first", "last", "unstable_sort", "unstable_setVirtual", "setRTL", "setOrientation", "setCurrentId", "setLoop", "setWrap", "reset", "unstable_setHasActiveWidget"]); +useCompositeState.__keys = keys; -module.exports = true ? __webpack_require__(347) : undefined; /***/ }), /* 54 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useLiveRef; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _useIsomorphicEffect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60); + + + +/** + * A `React.Ref` that keeps track of the passed `value`. + */ + +function useLiveRef(value) { + var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value); + Object(_useIsomorphicEffect_js__WEBPACK_IMPORTED_MODULE_1__[/* useIsomorphicEffect */ "a"])(function () { + ref.current = value; + }); + return ref; +} + + + + +/***/ }), +/* 55 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["isShallowEqual"]; }()); + +/***/ }), +/* 56 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -2391,19 +3725,906 @@ else {} /***/ }), -/* 55 */, -/* 56 */, /* 57 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; }); +/** + * Returns `element.ownerDocument || window.document`. + */ +function getDocument(element) { + return element ? element.ownerDocument || element : window.document; +} + + + + +/***/ }), +/* 58 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return shallowEqual; }); +/** + * Compares two objects. + * + * @example + * import { shallowEqual } from "reakit-utils"; + * + * shallowEqual({ a: "a" }, {}); // false + * shallowEqual({ a: "a" }, { b: "b" }); // false + * shallowEqual({ a: "a" }, { a: "a" }); // true + * shallowEqual({ a: "a" }, { a: "a", b: "b" }); // false + */ +function shallowEqual(objA, objB) { + if (objA === objB) return true; + if (!objA) return false; + if (!objB) return false; + if (typeof objA !== "object") return false; + if (typeof objB !== "object") return false; + var aKeys = Object.keys(objA); + var bKeys = Object.keys(objB); + var length = aKeys.length; + if (bKeys.length !== length) return false; + + for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) { + var key = _aKeys[_i]; + + if (objA[key] !== objB[key]) { + return false; + } + } + + return true; +} + + + + +/***/ }), +/* 59 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isSelfTarget; }); +/** + * Returns `true` if `event.target` and `event.currentTarget` are the same. + */ +function isSelfTarget(event) { + return event.target === event.currentTarget; +} + + + + +/***/ }), +/* 60 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useIsomorphicEffect; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); + + +/** + * `React.useLayoutEffect` that fallbacks to `React.useEffect` on server side + * rendering. + */ + +var useIsomorphicEffect = typeof window === "undefined" ? react__WEBPACK_IMPORTED_MODULE_0__["useEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"]; + + + + +/***/ }), +/* 61 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getActiveElement; }); +/* harmony import */ var _getDocument_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57); + + +/** + * Returns `element.ownerDocument.activeElement`. + */ + +function getActiveElement(element) { + return Object(_getDocument_js__WEBPACK_IMPORTED_MODULE_0__[/* getDocument */ "a"])(element).activeElement; +} + + + + +/***/ }), +/* 62 */, +/* 63 */, +/* 64 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSealedState; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); + + +/** + * React custom hook that returns the very first value passed to `initialState`, + * even if it changes between re-renders. + */ +function useSealedState(initialState) { + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(initialState), + sealed = _React$useState[0]; + + return sealed; +} + + + + +/***/ }), +/* 65 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyState; }); +function isUpdater(argument) { + return typeof argument === "function"; +} +/** + * Receives a `setState` argument and calls it with `currentValue` if it's a + * function. Otherwise return the argument as the new value. + * + * @example + * import { applyState } from "reakit-utils"; + * + * applyState((value) => value + 1, 1); // 2 + * applyState(2, 1); // 2 + */ + + +function applyState(argument, currentValue) { + if (isUpdater(argument)) { + return argument(currentValue); + } + + return argument; +} + + + + +/***/ }), +/* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineProperties = __webpack_require__(79); +Object.defineProperty(exports, "__esModule", { + value: true +}); +var DISPLAY_FORMAT = exports.DISPLAY_FORMAT = 'L'; +var ISO_FORMAT = exports.ISO_FORMAT = 'YYYY-MM-DD'; +var ISO_MONTH_FORMAT = exports.ISO_MONTH_FORMAT = 'YYYY-MM'; -var implementation = __webpack_require__(211); -var getPolyfill = __webpack_require__(212); -var shim = __webpack_require__(343); +var START_DATE = exports.START_DATE = 'startDate'; +var END_DATE = exports.END_DATE = 'endDate'; + +var HORIZONTAL_ORIENTATION = exports.HORIZONTAL_ORIENTATION = 'horizontal'; +var VERTICAL_ORIENTATION = exports.VERTICAL_ORIENTATION = 'vertical'; +var VERTICAL_SCROLLABLE = exports.VERTICAL_SCROLLABLE = 'verticalScrollable'; + +var ICON_BEFORE_POSITION = exports.ICON_BEFORE_POSITION = 'before'; +var ICON_AFTER_POSITION = exports.ICON_AFTER_POSITION = 'after'; + +var INFO_POSITION_TOP = exports.INFO_POSITION_TOP = 'top'; +var INFO_POSITION_BOTTOM = exports.INFO_POSITION_BOTTOM = 'bottom'; +var INFO_POSITION_BEFORE = exports.INFO_POSITION_BEFORE = 'before'; +var INFO_POSITION_AFTER = exports.INFO_POSITION_AFTER = 'after'; + +var ANCHOR_LEFT = exports.ANCHOR_LEFT = 'left'; +var ANCHOR_RIGHT = exports.ANCHOR_RIGHT = 'right'; + +var OPEN_DOWN = exports.OPEN_DOWN = 'down'; +var OPEN_UP = exports.OPEN_UP = 'up'; + +var DAY_SIZE = exports.DAY_SIZE = 39; +var BLOCKED_MODIFIER = exports.BLOCKED_MODIFIER = 'blocked'; +var WEEKDAYS = exports.WEEKDAYS = [0, 1, 2, 3, 4, 5, 6]; + +var FANG_WIDTH_PX = exports.FANG_WIDTH_PX = 20; +var FANG_HEIGHT_PX = exports.FANG_HEIGHT_PX = 10; +var DEFAULT_VERTICAL_SPACING = exports.DEFAULT_VERTICAL_SPACING = 22; + +var MODIFIER_KEY_NAMES = exports.MODIFIER_KEY_NAMES = new Set(['Shift', 'Control', 'Alt', 'Meta']); + +/***/ }), +/* 67 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useForkRef; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); + + +// https://github.com/mui-org/material-ui/blob/2bcc874cf07b81202968f769cb9c2398c7c11311/packages/material-ui/src/utils/useForkRef.js + +function setRef(ref, value) { + if (value === void 0) { + value = null; + } + + if (!ref) return; + + if (typeof ref === "function") { + ref(value); + } else { + ref.current = value; + } +} +/** + * Merges up to two React Refs into a single memoized function React Ref so you + * can pass it to an element. + * + * @example + * import React from "react"; + * import { useForkRef } from "reakit-utils"; + * + * const Component = React.forwardRef((props, ref) => { + * const internalRef = React.useRef(); + * return
    ; + * }); + */ + + +function useForkRef(refA, refB) { + return Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () { + if (refA == null && refB == null) { + return null; + } + + return function (value) { + setRef(refA, value); + setRef(refB, value); + }; + }, [refA, refB]); +} + + + + +/***/ }), +/* 68 */, +/* 69 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _objectWithoutPropertiesLoose; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _createForOfIteratorHelperLoose; }); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + if (enumerableOnly) symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + keys.push.apply(keys, symbols); + } + + return keys; +} + +function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + + if (i % 2) { + ownKeys(Object(source), true).forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + } + + return target; +} + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); +} + +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + + return arr2; +} + +function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it; + + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + return function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + + it = o[Symbol.iterator](); + return it.next.bind(it); +} + + + + +/***/ }), +/* 70 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_useIdState; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64); +/* harmony import */ var _IdProvider_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73); + + + + +function unstable_useIdState(initialState) { + if (initialState === void 0) { + initialState = {}; + } + + var _useSealedState = Object(reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_1__[/* useSealedState */ "a"])(initialState), + initialBaseId = _useSealedState.baseId; + + var generateId = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_IdProvider_js__WEBPACK_IMPORTED_MODULE_2__[/* unstable_IdContext */ "a"]); + var idCountRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0); + + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(function () { + return initialBaseId || generateId(); + }), + baseId = _React$useState[0], + setBaseId = _React$useState[1]; + + return { + baseId: baseId, + unstable_setBaseId: setBaseId, + unstable_idCountRef: idCountRef + }; +} +var keys = ["baseId", "unstable_setBaseId", "unstable_idCountRef"]; +unstable_useIdState.__keys = keys; + + + + +/***/ }), +/* 71 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export Box */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useBox; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51); +/* harmony import */ var reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58); + + + + + +var useBox = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ + name: "Box", + keys: ["unstable_system"], + propsAreEqual: function propsAreEqual(prev, next) { + var prevSystem = prev.unstable_system, + prevProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(prev, ["unstable_system"]); + + var nextSystem = next.unstable_system, + nextProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(next, ["unstable_system"]); + + if (prevSystem !== nextSystem && !Object(reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__[/* shallowEqual */ "a"])(prevSystem, nextSystem)) { + return false; + } + + return Object(reakit_utils_shallowEqual__WEBPACK_IMPORTED_MODULE_3__[/* shallowEqual */ "a"])(prevProps, nextProps); + } +}); +var Box = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ + as: "div", + useHook: useBox +}); + + + + +/***/ }), +/* 72 */, +/* 73 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_IdContext; }); +/* unused harmony export unstable_IdProvider */ +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); + + +var defaultPrefix = "id"; +function generateRandomString(prefix) { + if (prefix === void 0) { + prefix = defaultPrefix; + } + + return "" + (prefix ? prefix + "-" : "") + Math.random().toString(32).substr(2, 6); +} + +var unstable_IdContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])(generateRandomString); +function unstable_IdProvider(_ref) { + var children = _ref.children, + _ref$prefix = _ref.prefix, + prefix = _ref$prefix === void 0 ? defaultPrefix : _ref$prefix; + var count = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0); + var generateId = Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (localPrefix) { + if (localPrefix === void 0) { + localPrefix = prefix; + } + + return "" + (localPrefix ? localPrefix + "-" : "") + ++count.current; + }, [prefix]); + return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(unstable_IdContext.Provider, { + value: generateId + }, children); +} + + + + +/***/ }), +/* 74 */, +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = true ? __webpack_require__(351) : undefined; + + + +/***/ }), +/* 76 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(106); +/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(157); + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +/** + * Time over children to wait before showing tooltip + * + * @type {number} + */ + +var TOOLTIP_DELAY = 700; + +var Tooltip = /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Tooltip, _Component); + + var _super = _createSuper(Tooltip); + + function Tooltip() { + var _this; + + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, Tooltip); + + _this = _super.apply(this, arguments); + _this.delayedSetIsOver = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["debounce"])(function (isOver) { + return _this.setState({ + isOver: isOver + }); + }, TOOLTIP_DELAY); + /** + * Prebound `isInMouseDown` handler, created as a constant reference to + * assure ability to remove in component unmount. + * + * @type {Function} + */ + + _this.cancelIsMouseDown = _this.createSetIsMouseDown(false); + /** + * Whether a the mouse is currently pressed, used in determining whether + * to handle a focus event as displaying the tooltip immediately. + * + * @type {boolean} + */ + + _this.isInMouseDown = false; + _this.state = { + isOver: false + }; + return _this; + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Tooltip, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.delayedSetIsOver.cancel(); + document.removeEventListener('mouseup', this.cancelIsMouseDown); + } + }, { + key: "emitToChild", + value: function emitToChild(eventName, event) { + var children = this.props.children; + + if (_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].count(children) !== 1) { + return; + } + + var child = _wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].only(children); + + if (typeof child.props[eventName] === 'function') { + child.props[eventName](event); + } + } + }, { + key: "createToggleIsOver", + value: function createToggleIsOver(eventName, isDelayed) { + var _this2 = this; + + return function (event) { + // Preserve original child callback behavior + _this2.emitToChild(eventName, event); // Mouse events behave unreliably in React for disabled elements, + // firing on mouseenter but not mouseleave. Further, the default + // behavior for disabled elements in some browsers is to ignore + // mouse events. Don't bother trying to to handle them. + // + // See: https://github.com/facebook/react/issues/4251 + + + if (event.currentTarget.disabled) { + return; + } // A focus event will occur as a result of a mouse click, but it + // should be disambiguated between interacting with the button and + // using an explicit focus shift as a cue to display the tooltip. + + + if ('focus' === event.type && _this2.isInMouseDown) { + return; + } // Needed in case unsetting is over while delayed set pending, i.e. + // quickly blur/mouseleave before delayedSetIsOver is called + + + _this2.delayedSetIsOver.cancel(); + + var isOver = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["includes"])(['focus', 'mouseenter'], event.type); + + if (isOver === _this2.state.isOver) { + return; + } + + if (isDelayed) { + _this2.delayedSetIsOver(isOver); + } else { + _this2.setState({ + isOver: isOver + }); + } + }; + } + /** + * Creates an event callback to handle assignment of the `isInMouseDown` + * instance property in response to a `mousedown` or `mouseup` event. + * + * @param {boolean} isMouseDown Whether handler is to be created for the + * `mousedown` event, as opposed to `mouseup`. + * + * @return {Function} Event callback handler. + */ + + }, { + key: "createSetIsMouseDown", + value: function createSetIsMouseDown(isMouseDown) { + var _this3 = this; + + return function (event) { + // Preserve original child callback behavior + _this3.emitToChild(isMouseDown ? 'onMouseDown' : 'onMouseUp', event); // On mouse down, the next `mouseup` should revert the value of the + // instance property and remove its own event handler. The bind is + // made on the document since the `mouseup` might not occur within + // the bounds of the element. + + + document[isMouseDown ? 'addEventListener' : 'removeEventListener']('mouseup', _this3.cancelIsMouseDown); + _this3.isInMouseDown = isMouseDown; + }; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + position = _this$props.position, + text = _this$props.text, + shortcut = _this$props.shortcut; + + if (_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].count(children) !== 1) { + if (false) {} + + return children; + } + + var child = _wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].only(children); + var isOver = this.state.isOver; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(child, { + onMouseEnter: this.createToggleIsOver('onMouseEnter', true), + onMouseLeave: this.createToggleIsOver('onMouseLeave'), + onClick: this.createToggleIsOver('onClick'), + onFocus: this.createToggleIsOver('onFocus'), + onBlur: this.createToggleIsOver('onBlur'), + onMouseDown: this.createSetIsMouseDown(true), + children: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["concatChildren"])(child.props.children, isOver && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_popover__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], { + focusOnMount: false, + position: position, + className: "components-tooltip", + "aria-hidden": "true", + animate: false, + noArrow: true + }, text, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_shortcut__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], { + className: "components-tooltip__shortcut", + shortcut: shortcut + }))) + }); + } + }]); + + return Tooltip; +}(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]); + +/* harmony default export */ __webpack_exports__["a"] = (Tooltip); + + +/***/ }), +/* 77 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/** + * WordPress dependencies + */ + +var ToolbarContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])(); +/* harmony default export */ __webpack_exports__["a"] = (ToolbarContext); + + +/***/ }), +/* 78 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _dashicon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(142); + + + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function Icon(_ref) { + var _ref$icon = _ref.icon, + icon = _ref$icon === void 0 ? null : _ref$icon, + size = _ref.size, + additionalProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_ref, ["icon", "size"]); + + // Dashicons should be 20x20 by default. + var dashiconSize = size || 20; + + if ('string' === typeof icon) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_dashicon__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({ + icon: icon, + size: dashiconSize + }, additionalProps)); + } + + if (icon && _dashicon__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"] === icon.type) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(icon, _objectSpread({ + size: dashiconSize + }, additionalProps)); + } // Icons should be 24x24 by default. + + + var iconSize = size || 24; + + if ('function' === typeof icon) { + if (icon.prototype instanceof _wordpress_element__WEBPACK_IMPORTED_MODULE_3__["Component"]) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(icon, _objectSpread({ + size: iconSize + }, additionalProps)); + } + + return icon(_objectSpread({ + size: iconSize + }, additionalProps)); + } + + if (icon && (icon.type === 'svg' || icon.type === _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__["SVG"])) { + var appliedProps = _objectSpread({ + width: iconSize, + height: iconSize + }, icon.props, {}, additionalProps); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__["SVG"], appliedProps); + } + + if (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["isValidElement"])(icon)) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(icon, _objectSpread({ + size: iconSize + }, additionalProps)); + } + + return icon; +} + +/* harmony default export */ __webpack_exports__["a"] = (Icon); + + +/***/ }), +/* 79 */, +/* 80 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ES5Type = __webpack_require__(312); + +// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values + +module.exports = function Type(x) { + if (typeof x === 'symbol') { + return 'Symbol'; + } + return ES5Type(x); +}; + + +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var bind = __webpack_require__(110); + +module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); + + +/***/ }), +/* 82 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var defineProperties = __webpack_require__(91); + +var implementation = __webpack_require__(216); +var getPolyfill = __webpack_require__(217); +var shim = __webpack_require__(348); var polyfill = getPolyfill(); @@ -2417,8 +4638,875 @@ module.exports = polyfill; /***/ }), -/* 58 */, -/* 59 */ +/* 83 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return hasFocusWithin; }); +/* harmony import */ var _getActiveElement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61); + + + +/** + * Checks if `element` has focus. + * + * @example + * import { hasFocusWithin } from "reakit-utils"; + * + * hasFocusWithin(document.getElementById("id")); + */ + +function hasFocusWithin(element) { + var activeElement = Object(_getActiveElement_js__WEBPACK_IMPORTED_MODULE_0__[/* getActiveElement */ "a"])(element); + if (!activeElement) return false; + if (element.contains(activeElement)) return true; + var activeDescendant = activeElement.getAttribute("aria-activedescendant"); + if (!activeDescendant) return false; + return activeDescendant === element.id || !!element.querySelector("#" + activeDescendant); +} + + + + +/***/ }), +/* 84 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isButton; }); +var buttonInputTypes = ["button", "color", "file", "image", "reset", "submit"]; +/** + * Checks whether `element` is a native HTML button element or not. + * + * @example + * import { isButton } from "reakit-utils"; + * + * isButton(document.querySelector("button")); // true + * isButton(document.querySelector("input[type='button']")); // true + * isButton(document.querySelector("div")); // false + * isButton(document.querySelector("input[type='text']")); // false + * + * @returns {boolean} + */ + +function isButton(element) { + if (element.tagName === "BUTTON") return true; + + if (element.tagName === "INPUT") { + var input = element; + return buttonInputTypes.indexOf(input.type) !== -1; + } + + return false; +} + + + + +/***/ }), +/* 85 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/matches.js +/** + * Ponyfill for `Element.prototype.matches` + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/matches + */ +function matches(element, selectors) { + if ("matches" in element) return element.matches(selectors); + if ("msMatchesSelector" in element) return element.msMatchesSelector(selectors); + return element.webkitMatchesSelector(selectors); +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/closest.js + + +/** + * Ponyfill for `Element.prototype.closest` + * + * @example + * import { closest } from "reakit-utils"; + * + * closest(document.getElementById("id"), "div"); + * // same as + * document.getElementById("id").closest("div"); + */ +function closest(element, selectors) { + if ("closest" in element) return element.closest(selectors); + + do { + if (matches(element, selectors)) return element; + element = element.parentElement || element.parentNode; + } while (element !== null && element.nodeType === 1); + + return null; +} + + + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/getActiveElement.js +var getActiveElement = __webpack_require__(61); + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/tabbable.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ensureFocus; }); +/* unused harmony export getAllFocusableIn */ +/* unused harmony export getAllTabbableIn */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getClosestFocusable; }); +/* unused harmony export getFirstFocusableIn */ +/* unused harmony export getFirstTabbableIn */ +/* unused harmony export getLastTabbableIn */ +/* unused harmony export getNextTabbableIn */ +/* unused harmony export getPreviousTabbableIn */ +/* unused harmony export isFocusable */ +/* unused harmony export isTabbable */ + + + + + +/** @module tabbable */ +var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), " + "textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], " + "iframe, object, embed, area[href], audio[controls], video[controls], " + "[contenteditable]:not([contenteditable='false'])"; + +function isVisible(element) { + return element.offsetWidth > 0 || element.offsetHeight > 0 || element.getClientRects().length > 0; +} + +function hasNegativeTabIndex(element) { + var tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10); + return tabIndex < 0; +} +/** + * Checks whether `element` is focusable or not. + * + * @memberof tabbable + * + * @example + * import { isFocusable } from "reakit-utils"; + * + * isFocusable(document.querySelector("input")); // true + * isFocusable(document.querySelector("input[tabindex='-1']")); // true + * isFocusable(document.querySelector("input[hidden]")); // false + * isFocusable(document.querySelector("input:disabled")); // false + */ + + +function isFocusable(element) { + return matches(element, selector) && isVisible(element); +} +/** + * Checks whether `element` is tabbable or not. + * + * @memberof tabbable + * + * @example + * import { isTabbable } from "reakit-utils"; + * + * isTabbable(document.querySelector("input")); // true + * isTabbable(document.querySelector("input[tabindex='-1']")); // false + * isTabbable(document.querySelector("input[hidden]")); // false + * isTabbable(document.querySelector("input:disabled")); // false + */ + +function isTabbable(element) { + return isFocusable(element) && !hasNegativeTabIndex(element); +} +/** + * Returns all the focusable elements in `container`. + * + * @memberof tabbable + * + * @param {Element} container + * + * @returns {Element[]} + */ + +function getAllFocusableIn(container) { + var allFocusable = Array.from(container.querySelectorAll(selector)); + allFocusable.unshift(container); + return allFocusable.filter(isFocusable); +} +/** + * Returns the first focusable element in `container`. + * + * @memberof tabbable + * + * @param {Element} container + * + * @returns {Element|null} + */ + +function getFirstFocusableIn(container) { + var allFocusable = getAllFocusableIn(container); + return allFocusable.length ? allFocusable[0] : null; +} +/** + * Returns all the tabbable elements in `container`, including the container + * itself. + * + * @memberof tabbable + * + * @param {Element} container + * @param fallbackToFocusable If `true`, it'll return focusable elements if there are no tabbable ones. + * + * @returns {Element[]} + */ + +function getAllTabbableIn(container, fallbackToFocusable) { + var allFocusable = Array.from(container.querySelectorAll(selector)); + var allTabbable = allFocusable.filter(isTabbable); + + if (isTabbable(container)) { + allTabbable.unshift(container); + } + + if (!allTabbable.length && fallbackToFocusable) { + return allFocusable; + } + + return allTabbable; +} +/** + * Returns the first tabbable element in `container`, including the container + * itself if it's tabbable. + * + * @memberof tabbable + * + * @param {Element} container + * @param fallbackToFocusable If `true`, it'll return the first focusable element if there are no tabbable ones. + * + * @returns {Element|null} + */ + +function getFirstTabbableIn(container, fallbackToFocusable) { + var _getAllTabbableIn = getAllTabbableIn(container, fallbackToFocusable), + first = _getAllTabbableIn[0]; + + return first || null; +} +/** + * Returns the last tabbable element in `container`, including the container + * itself if it's tabbable. + * + * @memberof tabbable + * + * @param {Element} container + * @param fallbackToFocusable If `true`, it'll return the last focusable element if there are no tabbable ones. + * + * @returns {Element|null} + */ + +function getLastTabbableIn(container, fallbackToFocusable) { + var allTabbable = getAllTabbableIn(container, fallbackToFocusable); + return allTabbable[allTabbable.length - 1] || null; +} +/** + * Returns the next tabbable element in `container`. + * + * @memberof tabbable + * + * @param {Element} container + * @param fallbackToFocusable If `true`, it'll return the next focusable element if there are no tabbable ones. + * + * @returns {Element|null} + */ + +function getNextTabbableIn(container, fallbackToFocusable) { + var activeElement = Object(getActiveElement["a" /* getActiveElement */])(container); + var allFocusable = getAllFocusableIn(container); + var index = allFocusable.indexOf(activeElement); + var slice = allFocusable.slice(index + 1); + return slice.find(isTabbable) || allFocusable.find(isTabbable) || (fallbackToFocusable ? slice[0] : null); +} +/** + * Returns the previous tabbable element in `container`. + * + * @memberof tabbable + * + * @param {Element} container + * @param fallbackToFocusable If `true`, it'll return the previous focusable element if there are no tabbable ones. + * + * @returns {Element|null} + */ + +function getPreviousTabbableIn(container, fallbackToFocusable) { + var activeElement = Object(getActiveElement["a" /* getActiveElement */])(container); + var allFocusable = getAllFocusableIn(container).reverse(); + var index = allFocusable.indexOf(activeElement); + var slice = allFocusable.slice(index + 1); + return slice.find(isTabbable) || allFocusable.find(isTabbable) || (fallbackToFocusable ? slice[0] : null); +} +/** + * Returns the closest focusable element. + * + * @memberof tabbable + * + * @param {Element} container + * + * @returns {Element|null} + */ + +function getClosestFocusable(element) { + while (element && !isFocusable(element)) { + element = closest(element, selector); + } + + return element; +} + +function defaultIsActive(element) { + return Object(getActiveElement["a" /* getActiveElement */])(element) === element; +} + +/** + * Ensures `element` will receive focus if it's not already. + * + * @memberof tabbable + * + * @example + * import { ensureFocus } from "reakit-utils"; + * + * ensureFocus(document.activeElement); // does nothing + * + * const element = document.querySelector("input"); + * + * ensureFocus(element); // focuses element + * ensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump + * + * function isActive(el) { + * return el.dataset.active === "true"; + * } + * + * ensureFocus(document.querySelector("[data-active='true']"), { isActive }); // does nothing + * + * @returns {number} `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed. + */ +function ensureFocus(element, _temp) { + var _ref = _temp === void 0 ? {} : _temp, + _ref$isActive = _ref.isActive, + isActive = _ref$isActive === void 0 ? defaultIsActive : _ref$isActive, + preventScroll = _ref.preventScroll; + + if (isActive(element)) return -1; + element.focus({ + preventScroll: preventScroll + }); + if (isActive(element)) return -1; + return requestAnimationFrame(function () { + element.focus({ + preventScroll: preventScroll + }); + }); +} + + + + +/***/ }), +/* 86 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/contains.js +/** + * Similar to `Element.prototype.contains`. + */ +function contains(parent, child) { + return parent === child || parent.contains(child); +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/isPortalEvent.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isPortalEvent; }); + + +/** + * Returns `true` if `event` has been fired within a React Portal element. + */ + +function isPortalEvent(event) { + return !contains(event.currentTarget, event.target); +} + + + + +/***/ }), +/* 87 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export Tabbable */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useTabbable; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51); +/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67); +/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(84); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54); +/* harmony import */ var reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(60); +/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83); +/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(86); +/* harmony import */ var reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(61); +/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(85); + + + + + + + + + + + + + + + + +function isUA(string) { + if (typeof window === "undefined") return false; + return window.navigator.userAgent.indexOf(string) !== -1; +} + +var isSafariOrFirefoxOnMac = isUA("Mac") && !isUA("Chrome") && (isUA("Safari") || isUA("Firefox")); + +function focusIfNeeded(element) { + if (!Object(reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_10__[/* hasFocusWithin */ "a"])(element)) { + element.focus(); + } +} // Safari and Firefox on MacOS don't focus on buttons on mouse down like other +// browsers/platforms. Instead, they focus on the closest focusable ancestor +// element, which is ultimately the body element. So we make sure to give focus +// to the tabbable element on mouse down so it works consistently across +// browsers. +// istanbul ignore next + + +function useFocusOnMouseDown() { + if (!isSafariOrFirefoxOnMac) return undefined; + + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_4__["useState"])(null), + tabbable = _React$useState[0], + scheduleFocus = _React$useState[1]; + + Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () { + if (!tabbable) return; + focusIfNeeded(tabbable); + scheduleFocus(null); + }, [tabbable]); + var onMouseDown = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (event) { + var element = event.currentTarget; + if (Object(reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_11__[/* isPortalEvent */ "a"])(event)) return; + if (!Object(reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_6__[/* isButton */ "a"])(element)) return; + var activeElement = Object(reakit_utils_getActiveElement__WEBPACK_IMPORTED_MODULE_12__[/* getActiveElement */ "a"])(element); + if (!activeElement) return; + var activeElementIsBody = activeElement.tagName === "BODY"; + var focusableAncestor = Object(reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_13__[/* getClosestFocusable */ "b"])(element.parentElement); + + if (activeElement === focusableAncestor || activeElementIsBody && !focusableAncestor) { + // When the active element is the focusable ancestor, it'll not emit + // focus/blur events. After all, it's already focused. So we can't + // listen to those events to focus this tabbable element. + // When the active element is body and there's no focusable ancestor, + // we also don't have any other event to listen to since body never + // emits focus/blur events on itself. + // In both of these cases, we have to schedule focus on this tabbable + // element. + scheduleFocus(element); + } else if (focusableAncestor) { + // Clicking (mouse down) on the tabbable element on Safari and Firefox + // on MacOS will fire focus on the focusable ancestor element if + // there's any and if it's not the current active element. So we wait + // for this event to happen before moving focus to this element. + // Instead of moving focus right away, we have to schedule it, + // otherwise it's gonna prevent drag events from happening. + var onFocus = function onFocus() { + return scheduleFocus(element); + }; + + focusableAncestor.addEventListener("focusin", onFocus, { + once: true + }); + } else { + // Finally, if there's no focsuable ancestor and there's another + // element with focus, we wait for that element to get blurred before + // focusing this one. + var onBlur = function onBlur() { + return focusIfNeeded(element); + }; + + activeElement.addEventListener("blur", onBlur, { + once: true + }); + } + }, []); + return onMouseDown; +} + +function isNativeTabbable(element) { + return element.tagName === "BUTTON" || element.tagName === "INPUT" || element.tagName === "SELECT" || element.tagName === "TEXTAREA" || element.tagName === "A" || element.tagName === "AUDIO" || element.tagName === "VIDEO"; +} + +var useTabbable = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ + name: "Tabbable", + compose: _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__[/* useBox */ "a"], + keys: ["disabled", "focusable"], + useOptions: function useOptions(options, _ref) { + var disabled = _ref.disabled; + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + disabled: disabled + }, options); + }, + useProps: function useProps(options, _ref2) { + var htmlRef = _ref2.ref, + htmlTabIndex = _ref2.tabIndex, + htmlOnClick = _ref2.onClick, + htmlOnMouseDown = _ref2.onMouseDown, + htmlStyle = _ref2.style, + htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref2, ["ref", "tabIndex", "onClick", "onMouseDown", "style"]); + + var ref = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])(null); + var onClickRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__[/* useLiveRef */ "a"])(htmlOnClick); + var onMouseDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_8__[/* useLiveRef */ "a"])(htmlOnMouseDown); + var trulyDisabled = options.disabled && !options.focusable; + + var _React$useState2 = Object(react__WEBPACK_IMPORTED_MODULE_4__["useState"])(true), + nativeTabbable = _React$useState2[0], + setNativeTabbable = _React$useState2[1]; + + var tabIndex = nativeTabbable ? htmlTabIndex : htmlTabIndex || 0; + var style = options.disabled ? Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + pointerEvents: "none" + }, htmlStyle) : htmlStyle; + var focusOnMouseDown = useFocusOnMouseDown(); + Object(reakit_utils_useIsomorphicEffect__WEBPACK_IMPORTED_MODULE_9__[/* useIsomorphicEffect */ "a"])(function () { + var tabbable = ref.current; + + if (!tabbable) { + false ? undefined : void 0; + return; + } + + if (!isNativeTabbable(tabbable)) { + setNativeTabbable(false); + } + }, []); + var onClick = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (event) { + var _onClickRef$current; + + if (options.disabled) { + event.stopPropagation(); + event.preventDefault(); + return; + } + + (_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 ? void 0 : _onClickRef$current.call(onClickRef, event); + }, [options.disabled]); + var onMouseDown = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (event) { + var _onMouseDownRef$curre; + + if (options.disabled) { + event.stopPropagation(); + event.preventDefault(); + return; + } + + (_onMouseDownRef$curre = onMouseDownRef.current) === null || _onMouseDownRef$curre === void 0 ? void 0 : _onMouseDownRef$curre.call(onMouseDownRef, event); + if (event.defaultPrevented) return; + focusOnMouseDown === null || focusOnMouseDown === void 0 ? void 0 : focusOnMouseDown(event); + }, [options.disabled, focusOnMouseDown]); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + ref: Object(reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__[/* useForkRef */ "a"])(ref, htmlRef), + style: style, + tabIndex: !trulyDisabled ? tabIndex : undefined, + disabled: trulyDisabled && nativeTabbable ? true : undefined, + "aria-disabled": options.disabled ? true : undefined, + onClick: onClick, + onMouseDown: onMouseDown + }, htmlProps); + } +}); +var Tabbable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ + as: "div", + useHook: useTabbable +}); + + + + +/***/ }), +/* 88 */, +/* 89 */, +/* 90 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useCreateElement; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(101); +/* harmony import */ var _rollupPluginBabelHelpers_0c84a174_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); + + + + +function isRenderProp(children) { + return typeof children === "function"; +} + +/** + * Custom hook that will call `children` if it's a function. If + * `useCreateElement` has been passed to the context, it'll be used instead. + * + * @example + * import React from "react"; + * import { SystemProvider, useCreateElement } from "reakit-system"; + * + * const system = { + * useCreateElement(type, props, children = props.children) { + * // very similar to what `useCreateElement` does already + * if (typeof children === "function") { + * const { children: _, ...rest } = props; + * return children(rest); + * } + * return React.createElement(type, props, children); + * }, + * }; + * + * function Component(props) { + * return useCreateElement("div", props); + * } + * + * function App() { + * return ( + * + * {({ url }) => link} + * + * ); + * } + */ + +var useCreateElement = function useCreateElement(type, props, children) { + if (children === void 0) { + children = props.children; + } + + var context = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_SystemContext_js__WEBPACK_IMPORTED_MODULE_1__[/* SystemContext */ "a"]); + + if (context.useCreateElement) { + return context.useCreateElement(type, props, children); + } + + if (typeof type === "string" && isRenderProp(children)) { + var _ = props.children, + rest = Object(_rollupPluginBabelHelpers_0c84a174_js__WEBPACK_IMPORTED_MODULE_2__[/* a */ "b"])(props, ["children"]); + + return children(rest); + } + + return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(type, props, children); +}; + + + + +/***/ }), +/* 91 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var keys = __webpack_require__(172); +var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; + +var toStr = Object.prototype.toString; +var concat = Array.prototype.concat; +var origDefineProperty = Object.defineProperty; + +var isFunction = function (fn) { + return typeof fn === 'function' && toStr.call(fn) === '[object Function]'; +}; + +var arePropertyDescriptorsSupported = function () { + var obj = {}; + try { + origDefineProperty(obj, 'x', { enumerable: false, value: obj }); + // eslint-disable-next-line no-unused-vars, no-restricted-syntax + for (var _ in obj) { // jscs:ignore disallowUnusedVariables + return false; + } + return obj.x === obj; + } catch (e) { /* this is IE 8. */ + return false; + } +}; +var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported(); + +var defineProperty = function (object, name, value, predicate) { + if (name in object && (!isFunction(predicate) || !predicate())) { + return; + } + if (supportsDescriptors) { + origDefineProperty(object, name, { + configurable: true, + enumerable: false, + value: value, + writable: true + }); + } else { + object[name] = value; + } +}; + +var defineProperties = function (object, map) { + var predicates = arguments.length > 2 ? arguments[2] : {}; + var props = keys(map); + if (hasSymbols) { + props = concat.call(props, Object.getOwnPropertySymbols(map)); + } + for (var i = 0; i < props.length; i += 1) { + defineProperty(object, props[i], map[props[i]], predicates[props[i]]); + } +}; + +defineProperties.supportsDescriptors = !!supportsDescriptors; + +module.exports = defineProperties; + + +/***/ }), +/* 92 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js +var warning = __webpack_require__(146); + +// EXTERNAL MODULE: external {"this":"React"} +var external_this_React_ = __webpack_require__(17); + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/isObject.js +/** + * Checks whether `arg` is an object or not. + * + * @returns {boolean} + */ +function isObject(arg) { + return typeof arg === "object" && arg != null; +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-warning/es/useWarning.js + + + + + +function isRefObject(ref) { + return isObject(ref) && "current" in ref; +} +/** + * Logs `messages` to the console using `console.warn` based on a `condition`. + * This should be used inside components. + */ + + +function useWarning(condition) { + for (var _len = arguments.length, messages = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + messages[_key - 1] = arguments[_key]; + } + + if (false) {} +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-warning/es/index.js +/* unused concated harmony import warning */ +/* unused concated harmony import useWarning */ + + + + + + + +/***/ }), +/* 93 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createOnKeyDown; }); +/** + * Returns an `onKeyDown` handler to be passed to a component. + * + * @param options + */ +function createOnKeyDown(_temp) { + var _ref = _temp === void 0 ? {} : _temp, + keyMap = _ref.keyMap, + onKey = _ref.onKey, + stopPropagation = _ref.stopPropagation, + onKeyDown = _ref.onKeyDown, + _ref$shouldKeyDown = _ref.shouldKeyDown, + shouldKeyDown = _ref$shouldKeyDown === void 0 ? function () { + return true; + } : _ref$shouldKeyDown, + _ref$preventDefault = _ref.preventDefault, + preventDefault = _ref$preventDefault === void 0 ? true : _ref$preventDefault; + + return function (event) { + if (!keyMap) return; + var finalKeyMap = typeof keyMap === "function" ? keyMap(event) : keyMap; + var shouldPreventDefault = typeof preventDefault === "function" ? preventDefault(event) : preventDefault; + var shouldStopPropagation = typeof stopPropagation === "function" ? stopPropagation(event) : stopPropagation; + + if (event.key in finalKeyMap) { + var action = finalKeyMap[event.key]; + + if (typeof action === "function" && shouldKeyDown(event)) { + if (shouldPreventDefault) event.preventDefault(); + if (shouldStopPropagation) event.stopPropagation(); + if (onKey) onKey(event); + action(event); // Prevent onKeyDown from being called twice for the same keys + + return; + } + } + + if (onKeyDown && "current" in onKeyDown) { + var _onKeyDown$current; + + (_onKeyDown$current = onKeyDown.current) === null || _onKeyDown$current === void 0 ? void 0 : _onKeyDown$current.call(onKeyDown, event); + } else { + onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event); + } + }; +} + + + + +/***/ }), +/* 94 */, +/* 95 */, +/* 96 */, +/* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2637,8 +5725,7 @@ var CalendarDayPhrases = exports.CalendarDayPhrases = { }; /***/ }), -/* 60 */, -/* 61 */ +/* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2649,11 +5736,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getPhrasePropTypes; -var _object = __webpack_require__(57); +var _object = __webpack_require__(82); var _object2 = _interopRequireDefault(_object); -var _propTypes = __webpack_require__(26); +var _propTypes = __webpack_require__(33); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -2668,513 +5755,7 @@ function getPhrasePropTypes(defaultPhrases) { } /***/ }), -/* 62 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external {"this":"React"} -var external_this_React_ = __webpack_require__(21); - -// EXTERNAL MODULE: ./node_modules/reakit-system/es/SystemContext.js -var SystemContext = __webpack_require__(88); - -// CONCATENATED MODULE: ./node_modules/reakit-system/es/useToken.js - - - -/** - * React custom hook that returns the value of any token defined in the - * SystemContext. It's mainly used internally in [`useOptions`](#useoptions) - * and [`useProps`](#useprops). - * - * @example - * import { SystemProvider, useToken } from "reakit-system"; - * - * const system = { - * token: "value" - * }; - * - * function Component(props) { - * const token = useToken("token", "default value"); - * return
    {token}
    ; - * } - * - * function App() { - * return ( - * - * - * - * ); - * } - */ - -function useToken(token, defaultValue) { - Object(external_this_React_["useDebugValue"])(token); - var context = Object(external_this_React_["useContext"])(SystemContext["a" /* SystemContext */]); - return context[token] != null ? context[token] : defaultValue; -} - - - -// CONCATENATED MODULE: ./node_modules/reakit-system/es/useProps.js - - - - -/** - * React custom hook that returns the props returned by a given - * `use${name}Props` in the SystemContext. - * - * @example - * import { SystemProvider, useProps } from "reakit-system"; - * - * const system = { - * useAProps(options, htmlProps) { - * return { - * ...htmlProps, - * href: options.url - * }; - * } - * }; - * - * function A({ url, ...htmlProps }) { - * const props = useProps("A", { url }, htmlProps); - * return ; - * } - * - * function App() { - * return ( - * - * It will convert url into href in useAProps - * - * ); - * } - */ - -function useProps(name, options, htmlProps) { - if (options === void 0) { - options = {}; - } - - if (htmlProps === void 0) { - htmlProps = {}; - } - - var hookName = "use" + name + "Props"; - Object(external_this_React_["useDebugValue"])(hookName); - var useHook = useToken(hookName); - - if (useHook) { - return useHook(options, htmlProps); - } - - return htmlProps; -} - - - -// EXTERNAL MODULE: ./node_modules/reakit-system/es/_rollupPluginBabelHelpers-ce04ac6e.js -var _rollupPluginBabelHelpers_ce04ac6e = __webpack_require__(78); - -// CONCATENATED MODULE: ./node_modules/reakit-system/es/useOptions.js - - - - - -/** - * React custom hook that returns the options returned by a given - * `use${name}Options` in the SystemContext. - * - * @example - * import React from "react"; - * import { SystemProvider, useOptions } from "reakit-system"; - * - * const system = { - * useAOptions(options, htmlProps) { - * return { - * ...options, - * url: htmlProps.href - * }; - * } - * }; - * - * function A({ url, ...htmlProps }) { - * const options = useOptions("A", { url }, htmlProps); - * return ; - * } - * - * function App() { - * return ( - * - * - * It will convert href into url in useAOptions and then url into href in A - * - * - * ); - * } - */ - -function useOptions(name, options, htmlProps) { - if (options === void 0) { - options = {}; - } - - if (htmlProps === void 0) { - htmlProps = {}; - } - - var hookName = "use" + name + "Options"; - Object(external_this_React_["useDebugValue"])(hookName); - var useHook = useToken(hookName); - - if (useHook) { - return Object(_rollupPluginBabelHelpers_ce04ac6e["a" /* _ */])({}, options, {}, useHook(options, htmlProps)); - } - - return options; -} - - - -// CONCATENATED MODULE: ./node_modules/reakit-utils/es/isObject.js -/** - * Checks whether `arg` is an object or not. - * - * @returns {boolean} - */ -function isObject(arg) { - return typeof arg === "object" && arg != null; -} - - - -// CONCATENATED MODULE: ./node_modules/reakit-utils/es/toArray.js -/** - * Transforms `arg` into an array if it's not already. - * - * @example - * import { toArray } from "reakit-utils"; - * - * toArray("a"); // ["a"] - * toArray(["a"]); // ["a"] - */ -function toArray(arg) { - if (Array.isArray(arg)) { - return arg; - } - - return typeof arg !== "undefined" ? [arg] : []; -} - - - -// CONCATENATED MODULE: ./node_modules/reakit-system/es/createHook.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createHook; }); - - - - - - - - - -function deepEqual(objA, objB, depth) { - if (depth === void 0) { - depth = 1; - } - - if (objA === objB) return true; - if (!objA || !objB) return false; - var aKeys = Object.keys(objA); - var bKeys = Object.keys(objB); - var length = aKeys.length; - if (bKeys.length !== length) return false; - - for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) { - var key = _aKeys[_i]; - - if (objA[key] !== objB[key]) { - if (!depth || !isObject(objA[key]) || !isObject(objB[key]) || !deepEqual(objA[key], objB[key], depth - 1)) { - return false; - } - } - } - - return true; -} - -/** - * Creates a React custom hook that will return component props. - * - * @example - * import { createHook } from "reakit-system"; - * - * const useA = createHook({ - * name: "A", - * keys: ["url"], // custom props/options keys - * useProps(options, htmlProps) { - * return { - * ...htmlProps, - * href: options.url - * }; - * } - * }); - * - * function A({ url, ...htmlProps }) { - * const props = useA({ url }, htmlProps); - * return ; - * } - * - * @param options - */ -function createHook(options) { - var composedHooks = toArray(options.compose); - - var __useOptions = function __useOptions(hookOptions, htmlProps) { - // Call the current hook's useOptions first - if (options.useOptions) { - hookOptions = options.useOptions(hookOptions, htmlProps); - } // If there's name, call useOptions from the system context - - - if (options.name) { - hookOptions = useOptions(options.name, hookOptions, htmlProps); - } - - return hookOptions; - }; - - var useHook = function useHook(hookOptions, htmlProps, unstable_ignoreUseOptions) { - if (hookOptions === void 0) { - hookOptions = {}; - } - - if (htmlProps === void 0) { - htmlProps = {}; - } - - if (unstable_ignoreUseOptions === void 0) { - unstable_ignoreUseOptions = false; - } - - // This won't execute when useHook was called from within another useHook - if (!unstable_ignoreUseOptions) { - hookOptions = __useOptions(hookOptions, htmlProps); - } // We're already calling composed useOptions here - // That's why we ignoreUseOptions for composed hooks - - - if (options.compose) { - composedHooks.forEach(function (hook) { - hookOptions = hook.__useOptions(hookOptions, htmlProps); - }); - } // Call the current hook's useProps - - - if (options.useProps) { - htmlProps = options.useProps(hookOptions, htmlProps); - } // If there's name, call useProps from the system context - - - if (options.name) { - htmlProps = useProps(options.name, hookOptions, htmlProps); - } - - if (options.compose) { - if (options.useComposeOptions) { - hookOptions = options.useComposeOptions(hookOptions, htmlProps); - } - - composedHooks.forEach(function (hook) { - // @ts-ignore The third option is only used internally - htmlProps = hook(hookOptions, htmlProps, true); - }); - } - - return htmlProps; - }; - - if (false) {} - - useHook.__useOptions = __useOptions; // It's used by createComponent to split option props (keys) and html props - - useHook.__keys = [].concat(composedHooks.reduce(function (allKeys, hook) { - allKeys.push.apply(allKeys, hook.__keys || []); - return allKeys; - }, []), options.useState ? options.useState.__keys : [], options.keys || []); - var hasPropsAreEqual = Boolean(options.propsAreEqual || composedHooks.find(function (hook) { - return Boolean(hook.__propsAreEqual); - })); - - if (hasPropsAreEqual) { - useHook.__propsAreEqual = function (prev, next) { - var result = options.propsAreEqual && options.propsAreEqual(prev, next); - - if (result != null) { - return result; - } - - for (var _iterator = composedHooks, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var hook = _ref; - var propsAreEqual = hook.__propsAreEqual; - var hookResult = propsAreEqual && propsAreEqual(prev, next); - - if (hookResult != null) { - return hookResult; - } - } - - return deepEqual(prev, next); - }; - } - - return useHook; -} - - - - -/***/ }), -/* 63 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external {"this":"React"} -var external_this_React_ = __webpack_require__(21); - -// EXTERNAL MODULE: ./node_modules/reakit-system/es/_rollupPluginBabelHelpers-ce04ac6e.js -var _rollupPluginBabelHelpers_ce04ac6e = __webpack_require__(78); - -// EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js -var useCreateElement = __webpack_require__(146); - -// CONCATENATED MODULE: ./node_modules/reakit-utils/es/splitProps.js -/** - * Splits an object (`props`) into a tuple where the first item is an object - * with the passed `keys`, and the second item is an object with these keys - * omitted. - * - * @example - * import { splitProps } from "reakit-utils"; - * - * splitProps({ a: "a", b: "b" }, ["a"]); // [{ a: "a" }, { b: "b" }] - */ -function splitProps(props, keys) { - var propsKeys = Object.keys(props); - var picked = {}; - var omitted = {}; - - for (var _i = 0, _propsKeys = propsKeys; _i < _propsKeys.length; _i++) { - var key = _propsKeys[_i]; - - if (keys.indexOf(key) >= 0) { - picked[key] = props[key]; - } else { - omitted[key] = props[key]; - } - } - - return [picked, omitted]; -} - - - -// CONCATENATED MODULE: ./node_modules/reakit-system/es/createComponent.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createComponent; }); - - - - - - -function memo(component, propsAreEqual) { - return Object(external_this_React_["memo"])(component, propsAreEqual); -} - -function forwardRef(component) { - return Object(external_this_React_["forwardRef"])(component); -} - -/** - * Creates a React component. - * - * @example - * import { createComponent } from "reakit-system"; - * - * const A = createComponent({ as: "a" }); - * - * @param options - */ -function createComponent(_ref) { - var type = _ref.as, - useHook = _ref.useHook, - _ref$keys = _ref.keys, - keys = _ref$keys === void 0 ? useHook && useHook.__keys || [] : _ref$keys, - _ref$propsAreEqual = _ref.propsAreEqual, - propsAreEqual = _ref$propsAreEqual === void 0 ? useHook && useHook.__propsAreEqual : _ref$propsAreEqual, - _ref$useCreateElement = _ref.useCreateElement, - useCreateElement$1 = _ref$useCreateElement === void 0 ? useCreateElement["a" /* useCreateElement */] : _ref$useCreateElement; - - var Comp = function Comp(_ref2, ref) { - var _ref2$as = _ref2.as, - as = _ref2$as === void 0 ? type : _ref2$as, - props = Object(_rollupPluginBabelHelpers_ce04ac6e["b" /* a */])(_ref2, ["as"]); - - if (useHook) { - var _splitProps = splitProps(props, keys), - _options = _splitProps[0], - htmlProps = _splitProps[1]; - - var _useHook = useHook(_options, Object(_rollupPluginBabelHelpers_ce04ac6e["a" /* _ */])({ - ref: ref - }, htmlProps)), - wrapElement = _useHook.wrapElement, - elementProps = Object(_rollupPluginBabelHelpers_ce04ac6e["b" /* a */])(_useHook, ["wrapElement"]); // @ts-ignore - - - var asKeys = as.render ? as.render.__keys : as.__keys; - var asOptions = asKeys ? splitProps(props, asKeys)[0] : {}; - - var _element = useCreateElement$1(as, Object(_rollupPluginBabelHelpers_ce04ac6e["a" /* _ */])({}, elementProps, {}, asOptions)); - - if (wrapElement) { - return wrapElement(_element); - } - - return _element; - } - - return useCreateElement$1(as, props); - }; - - Comp.__keys = keys; - - if (false) {} - - return memo(forwardRef(Comp), propsAreEqual); -} - - - - -/***/ }), -/* 64 */, -/* 65 */ +/* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3191,29 +5772,29 @@ var _createClass = function () { function defineProperties(target, props) { for exports.withStyles = withStyles; -var _object = __webpack_require__(57); +var _object = __webpack_require__(82); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(21); +var _react = __webpack_require__(17); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(26); +var _propTypes = __webpack_require__(33); var _propTypes2 = _interopRequireDefault(_propTypes); -var _hoistNonReactStatics = __webpack_require__(348); +var _hoistNonReactStatics = __webpack_require__(365); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); -var _constants = __webpack_require__(351); +var _constants = __webpack_require__(368); -var _brcast = __webpack_require__(352); +var _brcast = __webpack_require__(369); var _brcast2 = _interopRequireDefault(_brcast); -var _ThemedStyleSheet = __webpack_require__(209); +var _ThemedStyleSheet = __webpack_require__(214); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); @@ -3428,178 +6009,1537 @@ function withStyles(styleFn) { } /***/ }), -/* 66 */ +/* 100 */ /***/ (function(module, exports) { -(function() { module.exports = this["ReactDOM"]; }()); +// shim for using process in browser +var process = module.exports = {}; -/***/ }), -/* 67 */, -/* 68 */, -/* 69 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSealedState; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +var cachedSetTimeout; +var cachedClearTimeout; - -/** - * React custom hook that returns the very first value passed to `initialState`, - * even if it changes between re-renders. - */ -function useSealedState(initialState) { - var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(initialState), - sealed = _React$useState[0]; - - return sealed; +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); } - - - - -/***/ }), -/* 70 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_IdContext; }); -/* unused harmony export unstable_IdProvider */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var defaultPrefix = "id"; -function generateRandomString(prefix) { - if (prefix === void 0) { - prefix = defaultPrefix; - } - - return "" + (prefix ? prefix + "-" : "") + Math.random().toString(32).substr(2, 6); +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); } - -var unstable_IdContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])(generateRandomString); -function unstable_IdProvider(_ref) { - var children = _ref.children, - _ref$prefix = _ref.prefix, - prefix = _ref$prefix === void 0 ? defaultPrefix : _ref$prefix; - var count = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0); - var generateId = Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (localPrefix) { - if (localPrefix === void 0) { - localPrefix = prefix; +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } } - return "" + (localPrefix ? localPrefix + "-" : "") + ++count.current; - }, []); - return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(unstable_IdContext.Provider, { - value: generateId - }, children); + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } } +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; /***/ }), -/* 71 */ +/* 101 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_useIdState; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SystemContext; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _IdProvider_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70); -/* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); - - -function unstable_useIdState(initialState) { - if (initialState === void 0) { - initialState = {}; - } - - var _useSealedState = Object(reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__[/* useSealedState */ "a"])(initialState), - initialBaseId = _useSealedState.baseId; - - var generateId = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_IdProvider_js__WEBPACK_IMPORTED_MODULE_1__[/* unstable_IdContext */ "a"]); - var idCountRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0); - - var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(function () { - return initialBaseId || generateId(); - }), - baseId = _React$useState[0], - setBaseId = _React$useState[1]; - - return { - baseId: baseId, - unstable_setBaseId: setBaseId, - unstable_idCountRef: idCountRef - }; -} -var keys = ["baseId", "unstable_setBaseId", "unstable_idCountRef"]; -unstable_useIdState.__keys = keys; +var SystemContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({}); /***/ }), -/* 72 */, -/* 73 */ -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), -/* 74 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(93); - -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - - -/***/ }), -/* 75 */, -/* 76 */ +/* 102 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony export unstable_Id */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unstable_useId; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _IdProvider_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73); +/* harmony import */ var _IdState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70); + + + + + + + + +var unstable_useId = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ + useState: _IdState_js__WEBPACK_IMPORTED_MODULE_5__[/* unstable_useIdState */ "a"], + keys: ["id"], + useOptions: function useOptions(options, htmlProps) { + var generateId = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_IdProvider_js__WEBPACK_IMPORTED_MODULE_4__[/* unstable_IdContext */ "a"]); + + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(function () { + // This comes from useIdState + if (options.unstable_idCountRef) { + options.unstable_idCountRef.current += 1; + return "-" + options.unstable_idCountRef.current; + } // If there's no useIdState, we check if `baseId` was passed (as a prop, + // not from useIdState). + + + if (options.baseId) { + return "-" + generateId(""); + } + + return ""; + }), + suffix = _React$useState[0]; // `baseId` will be the prop passed directly as a prop or via useIdState. + // If there's neither, then it'll fallback to Context's generateId. + // This generateId can result in a sequential ID (if there's a Provider) + // or a random string (without Provider). + + + var baseId = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () { + return options.baseId || generateId(); + }, [options.baseId, generateId]); + var id = htmlProps.id || options.id || "" + baseId + suffix; + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, options), {}, { + id: id + }); + }, + useProps: function useProps(options, htmlProps) { + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + id: options.id + }, htmlProps); + } +}); +var unstable_Id = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ + as: "div", + useHook: unstable_useId +}); + + + + +/***/ }), +/* 103 */, +/* 104 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__); + + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + /** * WordPress dependencies */ -var ToolbarContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])(); -/* harmony default export */ __webpack_exports__["a"] = (ToolbarContext); + + +/** + * Input types which are classified as button types, for use in considering + * whether element is a (focus-normalized) button. + * + * @type {string[]} + */ + +var INPUT_BUTTON_TYPES = ['button', 'submit']; +/** + * Returns true if the given element is a button element subject to focus + * normalization, or false otherwise. + * + * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + * + * @param {Element} element Element to test. + * + * @return {boolean} Whether element is a button. + */ + +function isFocusNormalizedButton(element) { + switch (element.nodeName) { + case 'A': + case 'BUTTON': + return true; + + case 'INPUT': + return Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(INPUT_BUTTON_TYPES, element.type); + } + + return false; +} + +/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__["createHigherOrderComponent"])(function (WrappedComponent) { + return /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_class, _Component); + + var _super = _createSuper(_class); + + function _class() { + var _this; + + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, _class); + + _this = _super.apply(this, arguments); + _this.bindNode = _this.bindNode.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.cancelBlurCheck = _this.cancelBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.queueBlurCheck = _this.queueBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.normalizeButtonFocus = _this.normalizeButtonFocus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + return _this; + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_class, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.cancelBlurCheck(); + } + }, { + key: "bindNode", + value: function bindNode(node) { + if (node) { + this.node = node; + } else { + delete this.node; + this.cancelBlurCheck(); + } + } + }, { + key: "queueBlurCheck", + value: function queueBlurCheck(event) { + var _this2 = this; + + // React does not allow using an event reference asynchronously + // due to recycling behavior, except when explicitly persisted. + event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`. + + if (this.preventBlurCheck) { + return; + } + + this.blurCheckTimeout = setTimeout(function () { + // If document is not focused then focus should remain + // inside the wrapped component and therefore we cancel + // this blur event thereby leaving focus in place. + // https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus. + if (!document.hasFocus()) { + event.preventDefault(); + return; + } + + if ('function' === typeof _this2.node.handleFocusOutside) { + _this2.node.handleFocusOutside(event); + } + }, 0); + } + }, { + key: "cancelBlurCheck", + value: function cancelBlurCheck() { + clearTimeout(this.blurCheckTimeout); + } + /** + * Handles a mousedown or mouseup event to respectively assign and + * unassign a flag for preventing blur check on button elements. Some + * browsers, namely Firefox and Safari, do not emit a focus event on + * button elements when clicked, while others do. The logic here + * intends to normalize this as treating click on buttons as focus. + * + * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + * + * @param {MouseEvent} event Event for mousedown or mouseup. + */ + + }, { + key: "normalizeButtonFocus", + value: function normalizeButtonFocus(event) { + var type = event.type, + target = event.target; + var isInteractionEnd = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(['mouseup', 'touchend'], type); + + if (isInteractionEnd) { + this.preventBlurCheck = false; + } else if (isFocusNormalizedButton(target)) { + this.preventBlurCheck = true; + } + } + }, { + key: "render", + value: function render() { + // Disable reason: See `normalizeButtonFocus` for browser-specific + // focus event normalization. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", { + onFocus: this.cancelBlurCheck, + onMouseDown: this.normalizeButtonFocus, + onMouseUp: this.normalizeButtonFocus, + onTouchStart: this.normalizeButtonFocus, + onTouchEnd: this.normalizeButtonFocus, + onBlur: this.queueBlurCheck + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ + ref: this.bindNode + }, this.props))); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return _class; + }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); +}, 'withFocusOutside')); /***/ }), -/* 77 */ +/* 105 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export Clickable */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useClickable; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59); +/* harmony import */ var _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(87); + + + + + + + + + + + + + + + + + + +function isNativeClick(event) { + var element = event.currentTarget; + if (!event.isTrusted) return false; // istanbul ignore next: can't test trusted events yet + + return Object(reakit_utils_isButton__WEBPACK_IMPORTED_MODULE_4__[/* isButton */ "a"])(element) || element.tagName === "INPUT" || element.tagName === "TEXTAREA" || element.tagName === "A" || element.tagName === "SELECT"; +} + +var useClickable = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ + name: "Clickable", + compose: _Tabbable_Tabbable_js__WEBPACK_IMPORTED_MODULE_8__[/* useTabbable */ "a"], + keys: ["unstable_clickOnEnter", "unstable_clickOnSpace"], + useOptions: function useOptions(_ref) { + var _ref$unstable_clickOn = _ref.unstable_clickOnEnter, + unstable_clickOnEnter = _ref$unstable_clickOn === void 0 ? true : _ref$unstable_clickOn, + _ref$unstable_clickOn2 = _ref.unstable_clickOnSpace, + unstable_clickOnSpace = _ref$unstable_clickOn2 === void 0 ? true : _ref$unstable_clickOn2, + options = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref, ["unstable_clickOnEnter", "unstable_clickOnSpace"]); + + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + unstable_clickOnEnter: unstable_clickOnEnter, + unstable_clickOnSpace: unstable_clickOnSpace + }, options); + }, + useProps: function useProps(options, _ref2) { + var htmlOnKeyDown = _ref2.onKeyDown, + htmlOnKeyUp = _ref2.onKeyUp, + htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref2, ["onKeyDown", "onKeyUp"]); + + var _React$useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false), + active = _React$useState[0], + setActive = _React$useState[1]; + + var onKeyDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyDown); + var onKeyUpRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyUp); + var onKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onKeyDownRef$current; + + (_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event); + if (event.defaultPrevented) return; + if (options.disabled) return; + if (event.metaKey) return; + if (!Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return; + var isEnter = options.unstable_clickOnEnter && event.key === "Enter"; + var isSpace = options.unstable_clickOnSpace && event.key === " "; + + if (isEnter || isSpace) { + if (isNativeClick(event)) return; + event.preventDefault(); + + if (isEnter) { + event.currentTarget.click(); + } else if (isSpace) { + setActive(true); + } + } + }, [options.disabled, options.unstable_clickOnEnter, options.unstable_clickOnSpace]); + var onKeyUp = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onKeyUpRef$current; + + (_onKeyUpRef$current = onKeyUpRef.current) === null || _onKeyUpRef$current === void 0 ? void 0 : _onKeyUpRef$current.call(onKeyUpRef, event); + if (event.defaultPrevented) return; + if (options.disabled) return; + if (event.metaKey) return; + var isSpace = options.unstable_clickOnSpace && event.key === " "; + + if (active && isSpace) { + setActive(false); + event.currentTarget.click(); + } + }, [options.disabled, options.unstable_clickOnSpace, active]); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + "data-active": active || undefined, + onKeyDown: onKeyDown, + onKeyUp: onKeyUp + }, htmlProps); + } +}); +var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ + as: "button", + memo: true, + useHook: useClickable +}); + + + + +/***/ }), +/* 106 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(8); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(11); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","dom"]} +var external_this_wp_dom_ = __webpack_require__(29); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(22); + +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js +var library_close = __webpack_require__(133); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/utils.js + + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + +/** + * Module constants + */ + +var HEIGHT_OFFSET = 10; // used by the arrow and a bit of empty space + +/** + * Utility used to compute the popover position over the xAxis + * + * @param {Object} anchorRect Anchor Rect. + * @param {Object} contentSize Content Size. + * @param {string} xAxis Desired xAxis. + * @param {string} corner Desired corner. + * @param {boolean} sticky Whether or not to stick the popover to the + * scroll container edge when part of the anchor + * leaves view. + * @param {string} chosenYAxis yAxis to be used. + * @param {Element} boundaryElement Boundary element. + * + * @return {Object} Popover xAxis position and constraints. + */ + +function computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, sticky, chosenYAxis, boundaryElement) { + var width = contentSize.width; + var isRTL = document.documentElement.dir === 'rtl'; // Correct xAxis for RTL support + + if (xAxis === 'left' && isRTL) { + xAxis = 'right'; + } else if (xAxis === 'right' && isRTL) { + xAxis = 'left'; + } + + if (corner === 'left' && isRTL) { + corner = 'right'; + } else if (corner === 'right' && isRTL) { + corner = 'left'; + } // x axis alignment choices + + + var anchorMidPoint = Math.round(anchorRect.left + anchorRect.width / 2); + var centerAlignment = { + popoverLeft: anchorMidPoint, + contentWidth: (anchorMidPoint - width / 2 > 0 ? width / 2 : anchorMidPoint) + (anchorMidPoint + width / 2 > window.innerWidth ? window.innerWidth - anchorMidPoint : width / 2) + }; + var leftAlignmentX = anchorRect.left; + + if (corner === 'right') { + leftAlignmentX = anchorRect.right; + } else if (chosenYAxis !== 'middle') { + leftAlignmentX = anchorMidPoint; + } + + var rightAlignmentX = anchorRect.right; + + if (corner === 'left') { + rightAlignmentX = anchorRect.left; + } else if (chosenYAxis !== 'middle') { + rightAlignmentX = anchorMidPoint; + } + + var leftAlignment = { + popoverLeft: leftAlignmentX, + contentWidth: leftAlignmentX - width > 0 ? width : leftAlignmentX + }; + var rightAlignment = { + popoverLeft: rightAlignmentX, + contentWidth: rightAlignmentX + width > window.innerWidth ? window.innerWidth - rightAlignmentX : width + }; // Choosing the x axis + + var chosenXAxis = xAxis; + var contentWidth = null; + + if (!sticky) { + if (xAxis === 'center' && centerAlignment.contentWidth === width) { + chosenXAxis = 'center'; + } else if (xAxis === 'left' && leftAlignment.contentWidth === width) { + chosenXAxis = 'left'; + } else if (xAxis === 'right' && rightAlignment.contentWidth === width) { + chosenXAxis = 'right'; + } else { + chosenXAxis = leftAlignment.contentWidth > rightAlignment.contentWidth ? 'left' : 'right'; + var chosenWidth = chosenXAxis === 'left' ? leftAlignment.contentWidth : rightAlignment.contentWidth; + contentWidth = chosenWidth !== width ? chosenWidth : null; + } + } + + var popoverLeft; + + if (chosenXAxis === 'center') { + popoverLeft = centerAlignment.popoverLeft; + } else if (chosenXAxis === 'left') { + popoverLeft = leftAlignment.popoverLeft; + } else { + popoverLeft = rightAlignment.popoverLeft; + } + + if (boundaryElement) { + var boundaryRect = boundaryElement.getBoundingClientRect(); + popoverLeft = Math.min(popoverLeft, boundaryRect.right - width); + } + + return { + xAxis: chosenXAxis, + popoverLeft: popoverLeft, + contentWidth: contentWidth + }; +} +/** + * Utility used to compute the popover position over the yAxis + * + * @param {Object} anchorRect Anchor Rect. + * @param {Object} contentSize Content Size. + * @param {string} yAxis Desired yAxis. + * @param {string} corner Desired corner. + * @param {boolean} sticky Whether or not to stick the popover to the + * scroll container edge when part of the + * anchor leaves view. + * @param {Element} anchorRef The anchor element. + * @param {Element} relativeOffsetTop If applicable, top offset of the relative + * positioned parent container. + * + * @return {Object} Popover xAxis position and constraints. + */ + +function computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, sticky, anchorRef, relativeOffsetTop) { + var height = contentSize.height; + + if (sticky) { + var scrollContainerEl = Object(external_this_wp_dom_["getScrollContainer"])(anchorRef) || document.body; + var scrollRect = scrollContainerEl.getBoundingClientRect(); + + if (anchorRect.top - height <= scrollRect.top) { + return { + yAxis: yAxis, + popoverTop: Math.min(anchorRect.bottom - relativeOffsetTop, scrollRect.top + height - relativeOffsetTop) + }; + } + } // y axis alignment choices + + + var anchorMidPoint = anchorRect.top + anchorRect.height / 2; + + if (corner === 'bottom') { + anchorMidPoint = anchorRect.bottom; + } else if (corner === 'top') { + anchorMidPoint = anchorRect.top; + } + + var middleAlignment = { + popoverTop: anchorMidPoint, + contentHeight: (anchorMidPoint - height / 2 > 0 ? height / 2 : anchorMidPoint) + (anchorMidPoint + height / 2 > window.innerHeight ? window.innerHeight - anchorMidPoint : height / 2) + }; + var topAlignment = { + popoverTop: anchorRect.top, + contentHeight: anchorRect.top - HEIGHT_OFFSET - height > 0 ? height : anchorRect.top - HEIGHT_OFFSET + }; + var bottomAlignment = { + popoverTop: anchorRect.bottom, + contentHeight: anchorRect.bottom + HEIGHT_OFFSET + height > window.innerHeight ? window.innerHeight - HEIGHT_OFFSET - anchorRect.bottom : height + }; // Choosing the y axis + + var chosenYAxis = yAxis; + var contentHeight = null; + + if (!sticky) { + if (yAxis === 'middle' && middleAlignment.contentHeight === height) { + chosenYAxis = 'middle'; + } else if (yAxis === 'top' && topAlignment.contentHeight === height) { + chosenYAxis = 'top'; + } else if (yAxis === 'bottom' && bottomAlignment.contentHeight === height) { + chosenYAxis = 'bottom'; + } else { + chosenYAxis = topAlignment.contentHeight > bottomAlignment.contentHeight ? 'top' : 'bottom'; + var chosenHeight = chosenYAxis === 'top' ? topAlignment.contentHeight : bottomAlignment.contentHeight; + contentHeight = chosenHeight !== height ? chosenHeight : null; + } + } + + var popoverTop; + + if (chosenYAxis === 'middle') { + popoverTop = middleAlignment.popoverTop; + } else if (chosenYAxis === 'top') { + popoverTop = topAlignment.popoverTop; + } else { + popoverTop = bottomAlignment.popoverTop; + } + + return { + yAxis: chosenYAxis, + popoverTop: popoverTop, + contentHeight: contentHeight + }; +} +/** + * Utility used to compute the popover position and the content max width/height + * for a popover given its anchor rect and its content size. + * + * @param {Object} anchorRect Anchor Rect. + * @param {Object} contentSize Content Size. + * @param {string} position Position. + * @param {boolean} sticky Whether or not to stick the popover to the + * scroll container edge when part of the + * anchor leaves view. + * @param {Element} anchorRef The anchor element. + * @param {number} relativeOffsetTop If applicable, top offset of the relative + * positioned parent container. + * @param {Element} boundaryElement Boundary element. + * + * @return {Object} Popover position and constraints. + */ + +function computePopoverPosition(anchorRect, contentSize) { + var position = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'top'; + var sticky = arguments.length > 3 ? arguments[3] : undefined; + var anchorRef = arguments.length > 4 ? arguments[4] : undefined; + var relativeOffsetTop = arguments.length > 5 ? arguments[5] : undefined; + var boundaryElement = arguments.length > 6 ? arguments[6] : undefined; + + var _position$split = position.split(' '), + _position$split2 = Object(slicedToArray["a" /* default */])(_position$split, 3), + yAxis = _position$split2[0], + _position$split2$ = _position$split2[1], + xAxis = _position$split2$ === void 0 ? 'center' : _position$split2$, + corner = _position$split2[2]; + + var yAxisPosition = computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, sticky, anchorRef, relativeOffsetTop); + var xAxisPosition = computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, sticky, yAxisPosition.yAxis, boundaryElement); + return _objectSpread({}, xAxisPosition, {}, yAxisPosition); +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js +var with_focus_return = __webpack_require__(122); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js +var with_constrained_tabbing = __webpack_require__(121); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(18); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(20); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js +var with_focus_outside = __webpack_require__(104); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var detect_outside_PopoverDetectOutside = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(PopoverDetectOutside, _Component); + + var _super = _createSuper(PopoverDetectOutside); + + function PopoverDetectOutside() { + Object(classCallCheck["a" /* default */])(this, PopoverDetectOutside); + + return _super.apply(this, arguments); + } + + Object(createClass["a" /* default */])(PopoverDetectOutside, [{ + key: "handleFocusOutside", + value: function handleFocusOutside(event) { + this.props.onFocusOutside(event); + } + }, { + key: "render", + value: function render() { + return this.props.children; + } + }]); + + return PopoverDetectOutside; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var detect_outside = (Object(with_focus_outside["a" /* default */])(detect_outside_PopoverDetectOutside)); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js +var build_module_button = __webpack_require__(34); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js +var scroll_lock = __webpack_require__(152); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js +var isolated_event_container = __webpack_require__(123); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js +var use_slot = __webpack_require__(150); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 4 modules +var slot_fill = __webpack_require__(113); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js +var build_module_animate = __webpack_require__(151); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + + + + + + + +var FocusManaged = Object(with_constrained_tabbing["a" /* default */])(Object(with_focus_return["a" /* default */])(function (_ref) { + var children = _ref.children; + return children; +})); +/** + * Name of slot in which popover should fill. + * + * @type {string} + */ + +var SLOT_NAME = 'Popover'; + +function computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect) { + var anchorRef = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var shouldAnchorIncludePadding = arguments.length > 4 ? arguments[4] : undefined; + + if (anchorRect) { + return anchorRect; + } + + if (getAnchorRect) { + if (!anchorRefFallback.current) { + return; + } + + return getAnchorRect(anchorRefFallback.current); + } + + if (anchorRef !== false) { + if (!anchorRef) { + return; + } + + if (anchorRef instanceof window.Range) { + return Object(external_this_wp_dom_["getRectangleFromRange"])(anchorRef); + } + + if (anchorRef instanceof window.Element) { + var _rect2 = anchorRef.getBoundingClientRect(); + + if (shouldAnchorIncludePadding) { + return _rect2; + } + + return withoutPadding(_rect2, anchorRef); + } + + var top = anchorRef.top, + bottom = anchorRef.bottom; + var topRect = top.getBoundingClientRect(); + var bottomRect = bottom.getBoundingClientRect(); + + var _rect = new window.DOMRect(topRect.left, topRect.top, topRect.width, bottomRect.bottom - topRect.top); + + if (shouldAnchorIncludePadding) { + return _rect; + } + + return withoutPadding(_rect, anchorRef); + } + + if (!anchorRefFallback.current) { + return; + } + + var parentNode = anchorRefFallback.current.parentNode; + var rect = parentNode.getBoundingClientRect(); + + if (shouldAnchorIncludePadding) { + return rect; + } + + return withoutPadding(rect, parentNode); +} + +function withoutPadding(rect, element) { + var _window$getComputedSt = window.getComputedStyle(element), + paddingTop = _window$getComputedSt.paddingTop, + paddingBottom = _window$getComputedSt.paddingBottom, + paddingLeft = _window$getComputedSt.paddingLeft, + paddingRight = _window$getComputedSt.paddingRight; + + var top = paddingTop ? parseInt(paddingTop, 10) : 0; + var bottom = paddingBottom ? parseInt(paddingBottom, 10) : 0; + var left = paddingLeft ? parseInt(paddingLeft, 10) : 0; + var right = paddingRight ? parseInt(paddingRight, 10) : 0; + return { + x: rect.left + left, + y: rect.top + top, + width: rect.width - left - right, + height: rect.height - top - bottom, + left: rect.left + left, + right: rect.right - right, + top: rect.top + top, + bottom: rect.bottom - bottom + }; +} +/** + * Hook used to focus the first tabbable element on mount. + * + * @param {boolean|string} focusOnMount Focus on mount mode. + * @param {Object} contentRef Reference to the popover content element. + */ + + +function useFocusContentOnMount(focusOnMount, contentRef) { + // Focus handling + Object(external_this_wp_element_["useEffect"])(function () { + /* + * Without the setTimeout, the dom node is not being focused. Related: + * https://stackoverflow.com/questions/35522220/react-ref-with-focus-doesnt-work-without-settimeout-my-example + * + * TODO: Treat the cause, not the symptom. + */ + var focusTimeout = setTimeout(function () { + if (!focusOnMount || !contentRef.current) { + return; + } + + if (focusOnMount === 'firstElement') { + // Find first tabbable node within content and shift focus, falling + // back to the popover panel itself. + var firstTabbable = external_this_wp_dom_["focus"].tabbable.find(contentRef.current)[0]; + + if (firstTabbable) { + firstTabbable.focus(); + } else { + contentRef.current.focus(); + } + + return; + } + + if (focusOnMount === 'container') { + // Focus the popover panel itself so items in the popover are easily + // accessed via keyboard navigation. + contentRef.current.focus(); + } + }, 0); + return function () { + return clearTimeout(focusTimeout); + }; + }, []); +} +/** + * Sets or removes an element attribute. + * + * @param {Element} element The element to modify. + * @param {string} name The attribute name to set or remove. + * @param {?string} value The value to set. A falsy value will remove the + * attribute. + */ + + +function setAttribute(element, name, value) { + if (!value) { + if (element.hasAttribute(name)) { + element.removeAttribute(name); + } + } else if (element.getAttribute(name) !== value) { + element.setAttribute(name, value); + } +} +/** + * Sets or removes an element style property. + * + * @param {Element} element The element to modify. + * @param {string} property The property to set or remove. + * @param {?string} value The value to set. A falsy value will remove the + * property. + */ + + +function setStyle(element, property) { + var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; + + if (element.style[property] !== value) { + element.style[property] = value; + } +} +/** + * Sets or removes an element class. + * + * @param {Element} element The element to modify. + * @param {string} name The class to set or remove. + * @param {boolean} toggle True to set the class, false to remove. + */ + + +function setClass(element, name, toggle) { + if (toggle) { + if (!element.classList.contains(name)) { + element.classList.add(name); + } + } else if (element.classList.contains(name)) { + element.classList.remove(name); + } +} + +var popover_Popover = function Popover(_ref2) { + var headerTitle = _ref2.headerTitle, + onClose = _ref2.onClose, + onKeyDown = _ref2.onKeyDown, + children = _ref2.children, + className = _ref2.className, + _ref2$noArrow = _ref2.noArrow, + noArrow = _ref2$noArrow === void 0 ? true : _ref2$noArrow, + isAlternate = _ref2.isAlternate, + _ref2$position = _ref2.position, + position = _ref2$position === void 0 ? 'bottom right' : _ref2$position, + range = _ref2.range, + _ref2$focusOnMount = _ref2.focusOnMount, + focusOnMount = _ref2$focusOnMount === void 0 ? 'firstElement' : _ref2$focusOnMount, + anchorRef = _ref2.anchorRef, + shouldAnchorIncludePadding = _ref2.shouldAnchorIncludePadding, + anchorRect = _ref2.anchorRect, + getAnchorRect = _ref2.getAnchorRect, + expandOnMobile = _ref2.expandOnMobile, + _ref2$animate = _ref2.animate, + animate = _ref2$animate === void 0 ? true : _ref2$animate, + onClickOutside = _ref2.onClickOutside, + onFocusOutside = _ref2.onFocusOutside, + __unstableSticky = _ref2.__unstableSticky, + _ref2$__unstableSlotN = _ref2.__unstableSlotName, + __unstableSlotName = _ref2$__unstableSlotN === void 0 ? SLOT_NAME : _ref2$__unstableSlotN, + __unstableAllowVerticalSubpixelPosition = _ref2.__unstableAllowVerticalSubpixelPosition, + __unstableAllowHorizontalSubpixelPosition = _ref2.__unstableAllowHorizontalSubpixelPosition, + _ref2$__unstableFixed = _ref2.__unstableFixedPosition, + __unstableFixedPosition = _ref2$__unstableFixed === void 0 ? true : _ref2$__unstableFixed, + __unstableBoundaryParent = _ref2.__unstableBoundaryParent, + contentProps = Object(objectWithoutProperties["a" /* default */])(_ref2, ["headerTitle", "onClose", "onKeyDown", "children", "className", "noArrow", "isAlternate", "position", "range", "focusOnMount", "anchorRef", "shouldAnchorIncludePadding", "anchorRect", "getAnchorRect", "expandOnMobile", "animate", "onClickOutside", "onFocusOutside", "__unstableSticky", "__unstableSlotName", "__unstableAllowVerticalSubpixelPosition", "__unstableAllowHorizontalSubpixelPosition", "__unstableFixedPosition", "__unstableBoundaryParent"]); + + var anchorRefFallback = Object(external_this_wp_element_["useRef"])(null); + var contentRef = Object(external_this_wp_element_["useRef"])(null); + var containerRef = Object(external_this_wp_element_["useRef"])(); + var isMobileViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<'); + + var _useState = Object(external_this_wp_element_["useState"])(), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + animateOrigin = _useState2[0], + setAnimateOrigin = _useState2[1]; + + var slot = Object(use_slot["a" /* default */])(__unstableSlotName); + var isExpanded = expandOnMobile && isMobileViewport; + + var _useResizeObserver = Object(external_this_wp_compose_["useResizeObserver"])(), + _useResizeObserver2 = Object(slicedToArray["a" /* default */])(_useResizeObserver, 2), + containerResizeListener = _useResizeObserver2[0], + contentSize = _useResizeObserver2[1]; + + noArrow = isExpanded || noArrow; + Object(external_this_wp_element_["useLayoutEffect"])(function () { + if (isExpanded) { + setClass(containerRef.current, 'is-without-arrow', noArrow); + setClass(containerRef.current, 'is-alternate', isAlternate); + setAttribute(containerRef.current, 'data-x-axis'); + setAttribute(containerRef.current, 'data-y-axis'); + setStyle(containerRef.current, 'top'); + setStyle(containerRef.current, 'left'); + setStyle(contentRef.current, 'maxHeight'); + setStyle(contentRef.current, 'maxWidth'); + setStyle(containerRef.current, 'position'); + return; + } + + var refresh = function refresh() { + var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + subpixels = _ref3.subpixels; + + if (!containerRef.current || !contentRef.current) { + return; + } + + var anchor = computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect, anchorRef, shouldAnchorIncludePadding); + + if (!anchor) { + return; + } + + var relativeOffsetTop = 0; // If there is a positioned ancestor element that is not the body, + // subtract the position from the anchor rect. If the position of + // the popover is fixed, the offset parent is null or the body + // element, in which case the position is relative to the viewport. + // See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent + + if (!__unstableFixedPosition) { + setStyle(containerRef.current, 'position', 'absolute'); + var offsetParent = containerRef.current.offsetParent; + var offsetParentRect = offsetParent.getBoundingClientRect(); + relativeOffsetTop = offsetParentRect.top; + anchor = new window.DOMRect(anchor.left - offsetParentRect.left, anchor.top - offsetParentRect.top, anchor.width, anchor.height); + } else { + setStyle(containerRef.current, 'position'); + } + + var boundaryElement; + + if (__unstableBoundaryParent) { + var _containerRef$current; + + boundaryElement = (_containerRef$current = containerRef.current.closest('.popover-slot')) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.parentNode; + } + + var usedContentSize = !contentSize.height ? contentRef.current.getBoundingClientRect() : contentSize; + + var _computePopoverPositi = computePopoverPosition(anchor, usedContentSize, position, __unstableSticky, containerRef.current, relativeOffsetTop, boundaryElement), + popoverTop = _computePopoverPositi.popoverTop, + popoverLeft = _computePopoverPositi.popoverLeft, + xAxis = _computePopoverPositi.xAxis, + yAxis = _computePopoverPositi.yAxis, + contentHeight = _computePopoverPositi.contentHeight, + contentWidth = _computePopoverPositi.contentWidth; + + if (typeof popoverTop === 'number' && typeof popoverLeft === 'number') { + if (subpixels && __unstableAllowVerticalSubpixelPosition) { + setStyle(containerRef.current, 'left', popoverLeft + 'px'); + setStyle(containerRef.current, 'top'); + setStyle(containerRef.current, 'transform', "translateY(".concat(popoverTop, "px)")); + } else if (subpixels && __unstableAllowHorizontalSubpixelPosition) { + setStyle(containerRef.current, 'top', popoverTop + 'px'); + setStyle(containerRef.current, 'left'); + setStyle(containerRef.current, 'transform', "translate(".concat(popoverLeft, "px)")); + } else { + setStyle(containerRef.current, 'top', popoverTop + 'px'); + setStyle(containerRef.current, 'left', popoverLeft + 'px'); + setStyle(containerRef.current, 'transform'); + } + } + + setClass(containerRef.current, 'is-without-arrow', noArrow || xAxis === 'center' && yAxis === 'middle'); + setClass(containerRef.current, 'is-alternate', isAlternate); + setAttribute(containerRef.current, 'data-x-axis', xAxis); + setAttribute(containerRef.current, 'data-y-axis', yAxis); + setStyle(contentRef.current, 'maxHeight', typeof contentHeight === 'number' ? contentHeight + 'px' : ''); + setStyle(contentRef.current, 'maxWidth', typeof contentWidth === 'number' ? contentWidth + 'px' : ''); // Compute the animation position + + var yAxisMapping = { + top: 'bottom', + bottom: 'top' + }; + var xAxisMapping = { + left: 'right', + right: 'left' + }; + var animateYAxis = yAxisMapping[yAxis] || 'middle'; + var animateXAxis = xAxisMapping[xAxis] || 'center'; + setAnimateOrigin(animateXAxis + ' ' + animateYAxis); + }; // Height may still adjust between now and the next tick. + + + var timeoutId = window.setTimeout(refresh); + /* + * There are sometimes we need to reposition or resize the popover that + * are not handled by the resize/scroll window events (i.e. CSS changes + * in the layout that changes the position of the anchor). + * + * For these situations, we refresh the popover every 0.5s + */ + + var intervalHandle = window.setInterval(refresh, 500); + var rafId; + + var refreshOnAnimationFrame = function refreshOnAnimationFrame() { + window.cancelAnimationFrame(rafId); + rafId = window.requestAnimationFrame(refresh); + }; // Sometimes a click trigger a layout change that affects the popover + // position. This is an opportunity to immediately refresh rather than + // at the interval. + + + window.addEventListener('click', refreshOnAnimationFrame); + window.addEventListener('resize', refresh); + window.addEventListener('scroll', refresh, true); + var observer; + var observeElement = __unstableAllowVerticalSubpixelPosition || __unstableAllowHorizontalSubpixelPosition; + + if (observeElement) { + observer = new window.MutationObserver(function () { + return refresh({ + subpixels: true + }); + }); + observer.observe(observeElement, { + attributes: true + }); + } + + return function () { + window.clearTimeout(timeoutId); + window.clearInterval(intervalHandle); + window.removeEventListener('resize', refresh); + window.removeEventListener('scroll', refresh, true); + window.removeEventListener('click', refreshOnAnimationFrame); + window.cancelAnimationFrame(rafId); + + if (observer) { + observer.disconnect(); + } + }; + }, [isExpanded, anchorRect, getAnchorRect, anchorRef, shouldAnchorIncludePadding, position, contentSize, __unstableSticky, __unstableAllowVerticalSubpixelPosition, __unstableAllowHorizontalSubpixelPosition, __unstableBoundaryParent]); + useFocusContentOnMount(focusOnMount, contentRef); // Event handlers + + var maybeClose = function maybeClose(event) { + // Close on escape + if (event.keyCode === external_this_wp_keycodes_["ESCAPE"] && onClose) { + event.stopPropagation(); + onClose(); + } // Preserve original content prop behavior + + + if (onKeyDown) { + onKeyDown(event); + } + }; + /** + * Shims an onFocusOutside callback to be compatible with a deprecated + * onClickOutside prop function, if provided. + * + * @param {FocusEvent} event Focus event from onFocusOutside. + */ + + + function handleOnFocusOutside(event) { + // Defer to given `onFocusOutside` if specified. Call `onClose` only if + // both `onFocusOutside` and `onClickOutside` are unspecified. Doing so + // assures backwards-compatibility for prior `onClickOutside` default. + if (onFocusOutside) { + onFocusOutside(event); + return; + } else if (!onClickOutside) { + if (onClose) { + onClose(); + } + + return; + } // Simulate MouseEvent using FocusEvent#relatedTarget as emulated click + // target. MouseEvent constructor is unsupported in Internet Explorer. + + + var clickEvent; + + try { + clickEvent = new window.MouseEvent('click'); + } catch (error) { + clickEvent = document.createEvent('MouseEvent'); + clickEvent.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); + } + + Object.defineProperty(clickEvent, 'target', { + get: function get() { + return event.relatedTarget; + } + }); + external_this_wp_deprecated_default()('Popover onClickOutside prop', { + alternative: 'onFocusOutside' + }); + onClickOutside(clickEvent); + } // Disable reason: We care to capture the _bubbled_ events from inputs + // within popover as inferring close intent. + + + var content = Object(external_this_wp_element_["createElement"])(detect_outside, { + onFocusOutside: handleOnFocusOutside + }, Object(external_this_wp_element_["createElement"])(build_module_animate["a" /* default */], { + type: animate && animateOrigin ? 'appear' : null, + options: { + origin: animateOrigin + } + }, function (_ref4) { + var animateClassName = _ref4.className; + return Object(external_this_wp_element_["createElement"])(isolated_event_container["a" /* default */], Object(esm_extends["a" /* default */])({ + className: classnames_default()('components-popover', className, animateClassName, { + 'is-expanded': isExpanded, + 'is-without-arrow': noArrow, + 'is-alternate': isAlternate + }) + }, contentProps, { + onKeyDown: maybeClose, + ref: containerRef + }), isExpanded && Object(external_this_wp_element_["createElement"])(scroll_lock["a" /* default */], null), isExpanded && Object(external_this_wp_element_["createElement"])("div", { + className: "components-popover__header" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "components-popover__header-title" + }, headerTitle), Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: "components-popover__close", + icon: library_close["a" /* default */], + onClick: onClose + })), Object(external_this_wp_element_["createElement"])("div", { + ref: contentRef, + className: "components-popover__content", + tabIndex: "-1" + }, Object(external_this_wp_element_["createElement"])("div", { + style: { + position: 'relative' + } + }, containerResizeListener, children))); + })); // Apply focus to element as long as focusOnMount is truthy; false is + // the only "disabled" value. + + if (focusOnMount) { + content = Object(external_this_wp_element_["createElement"])(FocusManaged, null, content); + } + + if (slot.ref) { + content = Object(external_this_wp_element_["createElement"])(slot_fill["a" /* Fill */], { + name: __unstableSlotName + }, content); + } + + if (anchorRef || anchorRect) { + return content; + } + + return Object(external_this_wp_element_["createElement"])("span", { + ref: anchorRefFallback + }, content); +}; + +var PopoverContainer = popover_Popover; + +PopoverContainer.Slot = function (_ref5) { + var _ref5$name = _ref5.name, + name = _ref5$name === void 0 ? SLOT_NAME : _ref5$name; + return Object(external_this_wp_element_["createElement"])(slot_fill["b" /* Slot */], { + bubblesVirtually: true, + name: name, + className: "popover-slot" + }); +}; + +/* harmony default export */ var popover = __webpack_exports__["a"] = (PopoverContainer); + + +/***/ }), +/* 107 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3609,12 +7549,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(156)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(157)); -var React = __webpack_require__(21); +var _extends = _interopDefault(__webpack_require__(161)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(162)); +var React = __webpack_require__(17); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(127)); -var _assertThisInitialized = _interopDefault(__webpack_require__(158)); +var _inheritsLoose = _interopDefault(__webpack_require__(139)); +var _assertThisInitialized = _interopDefault(__webpack_require__(163)); var is = { arr: Array.isArray, @@ -5929,1553 +9869,251 @@ exports.useSprings = useSprings; /***/ }), -/* 78 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 108 */, +/* 109 */ +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _objectWithoutPropertiesLoose; }); -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } +// +// Main +// - return obj; +function memoize (fn, options) { + var cache = options && options.cache + ? options.cache + : cacheDefault + + var serializer = options && options.serializer + ? options.serializer + : serializerDefault + + var strategy = options && options.strategy + ? options.strategy + : strategyDefault + + return strategy(fn, { + cache: cache, + serializer: serializer + }) } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +// +// Strategy +// - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - - return keys; +function isPrimitive (value) { + return value == null || typeof value === 'number' || typeof value === 'boolean' // || typeof value === "string" 'unsafe' primitive for our needs } -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; +function monadic (fn, cache, serializer, arg) { + var cacheKey = isPrimitive(arg) ? arg : serializer(arg) - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } + var computedValue = cache.get(cacheKey) + if (typeof computedValue === 'undefined') { + computedValue = fn.call(this, arg) + cache.set(cacheKey, computedValue) } - return target; + return computedValue } -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; +function variadic (fn, cache, serializer) { + var args = Array.prototype.slice.call(arguments, 3) + var cacheKey = serializer(args) - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; + var computedValue = cache.get(cacheKey) + if (typeof computedValue === 'undefined') { + computedValue = fn.apply(this, args) + cache.set(cacheKey, computedValue) } - return target; + return computedValue } +function assemble (fn, context, strategy, cache, serialize) { + return strategy.bind( + context, + fn, + cache, + serialize + ) +} +function strategyDefault (fn, options) { + var strategy = fn.length === 1 ? monadic : variadic + + return assemble( + fn, + this, + strategy, + options.cache.create(), + options.serializer + ) +} + +function strategyVariadic (fn, options) { + var strategy = variadic + + return assemble( + fn, + this, + strategy, + options.cache.create(), + options.serializer + ) +} + +function strategyMonadic (fn, options) { + var strategy = monadic + + return assemble( + fn, + this, + strategy, + options.cache.create(), + options.serializer + ) +} + +// +// Serializer +// + +function serializerDefault () { + return JSON.stringify(arguments) +} + +// +// Cache +// + +function ObjectWithoutPrototypeCache () { + this.cache = Object.create(null) +} + +ObjectWithoutPrototypeCache.prototype.has = function (key) { + return (key in this.cache) +} + +ObjectWithoutPrototypeCache.prototype.get = function (key) { + return this.cache[key] +} + +ObjectWithoutPrototypeCache.prototype.set = function (key, value) { + this.cache[key] = value +} + +var cacheDefault = { + create: function create () { + return new ObjectWithoutPrototypeCache() + } +} + +// +// API +// + +module.exports = memoize +module.exports.strategies = { + variadic: strategyVariadic, + monadic: strategyMonadic +} /***/ }), -/* 79 */ +/* 110 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var keys = __webpack_require__(166); -var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; - -var toStr = Object.prototype.toString; -var concat = Array.prototype.concat; -var origDefineProperty = Object.defineProperty; - -var isFunction = function (fn) { - return typeof fn === 'function' && toStr.call(fn) === '[object Function]'; -}; - -var arePropertyDescriptorsSupported = function () { - var obj = {}; - try { - origDefineProperty(obj, 'x', { enumerable: false, value: obj }); - // eslint-disable-next-line no-unused-vars, no-restricted-syntax - for (var _ in obj) { // jscs:ignore disallowUnusedVariables - return false; - } - return obj.x === obj; - } catch (e) { /* this is IE 8. */ - return false; - } -}; -var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported(); - -var defineProperty = function (object, name, value, predicate) { - if (name in object && (!isFunction(predicate) || !predicate())) { - return; - } - if (supportsDescriptors) { - origDefineProperty(object, name, { - configurable: true, - enumerable: false, - value: value, - writable: true - }); - } else { - object[name] = value; - } -}; - -var defineProperties = function (object, map) { - var predicates = arguments.length > 2 ? arguments[2] : {}; - var props = keys(map); - if (hasSymbols) { - props = concat.call(props, Object.getOwnPropertySymbols(map)); - } - for (var i = 0; i < props.length; i += 1) { - defineProperty(object, props[i], map[props[i]], predicates[props[i]]); - } -}; - -defineProperties.supportsDescriptors = !!supportsDescriptors; - -module.exports = defineProperties; - - -/***/ }), -/* 80 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var ES5Type = __webpack_require__(305); - -// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring - -module.exports = function Type(x) { - if (typeof x === 'symbol') { - return 'Symbol'; - } - return ES5Type(x); -}; - - -/***/ }), -/* 81 */ -/***/ (function(module, exports, __webpack_require__) { - -var moment = __webpack_require__(33); -var momentValidationWrapper = __webpack_require__(345); -var core = __webpack_require__(346); - -module.exports = { - - momentObj : core.createMomentChecker( - 'object', - function(obj) { - return typeof obj === 'object'; - }, - function isValid(value) { - return momentValidationWrapper.isValidMoment(value); - }, - 'Moment' - ), - - momentString : core.createMomentChecker( - 'string', - function(str) { - return typeof str === 'string'; - }, - function isValid(value) { - return momentValidationWrapper.isValidMoment(moment(value)); - }, - 'Moment' - ), - - momentDurationObj : core.createMomentChecker( - 'object', - function(obj) { - return typeof obj === 'object'; - }, - function isValid(value) { - return moment.isDuration(value); - }, - 'Duration' - ), - -}; - - -/***/ }), -/* 82 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export Box */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useBox; }); -/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63); -/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62); - - - -var useBox = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_1__[/* createHook */ "a"])({ - name: "Box", - keys: ["unstable_system"] -}); -var Box = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_0__[/* createComponent */ "a"])({ - as: "div", - useHook: useBox -}); - - - - -/***/ }), -/* 83 */ -/***/ (function(module, exports, __webpack_require__) { - -var rng = __webpack_require__(116); -var bytesToUuid = __webpack_require__(117); - -function v4(options, buf, offset) { - var i = buf && offset || 0; - - if (typeof(options) == 'string') { - buf = options === 'binary' ? new Array(16) : null; - options = null; - } - options = options || {}; - - var rnds = options.random || (options.rng || rng)(); - - // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - - // Copy bytes to buffer, if provided - if (buf) { - for (var ii = 0; ii < 16; ++ii) { - buf[i + ii] = rnds[ii]; - } - } - - return buf || bytesToUuid(rnds); -} - -module.exports = v4; - - -/***/ }), -/* 84 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = __webpack_require__(150); - -/***/ }), -/* 85 */, -/* 86 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _dashicon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(96); - - - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -function Icon(_ref) { - var _ref$icon = _ref.icon, - icon = _ref$icon === void 0 ? null : _ref$icon, - size = _ref.size, - additionalProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_ref, ["icon", "size"]); - - // Dashicons should be 20x20 by default. - var dashiconSize = size || 20; - - if ('string' === typeof icon) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_dashicon__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({ - icon: icon, - size: dashiconSize - }, additionalProps)); - } - - if (icon && _dashicon__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"] === icon.type) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(icon, _objectSpread({ - size: dashiconSize - }, additionalProps)); - } // Icons should be 24x24 by default. - - - var iconSize = size || 24; - - if ('function' === typeof icon) { - if (icon.prototype instanceof _wordpress_element__WEBPACK_IMPORTED_MODULE_3__["Component"]) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(icon, _objectSpread({ - size: iconSize - }, additionalProps)); - } - - return icon(_objectSpread({ - size: iconSize - }, additionalProps)); - } - - if (icon && (icon.type === 'svg' || icon.type === _wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__["SVG"])) { - var appliedProps = _objectSpread({ - width: iconSize, - height: iconSize - }, icon.props, {}, additionalProps); - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_4__["SVG"], appliedProps); - } - - if (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["isValidElement"])(icon)) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(icon, _objectSpread({ - size: iconSize - }, additionalProps)); - } - - return icon; -} - -/* harmony default export */ __webpack_exports__["a"] = (Icon); - - -/***/ }), -/* 87 */, -/* 88 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SystemContext; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var SystemContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({}); - - - - -/***/ }), -/* 89 */, -/* 90 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__); - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Input types which are classified as button types, for use in considering - * whether element is a (focus-normalized) button. - * - * @type {string[]} - */ - -var INPUT_BUTTON_TYPES = ['button', 'submit']; -/** - * Returns true if the given element is a button element subject to focus - * normalization, or false otherwise. - * - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - * - * @param {Element} element Element to test. - * - * @return {boolean} Whether element is a button. - */ - -function isFocusNormalizedButton(element) { - switch (element.nodeName) { - case 'A': - case 'BUTTON': - return true; - - case 'INPUT': - return Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(INPUT_BUTTON_TYPES, element.type); - } - - return false; -} - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__["createHigherOrderComponent"])(function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_class, _Component); - - function _class() { - var _this; - - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, _class); - - _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(_class).apply(this, arguments)); - _this.bindNode = _this.bindNode.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_this)); - _this.cancelBlurCheck = _this.cancelBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_this)); - _this.queueBlurCheck = _this.queueBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_this)); - _this.normalizeButtonFocus = _this.normalizeButtonFocus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_this)); - return _this; - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_class, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.cancelBlurCheck(); - } - }, { - key: "bindNode", - value: function bindNode(node) { - if (node) { - this.node = node; - } else { - delete this.node; - this.cancelBlurCheck(); - } - } - }, { - key: "queueBlurCheck", - value: function queueBlurCheck(event) { - var _this2 = this; - - // React does not allow using an event reference asynchronously - // due to recycling behavior, except when explicitly persisted. - event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`. - - if (this.preventBlurCheck) { - return; - } - - this.blurCheckTimeout = setTimeout(function () { - // If document is not focused then focus should remain - // inside the wrapped component and therefore we cancel - // this blur event thereby leaving focus in place. - // https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus. - if (!document.hasFocus()) { - event.preventDefault(); - return; - } - - if ('function' === typeof _this2.node.handleFocusOutside) { - _this2.node.handleFocusOutside(event); - } - }, 0); - } - }, { - key: "cancelBlurCheck", - value: function cancelBlurCheck() { - clearTimeout(this.blurCheckTimeout); - } - /** - * Handles a mousedown or mouseup event to respectively assign and - * unassign a flag for preventing blur check on button elements. Some - * browsers, namely Firefox and Safari, do not emit a focus event on - * button elements when clicked, while others do. The logic here - * intends to normalize this as treating click on buttons as focus. - * - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - * - * @param {MouseEvent} event Event for mousedown or mouseup. - */ - - }, { - key: "normalizeButtonFocus", - value: function normalizeButtonFocus(event) { - var type = event.type, - target = event.target; - var isInteractionEnd = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(['mouseup', 'touchend'], type); - - if (isInteractionEnd) { - this.preventBlurCheck = false; - } else if (isFocusNormalizedButton(target)) { - this.preventBlurCheck = true; - } - } - }, { - key: "render", - value: function render() { - // Disable reason: See `normalizeButtonFocus` for browser-specific - // focus event normalization. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", { - onFocus: this.cancelBlurCheck, - onMouseDown: this.normalizeButtonFocus, - onMouseUp: this.normalizeButtonFocus, - onTouchStart: this.normalizeButtonFocus, - onTouchEnd: this.normalizeButtonFocus, - onBlur: this.queueBlurCheck - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ - ref: this.bindNode - }, this.props))); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return _class; - }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]) - ); -}, 'withFocusOutside')); - - -/***/ }), -/* 91 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(20); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(11); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(28); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(22); - -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js -var library_close = __webpack_require__(120); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(5); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/utils.js - - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * Module constants - */ - -var HEIGHT_OFFSET = 10; // used by the arrow and a bit of empty space - -/** - * Utility used to compute the popover position over the xAxis - * - * @param {Object} anchorRect Anchor Rect. - * @param {Object} contentSize Content Size. - * @param {string} xAxis Desired xAxis. - * @param {string} corner Desired corner. - * @param {boolean} sticky Whether or not to stick the popover to the - * scroll container edge when part of the anchor - * leaves view. - * @param {string} chosenYAxis yAxis to be used. - * - * @return {Object} Popover xAxis position and constraints. - */ - -function computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, sticky, chosenYAxis) { - var width = contentSize.width; - var isRTL = document.documentElement.dir === 'rtl'; // Correct xAxis for RTL support - - if (xAxis === 'left' && isRTL) { - xAxis = 'right'; - } else if (xAxis === 'right' && isRTL) { - xAxis = 'left'; - } - - if (corner === 'left' && isRTL) { - corner = 'right'; - } else if (corner === 'right' && isRTL) { - corner = 'left'; - } // x axis alignment choices - - - var anchorMidPoint = Math.round(anchorRect.left + anchorRect.width / 2); - var centerAlignment = { - popoverLeft: anchorMidPoint, - contentWidth: (anchorMidPoint - width / 2 > 0 ? width / 2 : anchorMidPoint) + (anchorMidPoint + width / 2 > window.innerWidth ? window.innerWidth - anchorMidPoint : width / 2) - }; - var leftAlignmentX = anchorRect.left; - - if (corner === 'right') { - leftAlignmentX = anchorRect.right; - } else if (chosenYAxis !== 'middle') { - leftAlignmentX = anchorMidPoint; - } - - var rightAlignmentX = anchorRect.right; - - if (corner === 'left') { - rightAlignmentX = anchorRect.left; - } else if (chosenYAxis !== 'middle') { - rightAlignmentX = anchorMidPoint; - } - - var leftAlignment = { - popoverLeft: leftAlignmentX, - contentWidth: leftAlignmentX - width > 0 ? width : leftAlignmentX - }; - var rightAlignment = { - popoverLeft: rightAlignmentX, - contentWidth: rightAlignmentX + width > window.innerWidth ? window.innerWidth - rightAlignmentX : width - }; // Choosing the x axis - - var chosenXAxis = xAxis; - var contentWidth = null; - - if (!sticky) { - if (xAxis === 'center' && centerAlignment.contentWidth === width) { - chosenXAxis = 'center'; - } else if (xAxis === 'left' && leftAlignment.contentWidth === width) { - chosenXAxis = 'left'; - } else if (xAxis === 'right' && rightAlignment.contentWidth === width) { - chosenXAxis = 'right'; - } else { - chosenXAxis = leftAlignment.contentWidth > rightAlignment.contentWidth ? 'left' : 'right'; - var chosenWidth = chosenXAxis === 'left' ? leftAlignment.contentWidth : rightAlignment.contentWidth; - contentWidth = chosenWidth !== width ? chosenWidth : null; - } - } - - var popoverLeft; - - if (chosenXAxis === 'center') { - popoverLeft = centerAlignment.popoverLeft; - } else if (chosenXAxis === 'left') { - popoverLeft = leftAlignment.popoverLeft; - } else { - popoverLeft = rightAlignment.popoverLeft; - } - - return { - xAxis: chosenXAxis, - popoverLeft: popoverLeft, - contentWidth: contentWidth - }; -} -/** - * Utility used to compute the popover position over the yAxis - * - * @param {Object} anchorRect Anchor Rect. - * @param {Object} contentSize Content Size. - * @param {string} yAxis Desired yAxis. - * @param {string} corner Desired corner. - * @param {boolean} sticky Whether or not to stick the popover to the - * scroll container edge when part of the - * anchor leaves view. - * @param {Element} anchorRef The anchor element. - * @param {Element} relativeOffsetTop If applicable, top offset of the relative - * positioned parent container. - * - * @return {Object} Popover xAxis position and constraints. - */ - -function computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, sticky, anchorRef, relativeOffsetTop) { - var height = contentSize.height; - - if (sticky) { - var scrollContainerEl = Object(external_this_wp_dom_["getScrollContainer"])(anchorRef) || document.body; - var scrollRect = scrollContainerEl.getBoundingClientRect(); - - if (anchorRect.top - height <= scrollRect.top) { - return { - yAxis: yAxis, - popoverTop: Math.min(anchorRect.bottom - relativeOffsetTop, scrollRect.top + height - relativeOffsetTop) - }; - } - } // y axis alignment choices - - - var anchorMidPoint = anchorRect.top + anchorRect.height / 2; - - if (corner === 'bottom') { - anchorMidPoint = anchorRect.bottom; - } else if (corner === 'top') { - anchorMidPoint = anchorRect.top; - } - - var middleAlignment = { - popoverTop: anchorMidPoint, - contentHeight: (anchorMidPoint - height / 2 > 0 ? height / 2 : anchorMidPoint) + (anchorMidPoint + height / 2 > window.innerHeight ? window.innerHeight - anchorMidPoint : height / 2) - }; - var topAlignment = { - popoverTop: anchorRect.top, - contentHeight: anchorRect.top - HEIGHT_OFFSET - height > 0 ? height : anchorRect.top - HEIGHT_OFFSET - }; - var bottomAlignment = { - popoverTop: anchorRect.bottom, - contentHeight: anchorRect.bottom + HEIGHT_OFFSET + height > window.innerHeight ? window.innerHeight - HEIGHT_OFFSET - anchorRect.bottom : height - }; // Choosing the y axis - - var chosenYAxis = yAxis; - var contentHeight = null; - - if (!sticky) { - if (yAxis === 'middle' && middleAlignment.contentHeight === height) { - chosenYAxis = 'middle'; - } else if (yAxis === 'top' && topAlignment.contentHeight === height) { - chosenYAxis = 'top'; - } else if (yAxis === 'bottom' && bottomAlignment.contentHeight === height) { - chosenYAxis = 'bottom'; - } else { - chosenYAxis = topAlignment.contentHeight > bottomAlignment.contentHeight ? 'top' : 'bottom'; - var chosenHeight = chosenYAxis === 'top' ? topAlignment.contentHeight : bottomAlignment.contentHeight; - contentHeight = chosenHeight !== height ? chosenHeight : null; - } - } - - var popoverTop; - - if (chosenYAxis === 'middle') { - popoverTop = middleAlignment.popoverTop; - } else if (chosenYAxis === 'top') { - popoverTop = topAlignment.popoverTop; - } else { - popoverTop = bottomAlignment.popoverTop; - } - - return { - yAxis: chosenYAxis, - popoverTop: popoverTop, - contentHeight: contentHeight - }; -} -/** - * Utility used to compute the popover position and the content max width/height - * for a popover given its anchor rect and its content size. - * - * @param {Object} anchorRect Anchor Rect. - * @param {Object} contentSize Content Size. - * @param {string} position Position. - * @param {boolean} sticky Whether or not to stick the popover to the - * scroll container edge when part of the - * anchor leaves view. - * @param {Element} anchorRef The anchor element. - * @param {number} relativeOffsetTop If applicable, top offset of the relative - * positioned parent container. - * - * @return {Object} Popover position and constraints. - */ - -function computePopoverPosition(anchorRect, contentSize) { - var position = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'top'; - var sticky = arguments.length > 3 ? arguments[3] : undefined; - var anchorRef = arguments.length > 4 ? arguments[4] : undefined; - var relativeOffsetTop = arguments.length > 5 ? arguments[5] : undefined; - - var _position$split = position.split(' '), - _position$split2 = Object(slicedToArray["a" /* default */])(_position$split, 3), - yAxis = _position$split2[0], - _position$split2$ = _position$split2[1], - xAxis = _position$split2$ === void 0 ? 'center' : _position$split2$, - corner = _position$split2[2]; - - var yAxisPosition = computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, sticky, anchorRef, relativeOffsetTop); - var xAxisPosition = computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, sticky, yAxisPosition.yAxis); - return _objectSpread({}, xAxisPosition, {}, yAxisPosition); -} - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js -var with_focus_return = __webpack_require__(107); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js -var with_constrained_tabbing = __webpack_require__(106); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js -var with_focus_outside = __webpack_require__(90); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js - - - - - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var detect_outside_PopoverDetectOutside = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(PopoverDetectOutside, _Component); - - function PopoverDetectOutside() { - Object(classCallCheck["a" /* default */])(this, PopoverDetectOutside); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PopoverDetectOutside).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(PopoverDetectOutside, [{ - key: "handleFocusOutside", - value: function handleFocusOutside(event) { - this.props.onFocusOutside(event); - } - }, { - key: "render", - value: function render() { - return this.props.children; - } - }]); - - return PopoverDetectOutside; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var detect_outside = (Object(with_focus_outside["a" /* default */])(detect_outside_PopoverDetectOutside)); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js -var build_module_button = __webpack_require__(36); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js -var scroll_lock = __webpack_require__(141); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js -var isolated_event_container = __webpack_require__(109); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(108); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 4 modules -var slot_fill = __webpack_require__(95); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var build_module_animate = __webpack_require__(140); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - - - - - - - - -var FocusManaged = Object(with_constrained_tabbing["a" /* default */])(Object(with_focus_return["a" /* default */])(function (_ref) { - var children = _ref.children; - return children; -})); -/** - * Name of slot in which popover should fill. - * - * @type {string} - */ - -var SLOT_NAME = 'Popover'; - -function computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect) { - var anchorRef = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - var shouldAnchorIncludePadding = arguments.length > 4 ? arguments[4] : undefined; - - if (anchorRect) { - return anchorRect; - } - - if (getAnchorRect) { - if (!anchorRefFallback.current) { - return; - } - - return getAnchorRect(anchorRefFallback.current); - } - - if (anchorRef !== false) { - if (!anchorRef) { - return; - } - - if (anchorRef instanceof window.Range) { - return Object(external_this_wp_dom_["getRectangleFromRange"])(anchorRef); - } - - if (anchorRef instanceof window.Element) { - var _rect2 = anchorRef.getBoundingClientRect(); - - if (shouldAnchorIncludePadding) { - return _rect2; - } - - return withoutPadding(_rect2, anchorRef); - } - - var top = anchorRef.top, - bottom = anchorRef.bottom; - var topRect = top.getBoundingClientRect(); - var bottomRect = bottom.getBoundingClientRect(); - - var _rect = new window.DOMRect(topRect.left, topRect.top, topRect.width, bottomRect.bottom - topRect.top); - - if (shouldAnchorIncludePadding) { - return _rect; - } - - return withoutPadding(_rect, anchorRef); - } - - if (!anchorRefFallback.current) { - return; - } - - var parentNode = anchorRefFallback.current.parentNode; - var rect = parentNode.getBoundingClientRect(); - - if (shouldAnchorIncludePadding) { - return rect; - } - - return withoutPadding(rect, parentNode); -} - -function withoutPadding(rect, element) { - var _window$getComputedSt = window.getComputedStyle(element), - paddingTop = _window$getComputedSt.paddingTop, - paddingBottom = _window$getComputedSt.paddingBottom, - paddingLeft = _window$getComputedSt.paddingLeft, - paddingRight = _window$getComputedSt.paddingRight; - - var top = paddingTop ? parseInt(paddingTop, 10) : 0; - var bottom = paddingBottom ? parseInt(paddingBottom, 10) : 0; - var left = paddingLeft ? parseInt(paddingLeft, 10) : 0; - var right = paddingRight ? parseInt(paddingRight, 10) : 0; - return { - x: rect.left + left, - y: rect.top + top, - width: rect.width - left - right, - height: rect.height - top - bottom, - left: rect.left + left, - right: rect.right - right, - top: rect.top + top, - bottom: rect.bottom - bottom - }; -} -/** - * Hook used to focus the first tabbable element on mount. - * - * @param {boolean|string} focusOnMount Focus on mount mode. - * @param {Object} contentRef Reference to the popover content element. - */ - - -function useFocusContentOnMount(focusOnMount, contentRef) { - // Focus handling - Object(external_this_wp_element_["useEffect"])(function () { - /* - * Without the setTimeout, the dom node is not being focused. Related: - * https://stackoverflow.com/questions/35522220/react-ref-with-focus-doesnt-work-without-settimeout-my-example - * - * TODO: Treat the cause, not the symptom. - */ - var focusTimeout = setTimeout(function () { - if (!focusOnMount || !contentRef.current) { - return; - } - - if (focusOnMount === 'firstElement') { - // Find first tabbable node within content and shift focus, falling - // back to the popover panel itself. - var firstTabbable = external_this_wp_dom_["focus"].tabbable.find(contentRef.current)[0]; - - if (firstTabbable) { - firstTabbable.focus(); - } else { - contentRef.current.focus(); - } - - return; - } - - if (focusOnMount === 'container') { - // Focus the popover panel itself so items in the popover are easily - // accessed via keyboard navigation. - contentRef.current.focus(); - } - }, 0); - return function () { - return clearTimeout(focusTimeout); - }; - }, []); -} -/** - * Sets or removes an element attribute. - * - * @param {Element} element The element to modify. - * @param {string} name The attribute name to set or remove. - * @param {?string} value The value to set. A falsy value will remove the - * attribute. - */ - - -function setAttribute(element, name, value) { - if (!value) { - if (element.hasAttribute(name)) { - element.removeAttribute(name); - } - } else if (element.getAttribute(name) !== value) { - element.setAttribute(name, value); - } -} -/** - * Sets or removes an element style property. - * - * @param {Element} element The element to modify. - * @param {string} property The property to set or remove. - * @param {?string} value The value to set. A falsy value will remove the - * property. - */ - - -function setStyle(element, property) { - var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; - - if (element.style[property] !== value) { - element.style[property] = value; - } -} -/** - * Sets or removes an element class. - * - * @param {Element} element The element to modify. - * @param {string} name The class to set or remove. - * @param {boolean} toggle True to set the class, false to remove. - */ - - -function setClass(element, name, toggle) { - if (toggle) { - if (!element.classList.contains(name)) { - element.classList.add(name); - } - } else if (element.classList.contains(name)) { - element.classList.remove(name); - } -} - -var popover_Popover = function Popover(_ref2) { - var headerTitle = _ref2.headerTitle, - onClose = _ref2.onClose, - onKeyDown = _ref2.onKeyDown, - children = _ref2.children, - className = _ref2.className, - _ref2$noArrow = _ref2.noArrow, - noArrow = _ref2$noArrow === void 0 ? false : _ref2$noArrow, - _ref2$position = _ref2.position, - position = _ref2$position === void 0 ? 'top' : _ref2$position, - range = _ref2.range, - _ref2$focusOnMount = _ref2.focusOnMount, - focusOnMount = _ref2$focusOnMount === void 0 ? 'firstElement' : _ref2$focusOnMount, - anchorRef = _ref2.anchorRef, - shouldAnchorIncludePadding = _ref2.shouldAnchorIncludePadding, - anchorRect = _ref2.anchorRect, - getAnchorRect = _ref2.getAnchorRect, - expandOnMobile = _ref2.expandOnMobile, - _ref2$animate = _ref2.animate, - animate = _ref2$animate === void 0 ? true : _ref2$animate, - onClickOutside = _ref2.onClickOutside, - onFocusOutside = _ref2.onFocusOutside, - __unstableSticky = _ref2.__unstableSticky, - _ref2$__unstableSlotN = _ref2.__unstableSlotName, - __unstableSlotName = _ref2$__unstableSlotN === void 0 ? SLOT_NAME : _ref2$__unstableSlotN, - __unstableAllowVerticalSubpixelPosition = _ref2.__unstableAllowVerticalSubpixelPosition, - __unstableAllowHorizontalSubpixelPosition = _ref2.__unstableAllowHorizontalSubpixelPosition, - _ref2$__unstableFixed = _ref2.__unstableFixedPosition, - __unstableFixedPosition = _ref2$__unstableFixed === void 0 ? true : _ref2$__unstableFixed, - contentProps = Object(objectWithoutProperties["a" /* default */])(_ref2, ["headerTitle", "onClose", "onKeyDown", "children", "className", "noArrow", "position", "range", "focusOnMount", "anchorRef", "shouldAnchorIncludePadding", "anchorRect", "getAnchorRect", "expandOnMobile", "animate", "onClickOutside", "onFocusOutside", "__unstableSticky", "__unstableSlotName", "__unstableAllowVerticalSubpixelPosition", "__unstableAllowHorizontalSubpixelPosition", "__unstableFixedPosition"]); - - var anchorRefFallback = Object(external_this_wp_element_["useRef"])(null); - var contentRef = Object(external_this_wp_element_["useRef"])(null); - var containerRef = Object(external_this_wp_element_["useRef"])(); - var contentRect = Object(external_this_wp_element_["useRef"])(); - var isMobileViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<'); - - var _useState = Object(external_this_wp_element_["useState"])(), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - animateOrigin = _useState2[0], - setAnimateOrigin = _useState2[1]; - - var slot = Object(use_slot["a" /* default */])(__unstableSlotName); - var isExpanded = expandOnMobile && isMobileViewport; - noArrow = isExpanded || noArrow; - Object(external_this_wp_element_["useEffect"])(function () { - if (isExpanded) { - setClass(containerRef.current, 'is-without-arrow', noArrow); - setAttribute(containerRef.current, 'data-x-axis'); - setAttribute(containerRef.current, 'data-y-axis'); - setStyle(containerRef.current, 'top'); - setStyle(containerRef.current, 'left'); - setStyle(contentRef.current, 'maxHeight'); - setStyle(contentRef.current, 'maxWidth'); - setStyle(containerRef.current, 'position'); - return; - } - - var refresh = function refresh() { - var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - subpixels = _ref3.subpixels; - - if (!containerRef.current || !contentRef.current) { - return; - } - - var anchor = computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect, anchorRef, shouldAnchorIncludePadding); - - if (!anchor) { - return; - } - - if (!contentRect.current) { - contentRect.current = contentRef.current.getBoundingClientRect(); - } - - var relativeOffsetTop = 0; // If there is a positioned ancestor element that is not the body, - // subtract the position from the anchor rect. If the position of - // the popover is fixed, the offset parent is null or the body - // element, in which case the position is relative to the viewport. - // See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent - - if (!__unstableFixedPosition) { - setStyle(containerRef.current, 'position', 'absolute'); - var offsetParent = containerRef.current.offsetParent; - var offsetParentRect = offsetParent.getBoundingClientRect(); - relativeOffsetTop = offsetParentRect.top; - anchor = new window.DOMRect(anchor.left - offsetParentRect.left, anchor.top - offsetParentRect.top, anchor.width, anchor.height); - } else { - setStyle(containerRef.current, 'position'); - } - - var _computePopoverPositi = computePopoverPosition(anchor, contentRect.current, position, __unstableSticky, containerRef.current, relativeOffsetTop), - popoverTop = _computePopoverPositi.popoverTop, - popoverLeft = _computePopoverPositi.popoverLeft, - xAxis = _computePopoverPositi.xAxis, - yAxis = _computePopoverPositi.yAxis, - contentHeight = _computePopoverPositi.contentHeight, - contentWidth = _computePopoverPositi.contentWidth; - - if (typeof popoverTop === 'number' && typeof popoverLeft === 'number') { - if (subpixels && __unstableAllowVerticalSubpixelPosition) { - setStyle(containerRef.current, 'left', popoverLeft + 'px'); - setStyle(containerRef.current, 'top'); - setStyle(containerRef.current, 'transform', "translateY(".concat(popoverTop, "px)")); - } else if (subpixels && __unstableAllowHorizontalSubpixelPosition) { - setStyle(containerRef.current, 'top', popoverTop + 'px'); - setStyle(containerRef.current, 'left'); - setStyle(containerRef.current, 'transform', "translate(".concat(popoverLeft, "px)")); - } else { - setStyle(containerRef.current, 'top', popoverTop + 'px'); - setStyle(containerRef.current, 'left', popoverLeft + 'px'); - setStyle(containerRef.current, 'transform'); - } - } - - setClass(containerRef.current, 'is-without-arrow', noArrow || xAxis === 'center' && yAxis === 'middle'); - setAttribute(containerRef.current, 'data-x-axis', xAxis); - setAttribute(containerRef.current, 'data-y-axis', yAxis); - setStyle(contentRef.current, 'maxHeight', typeof contentHeight === 'number' ? contentHeight + 'px' : ''); - setStyle(contentRef.current, 'maxWidth', typeof contentWidth === 'number' ? contentWidth + 'px' : ''); // Compute the animation position - - var yAxisMapping = { - top: 'bottom', - bottom: 'top' - }; - var xAxisMapping = { - left: 'right', - right: 'left' - }; - var animateYAxis = yAxisMapping[yAxis] || 'middle'; - var animateXAxis = xAxisMapping[xAxis] || 'center'; - setAnimateOrigin(animateXAxis + ' ' + animateYAxis); - }; // Height may still adjust between now and the next tick. - - - var timeoutId = window.setTimeout(refresh); - /* - * There are sometimes we need to reposition or resize the popover that - * are not handled by the resize/scroll window events (i.e. CSS changes - * in the layout that changes the position of the anchor). - * - * For these situations, we refresh the popover every 0.5s - */ - - var intervalHandle = window.setInterval(refresh, 500); - var rafId; - - var refreshOnAnimationFrame = function refreshOnAnimationFrame() { - window.cancelAnimationFrame(rafId); - rafId = window.requestAnimationFrame(refresh); - }; // Sometimes a click trigger a layout change that affects the popover - // position. This is an opportunity to immediately refresh rather than - // at the interval. - - - window.addEventListener('click', refreshOnAnimationFrame); - window.addEventListener('resize', refresh); - window.addEventListener('scroll', refresh, true); - var observer; - var observeElement = __unstableAllowVerticalSubpixelPosition || __unstableAllowHorizontalSubpixelPosition; - - if (observeElement) { - observer = new window.MutationObserver(function () { - return refresh({ - subpixels: true - }); - }); - observer.observe(observeElement, { - attributes: true - }); - } - - return function () { - window.clearTimeout(timeoutId); - window.clearInterval(intervalHandle); - window.removeEventListener('resize', refresh); - window.removeEventListener('scroll', refresh, true); - window.removeEventListener('click', refreshOnAnimationFrame); - window.cancelAnimationFrame(rafId); - - if (observer) { - observer.disconnect(); - } - }; - }, [isExpanded, anchorRect, getAnchorRect, anchorRef, shouldAnchorIncludePadding, position, __unstableSticky, __unstableAllowVerticalSubpixelPosition, __unstableAllowHorizontalSubpixelPosition]); - useFocusContentOnMount(focusOnMount, contentRef); // Event handlers - - var maybeClose = function maybeClose(event) { - // Close on escape - if (event.keyCode === external_this_wp_keycodes_["ESCAPE"] && onClose) { - event.stopPropagation(); - onClose(); - } // Preserve original content prop behavior - - - if (onKeyDown) { - onKeyDown(event); - } - }; - /** - * Shims an onFocusOutside callback to be compatible with a deprecated - * onClickOutside prop function, if provided. - * - * @param {FocusEvent} event Focus event from onFocusOutside. - */ - - - function handleOnFocusOutside(event) { - // Defer to given `onFocusOutside` if specified. Call `onClose` only if - // both `onFocusOutside` and `onClickOutside` are unspecified. Doing so - // assures backwards-compatibility for prior `onClickOutside` default. - if (onFocusOutside) { - onFocusOutside(event); - return; - } else if (!onClickOutside) { - if (onClose) { - onClose(); - } - - return; - } // Simulate MouseEvent using FocusEvent#relatedTarget as emulated click - // target. MouseEvent constructor is unsupported in Internet Explorer. - - - var clickEvent; - - try { - clickEvent = new window.MouseEvent('click'); - } catch (error) { - clickEvent = document.createEvent('MouseEvent'); - clickEvent.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); - } - - Object.defineProperty(clickEvent, 'target', { - get: function get() { - return event.relatedTarget; - } - }); - external_this_wp_deprecated_default()('Popover onClickOutside prop', { - alternative: 'onFocusOutside' - }); - onClickOutside(clickEvent); - } // Disable reason: We care to capture the _bubbled_ events from inputs - // within popover as inferring close intent. - - - var content = Object(external_this_wp_element_["createElement"])(detect_outside, { - onFocusOutside: handleOnFocusOutside - }, Object(external_this_wp_element_["createElement"])(build_module_animate["a" /* default */], { - type: animate && animateOrigin ? 'appear' : null, - options: { - origin: animateOrigin - } - }, function (_ref4) { - var animateClassName = _ref4.className; - return Object(external_this_wp_element_["createElement"])(isolated_event_container["a" /* default */], Object(esm_extends["a" /* default */])({ - className: classnames_default()('components-popover', className, animateClassName, { - 'is-expanded': isExpanded, - 'is-without-arrow': noArrow - }) - }, contentProps, { - onKeyDown: maybeClose, - ref: containerRef - }), isExpanded && Object(external_this_wp_element_["createElement"])(scroll_lock["a" /* default */], null), isExpanded && Object(external_this_wp_element_["createElement"])("div", { - className: "components-popover__header" - }, Object(external_this_wp_element_["createElement"])("span", { - className: "components-popover__header-title" - }, headerTitle), Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { - className: "components-popover__close", - icon: library_close["a" /* default */], - onClick: onClose - })), Object(external_this_wp_element_["createElement"])("div", { - ref: contentRef, - className: "components-popover__content", - tabIndex: "-1" - }, children)); - })); // Apply focus to element as long as focusOnMount is truthy; false is - // the only "disabled" value. - - if (focusOnMount) { - content = Object(external_this_wp_element_["createElement"])(FocusManaged, null, content); - } - - if (slot.ref) { - content = Object(external_this_wp_element_["createElement"])(slot_fill["a" /* Fill */], { - name: __unstableSlotName - }, content); - } - - if (anchorRef || anchorRect) { - return content; - } - - return Object(external_this_wp_element_["createElement"])("span", { - ref: anchorRefFallback - }, content); -}; - -var PopoverContainer = popover_Popover; - -PopoverContainer.Slot = function (_ref5) { - var _ref5$name = _ref5.name, - name = _ref5$name === void 0 ? SLOT_NAME : _ref5$name; - return Object(external_this_wp_element_["createElement"])(slot_fill["b" /* Slot */], { - bubblesVirtually: true, - name: name - }); -}; - -/* harmony default export */ var popover = __webpack_exports__["a"] = (PopoverContainer); - - -/***/ }), -/* 92 */, -/* 93 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(300); +var implementation = __webpack_require__(307); module.exports = Function.prototype.bind || implementation; /***/ }), -/* 94 */ -/***/ (function(module, exports, __webpack_require__) { +/* 111 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isTextField; }); +/** + * Check whether the given element is a text field, where text field is defined + * by the ability to select within the input, or that it is contenteditable. + */ +function isTextField(element) { + try { + var isTextInput = element instanceof HTMLInputElement && element.selectionStart !== null; + var isTextArea = element.tagName === "TEXTAREA"; + var isContentEditable = element.contentEditable === "true"; + return isTextInput || isTextArea || isContentEditable || false; + } catch (error) { + // Safari throws an exception when trying to get `selectionStart` + // on non-text elements (which, understandably, don't + // have the text selection API). We catch this via a try/catch + // block, as opposed to a more explicit check of the element's + // input types, because of Safari's non-standard behavior. This + // also means we don't have to worry about the list of input + // types that support `selectionStart` changing as the HTML spec + // evolves over time. + return false; + } +} -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); /***/ }), -/* 95 */ +/* 112 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return setTextFieldValue; }); +function setTextFieldValue(element, value) { + element.value = value; +} + + + + +/***/ }), +/* 113 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(12); +var esm_extends = __webpack_require__(8); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); +var classCallCheck = __webpack_require__(19); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); +var createClass = __webpack_require__(18); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(7); +var assertThisInitialized = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(13); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(17); +var inherits = __webpack_require__(20); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js + 1 modules -var context = __webpack_require__(98); +var context = __webpack_require__(116); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/slot.js @@ -7487,6 +10125,10 @@ var context = __webpack_require__(98); +function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -7502,17 +10144,17 @@ var context = __webpack_require__(98); -var slot_SlotComponent = -/*#__PURE__*/ -function (_Component) { +var slot_SlotComponent = /*#__PURE__*/function (_Component) { Object(inherits["a" /* default */])(SlotComponent, _Component); + var _super = _createSuper(SlotComponent); + function SlotComponent() { var _this; Object(classCallCheck["a" /* default */])(this, SlotComponent); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(SlotComponent).apply(this, arguments)); + _this = _super.apply(this, arguments); _this.bindNode = _this.bindNode.bind(Object(assertThisInitialized["a" /* default */])(_this)); return _this; } @@ -7679,15 +10321,8 @@ var fill_Fill = function Fill(props) { /* harmony default export */ var slot_fill_fill = (fill_Fill); -// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(51); -var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); - // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js -var slot_fill_context = __webpack_require__(114); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(108); +var slot_fill_context = __webpack_require__(127); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js @@ -7698,13 +10333,11 @@ var use_slot = __webpack_require__(108); * WordPress dependencies */ - /** * Internal dependencies */ - function bubbles_virtually_slot_Slot(_ref) { var name = _ref.name, _ref$fillProps = _ref.fillProps, @@ -7715,7 +10348,6 @@ function bubbles_virtually_slot_Slot(_ref) { var registry = Object(external_this_wp_element_["useContext"])(slot_fill_context["a" /* default */]); var ref = Object(external_this_wp_element_["useRef"])(); - var slot = Object(use_slot["a" /* default */])(name); Object(external_this_wp_element_["useLayoutEffect"])(function () { registry.registerSlot(name, ref, fillProps); return function () { @@ -7724,20 +10356,26 @@ function bubbles_virtually_slot_Slot(_ref) { // unregister and register the slot whenever fillProps change, which would // cause the fill to be re-mounted. We are only considering the initial value // of fillProps. - }, [registry.registerSlot, registry.unregisterSlot, name]); // fillProps may be an update that interact with the layout, so - // we useLayoutEffect + }, [registry.registerSlot, registry.unregisterSlot, name]); // fillProps may be an update that interacts with the layout, so we + // useLayoutEffect Object(external_this_wp_element_["useLayoutEffect"])(function () { - if (slot.fillProps && !external_this_wp_isShallowEqual_default()(slot.fillProps, fillProps)) { - registry.updateSlot(name, ref, fillProps); - } + registry.updateSlot(name, fillProps); }); return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({ ref: ref }, props)); } +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js +var use_slot = __webpack_require__(150); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js + + /** * WordPress dependencies */ @@ -7747,11 +10385,24 @@ function bubbles_virtually_slot_Slot(_ref) { */ + +function useForceUpdate() { + var _useState = Object(external_this_wp_element_["useState"])({}), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + setState = _useState2[1]; + + return function () { + return setState({}); + }; +} + function bubbles_virtually_fill_Fill(_ref) { var name = _ref.name, children = _ref.children; var slot = Object(use_slot["a" /* default */])(name); - var ref = Object(external_this_wp_element_["useRef"])(); + var ref = Object(external_this_wp_element_["useRef"])({ + rerender: useForceUpdate() + }); Object(external_this_wp_element_["useEffect"])(function () { // We register fills so we can keep track of their existance. // Some Slot implementations need to know if there're already fills @@ -7833,21 +10484,1545 @@ function createSlotFill(name) { /***/ }), -/* 96 */ +/* 114 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = __webpack_require__(168); + +/***/ }), +/* 115 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["warning"]; }()); + +/***/ }), +/* 116 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(16); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(18); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(20); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":"lodash"} +var external_this_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(40); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(14); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} +var external_this_wp_isShallowEqual_ = __webpack_require__(55); +var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +var slot_fill_context = __webpack_require__(127); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js + + + + + + + +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return Object(esm_typeof["a" /* default */])(key) === "symbol" ? key : String(key); } + +function _toPrimitive(input, hint) { if (Object(esm_typeof["a" /* default */])(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (Object(esm_typeof["a" /* default */])(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function useSlotRegistry() { + var _useState = Object(external_this_wp_element_["useState"])({}), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + slots = _useState2[0], + setSlots = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])({}), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + fills = _useState4[0], + setFills = _useState4[1]; + + var registerSlot = Object(external_this_wp_element_["useCallback"])(function (name, ref, fillProps) { + setSlots(function (prevSlots) { + var slot = prevSlots[name] || {}; + return _objectSpread({}, prevSlots, Object(defineProperty["a" /* default */])({}, name, _objectSpread({}, slot, { + ref: ref || slot.ref, + fillProps: fillProps || slot.fillProps || {} + }))); + }); + }, []); + var unregisterSlot = Object(external_this_wp_element_["useCallback"])(function (name, ref) { + setSlots(function (prevSlots) { + var slot = prevSlots[name], + nextSlots = Object(objectWithoutProperties["a" /* default */])(prevSlots, [name].map(_toPropertyKey)); // Make sure we're not unregistering a slot registered by another element + // See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412 + + + if ((slot === null || slot === void 0 ? void 0 : slot.ref) === ref) { + return nextSlots; + } + + return prevSlots; + }); + }, []); + var updateSlot = Object(external_this_wp_element_["useCallback"])(function (name, fillProps) { + var slot = slots[name]; + + if (!slot) { + return; + } + + if (!external_this_wp_isShallowEqual_default()(slot.fillProps, fillProps)) { + slot.fillProps = fillProps; + var slotFills = fills[name]; + + if (slotFills) { + // Force update fills + slotFills.map(function (fill) { + return fill.current.rerender(); + }); + } + } + }, [slots, fills]); + var registerFill = Object(external_this_wp_element_["useCallback"])(function (name, ref) { + setFills(function (prevFills) { + return _objectSpread({}, prevFills, Object(defineProperty["a" /* default */])({}, name, [].concat(Object(toConsumableArray["a" /* default */])(prevFills[name] || []), [ref]))); + }); + }, []); + var unregisterFill = Object(external_this_wp_element_["useCallback"])(function (name, ref) { + setFills(function (prevFills) { + if (prevFills[name]) { + return _objectSpread({}, prevFills, Object(defineProperty["a" /* default */])({}, name, prevFills[name].filter(function (fillRef) { + return fillRef !== ref; + }))); + } + + return prevFills; + }); + }, []); // Memoizing the return value so it can be directly passed to Provider value + + var registry = Object(external_this_wp_element_["useMemo"])(function () { + return { + slots: slots, + fills: fills, + registerSlot: registerSlot, + updateSlot: updateSlot, + unregisterSlot: unregisterSlot, + registerFill: registerFill, + unregisterFill: unregisterFill + }; + }, [slots, fills, registerSlot, updateSlot, unregisterSlot, registerFill, unregisterFill]); + return registry; +} + +function slot_fill_provider_SlotFillProvider(_ref) { + var children = _ref.children; + var registry = useSlotRegistry(); + return Object(external_this_wp_element_["createElement"])(slot_fill_context["a" /* default */].Provider, { + value: registry + }, children); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return context_useSlot; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Consumer; }); + + + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var SlotFillContext = Object(external_this_wp_element_["createContext"])({ + registerSlot: function registerSlot() {}, + unregisterSlot: function unregisterSlot() {}, + registerFill: function registerFill() {}, + unregisterFill: function unregisterFill() {}, + getSlot: function getSlot() {}, + getFills: function getFills() {}, + subscribe: function subscribe() {} +}); +var Provider = SlotFillContext.Provider, + Consumer = SlotFillContext.Consumer; + +var context_SlotFillProvider = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(SlotFillProvider, _Component); + + var _super = _createSuper(SlotFillProvider); + + function SlotFillProvider() { + var _this; + + Object(classCallCheck["a" /* default */])(this, SlotFillProvider); + + _this = _super.apply(this, arguments); + _this.registerSlot = _this.registerSlot.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.registerFill = _this.registerFill.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.unregisterSlot = _this.unregisterSlot.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.unregisterFill = _this.unregisterFill.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getSlot = _this.getSlot.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getFills = _this.getFills.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.hasFills = _this.hasFills.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.subscribe = _this.subscribe.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.slots = {}; + _this.fills = {}; + _this.listeners = []; + _this.contextValue = { + registerSlot: _this.registerSlot, + unregisterSlot: _this.unregisterSlot, + registerFill: _this.registerFill, + unregisterFill: _this.unregisterFill, + getSlot: _this.getSlot, + getFills: _this.getFills, + hasFills: _this.hasFills, + subscribe: _this.subscribe + }; + return _this; + } + + Object(createClass["a" /* default */])(SlotFillProvider, [{ + key: "registerSlot", + value: function registerSlot(name, slot) { + var previousSlot = this.slots[name]; + this.slots[name] = slot; + this.triggerListeners(); // Sometimes the fills are registered after the initial render of slot + // But before the registerSlot call, we need to rerender the slot + + this.forceUpdateSlot(name); // If a new instance of a slot is being mounted while another with the + // same name exists, force its update _after_ the new slot has been + // assigned into the instance, such that its own rendering of children + // will be empty (the new Slot will subsume all fills for this name). + + if (previousSlot) { + previousSlot.forceUpdate(); + } + } + }, { + key: "registerFill", + value: function registerFill(name, instance) { + this.fills[name] = [].concat(Object(toConsumableArray["a" /* default */])(this.fills[name] || []), [instance]); + this.forceUpdateSlot(name); + } + }, { + key: "unregisterSlot", + value: function unregisterSlot(name, instance) { + // If a previous instance of a Slot by this name unmounts, do nothing, + // as the slot and its fills should only be removed for the current + // known instance. + if (this.slots[name] !== instance) { + return; + } + + delete this.slots[name]; + this.triggerListeners(); + } + }, { + key: "unregisterFill", + value: function unregisterFill(name, instance) { + this.fills[name] = Object(external_this_lodash_["without"])(this.fills[name], instance); + this.resetFillOccurrence(name); + this.forceUpdateSlot(name); + } + }, { + key: "getSlot", + value: function getSlot(name) { + return this.slots[name]; + } + }, { + key: "getFills", + value: function getFills(name, slotInstance) { + // Fills should only be returned for the current instance of the slot + // in which they occupy. + if (this.slots[name] !== slotInstance) { + return []; + } + + return Object(external_this_lodash_["sortBy"])(this.fills[name], 'occurrence'); + } + }, { + key: "hasFills", + value: function hasFills(name) { + return this.fills[name] && !!this.fills[name].length; + } + }, { + key: "resetFillOccurrence", + value: function resetFillOccurrence(name) { + Object(external_this_lodash_["forEach"])(this.fills[name], function (instance) { + instance.occurrence = undefined; + }); + } + }, { + key: "forceUpdateSlot", + value: function forceUpdateSlot(name) { + var slot = this.getSlot(name); + + if (slot) { + slot.forceUpdate(); + } + } + }, { + key: "triggerListeners", + value: function triggerListeners() { + this.listeners.forEach(function (listener) { + return listener(); + }); + } + }, { + key: "subscribe", + value: function subscribe(listener) { + var _this2 = this; + + this.listeners.push(listener); + return function () { + _this2.listeners = Object(external_this_lodash_["without"])(_this2.listeners, listener); + }; + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(Provider, { + value: this.contextValue + }, Object(external_this_wp_element_["createElement"])(slot_fill_provider_SlotFillProvider, null, this.props.children)); + } + }]); + + return SlotFillProvider; +}(external_this_wp_element_["Component"]); +/** + * React hook returning the active slot given a name. + * + * @param {string} name Slot name. + * @return {Object} Slot object. + */ + + +var context_useSlot = function useSlot(name) { + var _useContext = Object(external_this_wp_element_["useContext"])(SlotFillContext), + getSlot = _useContext.getSlot, + subscribe = _useContext.subscribe; + + var _useState = Object(external_this_wp_element_["useState"])(getSlot(name)), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + slot = _useState2[0], + setSlot = _useState2[1]; + + Object(external_this_wp_element_["useEffect"])(function () { + setSlot(getSlot(name)); + var unsubscribe = subscribe(function () { + setSlot(getSlot(name)); + }); + return unsubscribe; + }, [name]); + return slot; +}; +/* harmony default export */ var context = __webpack_exports__["b"] = (context_SlotFillProvider); + + + +/***/ }), +/* 117 */, +/* 118 */, +/* 119 */ +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || new Function("return this")(); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }), +/* 120 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey + +module.exports = function IsPropertyKey(argument) { + return typeof argument === 'string' || typeof argument === 'symbol'; +}; + + +/***/ }), +/* 121 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22); +/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29); +/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_9__); + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * WordPress dependencies + */ + + + + +var withConstrainedTabbing = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__["createHigherOrderComponent"])(function (WrappedComponent) { + return /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_class, _Component); + + var _super = _createSuper(_class); + + function _class() { + var _this; + + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, _class); + + _this = _super.apply(this, arguments); + _this.focusContainRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createRef"])(); + _this.handleTabBehaviour = _this.handleTabBehaviour.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_this)); + return _this; + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_class, [{ + key: "handleTabBehaviour", + value: function handleTabBehaviour(event) { + if (event.keyCode !== _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__["TAB"]) { + return; + } + + var tabbables = _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__["focus"].tabbable.find(this.focusContainRef.current); + + if (!tabbables.length) { + return; + } + + var firstTabbable = tabbables[0]; + var lastTabbable = tabbables[tabbables.length - 1]; + + if (event.shiftKey && event.target === firstTabbable) { + event.preventDefault(); + lastTabbable.focus(); + } else if (!event.shiftKey && event.target === lastTabbable) { + event.preventDefault(); + firstTabbable.focus(); + /* + * When pressing Tab and none of the tabbables has focus, the keydown + * event happens on the wrapper div: move focus on the first tabbable. + */ + } else if (!tabbables.includes(event.target)) { + event.preventDefault(); + firstTabbable.focus(); + } + } + }, { + key: "render", + value: function render() { + // Disable reason: this component is non-interactive, but must capture + // events from the wrapped component to determine when the Tab key is used. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + onKeyDown: this.handleTabBehaviour, + ref: this.focusContainRef, + tabIndex: "-1" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, this.props)); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return _class; + }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]); +}, 'withConstrainedTabbing'); +/* harmony default export */ __webpack_exports__["a"] = (withConstrainedTabbing); + + +/***/ }), +/* 122 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(185); + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/** + * Returns true if the given object is component-like. An object is component- + * like if it is an instance of wp.element.Component, or is a function. + * + * @param {*} object Object to test. + * + * @return {boolean} Whether object is component-like. + */ + +function isComponentLike(object) { + return object instanceof _wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"] || typeof object === 'function'; +} +/** + * Higher Order Component used to be used to wrap disposable elements like + * sidebars, modals, dropdowns. When mounting the wrapped component, we track a + * reference to the current active element so we know where to restore focus + * when the component is unmounted. + * + * @param {(WPComponent|Object)} options The component to be enhanced with + * focus return behavior, or an object + * describing the component and the + * focus return characteristics. + * + * @return {WPComponent} Component with the focus restauration behaviour. + */ + + +function withFocusReturn(options) { + // Normalize as overloaded form `withFocusReturn( options )( Component )` + // or as `withFocusReturn( Component )`. + if (isComponentLike(options)) { + var WrappedComponent = options; + return withFocusReturn({})(WrappedComponent); + } + + var _options$onFocusRetur = options.onFocusReturn, + onFocusReturn = _options$onFocusRetur === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_7__["stubTrue"] : _options$onFocusRetur; + return function (WrappedComponent) { + var FocusReturn = /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(FocusReturn, _Component); + + var _super = _createSuper(FocusReturn); + + function FocusReturn() { + var _this; + + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, FocusReturn); + + _this = _super.apply(this, arguments); + _this.ownFocusedElements = new Set(); + _this.activeElementOnMount = document.activeElement; + + _this.setIsFocusedFalse = function () { + return _this.isFocused = false; + }; + + _this.setIsFocusedTrue = function (event) { + _this.ownFocusedElements.add(event.target); + + _this.isFocused = true; + }; + + return _this; + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(FocusReturn, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + var activeElementOnMount = this.activeElementOnMount, + isFocused = this.isFocused, + ownFocusedElements = this.ownFocusedElements; + + if (!isFocused) { + return; + } // Defer to the component's own explicit focus return behavior, + // if specified. The function should return `false` to prevent + // the default behavior otherwise occurring here. This allows + // for support that the `onFocusReturn` decides to allow the + // default behavior to occur under some conditions. + + + if (onFocusReturn() === false) { + return; + } + + var stack = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(lodash__WEBPACK_IMPORTED_MODULE_7__["without"].apply(void 0, [this.props.focus.focusHistory].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(ownFocusedElements)))), [activeElementOnMount]); + var candidate; + + while (candidate = stack.pop()) { + if (document.body.contains(candidate)) { + candidate.focus(); + return; + } + } + } + }, { + key: "render", + value: function render() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + onFocus: this.setIsFocusedTrue, + onBlur: this.setIsFocusedFalse + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, this.props.childProps)); + } + }]); + + return FocusReturn; + }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]); + + return function (props) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_context__WEBPACK_IMPORTED_MODULE_9__[/* Consumer */ "a"], null, function (context) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(FocusReturn, { + childProps: props, + focus: context + }); + }); + }; + }; +} + +/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["createHigherOrderComponent"])(withFocusReturn, 'withFocusReturn')); + + + +/***/ }), +/* 123 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); + + + + +/** + * WordPress dependencies + */ + + +function stopPropagation(event) { + event.stopPropagation(); +} + +/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(function (_ref, ref) { + var children = _ref.children, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["children"]); + + // Disable reason: this stops certain events from propagating outside of the component. + // - onMouseDown is disabled as this can cause interactions with other DOM elements + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, props, { + ref: ref, + onMouseDown: stopPropagation + }), children); + /* eslint-enable jsx-a11y/no-static-element-interactions */ +})); + + +/***/ }), +/* 124 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CompositeItem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useCompositeItem; }); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52); +/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67); +/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92); +/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54); +/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59); +/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(83); +/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(86); +/* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(85); +/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(105); +/* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(93); +/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(57); +/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(53); +/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(102); +/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(111); +/* harmony import */ var _setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(112); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +function getWidget(itemElement) { + return itemElement.querySelector("[data-composite-item-widget]"); +} + +function useItem(options) { + return Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () { + var _options$items; + + return (_options$items = options.items) === null || _options$items === void 0 ? void 0 : _options$items.find(function (item) { + return options.id && item.id === options.id; + }); + }, [options.items, options.id]); +} + +function targetIsAnotherItem(event, items) { + if (Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return false; + + for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(items), _step; !(_step = _iterator()).done;) { + var item = _step.value; + + if (item.ref.current === event.target) { + return true; + } + } + + return false; +} + +var useCompositeItem = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({ + name: "CompositeItem", + compose: [_Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__[/* useClickable */ "a"], _Id_Id_js__WEBPACK_IMPORTED_MODULE_15__[/* unstable_useId */ "a"]], + useState: _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__[/* u */ "g"], + propsAreEqual: function propsAreEqual(prev, next) { + if (!next.id || prev.id !== next.id) { + return _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__[/* useClickable */ "a"].unstable_propsAreEqual(prev, next); + } + + var prevCurrentId = prev.currentId, + prevMoves = prev.unstable_moves, + prevProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(prev, ["currentId", "unstable_moves"]); + + var nextCurrentId = next.currentId, + nextMoves = next.unstable_moves, + nextProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(next, ["currentId", "unstable_moves"]); + + if (nextCurrentId !== prevCurrentId) { + if (next.id === nextCurrentId || next.id === prevCurrentId) { + return false; + } + } else if (prevMoves !== nextMoves) { + return false; + } + + return _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__[/* useClickable */ "a"].unstable_propsAreEqual(prevProps, nextProps); + }, + useOptions: function useOptions(options) { + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, options), {}, { + id: options.id, + currentId: Object(_CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__[/* g */ "e"])(options), + unstable_clickOnSpace: options.unstable_hasActiveWidget ? false : options.unstable_clickOnSpace + }); + }, + useProps: function useProps(options, _ref) { + var _options$items2; + + var htmlRef = _ref.ref, + _ref$tabIndex = _ref.tabIndex, + htmlTabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, + htmlOnFocus = _ref.onFocus, + htmlOnBlur = _ref.onBlur, + htmlOnKeyDown = _ref.onKeyDown, + htmlOnClick = _ref.onClick, + htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref, ["ref", "tabIndex", "onFocus", "onBlur", "onKeyDown", "onClick"]); + + var ref = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null); + var id = options.id; + var trulyDisabled = options.disabled && !options.focusable; + var isCurrentItem = options.currentId === id; + var isCurrentItemRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(isCurrentItem); + var hasFocusedComposite = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false); + var item = useItem(options); + var onFocusRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnFocus); + var onBlurRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnBlur); + var onKeyDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyDown); + var onClickRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnClick); + var shouldTabIndex = !options.unstable_virtual && !options.unstable_hasActiveWidget && isCurrentItem || // We don't want to set tabIndex="-1" when using CompositeItem as a + // standalone component, without state props. + !((_options$items2 = options.items) === null || _options$items2 === void 0 ? void 0 : _options$items2.length); + Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () { + var _options$registerItem; + + if (!id) return undefined; + (_options$registerItem = options.registerItem) === null || _options$registerItem === void 0 ? void 0 : _options$registerItem.call(options, { + id: id, + ref: ref, + disabled: !!trulyDisabled + }); + return function () { + var _options$unregisterIt; + + (_options$unregisterIt = options.unregisterItem) === null || _options$unregisterIt === void 0 ? void 0 : _options$unregisterIt.call(options, id); + }; + }, [id, trulyDisabled, options.registerItem, options.unregisterItem]); + Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () { + var element = ref.current; + + if (!element) { + false ? undefined : void 0; + return; + } // `moves` will be incremented whenever next, previous, up, down, first, + // last or move have been called. This means that the composite item will + // be focused whenever some of these functions are called. We're using + // isCurrentItemRef instead of isCurrentItem because we don't want to + // focus the item if isCurrentItem changes (and options.moves doesn't). + + + if (options.unstable_moves && isCurrentItemRef.current) { + element.focus(); + } + }, [options.unstable_moves]); + var onFocus = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onFocusRef$current, _options$setCurrentId; + + (_onFocusRef$current = onFocusRef.current) === null || _onFocusRef$current === void 0 ? void 0 : _onFocusRef$current.call(onFocusRef, event); + if (event.defaultPrevented) return; + if (Object(reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__[/* isPortalEvent */ "a"])(event)) return; + if (!id) return; + if (targetIsAnotherItem(event, options.items)) return; + (_options$setCurrentId = options.setCurrentId) === null || _options$setCurrentId === void 0 ? void 0 : _options$setCurrentId.call(options, id); // When using aria-activedescendant, we want to make sure that the + // composite container receives focus, not the composite item. + // But we don't want to do this if the target is another focusable + // element inside the composite item, such as CompositeItemWidget. + + if (options.unstable_virtual && options.baseId && Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) { + var target = event.target; + var composite = Object(reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__[/* getDocument */ "a"])(target).getElementById(options.baseId); + + if (composite) { + hasFocusedComposite.current = true; + Object(reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__[/* ensureFocus */ "a"])(composite); + } + } + }, [id, options.items, options.setCurrentId, options.unstable_virtual, options.baseId]); + var onBlur = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onBlurRef$current; + + if (options.unstable_virtual) { + if (hasFocusedComposite.current) { + // When hasFocusedComposite is true, composite has been focused + // right after focusing this item. This is an intermediate blur + // event, so we ignore it. + hasFocusedComposite.current = false; + event.preventDefault(); + event.stopPropagation(); + return; + } + } + + (_onBlurRef$current = onBlurRef.current) === null || _onBlurRef$current === void 0 ? void 0 : _onBlurRef$current.call(onBlurRef, event); + }, [options.unstable_virtual]); + var onCharacterKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onKeyDownRef$current; + + (_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event); + if (!Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return; + + if (event.key.length === 1 && event.key !== " ") { + var widget = getWidget(event.currentTarget); + + if (widget && Object(reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__[/* isTextField */ "a"])(widget)) { + widget.focus(); + var key = event.key; // Using RAF here because otherwise the key will be added twice + // to the input when using roving tabindex + + window.requestAnimationFrame(function () { + Object(_setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__[/* s */ "a"])(widget, key); + }); + } + } + }, []); + var onKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () { + return Object(reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__[/* createOnKeyDown */ "a"])({ + onKeyDown: onCharacterKeyDown, + stopPropagation: true, + // We don't want to listen to focusable elements inside the composite + // item, such as a CompositeItemWidget. + shouldKeyDown: reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"], + keyMap: function keyMap() { + // `options.orientation` can also be undefined, which means that + // both `isVertical` and `isHorizontal` will be `true`. + var isVertical = options.orientation !== "horizontal"; + var isHorizontal = options.orientation !== "vertical"; + var isGrid = !!(item === null || item === void 0 ? void 0 : item.groupId); + + var Delete = function Delete(event) { + var widget = getWidget(event.currentTarget); + + if (widget && Object(reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_16__[/* isTextField */ "a"])(widget)) { + Object(_setTextFieldValue_78ab5d56_js__WEBPACK_IMPORTED_MODULE_17__[/* s */ "a"])(widget, ""); + } + }; + + var up = options.up && function () { + return options.up(); + }; + + var next = options.next && function () { + return options.next(); + }; + + var down = options.down && function () { + return options.down(); + }; + + var previous = options.previous && function () { + return options.previous(); + }; + + return { + Delete: Delete, + Backspace: Delete, + ArrowUp: (isGrid || isVertical) && up, + ArrowRight: (isGrid || isHorizontal) && next, + ArrowDown: (isGrid || isVertical) && down, + ArrowLeft: (isGrid || isHorizontal) && previous, + Home: function Home(event) { + if (!isGrid || event.ctrlKey) { + var _options$first; + + (_options$first = options.first) === null || _options$first === void 0 ? void 0 : _options$first.call(options); + } else { + var _options$previous; + + (_options$previous = options.previous) === null || _options$previous === void 0 ? void 0 : _options$previous.call(options, true); + } + }, + End: function End(event) { + if (!isGrid || event.ctrlKey) { + var _options$last; + + (_options$last = options.last) === null || _options$last === void 0 ? void 0 : _options$last.call(options); + } else { + var _options$next; + + (_options$next = options.next) === null || _options$next === void 0 ? void 0 : _options$next.call(options, true); + } + }, + PageUp: function PageUp() { + if (isGrid) { + var _options$up; + + (_options$up = options.up) === null || _options$up === void 0 ? void 0 : _options$up.call(options, true); + } else { + var _options$first2; + + (_options$first2 = options.first) === null || _options$first2 === void 0 ? void 0 : _options$first2.call(options); + } + }, + PageDown: function PageDown() { + if (isGrid) { + var _options$down; + + (_options$down = options.down) === null || _options$down === void 0 ? void 0 : _options$down.call(options, true); + } else { + var _options$last2; + + (_options$last2 = options.last) === null || _options$last2 === void 0 ? void 0 : _options$last2.call(options); + } + } + }; + } + }); + }, [onCharacterKeyDown, options.orientation, item, options.up, options.next, options.down, options.previous, options.first, options.last]); + var onClick = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) { + var _onClickRef$current; + + (_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 ? void 0 : _onClickRef$current.call(onClickRef, event); + if (event.defaultPrevented) return; + var element = event.currentTarget; + var widget = getWidget(element); + + if (widget && !Object(reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__[/* hasFocusWithin */ "a"])(widget)) { + // If there's a widget inside the composite item, we make sure it's + // focused when pressing enter, space or clicking on the composite item. + widget.focus(); + } + }, []); + return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ + ref: Object(reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__[/* useForkRef */ "a"])(ref, htmlRef), + id: id, + tabIndex: shouldTabIndex ? htmlTabIndex : -1, + "aria-selected": options.unstable_virtual && isCurrentItem ? true : undefined, + onFocus: onFocus, + onBlur: onBlur, + onKeyDown: onKeyDown, + onClick: onClick + }, htmlProps); + } +}); +var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({ + as: "button", + memo: true, + useHook: useCompositeItem +}); + + + + +/***/ }), +/* 125 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(465); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(115); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _toolbar_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77); + + + + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +function ToolbarItem(_ref, ref) { + var children = _ref.children, + Component = _ref.as, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_ref, ["children", "as"]); + + var accessibleToolbarState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_toolbar_context__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"]); + + if (typeof children !== 'function' && !Component) { + typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default()('`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component.') : void 0; + return null; + } + + var allProps = _objectSpread({}, props, { + ref: ref, + 'data-experimental-toolbar-item': true + }); + + if (!accessibleToolbarState) { + if (Component) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(Component, allProps, children); + } + + return children(allProps); + } + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__[/* ToolbarItem */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, accessibleToolbarState, allProps, { + as: Component + }), children); +} + +/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(ToolbarItem)); + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(100))) + +/***/ }), +/* 126 */, +/* 127 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/** + * WordPress dependencies + */ + +var SlotFillContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])({ + slots: {}, + fills: {}, + registerSlot: function registerSlot() {}, + updateSlot: function updateSlot() {}, + unregisterSlot: function unregisterSlot() {}, + registerFill: function registerFill() {}, + unregisterFill: function unregisterFill() {} +}); +/* harmony default export */ __webpack_exports__["a"] = (SlotFillContext); + + +/***/ }), +/* 128 */, +/* 129 */, +/* 130 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); + + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * WordPress dependencies + */ + // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. + +/* eslint-disable jsdoc/valid-types */ + +/** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ + +/* eslint-enable jsdoc/valid-types */ + +/** + * Return an SVG icon. + * + * @param {IconProps} props icon is the SVG component to render + * size is a number specifiying the icon size in pixels + * Other props will be passed to wrapped SVG component + * + * @return {JSX.Element} Icon component + */ + +function Icon(_ref) { + var icon = _ref.icon, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ + width: size, + height: size + }, props)); +} + +/* harmony default export */ __webpack_exports__["a"] = (Icon); + + +/***/ }), +/* 131 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = __webpack_require__(132); + +function emptyFunction() {} +function emptyFunctionWithReset() {} +emptyFunctionWithReset.resetWarningCache = emptyFunction; + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + err.name = 'Invariant Violation'; + throw err; + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + + +/***/ }), +/* 132 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 133 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["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" +})); +/* harmony default export */ __webpack_exports__["a"] = (close); + + +/***/ }), +/* 134 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(48); + +var callBind = __webpack_require__(173); + +var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); + +module.exports = function callBoundIntrinsic(name, allowMissing) { + var intrinsic = GetIntrinsic(name, !!allowMissing); + if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) { + return callBind(intrinsic); + } + return intrinsic; +}; + + +/***/ }), +/* 135 */ +/***/ (function(module, exports, __webpack_require__) { + +var moment = __webpack_require__(43); +var momentValidationWrapper = __webpack_require__(349); +var core = __webpack_require__(350); + +module.exports = { + + momentObj : core.createMomentChecker( + 'object', + function(obj) { + return typeof obj === 'object'; + }, + function isValid(value) { + return momentValidationWrapper.isValidMoment(value); + }, + 'Moment' + ), + + momentString : core.createMomentChecker( + 'string', + function(str) { + return typeof str === 'string'; + }, + function isValid(value) { + return momentValidationWrapper.isValidMoment(moment(value)); + }, + 'Moment' + ), + + momentDurationObj : core.createMomentChecker( + 'object', + function(obj) { + return typeof obj === 'object'; + }, + function isValid(value) { + return moment.isDuration(value); + }, + 'Duration' + ), + +}; + + +/***/ }), +/* 136 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _propTypes = __webpack_require__(33); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _constants = __webpack_require__(66); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]); + +/***/ }), +/* 137 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule shallowCompare + */ + + + +var shallowEqual = __webpack_require__(364); + +/** + * Does a shallow comparison for props and state. + * See ReactComponentWithPureRenderMixin + * See also https://facebook.github.io/react/docs/shallow-compare.html + */ +function shallowCompare(instance, nextProps, nextState) { + return ( + !shallowEqual(instance.props, nextProps) || + !shallowEqual(instance.state, nextState) + ); +} + +module.exports = shallowCompare; + + +/***/ }), +/* 138 */, +/* 139 */ +/***/ (function(module, exports) { + +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} + +module.exports = _inheritsLoose; + +/***/ }), +/* 140 */, +/* 141 */, +/* 142 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Dashicon; }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6); /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_8__); @@ -7858,6 +12033,10 @@ function createSlotFill(name) { +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /* !!! IF YOU ARE EDITING dashicon/index.jsx THEN YOU ARE EDITING A FILE THAT GETS OUTPUT FROM THE DASHICONS REPO! @@ -7871,15 +12050,15 @@ OR if you're looking to change now SVGs get output, you'll need to edit strings -var Dashicon = -/*#__PURE__*/ -function (_Component) { +var Dashicon = /*#__PURE__*/function (_Component) { Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Dashicon, _Component); + var _super = _createSuper(Dashicon); + function Dashicon() { Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, Dashicon); - return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Dashicon).apply(this, arguments)); + return _super.apply(this, arguments); } Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Dashicon, [{ @@ -9075,739 +13254,35 @@ function (_Component) { /***/ }), -/* 97 */ +/* 143 */, +/* 144 */, +/* 145 */, +/* 146 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useRoverState; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); -/* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); -/* harmony import */ var _Id_IdState_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71); - - - - - - -function reducer(state, action) { - var stops = state.stops, - currentId = state.currentId, - pastId = state.unstable_pastId, - moves = state.unstable_moves, - loop = state.loop; - - switch (action.type) { - case "register": - { - var _id = action.id, - _ref = action.ref; - - if (stops.length === 0) { - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - stops: [{ - id: _id, - ref: _ref - }] - }); - } - - var index = stops.findIndex(function (stop) { - return stop.id === _id; - }); - - if (index >= 0) { - return state; - } - - var indexToInsertAt = stops.findIndex(function (stop) { - if (!stop.ref.current || !_ref.current) return false; // Return true if the new rover element is located earlier in the DOM - // than stop's element, else false: - - return Boolean(stop.ref.current.compareDocumentPosition(_ref.current) & Node.DOCUMENT_POSITION_PRECEDING); - }); // findIndex returns -1 when the new rover should be inserted - // at the end of stops (the compareDocumentPosition test - // always returns false in that case). - - if (indexToInsertAt === -1) { - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - stops: [].concat(stops, [{ - id: _id, - ref: _ref - }]) - }); - } - - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - stops: [].concat(stops.slice(0, indexToInsertAt), [{ - id: _id, - ref: _ref - }], stops.slice(indexToInsertAt)) - }); - } - - case "unregister": - { - var _id2 = action.id; - var nextStops = stops.filter(function (stop) { - return stop.id !== _id2; - }); - - if (nextStops.length === stops.length) { - return state; - } - - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - stops: nextStops, - unstable_pastId: pastId && pastId === _id2 ? null : pastId, - currentId: currentId && currentId === _id2 ? null : currentId - }); - } - - case "move": - { - var _id3 = action.id, - silent = action.silent; - var nextMoves = silent ? moves : moves + 1; - - if (_id3 === null) { - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - currentId: null, - unstable_pastId: currentId, - unstable_moves: nextMoves - }); - } - - var _index = stops.findIndex(function (stop) { - return stop.id === _id3; - }); // Item doesn't exist, so we don't count a move - - - if (_index === -1) { - return state; - } - - if (stops[_index].id === currentId) { - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - unstable_moves: nextMoves - }); - } - - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - currentId: stops[_index].id, - unstable_pastId: currentId, - unstable_moves: nextMoves - }); - } - - case "next": - { - if (currentId == null) { - return reducer(state, { - type: "move", - id: stops[0] && stops[0].id - }); - } - - var _index2 = stops.findIndex(function (stop) { - return stop.id === currentId; - }); // If loop is truthy, turns [0, currentId, 2, 3] into [currentId, 2, 3, 0] - // Otherwise turns into [currentId, 2, 3] - - - var reorderedStops = [].concat(stops.slice(_index2 + 1), loop ? stops.slice(0, _index2) : []); - var nextIndex = reorderedStops.findIndex(function (stop) { - return stop.id === currentId; - }) + 1; - return reducer(state, { - type: "move", - id: reorderedStops[nextIndex] && reorderedStops[nextIndex].id - }); - } - - case "previous": - { - var _reducer = reducer(Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - stops: stops.slice().reverse() - }), { - type: "next" - }), - _ = _reducer.stops, - nextState = Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* _ */ "a"])(_reducer, ["stops"]); - - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, {}, nextState); - } - - case "first": - { - var stop = stops[0]; - return reducer(state, { - type: "move", - id: stop && stop.id - }); - } - - case "last": - { - var _stop = stops[stops.length - 1]; - return reducer(state, { - type: "move", - id: _stop && _stop.id - }); - } - - case "reset": - { - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - currentId: null, - unstable_pastId: null - }); - } - - case "orientate": - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, state, { - orientation: action.orientation - }); - - default: - throw new Error(); - } -} - -function useRoverState(initialState) { - if (initialState === void 0) { - initialState = {}; - } - - var _useSealedState = Object(reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__[/* useSealedState */ "a"])(initialState), - orientation = _useSealedState.orientation, - _useSealedState$curre = _useSealedState.currentId, - currentId = _useSealedState$curre === void 0 ? null : _useSealedState$curre, - _useSealedState$loop = _useSealedState.loop, - loop = _useSealedState$loop === void 0 ? false : _useSealedState$loop, - sealed = Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* _ */ "a"])(_useSealedState, ["orientation", "currentId", "loop"]); - - var _React$useReducer = Object(react__WEBPACK_IMPORTED_MODULE_0__["useReducer"])(reducer, { - orientation: orientation, - stops: [], - currentId: currentId, - unstable_pastId: null, - unstable_moves: 0, - loop: loop - }), - state = _React$useReducer[0], - dispatch = _React$useReducer[1]; - - var idState = Object(_Id_IdState_js__WEBPACK_IMPORTED_MODULE_3__[/* unstable_useIdState */ "a"])(sealed); - return Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({}, idState, {}, state, { - register: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (id, ref) { - return dispatch({ - type: "register", - id: id, - ref: ref - }); - }, []), - unregister: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (id) { - return dispatch({ - type: "unregister", - id: id - }); - }, []), - move: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (id, silent) { - return dispatch({ - type: "move", - id: id, - silent: silent - }); - }, []), - next: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function () { - return dispatch({ - type: "next" - }); - }, []), - previous: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function () { - return dispatch({ - type: "previous" - }); - }, []), - first: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function () { - return dispatch({ - type: "first" - }); - }, []), - last: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function () { - return dispatch({ - type: "last" - }); - }, []), - unstable_reset: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function () { - return dispatch({ - type: "reset" - }); - }, []), - unstable_orientate: Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (o) { - return dispatch({ - type: "orientate", - orientation: o - }); - }, []) - }); -} -var keys = [].concat(_Id_IdState_js__WEBPACK_IMPORTED_MODULE_3__[/* unstable_useIdState */ "a"].__keys, ["orientation", "stops", "currentId", "unstable_pastId", "unstable_moves", "loop", "register", "unregister", "move", "next", "previous", "first", "last", "unstable_reset", "unstable_orientate"]); -useRoverState.__keys = keys; - - - - -/***/ }), -/* 98 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(20); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(17); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":"lodash"} -var external_this_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js -var esm_typeof = __webpack_require__(34); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js -var slot_fill_context = __webpack_require__(114); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js - - - - - - - -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return Object(esm_typeof["a" /* default */])(key) === "symbol" ? key : String(key); } - -function _toPrimitive(input, hint) { if (Object(esm_typeof["a" /* default */])(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (Object(esm_typeof["a" /* default */])(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -function useSlotRegistry() { - var _useState = Object(external_this_wp_element_["useState"])({}), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - slots = _useState2[0], - setSlots = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])({}), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - fills = _useState4[0], - setFills = _useState4[1]; - - var registerSlot = Object(external_this_wp_element_["useCallback"])(function (name, ref, fillProps) { - setSlots(function (prevSlots) { - return _objectSpread({}, prevSlots, Object(defineProperty["a" /* default */])({}, name, _objectSpread({}, prevSlots[name], { - ref: ref || prevSlots[name].ref, - fillProps: fillProps || prevSlots[name].fillProps || {} - }))); - }); - }, []); - var unregisterSlot = Object(external_this_wp_element_["useCallback"])(function (name, ref) { - setSlots(function (prevSlots) { - // eslint-disable-next-line no-unused-vars - var slot = prevSlots[name], - nextSlots = Object(objectWithoutProperties["a" /* default */])(prevSlots, [name].map(_toPropertyKey)); // Make sure we're not unregistering a slot registered by another element - // See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412 - - - if ((slot === null || slot === void 0 ? void 0 : slot.ref) === ref) { - return nextSlots; - } - - return prevSlots; - }); - }, []); - var registerFill = Object(external_this_wp_element_["useCallback"])(function (name, ref) { - setFills(function (prevFills) { - return _objectSpread({}, prevFills, Object(defineProperty["a" /* default */])({}, name, [].concat(Object(toConsumableArray["a" /* default */])(prevFills[name] || []), [ref]))); - }); - }, []); - var unregisterFill = Object(external_this_wp_element_["useCallback"])(function (name, ref) { - setFills(function (prevFills) { - if (prevFills[name]) { - return _objectSpread({}, prevFills, Object(defineProperty["a" /* default */])({}, name, prevFills[name].filter(function (fillRef) { - return fillRef !== ref; - }))); - } - - return prevFills; - }); - }, []); // Memoizing the return value so it can be directly passed to Provider value - - var registry = Object(external_this_wp_element_["useMemo"])(function () { - return { - slots: slots, - fills: fills, - registerSlot: registerSlot, - // Just for readability - updateSlot: registerSlot, - unregisterSlot: unregisterSlot, - registerFill: registerFill, - unregisterFill: unregisterFill - }; - }, [slots, fills, registerSlot, unregisterSlot, registerFill, unregisterFill]); - return registry; -} - -function slot_fill_provider_SlotFillProvider(_ref) { - var children = _ref.children; - var registry = useSlotRegistry(); - return Object(external_this_wp_element_["createElement"])(slot_fill_context["a" /* default */].Provider, { - value: registry - }, children); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return context_useSlot; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Consumer; }); - - - - - - - - +/* unused harmony export warning */ /** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var SlotFillContext = Object(external_this_wp_element_["createContext"])({ - registerSlot: function registerSlot() {}, - unregisterSlot: function unregisterSlot() {}, - registerFill: function registerFill() {}, - unregisterFill: function unregisterFill() {}, - getSlot: function getSlot() {}, - getFills: function getFills() {}, - subscribe: function subscribe() {} -}); -var Provider = SlotFillContext.Provider, - Consumer = SlotFillContext.Consumer; - -var context_SlotFillProvider = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(SlotFillProvider, _Component); - - function SlotFillProvider() { - var _this; - - Object(classCallCheck["a" /* default */])(this, SlotFillProvider); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(SlotFillProvider).apply(this, arguments)); - _this.registerSlot = _this.registerSlot.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.registerFill = _this.registerFill.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.unregisterSlot = _this.unregisterSlot.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.unregisterFill = _this.unregisterFill.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getSlot = _this.getSlot.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getFills = _this.getFills.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.hasFills = _this.hasFills.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.subscribe = _this.subscribe.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.slots = {}; - _this.fills = {}; - _this.listeners = []; - _this.contextValue = { - registerSlot: _this.registerSlot, - unregisterSlot: _this.unregisterSlot, - registerFill: _this.registerFill, - unregisterFill: _this.unregisterFill, - getSlot: _this.getSlot, - getFills: _this.getFills, - hasFills: _this.hasFills, - subscribe: _this.subscribe - }; - return _this; - } - - Object(createClass["a" /* default */])(SlotFillProvider, [{ - key: "registerSlot", - value: function registerSlot(name, slot) { - var previousSlot = this.slots[name]; - this.slots[name] = slot; - this.triggerListeners(); // Sometimes the fills are registered after the initial render of slot - // But before the registerSlot call, we need to rerender the slot - - this.forceUpdateSlot(name); // If a new instance of a slot is being mounted while another with the - // same name exists, force its update _after_ the new slot has been - // assigned into the instance, such that its own rendering of children - // will be empty (the new Slot will subsume all fills for this name). - - if (previousSlot) { - previousSlot.forceUpdate(); - } - } - }, { - key: "registerFill", - value: function registerFill(name, instance) { - this.fills[name] = [].concat(Object(toConsumableArray["a" /* default */])(this.fills[name] || []), [instance]); - this.forceUpdateSlot(name); - } - }, { - key: "unregisterSlot", - value: function unregisterSlot(name, instance) { - // If a previous instance of a Slot by this name unmounts, do nothing, - // as the slot and its fills should only be removed for the current - // known instance. - if (this.slots[name] !== instance) { - return; - } - - delete this.slots[name]; - this.triggerListeners(); - } - }, { - key: "unregisterFill", - value: function unregisterFill(name, instance) { - this.fills[name] = Object(external_this_lodash_["without"])(this.fills[name], instance); - this.resetFillOccurrence(name); - this.forceUpdateSlot(name); - } - }, { - key: "getSlot", - value: function getSlot(name) { - return this.slots[name]; - } - }, { - key: "getFills", - value: function getFills(name, slotInstance) { - // Fills should only be returned for the current instance of the slot - // in which they occupy. - if (this.slots[name] !== slotInstance) { - return []; - } - - return Object(external_this_lodash_["sortBy"])(this.fills[name], 'occurrence'); - } - }, { - key: "hasFills", - value: function hasFills(name) { - return this.fills[name] && !!this.fills[name].length; - } - }, { - key: "resetFillOccurrence", - value: function resetFillOccurrence(name) { - Object(external_this_lodash_["forEach"])(this.fills[name], function (instance) { - instance.occurrence = undefined; - }); - } - }, { - key: "forceUpdateSlot", - value: function forceUpdateSlot(name) { - var slot = this.getSlot(name); - - if (slot) { - slot.forceUpdate(); - } - } - }, { - key: "triggerListeners", - value: function triggerListeners() { - this.listeners.forEach(function (listener) { - return listener(); - }); - } - }, { - key: "subscribe", - value: function subscribe(listener) { - var _this2 = this; - - this.listeners.push(listener); - return function () { - _this2.listeners = Object(external_this_lodash_["without"])(_this2.listeners, listener); - }; - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(Provider, { - value: this.contextValue - }, Object(external_this_wp_element_["createElement"])(slot_fill_provider_SlotFillProvider, null, this.props.children)); - } - }]); - - return SlotFillProvider; -}(external_this_wp_element_["Component"]); -/** - * React hook returning the active slot given a name. + * Logs `messages` to the console using `console.warn` based on a `condition`. * - * @param {string} name Slot name. - * @return {Object} Slot object. - */ - - -var context_useSlot = function useSlot(name) { - var _useContext = Object(external_this_wp_element_["useContext"])(SlotFillContext), - getSlot = _useContext.getSlot, - subscribe = _useContext.subscribe; - - var _useState = Object(external_this_wp_element_["useState"])(getSlot(name)), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - slot = _useState2[0], - setSlot = _useState2[1]; - - Object(external_this_wp_element_["useEffect"])(function () { - setSlot(getSlot(name)); - var unsubscribe = subscribe(function () { - setSlot(getSlot(name)); - }); - return unsubscribe; - }, [name]); - return slot; -}; -/* harmony default export */ var context = __webpack_exports__["b"] = (context_SlotFillProvider); - - - -/***/ }), -/* 99 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. + * @example + * import { warning } from "reakit-warning"; * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @providesModule shallowCompare + * warning(true, "a", "b"); // console.warn("a", "\n", "b") + * warning(false, "a", "b"); // does nothing */ - - -var shallowEqual = __webpack_require__(344); - -/** - * Does a shallow comparison for props and state. - * See ReactComponentWithPureRenderMixin - * See also https://facebook.github.io/react/docs/shallow-compare.html - */ -function shallowCompare(instance, nextProps, nextState) { - return ( - !shallowEqual(instance.props, nextProps) || - !shallowEqual(instance.state, nextState) - ); +function warning(condition) { + if (false) { var warns, _len, messages, _key, _console; } } -module.exports = shallowCompare; + /***/ }), -/* 100 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isSameDay; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function isSameDay(a, b) { - if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; - // Compare least significant, most likely to change units first - // Moment's isSame clones moment inputs and is a tad slow - return a.date() === b.date() && a.month() === b.month() && a.year() === b.year(); -} - -/***/ }), -/* 101 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = toMomentObject; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function toMomentObject(dateString, customFormat) { - var dateFormats = customFormat ? [customFormat, _constants.DISPLAY_FORMAT, _constants.ISO_FORMAT] : [_constants.DISPLAY_FORMAT, _constants.ISO_FORMAT]; - - var date = (0, _moment2['default'])(dateString, dateFormats, true); - return date.isValid() ? date.hour(12) : null; -} - -/***/ }), -/* 102 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9817,31 +13292,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(26); +var _propTypes = __webpack_require__(33); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(47); +var _constants = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } -exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]); +exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); /***/ }), -/* 103 */ -/***/ (function(module, exports) { - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isTouchDevice; -function isTouchDevice() { - return !!(typeof window !== 'undefined' && ('ontouchstart' in window || window.DocumentTouch && typeof document !== 'undefined' && document instanceof window.DocumentTouch)) || !!(typeof navigator !== 'undefined' && (navigator.maxTouchPoints || navigator.msMaxTouchPoints)); -} -module.exports = exports['default']; - -/***/ }), -/* 104 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9851,1274 +13313,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(26); +var _propTypes = __webpack_require__(33); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf([_constants.OPEN_DOWN, _constants.OPEN_UP]); - -/***/ }), -/* 105 */ -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), -/* 106 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22); -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28); -/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_9__); - - - - - - - - -/** - * WordPress dependencies - */ - - - - -var withConstrainedTabbing = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__["createHigherOrderComponent"])(function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_class, _Component); - - function _class() { - var _this; - - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, _class); - - _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_class).apply(this, arguments)); - _this.focusContainRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createRef"])(); - _this.handleTabBehaviour = _this.handleTabBehaviour.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(_this)); - return _this; - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_class, [{ - key: "handleTabBehaviour", - value: function handleTabBehaviour(event) { - if (event.keyCode !== _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__["TAB"]) { - return; - } - - var tabbables = _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__["focus"].tabbable.find(this.focusContainRef.current); - - if (!tabbables.length) { - return; - } - - var firstTabbable = tabbables[0]; - var lastTabbable = tabbables[tabbables.length - 1]; - - if (event.shiftKey && event.target === firstTabbable) { - event.preventDefault(); - lastTabbable.focus(); - } else if (!event.shiftKey && event.target === lastTabbable) { - event.preventDefault(); - firstTabbable.focus(); - /* - * When pressing Tab and none of the tabbables has focus, the keydown - * event happens on the wrapper div: move focus on the first tabbable. - */ - } else if (!tabbables.includes(event.target)) { - event.preventDefault(); - firstTabbable.focus(); - } - } - }, { - key: "render", - value: function render() { - // Disable reason: this component is non-interactive, but must capture - // events from the wrapped component to determine when the Tab key is used. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { - onKeyDown: this.handleTabBehaviour, - ref: this.focusContainRef, - tabIndex: "-1" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, this.props)); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return _class; - }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]) - ); -}, 'withConstrainedTabbing'); -/* harmony default export */ __webpack_exports__["a"] = (withConstrainedTabbing); - - -/***/ }), -/* 107 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(183); - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Returns true if the given object is component-like. An object is component- - * like if it is an instance of wp.element.Component, or is a function. - * - * @param {*} object Object to test. - * - * @return {boolean} Whether object is component-like. - */ - -function isComponentLike(object) { - return object instanceof _wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"] || typeof object === 'function'; -} -/** - * Higher Order Component used to be used to wrap disposable elements like - * sidebars, modals, dropdowns. When mounting the wrapped component, we track a - * reference to the current active element so we know where to restore focus - * when the component is unmounted. - * - * @param {(WPComponent|Object)} options The component to be enhanced with - * focus return behavior, or an object - * describing the component and the - * focus return characteristics. - * - * @return {WPComponent} Component with the focus restauration behaviour. - */ - - -function withFocusReturn(options) { - // Normalize as overloaded form `withFocusReturn( options )( Component )` - // or as `withFocusReturn( Component )`. - if (isComponentLike(options)) { - var WrappedComponent = options; - return withFocusReturn({})(WrappedComponent); - } - - var _options$onFocusRetur = options.onFocusReturn, - onFocusReturn = _options$onFocusRetur === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_7__["stubTrue"] : _options$onFocusRetur; - return function (WrappedComponent) { - var FocusReturn = - /*#__PURE__*/ - function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(FocusReturn, _Component); - - function FocusReturn() { - var _this; - - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, FocusReturn); - - _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(FocusReturn).apply(this, arguments)); - _this.ownFocusedElements = new Set(); - _this.activeElementOnMount = document.activeElement; - - _this.setIsFocusedFalse = function () { - return _this.isFocused = false; - }; - - _this.setIsFocusedTrue = function (event) { - _this.ownFocusedElements.add(event.target); - - _this.isFocused = true; - }; - - return _this; - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(FocusReturn, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - var activeElementOnMount = this.activeElementOnMount, - isFocused = this.isFocused, - ownFocusedElements = this.ownFocusedElements; - - if (!isFocused) { - return; - } // Defer to the component's own explicit focus return behavior, - // if specified. The function should return `false` to prevent - // the default behavior otherwise occurring here. This allows - // for support that the `onFocusReturn` decides to allow the - // default behavior to occur under some conditions. - - - if (onFocusReturn() === false) { - return; - } - - var stack = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(lodash__WEBPACK_IMPORTED_MODULE_7__["without"].apply(void 0, [this.props.focus.focusHistory].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(ownFocusedElements)))), [activeElementOnMount]); - var candidate; - - while (candidate = stack.pop()) { - if (document.body.contains(candidate)) { - candidate.focus(); - return; - } - } - } - }, { - key: "render", - value: function render() { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { - onFocus: this.setIsFocusedTrue, - onBlur: this.setIsFocusedFalse - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, this.props.childProps)); - } - }]); - - return FocusReturn; - }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]); - - return function (props) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_context__WEBPACK_IMPORTED_MODULE_9__[/* Consumer */ "a"], null, function (context) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(FocusReturn, { - childProps: props, - focus: context - }); - }); - }; - }; -} - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["createHigherOrderComponent"])(withFocusReturn, 'withFocusReturn')); - - - -/***/ }), -/* 108 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSlot; }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(114); - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -function useSlot(name) { - var registry = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useContext"])(_slot_fill_context__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"]); - var slot = registry.slots[name] || {}; - var slotFills = registry.fills[name]; - var fills = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { - return slotFills || []; - }, [slotFills]); - var updateSlot = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (slotRef, slotFillProps) { - registry.updateSlot(name, slotRef, slotFillProps); - }, [name, registry.updateSlot]); - var unregisterSlot = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (slotRef) { - registry.unregisterSlot(name, slotRef); - }, [name, registry.unregisterSlot]); - var registerFill = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (fillRef) { - registry.registerFill(name, fillRef); - }, [name, registry.registerFill]); - var unregisterFill = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (fillRef) { - registry.unregisterFill(name, fillRef); - }, [name, registry.unregisterFill]); - return _objectSpread({}, slot, { - updateSlot: updateSlot, - unregisterSlot: unregisterSlot, - fills: fills, - registerFill: registerFill, - unregisterFill: unregisterFill - }); -} - - -/***/ }), -/* 109 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); - - - - -/** - * WordPress dependencies - */ - - -function stopPropagation(event) { - event.stopPropagation(); -} - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(function (_ref, ref) { - var children = _ref.children, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["children"]); - - // Disable reason: this stops certain events from propagating outside of the component. - // - onMouseDown is disabled as this can cause interactions with other DOM elements - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, props, { - ref: ref, - onMouseDown: stopPropagation - }), children); - /* eslint-enable jsx-a11y/no-static-element-interactions */ -})); - - -/***/ }), -/* 110 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91); -/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(145); - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -/** - * Time over children to wait before showing tooltip - * - * @type {number} - */ - -var TOOLTIP_DELAY = 700; - -var Tooltip = -/*#__PURE__*/ -function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(Tooltip, _Component); - - function Tooltip() { - var _this; - - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, Tooltip); - - _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Tooltip).apply(this, arguments)); - _this.delayedSetIsOver = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["debounce"])(function (isOver) { - return _this.setState({ - isOver: isOver - }); - }, TOOLTIP_DELAY); - /** - * Prebound `isInMouseDown` handler, created as a constant reference to - * assure ability to remove in component unmount. - * - * @type {Function} - */ - - _this.cancelIsMouseDown = _this.createSetIsMouseDown(false); - /** - * Whether a the mouse is currently pressed, used in determining whether - * to handle a focus event as displaying the tooltip immediately. - * - * @type {boolean} - */ - - _this.isInMouseDown = false; - _this.state = { - isOver: false - }; - return _this; - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Tooltip, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.delayedSetIsOver.cancel(); - document.removeEventListener('mouseup', this.cancelIsMouseDown); - } - }, { - key: "emitToChild", - value: function emitToChild(eventName, event) { - var children = this.props.children; - - if (_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].count(children) !== 1) { - return; - } - - var child = _wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].only(children); - - if (typeof child.props[eventName] === 'function') { - child.props[eventName](event); - } - } - }, { - key: "createToggleIsOver", - value: function createToggleIsOver(eventName, isDelayed) { - var _this2 = this; - - return function (event) { - // Preserve original child callback behavior - _this2.emitToChild(eventName, event); // Mouse events behave unreliably in React for disabled elements, - // firing on mouseenter but not mouseleave. Further, the default - // behavior for disabled elements in some browsers is to ignore - // mouse events. Don't bother trying to to handle them. - // - // See: https://github.com/facebook/react/issues/4251 - - - if (event.currentTarget.disabled) { - return; - } // A focus event will occur as a result of a mouse click, but it - // should be disambiguated between interacting with the button and - // using an explicit focus shift as a cue to display the tooltip. - - - if ('focus' === event.type && _this2.isInMouseDown) { - return; - } // Needed in case unsetting is over while delayed set pending, i.e. - // quickly blur/mouseleave before delayedSetIsOver is called - - - _this2.delayedSetIsOver.cancel(); - - var isOver = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["includes"])(['focus', 'mouseenter'], event.type); - - if (isOver === _this2.state.isOver) { - return; - } - - if (isDelayed) { - _this2.delayedSetIsOver(isOver); - } else { - _this2.setState({ - isOver: isOver - }); - } - }; - } - /** - * Creates an event callback to handle assignment of the `isInMouseDown` - * instance property in response to a `mousedown` or `mouseup` event. - * - * @param {boolean} isMouseDown Whether handler is to be created for the - * `mousedown` event, as opposed to `mouseup`. - * - * @return {Function} Event callback handler. - */ - - }, { - key: "createSetIsMouseDown", - value: function createSetIsMouseDown(isMouseDown) { - var _this3 = this; - - return function (event) { - // Preserve original child callback behavior - _this3.emitToChild(isMouseDown ? 'onMouseDown' : 'onMouseUp', event); // On mouse down, the next `mouseup` should revert the value of the - // instance property and remove its own event handler. The bind is - // made on the document since the `mouseup` might not occur within - // the bounds of the element. - - - document[isMouseDown ? 'addEventListener' : 'removeEventListener']('mouseup', _this3.cancelIsMouseDown); - _this3.isInMouseDown = isMouseDown; - }; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - position = _this$props.position, - text = _this$props.text, - shortcut = _this$props.shortcut; - - if (_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].count(children) !== 1) { - if (false) {} - - return children; - } - - var child = _wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Children"].only(children); - var isOver = this.state.isOver; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(child, { - onMouseEnter: this.createToggleIsOver('onMouseEnter', true), - onMouseLeave: this.createToggleIsOver('onMouseLeave'), - onClick: this.createToggleIsOver('onClick'), - onFocus: this.createToggleIsOver('onFocus'), - onBlur: this.createToggleIsOver('onBlur'), - onMouseDown: this.createSetIsMouseDown(true), - children: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["concatChildren"])(child.props.children, isOver && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_popover__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], { - focusOnMount: false, - position: position, - className: "components-tooltip", - "aria-hidden": "true", - animate: false - }, text, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_shortcut__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], { - className: "components-tooltip__shortcut", - shortcut: shortcut - }))) - }); - } - }]); - - return Tooltip; -}(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]); - -/* harmony default export */ __webpack_exports__["a"] = (Tooltip); - - -/***/ }), -/* 111 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var reakit_Toolbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(453); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(131); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _toolbar_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76); - - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -function ToolbarItem(_ref, ref) { - var children = _ref.children, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["children"]); - - var accessibleToolbarState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_toolbar_context__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"]); // https://reakit.io/docs/composition/#props-hooks - - var itemProps = Object(reakit_Toolbar__WEBPACK_IMPORTED_MODULE_2__[/* useToolbarItem */ "a"])(accessibleToolbarState, _objectSpread({}, props, { - ref: ref - })); - - if (typeof children !== 'function') { - typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_4___default()('`ToolbarItem` is a generic headless component that accepts only function children props') : void 0; - return null; - } - - if (!accessibleToolbarState) { - typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_4___default()('`ToolbarItem` should be rendered within ``') : void 0; - return null; - } - - return children(itemProps); -} - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(ToolbarItem)); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105))) - -/***/ }), -/* 112 */, -/* 113 */, -/* 114 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -var SlotFillContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])({ - slots: {}, - fills: {}, - registerSlot: function registerSlot() {}, - unregisterSlot: function unregisterSlot() {}, - registerFill: function registerFill() {}, - unregisterFill: function unregisterFill() {} -}); -/* harmony default export */ __webpack_exports__["a"] = (SlotFillContext); - - -/***/ }), -/* 115 */, -/* 116 */ -/***/ (function(module, exports) { - -// Unique ID creation requires a high quality random # generator. In the -// browser this is a little complicated due to unknown quality of Math.random() -// and inconsistent support for the `crypto` API. We do the best we can via -// feature-detection - -// getRandomValues needs to be invoked in a context where "this" is a Crypto -// implementation. Also, find the complete implementation of crypto on IE11. -var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) || - (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto)); - -if (getRandomValues) { - // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto - var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef - - module.exports = function whatwgRNG() { - getRandomValues(rnds8); - return rnds8; - }; -} else { - // Math.random()-based (RNG) - // - // If all else fails, use Math.random(). It's fast, but is of unspecified - // quality. - var rnds = new Array(16); - - module.exports = function mathRNG() { - for (var i = 0, r; i < 16; i++) { - if ((i & 0x03) === 0) r = Math.random() * 0x100000000; - rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; - } - - return rnds; - }; -} - - -/***/ }), -/* 117 */ -/***/ (function(module, exports) { - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; -for (var i = 0; i < 256; ++i) { - byteToHex[i] = (i + 0x100).toString(16).substr(1); -} - -function bytesToUuid(buf, offset) { - var i = offset || 0; - var bth = byteToHex; - // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - return ([bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], '-', - bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]], - bth[buf[i++]], bth[buf[i++]]]).join(''); -} - -module.exports = bytesToUuid; - - -/***/ }), -/* 118 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = __webpack_require__(119); - -function emptyFunction() {} -function emptyFunctionWithReset() {} -emptyFunctionWithReset.resetWarningCache = emptyFunction; - -module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use PropTypes.checkPropTypes() to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - elementType: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim, - - checkPropTypes: emptyFunctionWithReset, - resetWarningCache: emptyFunction - }; - - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), -/* 120 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z" -})); -/* harmony default export */ __webpack_exports__["a"] = (close); - - -/***/ }), -/* 121 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey - -module.exports = function IsPropertyKey(argument) { - return typeof argument === 'string' || typeof argument === 'symbol'; -}; - - -/***/ }), -/* 122 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf([_constants.ICON_BEFORE_POSITION, _constants.ICON_AFTER_POSITION]); - -/***/ }), -/* 123 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf([_constants.INFO_POSITION_TOP, _constants.INFO_POSITION_BOTTOM, _constants.INFO_POSITION_BEFORE, _constants.INFO_POSITION_AFTER]); - -/***/ }), -/* 124 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isInclusivelyAfterDay; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _isBeforeDay = __webpack_require__(125); - -var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function isInclusivelyAfterDay(a, b) { - if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; - return !(0, _isBeforeDay2['default'])(a, b); -} - -/***/ }), -/* 125 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isBeforeDay; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function isBeforeDay(a, b) { - if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; - - var aYear = a.year(); - var aMonth = a.month(); - - var bYear = b.year(); - var bMonth = b.month(); - - var isSameYear = aYear === bYear; - var isSameMonth = aMonth === bMonth; - - if (isSameYear && isSameMonth) return a.date() < b.date(); - if (isSameYear) return aMonth < bMonth; - return aYear < bYear; -} - -/***/ }), -/* 126 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var CloseButton = function () { - function CloseButton(props) { - return _react2['default'].createElement( - 'svg', - props, - _react2['default'].createElement('path', { - fillRule: 'evenodd', - d: 'M11.53.47a.75.75 0 0 0-1.061 0l-4.47 4.47L1.529.47A.75.75 0 1 0 .468 1.531l4.47 4.47-4.47 4.47a.75.75 0 1 0 1.061 1.061l4.47-4.47 4.47 4.47a.75.75 0 1 0 1.061-1.061l-4.47-4.47 4.47-4.47a.75.75 0 0 0 0-1.061z' - }) - ); - } - - return CloseButton; -}(); - -CloseButton.defaultProps = { - viewBox: '0 0 12 12' -}; -exports['default'] = CloseButton; - -/***/ }), -/* 127 */ -/***/ (function(module, exports) { - -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} - -module.exports = _inheritsLoose; - -/***/ }), -/* 128 */, -/* 129 */, -/* 130 */, -/* 131 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["warning"]; }()); - -/***/ }), -/* 132 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(52); - -var callBind = __webpack_require__(167); - -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); - -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) { - return callBind(intrinsic); - } - return intrinsic; -}; - - -/***/ }), -/* 133 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _airbnbPropTypes = __webpack_require__(53); +var _airbnbPropTypes = __webpack_require__(75); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -11149,342 +13348,67 @@ exports['default'] = (0, _airbnbPropTypes.and)([_propTypes2['default'].instanceO }()], 'Modifiers (Set of Strings)'); /***/ }), -/* 134 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = toISODateString; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _toMomentObject = __webpack_require__(101); - -var _toMomentObject2 = _interopRequireDefault(_toMomentObject); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function toISODateString(date, currentFormat) { - var dateObj = _moment2['default'].isMoment(date) ? date : (0, _toMomentObject2['default'])(date, currentFormat); - if (!dateObj) return null; - - return dateObj.format(_constants.ISO_FORMAT); -} - -/***/ }), -/* 135 */ +/* 149 */, +/* 150 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function() { return addEventListener; }); -var CAN_USE_DOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSlot; }); +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _slot_fill_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(127); -// Adapted from Modernizr -// https://github.com/Modernizr/Modernizr/blob/acb3f0d9/feature-detects/dom/passiveeventlisteners.js#L26-L37 -function testPassiveEventListeners() { - if (!CAN_USE_DOM) { - return false; - } - if (!window.addEventListener || !window.removeEventListener || !Object.defineProperty) { - return false; - } +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var supportsPassiveOption = false; - try { - var opts = Object.defineProperty({}, 'passive', { - // eslint-disable-next-line getter-return - get: function () { - function get() { - supportsPassiveOption = true; - } - - return get; - }() - }); - var noop = function noop() {}; - window.addEventListener('testPassiveEventSupport', noop, opts); - window.removeEventListener('testPassiveEventSupport', noop, opts); - } catch (e) { - // do nothing - } - - return supportsPassiveOption; -} - -var memoized = void 0; - -function canUsePassiveEventListeners() { - if (memoized === undefined) { - memoized = testPassiveEventListeners(); - } - return memoized; -} - -function normalizeEventOptions(eventOptions) { - if (!eventOptions) { - return undefined; - } - - if (!canUsePassiveEventListeners()) { - // If the browser does not support the passive option, then it is expecting - // a boolean for the options argument to specify whether it should use - // capture or not. In more modern browsers, this is passed via the `capture` - // option, so let's just hoist that value up. - return !!eventOptions.capture; - } - - return eventOptions; -} - -/* eslint-disable no-bitwise */ +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** - * Generate a unique key for any set of event options + * WordPress dependencies */ -function eventOptionsKey(normalizedEventOptions) { - if (!normalizedEventOptions) { - return 0; - } - // If the browser does not support passive event listeners, the normalized - // event options will be a boolean. - if (normalizedEventOptions === true) { - return 100; - } +/** + * Internal dependencies + */ - // At this point, the browser supports passive event listeners, so we expect - // the event options to be an object with possible properties of capture, - // passive, and once. - // - // We want to consistently return the same value, regardless of the order of - // these properties, so let's use binary maths to assign each property to a - // bit, and then add those together (with an offset to account for the - // booleans at the beginning of this function). - var capture = normalizedEventOptions.capture << 0; - var passive = normalizedEventOptions.passive << 1; - var once = normalizedEventOptions.once << 2; - return capture + passive + once; + +function useSlot(name) { + var registry = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useContext"])(_slot_fill_context__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"]); + var slot = registry.slots[name] || {}; + var slotFills = registry.fills[name]; + var fills = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + return slotFills || []; + }, [slotFills]); + var updateSlot = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (fillProps) { + registry.updateSlot(name, fillProps); + }, [name, registry.updateSlot]); + var unregisterSlot = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (slotRef) { + registry.unregisterSlot(name, slotRef); + }, [name, registry.unregisterSlot]); + var registerFill = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (fillRef) { + registry.registerFill(name, fillRef); + }, [name, registry.registerFill]); + var unregisterFill = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (fillRef) { + registry.unregisterFill(name, fillRef); + }, [name, registry.unregisterFill]); + return _objectSpread({}, slot, { + updateSlot: updateSlot, + unregisterSlot: unregisterSlot, + fills: fills, + registerFill: registerFill, + unregisterFill: unregisterFill + }); } -function ensureCanMutateNextEventHandlers(eventHandlers) { - if (eventHandlers.handlers === eventHandlers.nextHandlers) { - // eslint-disable-next-line no-param-reassign - eventHandlers.nextHandlers = eventHandlers.handlers.slice(); - } -} - -function TargetEventHandlers(target) { - this.target = target; - this.events = {}; -} - -TargetEventHandlers.prototype.getEventHandlers = function () { - function getEventHandlers(eventName, options) { - var key = String(eventName) + ' ' + String(eventOptionsKey(options)); - - if (!this.events[key]) { - this.events[key] = { - handlers: [], - handleEvent: undefined - }; - this.events[key].nextHandlers = this.events[key].handlers; - } - - return this.events[key]; - } - - return getEventHandlers; -}(); - -TargetEventHandlers.prototype.handleEvent = function () { - function handleEvent(eventName, options, event) { - var eventHandlers = this.getEventHandlers(eventName, options); - eventHandlers.handlers = eventHandlers.nextHandlers; - eventHandlers.handlers.forEach(function (handler) { - if (handler) { - // We need to check for presence here because a handler function may - // cause later handlers to get removed. This can happen if you for - // instance have a waypoint that unmounts another waypoint as part of an - // onEnter/onLeave handler. - handler(event); - } - }); - } - - return handleEvent; -}(); - -TargetEventHandlers.prototype.add = function () { - function add(eventName, listener, options) { - var _this = this; - - // options has already been normalized at this point. - var eventHandlers = this.getEventHandlers(eventName, options); - - ensureCanMutateNextEventHandlers(eventHandlers); - - if (eventHandlers.nextHandlers.length === 0) { - eventHandlers.handleEvent = this.handleEvent.bind(this, eventName, options); - - this.target.addEventListener(eventName, eventHandlers.handleEvent, options); - } - - eventHandlers.nextHandlers.push(listener); - - var isSubscribed = true; - var unsubscribe = function () { - function unsubscribe() { - if (!isSubscribed) { - return; - } - - isSubscribed = false; - - ensureCanMutateNextEventHandlers(eventHandlers); - var index = eventHandlers.nextHandlers.indexOf(listener); - eventHandlers.nextHandlers.splice(index, 1); - - if (eventHandlers.nextHandlers.length === 0) { - // All event handlers have been removed, so we want to remove the event - // listener from the target node. - - if (_this.target) { - // There can be a race condition where the target may no longer exist - // when this function is called, e.g. when a React component is - // unmounting. Guarding against this prevents the following error: - // - // Cannot read property 'removeEventListener' of undefined - _this.target.removeEventListener(eventName, eventHandlers.handleEvent, options); - } - - eventHandlers.handleEvent = undefined; - } - } - - return unsubscribe; - }(); - return unsubscribe; - } - - return add; -}(); - -var EVENT_HANDLERS_KEY = '__consolidated_events_handlers__'; - -// eslint-disable-next-line import/prefer-default-export -function addEventListener(target, eventName, listener, options) { - if (!target[EVENT_HANDLERS_KEY]) { - // eslint-disable-next-line no-param-reassign - target[EVENT_HANDLERS_KEY] = new TargetEventHandlers(target); - } - var normalizedEventOptions = normalizeEventOptions(options); - return target[EVENT_HANDLERS_KEY].add(eventName, listener, normalizedEventOptions); -} - - - /***/ }), -/* 136 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = toISOMonthString; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _toMomentObject = __webpack_require__(101); - -var _toMomentObject2 = _interopRequireDefault(_toMomentObject); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function toISOMonthString(date, currentFormat) { - var dateObj = _moment2['default'].isMoment(date) ? date : (0, _toMomentObject2['default'])(date, currentFormat); - if (!dateObj) return null; - - return dateObj.format(_constants.ISO_MONTH_FORMAT); -} - -/***/ }), -/* 137 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOfType([_propTypes2['default'].bool, _propTypes2['default'].oneOf([_constants.START_DATE, _constants.END_DATE])]); - -/***/ }), -/* 138 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isAfterDay; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _isBeforeDay = __webpack_require__(125); - -var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); - -var _isSameDay = __webpack_require__(100); - -var _isSameDay2 = _interopRequireDefault(_isSameDay); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function isAfterDay(a, b) { - if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; - return !(0, _isBeforeDay2['default'])(a, b) && !(0, _isSameDay2['default'])(a, b); -} - -/***/ }), -/* 139 */, -/* 140 */ +/* 151 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20); +/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); @@ -11540,16 +13464,16 @@ function Animate(_ref) { /***/ }), -/* 141 */ +/* 152 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export createScrollLockComponent */ -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); @@ -11558,6 +13482,10 @@ function Animate(_ref) { +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * WordPress dependencies */ @@ -11645,57 +13573,56 @@ function createScrollLockComponent() { --lockCounter; } - return ( - /*#__PURE__*/ - function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(ScrollLock, _Component); + return /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(ScrollLock, _Component); - function ScrollLock() { - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, ScrollLock); + var _super = _createSuper(ScrollLock); - return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(ScrollLock).apply(this, arguments)); + function ScrollLock() { + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, ScrollLock); + + return _super.apply(this, arguments); + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(ScrollLock, [{ + key: "componentDidMount", + + /** + * Requests scroll lock on mount. + */ + value: function componentDidMount() { + requestLock(); } + /** + * Releases scroll lock before unmount. + */ - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(ScrollLock, [{ - key: "componentDidMount", + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + releaseLock(); + } + /** + * Render nothing as this component is merely a way to declare scroll lock. + * + * @return {null} Render nothing by returning `null`. + */ - /** - * Requests scroll lock on mount. - */ - value: function componentDidMount() { - requestLock(); - } - /** - * Releases scroll lock before unmount. - */ + }, { + key: "render", + value: function render() { + return null; + } + }]); - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - releaseLock(); - } - /** - * Render nothing as this component is merely a way to declare scroll lock. - * - * @return {null} Render nothing by returning `null`. - */ - - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return ScrollLock; - }(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]) - ); + return ScrollLock; + }(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]); } /* harmony default export */ __webpack_exports__["a"] = (createScrollLockComponent()); /***/ }), -/* 142 */ +/* 153 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11705,13 +13632,13 @@ function createScrollLockComponent() { /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50); +/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49); /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(131); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(115); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36); +/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34); /** @@ -11788,7 +13715,7 @@ function Snackbar(_ref, ref) { tabIndex: "0", role: "button", onKeyPress: onRemove, - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Dismiss this notice') + "aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Dismiss this notice') }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { className: "components-snackbar__content" }, children, actions.map(function (_ref2, index) { @@ -11813,12 +13740,13 @@ function Snackbar(_ref, ref) { /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(100))) /***/ }), -/* 143 */, -/* 144 */, -/* 145 */ +/* 154 */, +/* 155 */, +/* 156 */, +/* 157 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11863,90 +13791,18 @@ function Shortcut(_ref) { /***/ }), -/* 146 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useCreateElement; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _SystemContext_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88); -/* harmony import */ var _rollupPluginBabelHelpers_ce04ac6e_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78); - - - - -function isRenderProp(children) { - return typeof children === "function"; -} - -/** - * Custom hook that will call `children` if it's a function. If - * `useCreateElement` has been passed to the context, it'll be used instead. - * - * @example - * import React from "react"; - * import { SystemProvider, useCreateElement } from "reakit-system"; - * - * const system = { - * useCreateElement(type, props, children = props.children) { - * // very similar to what `useCreateElement` does already - * if (typeof children === "function") { - * const { children: _, ...rest } = props; - * return children(rest); - * } - * return React.createElement(type, props, children); - * } - * }; - * - * function Component(props) { - * return useCreateElement("div", props); - * } - * - * function App() { - * return ( - * - * {({ url }) => link} - * - * ); - * } - */ - -var useCreateElement = function useCreateElement(type, props, children) { - if (children === void 0) { - children = props.children; - } - - var context = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_SystemContext_js__WEBPACK_IMPORTED_MODULE_1__[/* SystemContext */ "a"]); - - if (context.useCreateElement) { - return context.useCreateElement(type, props, children); - } - - if (isRenderProp(children)) { - var _ = props.children, - rest = Object(_rollupPluginBabelHelpers_ce04ac6e_js__WEBPACK_IMPORTED_MODULE_2__[/* a */ "b"])(props, ["children"]); - - return children(rest); - } - - return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(type, props, children); -}; - - - - -/***/ }), -/* 147 */ +/* 158 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useToolbarState; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); -/* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69); -/* harmony import */ var _Rover_RoverState_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97); +/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(64); +/* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53); + + @@ -11962,34 +13818,91 @@ function useToolbarState(initialState) { var _useSealedState = Object(reakit_utils_useSealedState__WEBPACK_IMPORTED_MODULE_2__[/* useSealedState */ "a"])(initialState), _useSealedState$orien = _useSealedState.orientation, orientation = _useSealedState$orien === void 0 ? "horizontal" : _useSealedState$orien, - sealed = Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* _ */ "a"])(_useSealedState, ["orientation"]); + sealed = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_useSealedState, ["orientation"]); - return Object(_Rover_RoverState_js__WEBPACK_IMPORTED_MODULE_3__[/* useRoverState */ "a"])(Object(_rollupPluginBabelHelpers_f089acec_js__WEBPACK_IMPORTED_MODULE_1__[/* a */ "b"])({ + return Object(_CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_3__[/* u */ "g"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({ orientation: orientation }, sealed)); } -var keys = [].concat(_Rover_RoverState_js__WEBPACK_IMPORTED_MODULE_3__[/* useRoverState */ "a"].__keys); +var keys = [].concat(_CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_3__[/* u */ "g"].__keys); useToolbarState.__keys = keys; /***/ }), -/* 148 */ -/***/ (function(module, exports, __webpack_require__) { +/* 159 */, +/* 160 */, +/* 161 */ +/***/ (function(module, exports) { -var e=__webpack_require__(21),n={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},t=function(t){var r=t.onResize,u=e.useRef();return function(n,t){var r=function(){return n.current&&n.current.contentDocument&&n.current.contentDocument.defaultView};function u(){t();var e=r();e&&e.addEventListener("resize",t)}e.useEffect((function(){return r()?u():n.current&&n.current.addEventListener&&n.current.addEventListener("load",u),function(){var e=r();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(u,(function(){return r(u)})),e.createElement("iframe",{style:n,src:"about:blank",ref:u,"aria-hidden":!0,"aria-label":"resize-listener",tabIndex:-1,frameBorder:0})},r=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};module.exports=function(n){void 0===n&&(n=r);var u=e.useState(n(null)),i=u[0],o=u[1],c=e.useCallback((function(e){return o(n(e.current))}),[n]);return[e.useMemo((function(){return e.createElement(t,{onResize:c})}),[c]),i]}; +function _extends() { + module.exports = _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +module.exports = _extends; /***/ }), -/* 149 */, -/* 150 */ +/* 162 */ +/***/ (function(module, exports) { + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +module.exports = _objectWithoutPropertiesLoose; + +/***/ }), +/* 163 */ +/***/ (function(module, exports) { + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +module.exports = _assertThisInitialized; + +/***/ }), +/* 164 */, +/* 165 */, +/* 166 */, +/* 167 */, +/* 168 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(151); +var util = __webpack_require__(169); function scrollIntoView(elem, container, config) { config = config || {}; @@ -12118,7 +14031,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 151 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12563,87 +14476,65 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 152 */, -/* 153 */, -/* 154 */, -/* 155 */, -/* 156 */ -/***/ (function(module, exports) { +/* 170 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function _extends() { - module.exports = _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; +/** + * WordPress dependencies + */ - return _extends.apply(this, arguments); -} +var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z" +})); +/* harmony default export */ __webpack_exports__["a"] = (link); -module.exports = _extends; /***/ }), -/* 157 */ -/***/ (function(module, exports) { +/* 171 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} +/** + * WordPress dependencies + */ + +var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z" +})); +/* harmony default export */ __webpack_exports__["a"] = (check); -module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 158 */ -/***/ (function(module, exports) { - -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -module.exports = _assertThisInitialized; - -/***/ }), -/* 159 */, -/* 160 */, -/* 161 */, -/* 162 */, -/* 163 */, -/* 164 */, -/* 165 */, -/* 166 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var slice = Array.prototype.slice; -var isArgs = __webpack_require__(194); +var isArgs = __webpack_require__(196); var origKeys = Object.keys; -var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(299); +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(306); var originalKeys = Object.keys; @@ -12672,43 +14563,43 @@ module.exports = keysShim; /***/ }), -/* 167 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(93); +var bind = __webpack_require__(110); -var GetIntrinsic = __webpack_require__(52); +var GetIntrinsic = __webpack_require__(48); -var $Function = GetIntrinsic('%Function%'); -var $apply = $Function.apply; -var $call = $Function.call; +var $apply = GetIntrinsic('%Function.prototype.apply%'); +var $call = GetIntrinsic('%Function.prototype.call%'); +var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); module.exports = function callBind() { - return bind.apply($call, arguments); + return $reflectApply(bind, $call, arguments); }; module.exports.apply = function applyBind() { - return bind.apply($apply, arguments); + return $reflectApply(bind, $apply, arguments); }; /***/ }), -/* 168 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(52); +var GetIntrinsic = __webpack_require__(48); var $TypeError = GetIntrinsic('%TypeError%'); -var inspect = __webpack_require__(196); +var inspect = __webpack_require__(310); -var IsPropertyKey = __webpack_require__(121); +var IsPropertyKey = __webpack_require__(120); var Type = __webpack_require__(80); /** @@ -12733,18 +14624,18 @@ module.exports = function Get(O, P) { /***/ }), -/* 169 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(52); +var GetIntrinsic = __webpack_require__(48); var $Array = GetIntrinsic('%Array%'); // eslint-disable-next-line global-require -var toStr = !$Array.isArray && __webpack_require__(132)('Object.prototype.toString'); +var toStr = !$Array.isArray && __webpack_require__(134)('Object.prototype.toString'); // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray @@ -12754,7 +14645,62 @@ module.exports = $Array.isArray || function IsArray(argument) { /***/ }), -/* 170 */ +/* 176 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(48); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +var has = __webpack_require__(81); + +var predicates = { + // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type + 'Property Descriptor': function isPropertyDescriptor(Type, Desc) { + if (Type(Desc) !== 'Object') { + return false; + } + var allowed = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Get]]': true, + '[[Set]]': true, + '[[Value]]': true, + '[[Writable]]': true + }; + + for (var key in Desc) { // eslint-disable-line + if (has(Desc, key) && !allowed[key]) { + return false; + } + } + + var isData = has(Desc, '[[Value]]'); + var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); + if (isData && IsAccessor) { + throw new $TypeError('Property Descriptors may not be both accessor and data descriptors'); + } + return true; + } +}; + +module.exports = function assertRecord(Type, recordType, argumentName, value) { + var predicate = predicates[recordType]; + if (typeof predicate !== 'function') { + throw new $SyntaxError('unknown record type: ' + recordType); + } + if (!predicate(Type, value)) { + throw new $TypeError(argumentName + ' must be a ' + recordType); + } +}; + + +/***/ }), +/* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12766,14 +14712,14 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 171 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var toStr = Object.prototype.toString; -var hasSymbols = __webpack_require__(331)(); +var hasSymbols = __webpack_require__(337)(); if (hasSymbols) { var symToStr = Symbol.prototype.toString; @@ -12808,7 +14754,2425 @@ if (hasSymbols) { /***/ }), -/* 172 */ +/* 179 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var fnToStr = Function.prototype.toString; + +var constructorRegex = /^\s*class\b/; +var isES6ClassFn = function isES6ClassFunction(value) { + try { + var fnStr = fnToStr.call(value); + return constructorRegex.test(fnStr); + } catch (e) { + return false; // not a function + } +}; + +var tryFunctionObject = function tryFunctionToStr(value) { + try { + if (isES6ClassFn(value)) { return false; } + fnToStr.call(value); + return true; + } catch (e) { + return false; + } +}; +var toStr = Object.prototype.toString; +var fnClass = '[object Function]'; +var genClass = '[object GeneratorFunction]'; +var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; + +module.exports = function isCallable(value) { + if (!value) { return false; } + if (typeof value !== 'function' && typeof value !== 'object') { return false; } + if (typeof value === 'function' && !value.prototype) { return true; } + if (hasToStringTag) { return tryFunctionObject(value); } + if (isES6ClassFn(value)) { return false; } + var strClass = toStr.call(value); + return strClass === fnClass || strClass === genClass; +}; + + +/***/ }), +/* 180 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/* globals + Set, + Map, + WeakSet, + WeakMap, + + Promise, + + Symbol, + Proxy, + + Atomics, + SharedArrayBuffer, + + ArrayBuffer, + DataView, + Uint8Array, + Float32Array, + Float64Array, + Int8Array, + Int16Array, + Int32Array, + Uint8ClampedArray, + Uint16Array, + Uint32Array, +*/ + +var undefined; // eslint-disable-line no-shadow-restricted-names + +var ThrowTypeError = Object.getOwnPropertyDescriptor + ? (function () { return Object.getOwnPropertyDescriptor(arguments, 'callee').get; }()) + : function () { throw new TypeError(); }; + +var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; + +var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto + +var generator; // = function * () {}; +var generatorFunction = generator ? getProto(generator) : undefined; +var asyncFn; // async function() {}; +var asyncFunction = asyncFn ? asyncFn.constructor : undefined; +var asyncGen; // async function * () {}; +var asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined; +var asyncGenIterator = asyncGen ? asyncGen() : undefined; + +var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); + +var INTRINSICS = { + '$ %Array%': Array, + '$ %ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, + '$ %ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype, + '$ %ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, + '$ %ArrayPrototype%': Array.prototype, + '$ %ArrayProto_entries%': Array.prototype.entries, + '$ %ArrayProto_forEach%': Array.prototype.forEach, + '$ %ArrayProto_keys%': Array.prototype.keys, + '$ %ArrayProto_values%': Array.prototype.values, + '$ %AsyncFromSyncIteratorPrototype%': undefined, + '$ %AsyncFunction%': asyncFunction, + '$ %AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined, + '$ %AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined, + '$ %AsyncGeneratorFunction%': asyncGenFunction, + '$ %AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined, + '$ %AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined, + '$ %Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, + '$ %Boolean%': Boolean, + '$ %BooleanPrototype%': Boolean.prototype, + '$ %DataView%': typeof DataView === 'undefined' ? undefined : DataView, + '$ %DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype, + '$ %Date%': Date, + '$ %DatePrototype%': Date.prototype, + '$ %decodeURI%': decodeURI, + '$ %decodeURIComponent%': decodeURIComponent, + '$ %encodeURI%': encodeURI, + '$ %encodeURIComponent%': encodeURIComponent, + '$ %Error%': Error, + '$ %ErrorPrototype%': Error.prototype, + '$ %eval%': eval, // eslint-disable-line no-eval + '$ %EvalError%': EvalError, + '$ %EvalErrorPrototype%': EvalError.prototype, + '$ %Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, + '$ %Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype, + '$ %Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, + '$ %Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype, + '$ %Function%': Function, + '$ %FunctionPrototype%': Function.prototype, + '$ %Generator%': generator ? getProto(generator()) : undefined, + '$ %GeneratorFunction%': generatorFunction, + '$ %GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined, + '$ %Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, + '$ %Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype, + '$ %Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, + '$ %Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype, + '$ %Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, + '$ %Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype, + '$ %isFinite%': isFinite, + '$ %isNaN%': isNaN, + '$ %IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, + '$ %JSON%': JSON, + '$ %JSONParse%': JSON.parse, + '$ %Map%': typeof Map === 'undefined' ? undefined : Map, + '$ %MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), + '$ %MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype, + '$ %Math%': Math, + '$ %Number%': Number, + '$ %NumberPrototype%': Number.prototype, + '$ %Object%': Object, + '$ %ObjectPrototype%': Object.prototype, + '$ %ObjProto_toString%': Object.prototype.toString, + '$ %ObjProto_valueOf%': Object.prototype.valueOf, + '$ %parseFloat%': parseFloat, + '$ %parseInt%': parseInt, + '$ %Promise%': typeof Promise === 'undefined' ? undefined : Promise, + '$ %PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype, + '$ %PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then, + '$ %Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all, + '$ %Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject, + '$ %Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve, + '$ %Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, + '$ %RangeError%': RangeError, + '$ %RangeErrorPrototype%': RangeError.prototype, + '$ %ReferenceError%': ReferenceError, + '$ %ReferenceErrorPrototype%': ReferenceError.prototype, + '$ %Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, + '$ %RegExp%': RegExp, + '$ %RegExpPrototype%': RegExp.prototype, + '$ %Set%': typeof Set === 'undefined' ? undefined : Set, + '$ %SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), + '$ %SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype, + '$ %SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, + '$ %SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype, + '$ %String%': String, + '$ %StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, + '$ %StringPrototype%': String.prototype, + '$ %Symbol%': hasSymbols ? Symbol : undefined, + '$ %SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined, + '$ %SyntaxError%': SyntaxError, + '$ %SyntaxErrorPrototype%': SyntaxError.prototype, + '$ %ThrowTypeError%': ThrowTypeError, + '$ %TypedArray%': TypedArray, + '$ %TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined, + '$ %TypeError%': TypeError, + '$ %TypeErrorPrototype%': TypeError.prototype, + '$ %Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, + '$ %Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype, + '$ %Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, + '$ %Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype, + '$ %Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, + '$ %Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype, + '$ %Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, + '$ %Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype, + '$ %URIError%': URIError, + '$ %URIErrorPrototype%': URIError.prototype, + '$ %WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, + '$ %WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype, + '$ %WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, + '$ %WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype +}; + +module.exports = function GetIntrinsic(name, allowMissing) { + if (arguments.length > 1 && typeof allowMissing !== 'boolean') { + throw new TypeError('"allowMissing" argument must be a boolean'); + } + + var key = '$ ' + name; + if (!(key in INTRINSICS)) { + throw new SyntaxError('intrinsic ' + name + ' does not exist!'); + } + + // istanbul ignore if // hopefully this is impossible to test :-) + if (typeof INTRINSICS[key] === 'undefined' && !allowMissing) { + throw new TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + } + return INTRINSICS[key]; +}; + + +/***/ }), +/* 181 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = isSameDay; + +var _moment = __webpack_require__(43); + +var _moment2 = _interopRequireDefault(_moment); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function isSameDay(a, b) { + if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; + // Compare least significant, most likely to change units first + // Moment's isSame clones moment inputs and is a tad slow + return a.date() === b.date() && a.month() === b.month() && a.year() === b.year(); +} + +/***/ }), +/* 182 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = toISOMonthString; + +var _moment = __webpack_require__(43); + +var _moment2 = _interopRequireDefault(_moment); + +var _toMomentObject = __webpack_require__(231); + +var _toMomentObject2 = _interopRequireDefault(_toMomentObject); + +var _constants = __webpack_require__(66); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function toISOMonthString(date, currentFormat) { + var dateObj = _moment2['default'].isMoment(date) ? date : (0, _toMomentObject2['default'])(date, currentFormat); + if (!dateObj) return null; + + return dateObj.format(_constants.ISO_MONTH_FORMAT); +} + +/***/ }), +/* 183 */ +/***/ (function(module, exports) { + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); +} + +module.exports = isObject; + + +/***/ }), +/* 184 */, +/* 185 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Consumer; }); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); + + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var _createContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createContext"])({ + focusHistory: [] +}), + Provider = _createContext.Provider, + Consumer = _createContext.Consumer; + +Provider.displayName = 'FocusReturnProvider'; +Consumer.displayName = 'FocusReturnConsumer'; +/** + * The maximum history length to capture for the focus stack. When exceeded, + * items should be shifted from the stack for each consecutive push. + * + * @type {number} + */ + +var MAX_STACK_LENGTH = 100; + +var FocusReturnProvider = /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(FocusReturnProvider, _Component); + + var _super = _createSuper(FocusReturnProvider); + + function FocusReturnProvider() { + var _this; + + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, FocusReturnProvider); + + _this = _super.apply(this, arguments); + _this.onFocus = _this.onFocus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.state = { + focusHistory: [] + }; + return _this; + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(FocusReturnProvider, [{ + key: "onFocus", + value: function onFocus(event) { + var focusHistory = this.state.focusHistory; // Push the focused element to the history stack, keeping only unique + // members but preferring the _last_ occurrence of any duplicates. + // Lodash's `uniq` behavior favors the first occurrence, so the array + // is temporarily reversed prior to it being called upon. Uniqueness + // helps avoid situations where, such as in a constrained tabbing area, + // the user changes focus enough within a transient element that the + // stack may otherwise only consist of members pending destruction, at + // which point focus might have been lost. + + var nextFocusHistory = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["uniq"])([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(focusHistory), [event.target]).slice(-1 * MAX_STACK_LENGTH).reverse()).reverse(); + this.setState({ + focusHistory: nextFocusHistory + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + className = _this$props.className; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(Provider, { + value: this.state + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", { + onFocus: this.onFocus, + className: className + }, children)); + } + }]); + + return FocusReturnProvider; +}(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); + +/* harmony default export */ __webpack_exports__["b"] = (FocusReturnProvider); + + + +/***/ }), +/* 186 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +if (true) { + module.exports = __webpack_require__(299); +} else {} + + +/***/ }), +/* 187 */ +/***/ (function(module, exports) { + +// Copyright (c) 2014 Rafael Caricio. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +var GradientParser = {}; + +GradientParser.parse = (function() { + + var tokens = { + linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i, + repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i, + radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i, + repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i, + sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i, + extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/, + positionKeywords: /^(left|center|right|top|bottom)/i, + pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/, + percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/, + emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/, + angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/, + startCall: /^\(/, + endCall: /^\)/, + comma: /^,/, + hexColor: /^\#([0-9a-fA-F]+)/, + literalColor: /^([a-zA-Z]+)/, + rgbColor: /^rgb/i, + rgbaColor: /^rgba/i, + number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/ + }; + + var input = ''; + + function error(msg) { + var err = new Error(input + ': ' + msg); + err.source = input; + throw err; + } + + function getAST() { + var ast = matchListDefinitions(); + + if (input.length > 0) { + error('Invalid input not EOF'); + } + + return ast; + } + + function matchListDefinitions() { + return matchListing(matchDefinition); + } + + function matchDefinition() { + return matchGradient( + 'linear-gradient', + tokens.linearGradient, + matchLinearOrientation) || + + matchGradient( + 'repeating-linear-gradient', + tokens.repeatingLinearGradient, + matchLinearOrientation) || + + matchGradient( + 'radial-gradient', + tokens.radialGradient, + matchListRadialOrientations) || + + matchGradient( + 'repeating-radial-gradient', + tokens.repeatingRadialGradient, + matchListRadialOrientations); + } + + function matchGradient(gradientType, pattern, orientationMatcher) { + return matchCall(pattern, function(captures) { + + var orientation = orientationMatcher(); + if (orientation) { + if (!scan(tokens.comma)) { + error('Missing comma before color stops'); + } + } + + return { + type: gradientType, + orientation: orientation, + colorStops: matchListing(matchColorStop) + }; + }); + } + + function matchCall(pattern, callback) { + var captures = scan(pattern); + + if (captures) { + if (!scan(tokens.startCall)) { + error('Missing ('); + } + + result = callback(captures); + + if (!scan(tokens.endCall)) { + error('Missing )'); + } + + return result; + } + } + + function matchLinearOrientation() { + return matchSideOrCorner() || + matchAngle(); + } + + function matchSideOrCorner() { + return match('directional', tokens.sideOrCorner, 1); + } + + function matchAngle() { + return match('angular', tokens.angleValue, 1); + } + + function matchListRadialOrientations() { + var radialOrientations, + radialOrientation = matchRadialOrientation(), + lookaheadCache; + + if (radialOrientation) { + radialOrientations = []; + radialOrientations.push(radialOrientation); + + lookaheadCache = input; + if (scan(tokens.comma)) { + radialOrientation = matchRadialOrientation(); + if (radialOrientation) { + radialOrientations.push(radialOrientation); + } else { + input = lookaheadCache; + } + } + } + + return radialOrientations; + } + + function matchRadialOrientation() { + var radialType = matchCircle() || + matchEllipse(); + + if (radialType) { + radialType.at = matchAtPosition(); + } else { + var defaultPosition = matchPositioning(); + if (defaultPosition) { + radialType = { + type: 'default-radial', + at: defaultPosition + }; + } + } + + return radialType; + } + + function matchCircle() { + var circle = match('shape', /^(circle)/i, 0); + + if (circle) { + circle.style = matchLength() || matchExtentKeyword(); + } + + return circle; + } + + function matchEllipse() { + var ellipse = match('shape', /^(ellipse)/i, 0); + + if (ellipse) { + ellipse.style = matchDistance() || matchExtentKeyword(); + } + + return ellipse; + } + + function matchExtentKeyword() { + return match('extent-keyword', tokens.extentKeywords, 1); + } + + function matchAtPosition() { + if (match('position', /^at/, 0)) { + var positioning = matchPositioning(); + + if (!positioning) { + error('Missing positioning value'); + } + + return positioning; + } + } + + function matchPositioning() { + var location = matchCoordinates(); + + if (location.x || location.y) { + return { + type: 'position', + value: location + }; + } + } + + function matchCoordinates() { + return { + x: matchDistance(), + y: matchDistance() + }; + } + + function matchListing(matcher) { + var captures = matcher(), + result = []; + + if (captures) { + result.push(captures); + while (scan(tokens.comma)) { + captures = matcher(); + if (captures) { + result.push(captures); + } else { + error('One extra comma'); + } + } + } + + return result; + } + + function matchColorStop() { + var color = matchColor(); + + if (!color) { + error('Expected color definition'); + } + + color.length = matchDistance(); + return color; + } + + function matchColor() { + return matchHexColor() || + matchRGBAColor() || + matchRGBColor() || + matchLiteralColor(); + } + + function matchLiteralColor() { + return match('literal', tokens.literalColor, 0); + } + + function matchHexColor() { + return match('hex', tokens.hexColor, 1); + } + + function matchRGBColor() { + return matchCall(tokens.rgbColor, function() { + return { + type: 'rgb', + value: matchListing(matchNumber) + }; + }); + } + + function matchRGBAColor() { + return matchCall(tokens.rgbaColor, function() { + return { + type: 'rgba', + value: matchListing(matchNumber) + }; + }); + } + + function matchNumber() { + return scan(tokens.number)[1]; + } + + function matchDistance() { + return match('%', tokens.percentageValue, 1) || + matchPositionKeyword() || + matchLength(); + } + + function matchPositionKeyword() { + return match('position-keyword', tokens.positionKeywords, 1); + } + + function matchLength() { + return match('px', tokens.pixelValue, 1) || + match('em', tokens.emValue, 1); + } + + function match(type, pattern, captureIndex) { + var captures = scan(pattern); + if (captures) { + return { + type: type, + value: captures[captureIndex] + }; + } + } + + function scan(regexp) { + var captures, + blankCaptures; + + blankCaptures = /^[\n\r\t\s]+/.exec(input); + if (blankCaptures) { + consume(blankCaptures[0].length); + } + + captures = regexp.exec(input); + if (captures) { + consume(captures[0].length); + } + + return captures; + } + + function consume(size) { + input = input.substr(size); + } + + return function(code) { + input = code.toString(); + return getAST(); + }; +})(); + +exports.parse = (GradientParser || {}).parse; + + +/***/ }), +/* 188 */, +/* 189 */, +/* 190 */, +/* 191 */, +/* 192 */, +/* 193 */, +/* 194 */, +/* 195 */, +/* 196 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var toStr = Object.prototype.toString; + +module.exports = function isArguments(value) { + var str = toStr.call(value); + var isArgs = str === '[object Arguments]'; + if (!isArgs) { + isArgs = str !== '[object Array]' && + value !== null && + typeof value === 'object' && + typeof value.length === 'number' && + value.length >= 0 && + toStr.call(value.callee) === '[object Function]'; + } + return isArgs; +}; + + +/***/ }), +/* 197 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(global) { + +var origSymbol = global.Symbol; +var hasSymbolSham = __webpack_require__(308); + +module.exports = function hasNativeSymbols() { + if (typeof origSymbol !== 'function') { return false; } + if (typeof Symbol !== 'function') { return false; } + if (typeof origSymbol('foo') !== 'symbol') { return false; } + if (typeof Symbol('bar') !== 'symbol') { return false; } + + return hasSymbolSham(); +}; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(119))) + +/***/ }), +/* 198 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ArraySpeciesCreate = __webpack_require__(309); +var FlattenIntoArray = __webpack_require__(319); +var Get = __webpack_require__(174); +var ToInteger = __webpack_require__(210); +var ToLength = __webpack_require__(209); +var ToObject = __webpack_require__(339); + +module.exports = function flat() { + var O = ToObject(this); + var sourceLen = ToLength(Get(O, 'length')); + + var depthNum = 1; + if (arguments.length > 0 && typeof arguments[0] !== 'undefined') { + depthNum = ToInteger(arguments[0]); + } + + var A = ArraySpeciesCreate(O, 0); + FlattenIntoArray(A, O, sourceLen, 0, depthNum); + return A; +}; + + +/***/ }), +/* 199 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(48); + +var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); + +if ($defineProperty) { + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + // IE 8 has a broken defineProperty + $defineProperty = null; + } +} + +var callBound = __webpack_require__(134); + +var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); + +// eslint-disable-next-line max-params +module.exports = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) { + if (!$defineProperty) { + if (!IsDataDescriptor(desc)) { + // ES3 does not support getters/setters + return false; + } + if (!desc['[[Configurable]]'] || !desc['[[Writable]]']) { + return false; + } + + // fallback for ES3 + if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) { + // a non-enumerable existing property + return false; + } + + // property does not exist at all, or exists but is enumerable + var V = desc['[[Value]]']; + // eslint-disable-next-line no-param-reassign + O[P] = V; // will use [[Define]] + return SameValue(O[P], V); + } + $defineProperty(O, P, FromPropertyDescriptor(desc)); + return true; +}; + + +/***/ }), +/* 200 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var assertRecord = __webpack_require__(176); + +var Type = __webpack_require__(80); + +// https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor + +module.exports = function FromPropertyDescriptor(Desc) { + if (typeof Desc === 'undefined') { + return Desc; + } + + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + + var obj = {}; + if ('[[Value]]' in Desc) { + obj.value = Desc['[[Value]]']; + } + if ('[[Writable]]' in Desc) { + obj.writable = Desc['[[Writable]]']; + } + if ('[[Get]]' in Desc) { + obj.get = Desc['[[Get]]']; + } + if ('[[Set]]' in Desc) { + obj.set = Desc['[[Set]]']; + } + if ('[[Enumerable]]' in Desc) { + obj.enumerable = Desc['[[Enumerable]]']; + } + if ('[[Configurable]]' in Desc) { + obj.configurable = Desc['[[Configurable]]']; + } + return obj; +}; + + +/***/ }), +/* 201 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var has = __webpack_require__(81); + +var assertRecord = __webpack_require__(176); + +var Type = __webpack_require__(80); + +// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor + +module.exports = function IsDataDescriptor(Desc) { + if (typeof Desc === 'undefined') { + return false; + } + + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + + if (!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')) { + return false; + } + + return true; +}; + + +/***/ }), +/* 202 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var $isNaN = __webpack_require__(177); + +// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12 + +module.exports = function SameValue(x, y) { + if (x === y) { // 0 === -0, but they are not identical. + if (x === 0) { return 1 / x === 1 / y; } + return true; + } + return $isNaN(x) && $isNaN(y); +}; + + +/***/ }), +/* 203 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var has = __webpack_require__(81); + +var GetIntrinsic = __webpack_require__(48); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var Type = __webpack_require__(80); +var ToBoolean = __webpack_require__(204); +var IsCallable = __webpack_require__(317); + +// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5 + +module.exports = function ToPropertyDescriptor(Obj) { + if (Type(Obj) !== 'Object') { + throw new $TypeError('ToPropertyDescriptor requires an object'); + } + + var desc = {}; + if (has(Obj, 'enumerable')) { + desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable); + } + if (has(Obj, 'configurable')) { + desc['[[Configurable]]'] = ToBoolean(Obj.configurable); + } + if (has(Obj, 'value')) { + desc['[[Value]]'] = Obj.value; + } + if (has(Obj, 'writable')) { + desc['[[Writable]]'] = ToBoolean(Obj.writable); + } + if (has(Obj, 'get')) { + var getter = Obj.get; + if (typeof getter !== 'undefined' && !IsCallable(getter)) { + throw new TypeError('getter must be a function'); + } + desc['[[Get]]'] = getter; + } + if (has(Obj, 'set')) { + var setter = Obj.set; + if (typeof setter !== 'undefined' && !IsCallable(setter)) { + throw new $TypeError('setter must be a function'); + } + desc['[[Set]]'] = setter; + } + + if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) { + throw new $TypeError('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute'); + } + return desc; +}; + + +/***/ }), +/* 204 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2 + +module.exports = function ToBoolean(value) { return !!value; }; + + +/***/ }), +/* 205 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var fnToStr = Function.prototype.toString; +var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply; +var badArrayLike; +var isCallableMarker; +if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') { + try { + badArrayLike = Object.defineProperty({}, 'length', { + get: function () { + throw isCallableMarker; + } + }); + isCallableMarker = {}; + } catch (_) { + reflectApply = null; + } +} else { + reflectApply = null; +} + +var constructorRegex = /^\s*class\b/; +var isES6ClassFn = function isES6ClassFunction(value) { + try { + var fnStr = fnToStr.call(value); + return constructorRegex.test(fnStr); + } catch (e) { + return false; // not a function + } +}; + +var tryFunctionObject = function tryFunctionToStr(value) { + try { + if (isES6ClassFn(value)) { return false; } + fnToStr.call(value); + return true; + } catch (e) { + return false; + } +}; +var toStr = Object.prototype.toString; +var fnClass = '[object Function]'; +var genClass = '[object GeneratorFunction]'; +var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; + +module.exports = reflectApply + ? function isCallable(value) { + if (!value) { return false; } + if (typeof value !== 'function' && typeof value !== 'object') { return false; } + if (typeof value === 'function' && !value.prototype) { return true; } + try { + reflectApply(value, null, badArrayLike); + } catch (e) { + if (e !== isCallableMarker) { return false; } + } + return !isES6ClassFn(value); + } + : function isCallable(value) { + if (!value) { return false; } + if (typeof value !== 'function' && typeof value !== 'object') { return false; } + if (typeof value === 'function' && !value.prototype) { return true; } + if (hasToStringTag) { return tryFunctionObject(value); } + if (isES6ClassFn(value)) { return false; } + var strClass = toStr.call(value); + return strClass === fnClass || strClass === genClass; + }; + + +/***/ }), +/* 206 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var $isNaN = Number.isNaN || function (a) { return a !== a; }; + +module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; + + +/***/ }), +/* 207 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(48); + +var $Math = GetIntrinsic('%Math%'); +var $Number = GetIntrinsic('%Number%'); + +module.exports = $Number.MAX_SAFE_INTEGER || $Math.pow(2, 53) - 1; + + +/***/ }), +/* 208 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = function isPrimitive(value) { + return value === null || (typeof value !== 'function' && typeof value !== 'object'); +}; + + +/***/ }), +/* 209 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var MAX_SAFE_INTEGER = __webpack_require__(207); + +var ToInteger = __webpack_require__(210); + +module.exports = function ToLength(argument) { + var len = ToInteger(argument); + if (len <= 0) { return 0; } // includes converting -0 to +0 + if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; } + return len; +}; + + +/***/ }), +/* 210 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ES5ToInteger = __webpack_require__(329); + +var ToNumber = __webpack_require__(332); + +// https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger + +module.exports = function ToInteger(value) { + var number = ToNumber(value); + return ES5ToInteger(number); +}; + + +/***/ }), +/* 211 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var getDay = Date.prototype.getDay; +var tryDateObject = function tryDateObject(value) { + try { + getDay.call(value); + return true; + } catch (e) { + return false; + } +}; + +var toStr = Object.prototype.toString; +var dateClass = '[object Date]'; +var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; + +module.exports = function isDateObject(value) { + if (typeof value !== 'object' || value === null) { return false; } + return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass; +}; + + +/***/ }), +/* 212 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/* eslint complexity: [2, 17], max-statements: [2, 33] */ +module.exports = function hasSymbols() { + if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } + if (typeof Symbol.iterator === 'symbol') { return true; } + + var obj = {}; + var sym = Symbol('test'); + var symObj = Object(sym); + if (typeof sym === 'string') { return false; } + + if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } + if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } + + // temp disabled per https://github.com/ljharb/object.assign/issues/17 + // if (sym instanceof Symbol) { return false; } + // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 + // if (!(symObj instanceof Symbol)) { return false; } + + // if (typeof Symbol.prototype.toString !== 'function') { return false; } + // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } + + var symVal = 42; + obj[sym] = symVal; + for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax + if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } + + if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } + + var syms = Object.getOwnPropertySymbols(obj); + if (syms.length !== 1 || syms[0] !== sym) { return false; } + + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } + + if (typeof Object.getOwnPropertyDescriptor === 'function') { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } + } + + return true; +}; + + +/***/ }), +/* 213 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(198); + +module.exports = function getPolyfill() { + return Array.prototype.flat || implementation; +}; + + +/***/ }), +/* 214 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var styleInterface = void 0; +var styleTheme = void 0; + +var START_MARK = 'react-with-styles.resolve.start'; +var END_MARK = 'react-with-styles.resolve.end'; +var MEASURE_MARK = '\uD83D\uDC69\u200D\uD83C\uDFA8 [resolve]'; + +function registerTheme(theme) { + styleTheme = theme; +} + +function registerInterface(interfaceToRegister) { + styleInterface = interfaceToRegister; +} + +function create(makeFromTheme, createWithDirection) { + var styles = createWithDirection(makeFromTheme(styleTheme)); + return function () { + return styles; + }; +} + +function createLTR(makeFromTheme) { + return create(makeFromTheme, styleInterface.createLTR || styleInterface.create); +} + +function createRTL(makeFromTheme) { + return create(makeFromTheme, styleInterface.createRTL || styleInterface.create); +} + +function get() { + return styleTheme; +} + +function resolve() { + if (false) {} + + for (var _len = arguments.length, styles = Array(_len), _key = 0; _key < _len; _key++) { + styles[_key] = arguments[_key]; + } + + var result = styleInterface.resolve(styles); + + if (false) {} + + return result; +} + +function resolveLTR() { + for (var _len2 = arguments.length, styles = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + styles[_key2] = arguments[_key2]; + } + + if (styleInterface.resolveLTR) { + return styleInterface.resolveLTR(styles); + } + + return resolve(styles); +} + +function resolveRTL() { + for (var _len3 = arguments.length, styles = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + styles[_key3] = arguments[_key3]; + } + + if (styleInterface.resolveRTL) { + return styleInterface.resolveRTL(styles); + } + + return resolve(styles); +} + +function flush() { + if (styleInterface.flush) { + styleInterface.flush(); + } +} + +exports['default'] = { + registerTheme: registerTheme, + registerInterface: registerInterface, + create: createLTR, + createLTR: createLTR, + createRTL: createRTL, + get: get, + resolve: resolveLTR, + resolveLTR: resolveLTR, + resolveRTL: resolveRTL, + flush: flush +}; + +/***/ }), +/* 215 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var core = { + white: '#fff', + gray: '#484848', + grayLight: '#82888a', + grayLighter: '#cacccd', + grayLightest: '#f2f2f2', + + borderMedium: '#c4c4c4', + border: '#dbdbdb', + borderLight: '#e4e7e7', + borderLighter: '#eceeee', + borderBright: '#f4f5f5', + + primary: '#00a699', + primaryShade_1: '#33dacd', + primaryShade_2: '#66e2da', + primaryShade_3: '#80e8e0', + primaryShade_4: '#b2f1ec', + primary_dark: '#008489', + + secondary: '#007a87', + + yellow: '#ffe8bc', + yellow_dark: '#ffce71' +}; + +exports['default'] = { + reactDates: { + zIndex: 0, + border: { + input: { + border: 0, + borderTop: 0, + borderRight: 0, + borderBottom: '2px solid transparent', + borderLeft: 0, + outlineFocused: 0, + borderFocused: 0, + borderTopFocused: 0, + borderLeftFocused: 0, + borderBottomFocused: '2px solid ' + String(core.primary_dark), + borderRightFocused: 0, + borderRadius: 0 + }, + pickerInput: { + borderWidth: 1, + borderStyle: 'solid', + borderRadius: 2 + } + }, + + color: { + core: core, + + disabled: core.grayLightest, + + background: core.white, + backgroundDark: '#f2f2f2', + backgroundFocused: core.white, + border: 'rgb(219, 219, 219)', + text: core.gray, + textDisabled: core.border, + textFocused: '#007a87', + placeholderText: '#757575', + + outside: { + backgroundColor: core.white, + backgroundColor_active: core.white, + backgroundColor_hover: core.white, + color: core.gray, + color_active: core.gray, + color_hover: core.gray + }, + + highlighted: { + backgroundColor: core.yellow, + backgroundColor_active: core.yellow_dark, + backgroundColor_hover: core.yellow_dark, + color: core.gray, + color_active: core.gray, + color_hover: core.gray + }, + + minimumNights: { + backgroundColor: core.white, + backgroundColor_active: core.white, + backgroundColor_hover: core.white, + borderColor: core.borderLighter, + color: core.grayLighter, + color_active: core.grayLighter, + color_hover: core.grayLighter + }, + + hoveredSpan: { + backgroundColor: core.primaryShade_4, + backgroundColor_active: core.primaryShade_3, + backgroundColor_hover: core.primaryShade_4, + borderColor: core.primaryShade_3, + borderColor_active: core.primaryShade_3, + borderColor_hover: core.primaryShade_3, + color: core.secondary, + color_active: core.secondary, + color_hover: core.secondary + }, + + selectedSpan: { + backgroundColor: core.primaryShade_2, + backgroundColor_active: core.primaryShade_1, + backgroundColor_hover: core.primaryShade_1, + borderColor: core.primaryShade_1, + borderColor_active: core.primary, + borderColor_hover: core.primary, + color: core.white, + color_active: core.white, + color_hover: core.white + }, + + selected: { + backgroundColor: core.primary, + backgroundColor_active: core.primary, + backgroundColor_hover: core.primary, + borderColor: core.primary, + borderColor_active: core.primary, + borderColor_hover: core.primary, + color: core.white, + color_active: core.white, + color_hover: core.white + }, + + blocked_calendar: { + backgroundColor: core.grayLighter, + backgroundColor_active: core.grayLighter, + backgroundColor_hover: core.grayLighter, + borderColor: core.grayLighter, + borderColor_active: core.grayLighter, + borderColor_hover: core.grayLighter, + color: core.grayLight, + color_active: core.grayLight, + color_hover: core.grayLight + }, + + blocked_out_of_range: { + backgroundColor: core.white, + backgroundColor_active: core.white, + backgroundColor_hover: core.white, + borderColor: core.borderLight, + borderColor_active: core.borderLight, + borderColor_hover: core.borderLight, + color: core.grayLighter, + color_active: core.grayLighter, + color_hover: core.grayLighter + } + }, + + spacing: { + dayPickerHorizontalPadding: 9, + captionPaddingTop: 22, + captionPaddingBottom: 37, + inputPadding: 0, + displayTextPaddingVertical: undefined, + displayTextPaddingTop: 11, + displayTextPaddingBottom: 9, + displayTextPaddingHorizontal: undefined, + displayTextPaddingLeft: 11, + displayTextPaddingRight: 11, + displayTextPaddingVertical_small: undefined, + displayTextPaddingTop_small: 7, + displayTextPaddingBottom_small: 5, + displayTextPaddingHorizontal_small: undefined, + displayTextPaddingLeft_small: 7, + displayTextPaddingRight_small: 7 + }, + + sizing: { + inputWidth: 130, + inputWidth_small: 97, + arrowWidth: 24 + }, + + noScrollBarOnVerticalScrollable: false, + + font: { + size: 14, + captionSize: 18, + input: { + size: 19, + lineHeight: '24px', + size_small: 15, + lineHeight_small: '18px', + letterSpacing_small: '0.2px', + styleDisabled: 'italic' + } + } + } +}; + +/***/ }), +/* 216 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +// modified from https://github.com/es-shims/es6-shim +var keys = __webpack_require__(172); +var bind = __webpack_require__(110); +var canBeObject = function (obj) { + return typeof obj !== 'undefined' && obj !== null; +}; +var hasSymbols = __webpack_require__(212)(); +var toObject = Object; +var push = bind.call(Function.call, Array.prototype.push); +var propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); +var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null; + +module.exports = function assign(target, source1) { + if (!canBeObject(target)) { throw new TypeError('target must be an object'); } + var objTarget = toObject(target); + var s, source, i, props, syms, value, key; + for (s = 1; s < arguments.length; ++s) { + source = toObject(arguments[s]); + props = keys(source); + var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols); + if (getSymbols) { + syms = getSymbols(source); + for (i = 0; i < syms.length; ++i) { + key = syms[i]; + if (propIsEnumerable(source, key)) { + push(props, key); + } + } + } + for (i = 0; i < props.length; ++i) { + key = props[i]; + value = source[key]; + if (propIsEnumerable(source, key)) { + objTarget[key] = value; + } + } + } + return objTarget; +}; + + +/***/ }), +/* 217 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(216); + +var lacksProperEnumerationOrder = function () { + if (!Object.assign) { + return false; + } + // v8, specifically in node 4.x, has a bug with incorrect property enumeration order + // note: this does not detect the bug unless there's 20 characters + var str = 'abcdefghijklmnopqrst'; + var letters = str.split(''); + var map = {}; + for (var i = 0; i < letters.length; ++i) { + map[letters[i]] = letters[i]; + } + var obj = Object.assign({}, map); + var actual = ''; + for (var k in obj) { + actual += k; + } + return str !== actual; +}; + +var assignHasPendingExceptions = function () { + if (!Object.assign || !Object.preventExtensions) { + return false; + } + // Firefox 37 still has "pending exception" logic in its Object.assign implementation, + // which is 72% slower than our shim, and Firefox 40's native implementation. + var thrower = Object.preventExtensions({ 1: 2 }); + try { + Object.assign(thrower, 'xy'); + } catch (e) { + return thrower[1] === 'y'; + } + return false; +}; + +module.exports = function getPolyfill() { + if (!Object.assign) { + return implementation; + } + if (lacksProperEnumerationOrder()) { + return implementation; + } + if (assignHasPendingExceptions()) { + return implementation; + } + return Object.assign; +}; + + +/***/ }), +/* 218 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var define = __webpack_require__(91); + +var implementation = __webpack_require__(219); +var getPolyfill = __webpack_require__(227); +var shim = __webpack_require__(361); + +var polyfill = getPolyfill(); + +define(polyfill, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = polyfill; + + +/***/ }), +/* 219 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ES = __webpack_require__(352); +var has = __webpack_require__(81); +var bind = __webpack_require__(110); +var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); + +module.exports = function values(O) { + var obj = ES.RequireObjectCoercible(O); + var vals = []; + for (var key in obj) { + if (has(obj, key) && isEnumerable(obj, key)) { + vals.push(obj[key]); + } + } + return vals; +}; + + +/***/ }), +/* 220 */ +/***/ (function(module, exports) { + +module.exports = function isPrimitive(value) { + return value === null || (typeof value !== 'function' && typeof value !== 'object'); +}; + + +/***/ }), +/* 221 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(180); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $SyntaxError = GetIntrinsic('%SyntaxError%'); + +var has = __webpack_require__(81); + +var predicates = { + // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type + 'Property Descriptor': function isPropertyDescriptor(ES, Desc) { + if (ES.Type(Desc) !== 'Object') { + return false; + } + var allowed = { + '[[Configurable]]': true, + '[[Enumerable]]': true, + '[[Get]]': true, + '[[Set]]': true, + '[[Value]]': true, + '[[Writable]]': true + }; + + for (var key in Desc) { // eslint-disable-line + if (has(Desc, key) && !allowed[key]) { + return false; + } + } + + var isData = has(Desc, '[[Value]]'); + var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); + if (isData && IsAccessor) { + throw new $TypeError('Property Descriptors may not be both accessor and data descriptors'); + } + return true; + } +}; + +module.exports = function assertRecord(ES, recordType, argumentName, value) { + var predicate = predicates[recordType]; + if (typeof predicate !== 'function') { + throw new $SyntaxError('unknown record type: ' + recordType); + } + if (!predicate(ES, value)) { + throw new $TypeError(argumentName + ' must be a ' + recordType); + } + console.log(predicate(ES, value), value); +}; + + +/***/ }), +/* 222 */ +/***/ (function(module, exports) { + +module.exports = Number.isNaN || function isNaN(a) { + return a !== a; +}; + + +/***/ }), +/* 223 */ +/***/ (function(module, exports) { + +var $isNaN = Number.isNaN || function (a) { return a !== a; }; + +module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; + + +/***/ }), +/* 224 */ +/***/ (function(module, exports, __webpack_require__) { + +var bind = __webpack_require__(110); +var has = bind.call(Function.call, Object.prototype.hasOwnProperty); + +var $assign = Object.assign; + +module.exports = function assign(target, source) { + if ($assign) { + return $assign(target, source); + } + + for (var key in source) { + if (has(source, key)) { + target[key] = source[key]; + } + } + return target; +}; + + +/***/ }), +/* 225 */ +/***/ (function(module, exports) { + +module.exports = function sign(number) { + return number >= 0 ? 1 : -1; +}; + + +/***/ }), +/* 226 */ +/***/ (function(module, exports) { + +module.exports = function mod(number, modulo) { + var remain = number % modulo; + return Math.floor(remain >= 0 ? remain : remain + modulo); +}; + + +/***/ }), +/* 227 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(219); + +module.exports = function getPolyfill() { + return typeof Object.values === 'function' ? Object.values : implementation; +}; + + +/***/ }), +/* 228 */ +/***/ (function(module, exports) { + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = isTouchDevice; +function isTouchDevice() { + return !!(typeof window !== 'undefined' && ('ontouchstart' in window || window.DocumentTouch && typeof document !== 'undefined' && document instanceof window.DocumentTouch)) || !!(typeof navigator !== 'undefined' && (navigator.maxTouchPoints || navigator.msMaxTouchPoints)); +} +module.exports = exports['default']; + +/***/ }), +/* 229 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = isAfterDay; + +var _moment = __webpack_require__(43); + +var _moment2 = _interopRequireDefault(_moment); + +var _isBeforeDay = __webpack_require__(230); + +var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); + +var _isSameDay = __webpack_require__(181); + +var _isSameDay2 = _interopRequireDefault(_isSameDay); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function isAfterDay(a, b) { + if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; + return !(0, _isBeforeDay2['default'])(a, b) && !(0, _isSameDay2['default'])(a, b); +} + +/***/ }), +/* 230 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = isBeforeDay; + +var _moment = __webpack_require__(43); + +var _moment2 = _interopRequireDefault(_moment); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function isBeforeDay(a, b) { + if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; + + var aYear = a.year(); + var aMonth = a.month(); + + var bYear = b.year(); + var bMonth = b.month(); + + var isSameYear = aYear === bYear; + var isSameMonth = aMonth === bMonth; + + if (isSameYear && isSameMonth) return a.date() < b.date(); + if (isSameYear) return aMonth < bMonth; + return aYear < bYear; +} + +/***/ }), +/* 231 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = toMomentObject; + +var _moment = __webpack_require__(43); + +var _moment2 = _interopRequireDefault(_moment); + +var _constants = __webpack_require__(66); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function toMomentObject(dateString, customFormat) { + var dateFormats = customFormat ? [customFormat, _constants.DISPLAY_FORMAT, _constants.ISO_FORMAT] : [_constants.DISPLAY_FORMAT, _constants.ISO_FORMAT]; + + var date = (0, _moment2['default'])(dateString, dateFormats, true); + return date.isValid() ? date.hour(12) : null; +} + +/***/ }), +/* 232 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = isDayVisible; + +var _isBeforeDay = __webpack_require__(230); + +var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); + +var _isAfterDay = __webpack_require__(229); + +var _isAfterDay2 = _interopRequireDefault(_isAfterDay); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function isDayVisible(day, month, numberOfMonths, enableOutsideDays) { + var firstDayOfFirstMonth = month.clone().startOf('month'); + if (enableOutsideDays) firstDayOfFirstMonth = firstDayOfFirstMonth.startOf('week'); + if ((0, _isBeforeDay2['default'])(day, firstDayOfFirstMonth)) return false; + + var lastDayOfLastMonth = month.clone().add(numberOfMonths - 1, 'months').endOf('month'); + if (enableOutsideDays) lastDayOfLastMonth = lastDayOfLastMonth.endOf('week'); + return !(0, _isAfterDay2['default'])(day, lastDayOfLastMonth); +} + +/***/ }), +/* 233 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports['default'] = toISODateString; + +var _moment = __webpack_require__(43); + +var _moment2 = _interopRequireDefault(_moment); + +var _toMomentObject = __webpack_require__(231); + +var _toMomentObject2 = _interopRequireDefault(_toMomentObject); + +var _constants = __webpack_require__(66); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function toISODateString(date, currentFormat) { + var dateObj = _moment2['default'].isMoment(date) ? date : (0, _toMomentObject2['default'])(date, currentFormat); + if (!dateObj) return null; + + return dateObj.format(_constants.ISO_FORMAT); +} + +/***/ }), +/* 234 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _propTypes = __webpack_require__(33); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _constants = __webpack_require__(66); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +exports['default'] = _propTypes2['default'].oneOf([_constants.INFO_POSITION_TOP, _constants.INFO_POSITION_BOTTOM, _constants.INFO_POSITION_BEFORE, _constants.INFO_POSITION_AFTER]); + +/***/ }), +/* 235 */ +/***/ (function(module, exports, __webpack_require__) { + +var freeGlobal = __webpack_require__(373); + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +module.exports = root; + + +/***/ }), +/* 236 */ +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__(235); + +/** Built-in value references. */ +var Symbol = root.Symbol; + +module.exports = Symbol; + + +/***/ }), +/* 237 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function() { return addEventListener; }); +var CAN_USE_DOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + +// Adapted from Modernizr +// https://github.com/Modernizr/Modernizr/blob/acb3f0d9/feature-detects/dom/passiveeventlisteners.js#L26-L37 +function testPassiveEventListeners() { + if (!CAN_USE_DOM) { + return false; + } + + if (!window.addEventListener || !window.removeEventListener || !Object.defineProperty) { + return false; + } + + var supportsPassiveOption = false; + try { + var opts = Object.defineProperty({}, 'passive', { + // eslint-disable-next-line getter-return + get: function () { + function get() { + supportsPassiveOption = true; + } + + return get; + }() + }); + var noop = function noop() {}; + window.addEventListener('testPassiveEventSupport', noop, opts); + window.removeEventListener('testPassiveEventSupport', noop, opts); + } catch (e) { + // do nothing + } + + return supportsPassiveOption; +} + +var memoized = void 0; + +function canUsePassiveEventListeners() { + if (memoized === undefined) { + memoized = testPassiveEventListeners(); + } + return memoized; +} + +function normalizeEventOptions(eventOptions) { + if (!eventOptions) { + return undefined; + } + + if (!canUsePassiveEventListeners()) { + // If the browser does not support the passive option, then it is expecting + // a boolean for the options argument to specify whether it should use + // capture or not. In more modern browsers, this is passed via the `capture` + // option, so let's just hoist that value up. + return !!eventOptions.capture; + } + + return eventOptions; +} + +/* eslint-disable no-bitwise */ + +/** + * Generate a unique key for any set of event options + */ +function eventOptionsKey(normalizedEventOptions) { + if (!normalizedEventOptions) { + return 0; + } + + // If the browser does not support passive event listeners, the normalized + // event options will be a boolean. + if (normalizedEventOptions === true) { + return 100; + } + + // At this point, the browser supports passive event listeners, so we expect + // the event options to be an object with possible properties of capture, + // passive, and once. + // + // We want to consistently return the same value, regardless of the order of + // these properties, so let's use binary maths to assign each property to a + // bit, and then add those together (with an offset to account for the + // booleans at the beginning of this function). + var capture = normalizedEventOptions.capture << 0; + var passive = normalizedEventOptions.passive << 1; + var once = normalizedEventOptions.once << 2; + return capture + passive + once; +} + +function ensureCanMutateNextEventHandlers(eventHandlers) { + if (eventHandlers.handlers === eventHandlers.nextHandlers) { + // eslint-disable-next-line no-param-reassign + eventHandlers.nextHandlers = eventHandlers.handlers.slice(); + } +} + +function TargetEventHandlers(target) { + this.target = target; + this.events = {}; +} + +TargetEventHandlers.prototype.getEventHandlers = function () { + function getEventHandlers(eventName, options) { + var key = String(eventName) + ' ' + String(eventOptionsKey(options)); + + if (!this.events[key]) { + this.events[key] = { + handlers: [], + handleEvent: undefined + }; + this.events[key].nextHandlers = this.events[key].handlers; + } + + return this.events[key]; + } + + return getEventHandlers; +}(); + +TargetEventHandlers.prototype.handleEvent = function () { + function handleEvent(eventName, options, event) { + var eventHandlers = this.getEventHandlers(eventName, options); + eventHandlers.handlers = eventHandlers.nextHandlers; + eventHandlers.handlers.forEach(function (handler) { + if (handler) { + // We need to check for presence here because a handler function may + // cause later handlers to get removed. This can happen if you for + // instance have a waypoint that unmounts another waypoint as part of an + // onEnter/onLeave handler. + handler(event); + } + }); + } + + return handleEvent; +}(); + +TargetEventHandlers.prototype.add = function () { + function add(eventName, listener, options) { + var _this = this; + + // options has already been normalized at this point. + var eventHandlers = this.getEventHandlers(eventName, options); + + ensureCanMutateNextEventHandlers(eventHandlers); + + if (eventHandlers.nextHandlers.length === 0) { + eventHandlers.handleEvent = this.handleEvent.bind(this, eventName, options); + + this.target.addEventListener(eventName, eventHandlers.handleEvent, options); + } + + eventHandlers.nextHandlers.push(listener); + + var isSubscribed = true; + var unsubscribe = function () { + function unsubscribe() { + if (!isSubscribed) { + return; + } + + isSubscribed = false; + + ensureCanMutateNextEventHandlers(eventHandlers); + var index = eventHandlers.nextHandlers.indexOf(listener); + eventHandlers.nextHandlers.splice(index, 1); + + if (eventHandlers.nextHandlers.length === 0) { + // All event handlers have been removed, so we want to remove the event + // listener from the target node. + + if (_this.target) { + // There can be a race condition where the target may no longer exist + // when this function is called, e.g. when a React component is + // unmounting. Guarding against this prevents the following error: + // + // Cannot read property 'removeEventListener' of undefined + _this.target.removeEventListener(eventName, eventHandlers.handleEvent, options); + } + + eventHandlers.handleEvent = undefined; + } + } + + return unsubscribe; + }(); + return unsubscribe; + } + + return add; +}(); + +var EVENT_HANDLERS_KEY = '__consolidated_events_handlers__'; + +// eslint-disable-next-line import/prefer-default-export +function addEventListener(target, eventName, listener, options) { + if (!target[EVENT_HANDLERS_KEY]) { + // eslint-disable-next-line no-param-reassign + target[EVENT_HANDLERS_KEY] = new TargetEventHandlers(target); + } + var normalizedEventOptions = normalizeEventOptions(options); + return target[EVENT_HANDLERS_KEY].add(eventName, listener, normalizedEventOptions); +} + + + + +/***/ }), +/* 238 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = function contains(other) { + if (arguments.length < 1) { + throw new TypeError('1 argument is required'); + } + if (typeof other !== 'object') { + throw new TypeError('Argument 1 (”other“) to Node.contains must be an instance of Node'); + } + + var node = other; + do { + if (this === node) { + return true; + } + if (node) { + node = node.parentNode; + } + } while (node); + + return false; +}; + + +/***/ }), +/* 239 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(238); + +module.exports = function getPolyfill() { + if (typeof document !== 'undefined') { + if (document.contains) { + return document.contains; + } + if (document.body && document.body.contains) { + try { + if (typeof document.body.contains.call(document, '') === 'boolean') { + return document.body.contains; + } + } catch (e) { /**/ } + } + } + return implementation; +}; + + +/***/ }), +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12823,49 +17187,49 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(57); +var _object = __webpack_require__(82); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(21); +var _react = __webpack_require__(17); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(26); +var _propTypes = __webpack_require__(33); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(99); +var _reactAddonsShallowCompare = __webpack_require__(137); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(81); +var _reactMomentProptypes = __webpack_require__(135); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(53); +var _airbnbPropTypes = __webpack_require__(75); -var _reactWithStyles = __webpack_require__(65); +var _reactWithStyles = __webpack_require__(99); -var _moment = __webpack_require__(33); +var _moment = __webpack_require__(43); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(59); +var _defaultPhrases = __webpack_require__(97); -var _getPhrasePropTypes = __webpack_require__(61); +var _getPhrasePropTypes = __webpack_require__(98); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(213); +var _getCalendarDaySettings = __webpack_require__(241); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _ModifiersShape = __webpack_require__(133); +var _ModifiersShape = __webpack_require__(148); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _constants = __webpack_require__(47); +var _constants = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -13290,3617 +17654,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CalendarDay); /***/ }), -/* 173 */ -/***/ (function(module, exports, __webpack_require__) { - -// eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(362); - - -/***/ }), -/* 174 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var define = __webpack_require__(79); - -var implementation = __webpack_require__(219); -var getPolyfill = __webpack_require__(227); -var shim = __webpack_require__(372); - -var polyfill = getPolyfill(); - -define(polyfill, { - getPolyfill: getPolyfill, - implementation: implementation, - shim: shim -}); - -module.exports = polyfill; - - -/***/ }), -/* 175 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var fnToStr = Function.prototype.toString; - -var constructorRegex = /^\s*class\b/; -var isES6ClassFn = function isES6ClassFunction(value) { - try { - var fnStr = fnToStr.call(value); - return constructorRegex.test(fnStr); - } catch (e) { - return false; // not a function - } -}; - -var tryFunctionObject = function tryFunctionToStr(value) { - try { - if (isES6ClassFn(value)) { return false; } - fnToStr.call(value); - return true; - } catch (e) { - return false; - } -}; -var toStr = Object.prototype.toString; -var fnClass = '[object Function]'; -var genClass = '[object GeneratorFunction]'; -var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; - -module.exports = function isCallable(value) { - if (!value) { return false; } - if (typeof value !== 'function' && typeof value !== 'object') { return false; } - if (typeof value === 'function' && !value.prototype) { return true; } - if (hasToStringTag) { return tryFunctionObject(value); } - if (isES6ClassFn(value)) { return false; } - var strClass = toStr.call(value); - return strClass === fnClass || strClass === genClass; -}; - - -/***/ }), -/* 176 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/* globals - Set, - Map, - WeakSet, - WeakMap, - - Promise, - - Symbol, - Proxy, - - Atomics, - SharedArrayBuffer, - - ArrayBuffer, - DataView, - Uint8Array, - Float32Array, - Float64Array, - Int8Array, - Int16Array, - Int32Array, - Uint8ClampedArray, - Uint16Array, - Uint32Array, -*/ - -var undefined; // eslint-disable-line no-shadow-restricted-names - -var ThrowTypeError = Object.getOwnPropertyDescriptor - ? (function () { return Object.getOwnPropertyDescriptor(arguments, 'callee').get; }()) - : function () { throw new TypeError(); }; - -var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; - -var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto - -var generator; // = function * () {}; -var generatorFunction = generator ? getProto(generator) : undefined; -var asyncFn; // async function() {}; -var asyncFunction = asyncFn ? asyncFn.constructor : undefined; -var asyncGen; // async function * () {}; -var asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined; -var asyncGenIterator = asyncGen ? asyncGen() : undefined; - -var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); - -var INTRINSICS = { - '$ %Array%': Array, - '$ %ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '$ %ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype, - '$ %ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, - '$ %ArrayPrototype%': Array.prototype, - '$ %ArrayProto_entries%': Array.prototype.entries, - '$ %ArrayProto_forEach%': Array.prototype.forEach, - '$ %ArrayProto_keys%': Array.prototype.keys, - '$ %ArrayProto_values%': Array.prototype.values, - '$ %AsyncFromSyncIteratorPrototype%': undefined, - '$ %AsyncFunction%': asyncFunction, - '$ %AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined, - '$ %AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined, - '$ %AsyncGeneratorFunction%': asyncGenFunction, - '$ %AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined, - '$ %AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined, - '$ %Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '$ %Boolean%': Boolean, - '$ %BooleanPrototype%': Boolean.prototype, - '$ %DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '$ %DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype, - '$ %Date%': Date, - '$ %DatePrototype%': Date.prototype, - '$ %decodeURI%': decodeURI, - '$ %decodeURIComponent%': decodeURIComponent, - '$ %encodeURI%': encodeURI, - '$ %encodeURIComponent%': encodeURIComponent, - '$ %Error%': Error, - '$ %ErrorPrototype%': Error.prototype, - '$ %eval%': eval, // eslint-disable-line no-eval - '$ %EvalError%': EvalError, - '$ %EvalErrorPrototype%': EvalError.prototype, - '$ %Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '$ %Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype, - '$ %Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '$ %Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype, - '$ %Function%': Function, - '$ %FunctionPrototype%': Function.prototype, - '$ %Generator%': generator ? getProto(generator()) : undefined, - '$ %GeneratorFunction%': generatorFunction, - '$ %GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined, - '$ %Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '$ %Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype, - '$ %Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '$ %Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype, - '$ %Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '$ %Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype, - '$ %isFinite%': isFinite, - '$ %isNaN%': isNaN, - '$ %IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, - '$ %JSON%': JSON, - '$ %JSONParse%': JSON.parse, - '$ %Map%': typeof Map === 'undefined' ? undefined : Map, - '$ %MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), - '$ %MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype, - '$ %Math%': Math, - '$ %Number%': Number, - '$ %NumberPrototype%': Number.prototype, - '$ %Object%': Object, - '$ %ObjectPrototype%': Object.prototype, - '$ %ObjProto_toString%': Object.prototype.toString, - '$ %ObjProto_valueOf%': Object.prototype.valueOf, - '$ %parseFloat%': parseFloat, - '$ %parseInt%': parseInt, - '$ %Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '$ %PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype, - '$ %PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then, - '$ %Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all, - '$ %Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject, - '$ %Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve, - '$ %Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '$ %RangeError%': RangeError, - '$ %RangeErrorPrototype%': RangeError.prototype, - '$ %ReferenceError%': ReferenceError, - '$ %ReferenceErrorPrototype%': ReferenceError.prototype, - '$ %Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '$ %RegExp%': RegExp, - '$ %RegExpPrototype%': RegExp.prototype, - '$ %Set%': typeof Set === 'undefined' ? undefined : Set, - '$ %SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), - '$ %SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype, - '$ %SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '$ %SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype, - '$ %String%': String, - '$ %StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, - '$ %StringPrototype%': String.prototype, - '$ %Symbol%': hasSymbols ? Symbol : undefined, - '$ %SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined, - '$ %SyntaxError%': SyntaxError, - '$ %SyntaxErrorPrototype%': SyntaxError.prototype, - '$ %ThrowTypeError%': ThrowTypeError, - '$ %TypedArray%': TypedArray, - '$ %TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined, - '$ %TypeError%': TypeError, - '$ %TypeErrorPrototype%': TypeError.prototype, - '$ %Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '$ %Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype, - '$ %Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '$ %Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype, - '$ %Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '$ %Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype, - '$ %Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '$ %Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype, - '$ %URIError%': URIError, - '$ %URIErrorPrototype%': URIError.prototype, - '$ %WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '$ %WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype, - '$ %WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, - '$ %WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype -}; - -module.exports = function GetIntrinsic(name, allowMissing) { - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new TypeError('"allowMissing" argument must be a boolean'); - } - - var key = '$ ' + name; - if (!(key in INTRINSICS)) { - throw new SyntaxError('intrinsic ' + name + ' does not exist!'); - } - - // istanbul ignore if // hopefully this is impossible to test :-) - if (typeof INTRINSICS[key] === 'undefined' && !allowMissing) { - throw new TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - return INTRINSICS[key]; -}; - - -/***/ }), -/* 177 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = getInputHeight; -/* eslint-disable camelcase */ - -function getPadding(vertical, top, bottom) { - var isTopDefined = typeof top === 'number'; - var isBottomDefined = typeof bottom === 'number'; - var isVerticalDefined = typeof vertical === 'number'; - - if (isTopDefined && isBottomDefined) { - return top + bottom; - } - - if (isTopDefined && isVerticalDefined) { - return top + vertical; - } - - if (isTopDefined) { - return top; - } - - if (isBottomDefined && isVerticalDefined) { - return bottom + vertical; - } - - if (isBottomDefined) { - return bottom; - } - - if (isVerticalDefined) { - return 2 * vertical; - } - - return 0; -} - -function getInputHeight(_ref, small) { - var _ref$font$input = _ref.font.input, - lineHeight = _ref$font$input.lineHeight, - lineHeight_small = _ref$font$input.lineHeight_small, - _ref$spacing = _ref.spacing, - inputPadding = _ref$spacing.inputPadding, - displayTextPaddingVertical = _ref$spacing.displayTextPaddingVertical, - displayTextPaddingTop = _ref$spacing.displayTextPaddingTop, - displayTextPaddingBottom = _ref$spacing.displayTextPaddingBottom, - displayTextPaddingVertical_small = _ref$spacing.displayTextPaddingVertical_small, - displayTextPaddingTop_small = _ref$spacing.displayTextPaddingTop_small, - displayTextPaddingBottom_small = _ref$spacing.displayTextPaddingBottom_small; - - var calcLineHeight = small ? lineHeight_small : lineHeight; - - var padding = small ? getPadding(displayTextPaddingVertical_small, displayTextPaddingTop_small, displayTextPaddingBottom_small) : getPadding(displayTextPaddingVertical, displayTextPaddingTop, displayTextPaddingBottom); - - return parseInt(calcLineHeight, 10) + 2 * inputPadding + padding; -} - -/***/ }), -/* 178 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); -} - -module.exports = isObject; - - -/***/ }), -/* 179 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = toLocalizedDateString; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _toMomentObject = __webpack_require__(101); - -var _toMomentObject2 = _interopRequireDefault(_toMomentObject); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function toLocalizedDateString(date, currentFormat) { - var dateObj = _moment2['default'].isMoment(date) ? date : (0, _toMomentObject2['default'])(date, currentFormat); - if (!dateObj) return null; - - return dateObj.format(_constants.DISPLAY_FORMAT); -} - -/***/ }), -/* 180 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isDayVisible; - -var _isBeforeDay = __webpack_require__(125); - -var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); - -var _isAfterDay = __webpack_require__(138); - -var _isAfterDay2 = _interopRequireDefault(_isAfterDay); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function isDayVisible(day, month, numberOfMonths, enableOutsideDays) { - var firstDayOfFirstMonth = month.clone().startOf('month'); - if (enableOutsideDays) firstDayOfFirstMonth = firstDayOfFirstMonth.startOf('week'); - if ((0, _isBeforeDay2['default'])(day, firstDayOfFirstMonth)) return false; - - var lastDayOfLastMonth = month.clone().add(numberOfMonths - 1, 'months').endOf('month'); - if (enableOutsideDays) lastDayOfLastMonth = lastDayOfLastMonth.endOf('week'); - return !(0, _isAfterDay2['default'])(day, lastDayOfLastMonth); -} - -/***/ }), -/* 181 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.PureDayPicker = exports.defaultProps = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactAddonsShallowCompare = __webpack_require__(99); - -var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); - -var _airbnbPropTypes = __webpack_require__(53); - -var _reactWithStyles = __webpack_require__(65); - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _throttle = __webpack_require__(240); - -var _throttle2 = _interopRequireDefault(_throttle); - -var _isTouchDevice = __webpack_require__(103); - -var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); - -var _reactOutsideClickHandler = __webpack_require__(173); - -var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _CalendarMonthGrid = __webpack_require__(216); - -var _CalendarMonthGrid2 = _interopRequireDefault(_CalendarMonthGrid); - -var _DayPickerNavigation = __webpack_require__(385); - -var _DayPickerNavigation2 = _interopRequireDefault(_DayPickerNavigation); - -var _DayPickerKeyboardShortcuts = __webpack_require__(388); - -var _DayPickerKeyboardShortcuts2 = _interopRequireDefault(_DayPickerKeyboardShortcuts); - -var _getNumberOfCalendarMonthWeeks = __webpack_require__(390); - -var _getNumberOfCalendarMonthWeeks2 = _interopRequireDefault(_getNumberOfCalendarMonthWeeks); - -var _getCalendarMonthWidth = __webpack_require__(217); - -var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); - -var _calculateDimension = __webpack_require__(215); - -var _calculateDimension2 = _interopRequireDefault(_calculateDimension); - -var _getActiveElement = __webpack_require__(391); - -var _getActiveElement2 = _interopRequireDefault(_getActiveElement); - -var _isDayVisible = __webpack_require__(180); - -var _isDayVisible2 = _interopRequireDefault(_isDayVisible); - -var _ModifiersShape = __webpack_require__(133); - -var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); - -var _ScrollableOrientationShape = __webpack_require__(102); - -var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _CalendarInfoPositionShape = __webpack_require__(123); - -var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var MONTH_PADDING = 23; -var PREV_TRANSITION = 'prev'; -var NEXT_TRANSITION = 'next'; -var MONTH_SELECTION_TRANSITION = 'month_selection'; -var YEAR_SELECTION_TRANSITION = 'year_selection'; - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, { - - // calendar presentation props - enableOutsideDays: _propTypes2['default'].bool, - numberOfMonths: _propTypes2['default'].number, - orientation: _ScrollableOrientationShape2['default'], - withPortal: _propTypes2['default'].bool, - onOutsideClick: _propTypes2['default'].func, - hidden: _propTypes2['default'].bool, - initialVisibleMonth: _propTypes2['default'].func, - firstDayOfWeek: _DayOfWeekShape2['default'], - renderCalendarInfo: _propTypes2['default'].func, - calendarInfoPosition: _CalendarInfoPositionShape2['default'], - hideKeyboardShortcutsPanel: _propTypes2['default'].bool, - daySize: _airbnbPropTypes.nonNegativeInteger, - isRTL: _propTypes2['default'].bool, - verticalHeight: _airbnbPropTypes.nonNegativeInteger, - noBorder: _propTypes2['default'].bool, - transitionDuration: _airbnbPropTypes.nonNegativeInteger, - verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger, - horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger, - - // navigation props - navPrev: _propTypes2['default'].node, - navNext: _propTypes2['default'].node, - noNavButtons: _propTypes2['default'].bool, - onPrevMonthClick: _propTypes2['default'].func, - onNextMonthClick: _propTypes2['default'].func, - onMonthChange: _propTypes2['default'].func, - onYearChange: _propTypes2['default'].func, - onMultiplyScrollableMonths: _propTypes2['default'].func, // VERTICAL_SCROLLABLE daypickers only - - // month props - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - - // day props - modifiers: _propTypes2['default'].objectOf(_propTypes2['default'].objectOf(_ModifiersShape2['default'])), - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - onDayClick: _propTypes2['default'].func, - onDayMouseEnter: _propTypes2['default'].func, - onDayMouseLeave: _propTypes2['default'].func, - - // accessibility props - isFocused: _propTypes2['default'].bool, - getFirstFocusableDay: _propTypes2['default'].func, - onBlur: _propTypes2['default'].func, - showKeyboardShortcuts: _propTypes2['default'].bool, - - // internationalization - monthFormat: _propTypes2['default'].string, - weekDayFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.DayPickerPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string -})); - -var defaultProps = exports.defaultProps = { - // calendar presentation props - enableOutsideDays: false, - numberOfMonths: 2, - orientation: _constants.HORIZONTAL_ORIENTATION, - withPortal: false, - onOutsideClick: function () { - function onOutsideClick() {} - - return onOutsideClick; - }(), - - hidden: false, - initialVisibleMonth: function () { - function initialVisibleMonth() { - return (0, _moment2['default'])(); - } - - return initialVisibleMonth; - }(), - firstDayOfWeek: null, - renderCalendarInfo: null, - calendarInfoPosition: _constants.INFO_POSITION_BOTTOM, - hideKeyboardShortcutsPanel: false, - daySize: _constants.DAY_SIZE, - isRTL: false, - verticalHeight: null, - noBorder: false, - transitionDuration: undefined, - verticalBorderSpacing: undefined, - horizontalMonthPadding: 13, - - // navigation props - navPrev: null, - navNext: null, - noNavButtons: false, - onPrevMonthClick: function () { - function onPrevMonthClick() {} - - return onPrevMonthClick; - }(), - onNextMonthClick: function () { - function onNextMonthClick() {} - - return onNextMonthClick; - }(), - onMonthChange: function () { - function onMonthChange() {} - - return onMonthChange; - }(), - onYearChange: function () { - function onYearChange() {} - - return onYearChange; - }(), - onMultiplyScrollableMonths: function () { - function onMultiplyScrollableMonths() {} - - return onMultiplyScrollableMonths; - }(), - - - // month props - renderMonthText: null, - renderMonthElement: null, - - // day props - modifiers: {}, - renderCalendarDay: undefined, - renderDayContents: null, - onDayClick: function () { - function onDayClick() {} - - return onDayClick; - }(), - onDayMouseEnter: function () { - function onDayMouseEnter() {} - - return onDayMouseEnter; - }(), - onDayMouseLeave: function () { - function onDayMouseLeave() {} - - return onDayMouseLeave; - }(), - - - // accessibility props - isFocused: false, - getFirstFocusableDay: null, - onBlur: function () { - function onBlur() {} - - return onBlur; - }(), - - showKeyboardShortcuts: false, - - // internationalization - monthFormat: 'MMMM YYYY', - weekDayFormat: 'dd', - phrases: _defaultPhrases.DayPickerPhrases, - dayAriaLabelFormat: undefined -}; - -var DayPicker = function (_React$Component) { - _inherits(DayPicker, _React$Component); - - function DayPicker(props) { - _classCallCheck(this, DayPicker); - - var _this = _possibleConstructorReturn(this, (DayPicker.__proto__ || Object.getPrototypeOf(DayPicker)).call(this, props)); - - var currentMonth = props.hidden ? (0, _moment2['default'])() : props.initialVisibleMonth(); - - var focusedDate = currentMonth.clone().startOf('month'); - if (props.getFirstFocusableDay) { - focusedDate = props.getFirstFocusableDay(currentMonth); - } - - var horizontalMonthPadding = props.horizontalMonthPadding; - - - var translationValue = props.isRTL && _this.isHorizontal() ? -(0, _getCalendarMonthWidth2['default'])(props.daySize, horizontalMonthPadding) : 0; - - _this.hasSetInitialVisibleMonth = !props.hidden; - _this.state = { - currentMonth: currentMonth, - monthTransition: null, - translationValue: translationValue, - scrollableMonthMultiple: 1, - calendarMonthWidth: (0, _getCalendarMonthWidth2['default'])(props.daySize, horizontalMonthPadding), - focusedDate: !props.hidden || props.isFocused ? focusedDate : null, - nextFocusedDate: null, - showKeyboardShortcuts: props.showKeyboardShortcuts, - onKeyboardShortcutsPanelClose: function () { - function onKeyboardShortcutsPanelClose() {} - - return onKeyboardShortcutsPanelClose; - }(), - - isTouchDevice: (0, _isTouchDevice2['default'])(), - withMouseInteractions: true, - calendarInfoWidth: 0, - monthTitleHeight: null, - hasSetHeight: false - }; - - _this.setCalendarMonthWeeks(currentMonth); - - _this.calendarMonthGridHeight = 0; - _this.setCalendarInfoWidthTimeout = null; - - _this.onKeyDown = _this.onKeyDown.bind(_this); - _this.throttledKeyDown = (0, _throttle2['default'])(_this.onFinalKeyDown, 200, { trailing: false }); - _this.onPrevMonthClick = _this.onPrevMonthClick.bind(_this); - _this.onNextMonthClick = _this.onNextMonthClick.bind(_this); - _this.onMonthChange = _this.onMonthChange.bind(_this); - _this.onYearChange = _this.onYearChange.bind(_this); - - _this.multiplyScrollableMonths = _this.multiplyScrollableMonths.bind(_this); - _this.updateStateAfterMonthTransition = _this.updateStateAfterMonthTransition.bind(_this); - - _this.openKeyboardShortcutsPanel = _this.openKeyboardShortcutsPanel.bind(_this); - _this.closeKeyboardShortcutsPanel = _this.closeKeyboardShortcutsPanel.bind(_this); - - _this.setCalendarInfoRef = _this.setCalendarInfoRef.bind(_this); - _this.setContainerRef = _this.setContainerRef.bind(_this); - _this.setTransitionContainerRef = _this.setTransitionContainerRef.bind(_this); - _this.setMonthTitleHeight = _this.setMonthTitleHeight.bind(_this); - return _this; - } - - _createClass(DayPicker, [{ - key: 'componentDidMount', - value: function () { - function componentDidMount() { - var currentMonth = this.state.currentMonth; - - if (this.calendarInfo) { - this.setState({ - isTouchDevice: (0, _isTouchDevice2['default'])(), - calendarInfoWidth: (0, _calculateDimension2['default'])(this.calendarInfo, 'width', true, true) - }); - } else { - this.setState({ isTouchDevice: (0, _isTouchDevice2['default'])() }); - } - - this.setCalendarMonthWeeks(currentMonth); - } - - return componentDidMount; - }() - }, { - key: 'componentWillReceiveProps', - value: function () { - function componentWillReceiveProps(nextProps) { - var hidden = nextProps.hidden, - isFocused = nextProps.isFocused, - showKeyboardShortcuts = nextProps.showKeyboardShortcuts, - onBlur = nextProps.onBlur, - renderMonthText = nextProps.renderMonthText, - horizontalMonthPadding = nextProps.horizontalMonthPadding; - var currentMonth = this.state.currentMonth; - - - if (!hidden) { - if (!this.hasSetInitialVisibleMonth) { - this.hasSetInitialVisibleMonth = true; - this.setState({ - currentMonth: nextProps.initialVisibleMonth() - }); - } - } - - var _props = this.props, - daySize = _props.daySize, - prevIsFocused = _props.isFocused, - prevRenderMonthText = _props.renderMonthText; - - - if (nextProps.daySize !== daySize) { - this.setState({ - calendarMonthWidth: (0, _getCalendarMonthWidth2['default'])(nextProps.daySize, horizontalMonthPadding) - }); - } - - if (isFocused !== prevIsFocused) { - if (isFocused) { - var focusedDate = this.getFocusedDay(currentMonth); - - var onKeyboardShortcutsPanelClose = this.state.onKeyboardShortcutsPanelClose; - - if (nextProps.showKeyboardShortcuts) { - // the ? shortcut came from the input and we should return input there once it is close - onKeyboardShortcutsPanelClose = onBlur; - } - - this.setState({ - showKeyboardShortcuts: showKeyboardShortcuts, - onKeyboardShortcutsPanelClose: onKeyboardShortcutsPanelClose, - focusedDate: focusedDate, - withMouseInteractions: false - }); - } else { - this.setState({ focusedDate: null }); - } - } - - if (renderMonthText !== prevRenderMonthText) { - this.setState({ - monthTitleHeight: null - }); - } - } - - return componentWillReceiveProps; - }() - }, { - key: 'shouldComponentUpdate', - value: function () { - function shouldComponentUpdate(nextProps, nextState) { - return (0, _reactAddonsShallowCompare2['default'])(this, nextProps, nextState); - } - - return shouldComponentUpdate; - }() - }, { - key: 'componentWillUpdate', - value: function () { - function componentWillUpdate() { - var _this2 = this; - - var transitionDuration = this.props.transitionDuration; - - // Calculating the dimensions trigger a DOM repaint which - // breaks the CSS transition. - // The setTimeout will wait until the transition ends. - - if (this.calendarInfo) { - this.setCalendarInfoWidthTimeout = setTimeout(function () { - var calendarInfoWidth = _this2.state.calendarInfoWidth; - - var calendarInfoPanelWidth = (0, _calculateDimension2['default'])(_this2.calendarInfo, 'width', true, true); - if (calendarInfoWidth !== calendarInfoPanelWidth) { - _this2.setState({ - calendarInfoWidth: calendarInfoPanelWidth - }); - } - }, transitionDuration); - } - } - - return componentWillUpdate; - }() - }, { - key: 'componentDidUpdate', - value: function () { - function componentDidUpdate(prevProps) { - var _props2 = this.props, - orientation = _props2.orientation, - daySize = _props2.daySize, - isFocused = _props2.isFocused, - numberOfMonths = _props2.numberOfMonths; - var _state = this.state, - focusedDate = _state.focusedDate, - monthTitleHeight = _state.monthTitleHeight; - - - if (this.isHorizontal() && (orientation !== prevProps.orientation || daySize !== prevProps.daySize)) { - var visibleCalendarWeeks = this.calendarMonthWeeks.slice(1, numberOfMonths + 1); - var calendarMonthWeeksHeight = Math.max.apply(Math, [0].concat(_toConsumableArray(visibleCalendarWeeks))) * (daySize - 1); - var newMonthHeight = monthTitleHeight + calendarMonthWeeksHeight + 1; - this.adjustDayPickerHeight(newMonthHeight); - } - - if (!prevProps.isFocused && isFocused && !focusedDate) { - this.container.focus(); - } - } - - return componentDidUpdate; - }() - }, { - key: 'componentWillUnmount', - value: function () { - function componentWillUnmount() { - clearTimeout(this.setCalendarInfoWidthTimeout); - } - - return componentWillUnmount; - }() - }, { - key: 'onKeyDown', - value: function () { - function onKeyDown(e) { - e.stopPropagation(); - if (!_constants.MODIFIER_KEY_NAMES.has(e.key)) { - this.throttledKeyDown(e); - } - } - - return onKeyDown; - }() - }, { - key: 'onFinalKeyDown', - value: function () { - function onFinalKeyDown(e) { - this.setState({ withMouseInteractions: false }); - - var _props3 = this.props, - onBlur = _props3.onBlur, - isRTL = _props3.isRTL; - var _state2 = this.state, - focusedDate = _state2.focusedDate, - showKeyboardShortcuts = _state2.showKeyboardShortcuts; - - if (!focusedDate) return; - - var newFocusedDate = focusedDate.clone(); - - var didTransitionMonth = false; - - // focus might be anywhere when the keyboard shortcuts panel is opened so we want to - // return it to wherever it was before when the panel was opened - var activeElement = (0, _getActiveElement2['default'])(); - var onKeyboardShortcutsPanelClose = function () { - function onKeyboardShortcutsPanelClose() { - if (activeElement) activeElement.focus(); - } - - return onKeyboardShortcutsPanelClose; - }(); - - switch (e.key) { - case 'ArrowUp': - e.preventDefault(); - newFocusedDate.subtract(1, 'week'); - didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate); - break; - case 'ArrowLeft': - e.preventDefault(); - if (isRTL) { - newFocusedDate.add(1, 'day'); - } else { - newFocusedDate.subtract(1, 'day'); - } - didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate); - break; - case 'Home': - e.preventDefault(); - newFocusedDate.startOf('week'); - didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate); - break; - case 'PageUp': - e.preventDefault(); - newFocusedDate.subtract(1, 'month'); - didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate); - break; - - case 'ArrowDown': - e.preventDefault(); - newFocusedDate.add(1, 'week'); - didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate); - break; - case 'ArrowRight': - e.preventDefault(); - if (isRTL) { - newFocusedDate.subtract(1, 'day'); - } else { - newFocusedDate.add(1, 'day'); - } - didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate); - break; - case 'End': - e.preventDefault(); - newFocusedDate.endOf('week'); - didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate); - break; - case 'PageDown': - e.preventDefault(); - newFocusedDate.add(1, 'month'); - didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate); - break; - - case '?': - this.openKeyboardShortcutsPanel(onKeyboardShortcutsPanelClose); - break; - - case 'Escape': - if (showKeyboardShortcuts) { - this.closeKeyboardShortcutsPanel(); - } else { - onBlur(); - } - break; - - default: - break; - } - - // If there was a month transition, do not update the focused date until the transition has - // completed. Otherwise, attempting to focus on a DOM node may interrupt the CSS animation. If - // didTransitionMonth is true, the focusedDate gets updated in #updateStateAfterMonthTransition - if (!didTransitionMonth) { - this.setState({ - focusedDate: newFocusedDate - }); - } - } - - return onFinalKeyDown; - }() - }, { - key: 'onPrevMonthClick', - value: function () { - function onPrevMonthClick(nextFocusedDate, e) { - var _props4 = this.props, - daySize = _props4.daySize, - isRTL = _props4.isRTL, - numberOfMonths = _props4.numberOfMonths; - var _state3 = this.state, - calendarMonthWidth = _state3.calendarMonthWidth, - monthTitleHeight = _state3.monthTitleHeight; - - - if (e) e.preventDefault(); - - var translationValue = void 0; - if (this.isVertical()) { - var calendarMonthWeeksHeight = this.calendarMonthWeeks[0] * (daySize - 1); - translationValue = monthTitleHeight + calendarMonthWeeksHeight + 1; - } else if (this.isHorizontal()) { - translationValue = calendarMonthWidth; - if (isRTL) { - translationValue = -2 * calendarMonthWidth; - } - - var visibleCalendarWeeks = this.calendarMonthWeeks.slice(0, numberOfMonths); - var _calendarMonthWeeksHeight = Math.max.apply(Math, [0].concat(_toConsumableArray(visibleCalendarWeeks))) * (daySize - 1); - var newMonthHeight = monthTitleHeight + _calendarMonthWeeksHeight + 1; - this.adjustDayPickerHeight(newMonthHeight); - } - - this.setState({ - monthTransition: PREV_TRANSITION, - translationValue: translationValue, - focusedDate: null, - nextFocusedDate: nextFocusedDate - }); - } - - return onPrevMonthClick; - }() - }, { - key: 'onMonthChange', - value: function () { - function onMonthChange(currentMonth) { - this.setCalendarMonthWeeks(currentMonth); - this.calculateAndSetDayPickerHeight(); - - // Translation value is a hack to force an invisible transition that - // properly rerenders the CalendarMonthGrid - this.setState({ - monthTransition: MONTH_SELECTION_TRANSITION, - translationValue: 0.00001, - focusedDate: null, - nextFocusedDate: currentMonth, - currentMonth: currentMonth - }); - } - - return onMonthChange; - }() - }, { - key: 'onYearChange', - value: function () { - function onYearChange(currentMonth) { - this.setCalendarMonthWeeks(currentMonth); - this.calculateAndSetDayPickerHeight(); - - // Translation value is a hack to force an invisible transition that - // properly rerenders the CalendarMonthGrid - this.setState({ - monthTransition: YEAR_SELECTION_TRANSITION, - translationValue: 0.0001, - focusedDate: null, - nextFocusedDate: currentMonth, - currentMonth: currentMonth - }); - } - - return onYearChange; - }() - }, { - key: 'onNextMonthClick', - value: function () { - function onNextMonthClick(nextFocusedDate, e) { - var _props5 = this.props, - isRTL = _props5.isRTL, - numberOfMonths = _props5.numberOfMonths, - daySize = _props5.daySize; - var _state4 = this.state, - calendarMonthWidth = _state4.calendarMonthWidth, - monthTitleHeight = _state4.monthTitleHeight; - - - if (e) e.preventDefault(); - - var translationValue = void 0; - - if (this.isVertical()) { - var firstVisibleMonthWeeks = this.calendarMonthWeeks[1]; - var calendarMonthWeeksHeight = firstVisibleMonthWeeks * (daySize - 1); - translationValue = -(monthTitleHeight + calendarMonthWeeksHeight + 1); - } - - if (this.isHorizontal()) { - translationValue = -calendarMonthWidth; - if (isRTL) { - translationValue = 0; - } - - var visibleCalendarWeeks = this.calendarMonthWeeks.slice(2, numberOfMonths + 2); - var _calendarMonthWeeksHeight2 = Math.max.apply(Math, [0].concat(_toConsumableArray(visibleCalendarWeeks))) * (daySize - 1); - var newMonthHeight = monthTitleHeight + _calendarMonthWeeksHeight2 + 1; - this.adjustDayPickerHeight(newMonthHeight); - } - - this.setState({ - monthTransition: NEXT_TRANSITION, - translationValue: translationValue, - focusedDate: null, - nextFocusedDate: nextFocusedDate - }); - } - - return onNextMonthClick; - }() - }, { - key: 'getFirstDayOfWeek', - value: function () { - function getFirstDayOfWeek() { - var firstDayOfWeek = this.props.firstDayOfWeek; - - if (firstDayOfWeek == null) { - return _moment2['default'].localeData().firstDayOfWeek(); - } - - return firstDayOfWeek; - } - - return getFirstDayOfWeek; - }() - }, { - key: 'getFirstVisibleIndex', - value: function () { - function getFirstVisibleIndex() { - var orientation = this.props.orientation; - var monthTransition = this.state.monthTransition; - - - if (orientation === _constants.VERTICAL_SCROLLABLE) return 0; - - var firstVisibleMonthIndex = 1; - if (monthTransition === PREV_TRANSITION) { - firstVisibleMonthIndex -= 1; - } else if (monthTransition === NEXT_TRANSITION) { - firstVisibleMonthIndex += 1; - } - - return firstVisibleMonthIndex; - } - - return getFirstVisibleIndex; - }() - }, { - key: 'getFocusedDay', - value: function () { - function getFocusedDay(newMonth) { - var _props6 = this.props, - getFirstFocusableDay = _props6.getFirstFocusableDay, - numberOfMonths = _props6.numberOfMonths; - - - var focusedDate = void 0; - if (getFirstFocusableDay) { - focusedDate = getFirstFocusableDay(newMonth); - } - - if (newMonth && (!focusedDate || !(0, _isDayVisible2['default'])(focusedDate, newMonth, numberOfMonths))) { - focusedDate = newMonth.clone().startOf('month'); - } - - return focusedDate; - } - - return getFocusedDay; - }() - }, { - key: 'setMonthTitleHeight', - value: function () { - function setMonthTitleHeight(monthTitleHeight) { - var _this3 = this; - - this.setState({ - monthTitleHeight: monthTitleHeight - }, function () { - _this3.calculateAndSetDayPickerHeight(); - }); - } - - return setMonthTitleHeight; - }() - }, { - key: 'setCalendarMonthWeeks', - value: function () { - function setCalendarMonthWeeks(currentMonth) { - var numberOfMonths = this.props.numberOfMonths; - - - this.calendarMonthWeeks = []; - var month = currentMonth.clone().subtract(1, 'months'); - var firstDayOfWeek = this.getFirstDayOfWeek(); - for (var i = 0; i < numberOfMonths + 2; i += 1) { - var numberOfWeeks = (0, _getNumberOfCalendarMonthWeeks2['default'])(month, firstDayOfWeek); - this.calendarMonthWeeks.push(numberOfWeeks); - month = month.add(1, 'months'); - } - } - - return setCalendarMonthWeeks; - }() - }, { - key: 'setContainerRef', - value: function () { - function setContainerRef(ref) { - this.container = ref; - } - - return setContainerRef; - }() - }, { - key: 'setCalendarInfoRef', - value: function () { - function setCalendarInfoRef(ref) { - this.calendarInfo = ref; - } - - return setCalendarInfoRef; - }() - }, { - key: 'setTransitionContainerRef', - value: function () { - function setTransitionContainerRef(ref) { - this.transitionContainer = ref; - } - - return setTransitionContainerRef; - }() - }, { - key: 'maybeTransitionNextMonth', - value: function () { - function maybeTransitionNextMonth(newFocusedDate) { - var numberOfMonths = this.props.numberOfMonths; - var _state5 = this.state, - currentMonth = _state5.currentMonth, - focusedDate = _state5.focusedDate; - - - var newFocusedDateMonth = newFocusedDate.month(); - var focusedDateMonth = focusedDate.month(); - var isNewFocusedDateVisible = (0, _isDayVisible2['default'])(newFocusedDate, currentMonth, numberOfMonths); - if (newFocusedDateMonth !== focusedDateMonth && !isNewFocusedDateVisible) { - this.onNextMonthClick(newFocusedDate); - return true; - } - - return false; - } - - return maybeTransitionNextMonth; - }() - }, { - key: 'maybeTransitionPrevMonth', - value: function () { - function maybeTransitionPrevMonth(newFocusedDate) { - var numberOfMonths = this.props.numberOfMonths; - var _state6 = this.state, - currentMonth = _state6.currentMonth, - focusedDate = _state6.focusedDate; - - - var newFocusedDateMonth = newFocusedDate.month(); - var focusedDateMonth = focusedDate.month(); - var isNewFocusedDateVisible = (0, _isDayVisible2['default'])(newFocusedDate, currentMonth, numberOfMonths); - if (newFocusedDateMonth !== focusedDateMonth && !isNewFocusedDateVisible) { - this.onPrevMonthClick(newFocusedDate); - return true; - } - - return false; - } - - return maybeTransitionPrevMonth; - }() - }, { - key: 'multiplyScrollableMonths', - value: function () { - function multiplyScrollableMonths(e) { - var onMultiplyScrollableMonths = this.props.onMultiplyScrollableMonths; - - if (e) e.preventDefault(); - - if (onMultiplyScrollableMonths) onMultiplyScrollableMonths(e); - - this.setState(function (_ref) { - var scrollableMonthMultiple = _ref.scrollableMonthMultiple; - return { - scrollableMonthMultiple: scrollableMonthMultiple + 1 - }; - }); - } - - return multiplyScrollableMonths; - }() - }, { - key: 'isHorizontal', - value: function () { - function isHorizontal() { - var orientation = this.props.orientation; - - return orientation === _constants.HORIZONTAL_ORIENTATION; - } - - return isHorizontal; - }() - }, { - key: 'isVertical', - value: function () { - function isVertical() { - var orientation = this.props.orientation; - - return orientation === _constants.VERTICAL_ORIENTATION || orientation === _constants.VERTICAL_SCROLLABLE; - } - - return isVertical; - }() - }, { - key: 'updateStateAfterMonthTransition', - value: function () { - function updateStateAfterMonthTransition() { - var _this4 = this; - - var _props7 = this.props, - onPrevMonthClick = _props7.onPrevMonthClick, - onNextMonthClick = _props7.onNextMonthClick, - numberOfMonths = _props7.numberOfMonths, - onMonthChange = _props7.onMonthChange, - onYearChange = _props7.onYearChange, - isRTL = _props7.isRTL; - var _state7 = this.state, - currentMonth = _state7.currentMonth, - monthTransition = _state7.monthTransition, - focusedDate = _state7.focusedDate, - nextFocusedDate = _state7.nextFocusedDate, - withMouseInteractions = _state7.withMouseInteractions, - calendarMonthWidth = _state7.calendarMonthWidth; - - - if (!monthTransition) return; - - var newMonth = currentMonth.clone(); - var firstDayOfWeek = this.getFirstDayOfWeek(); - if (monthTransition === PREV_TRANSITION) { - newMonth.subtract(1, 'month'); - if (onPrevMonthClick) onPrevMonthClick(newMonth); - var newInvisibleMonth = newMonth.clone().subtract(1, 'month'); - var numberOfWeeks = (0, _getNumberOfCalendarMonthWeeks2['default'])(newInvisibleMonth, firstDayOfWeek); - this.calendarMonthWeeks = [numberOfWeeks].concat(_toConsumableArray(this.calendarMonthWeeks.slice(0, -1))); - } else if (monthTransition === NEXT_TRANSITION) { - newMonth.add(1, 'month'); - if (onNextMonthClick) onNextMonthClick(newMonth); - var _newInvisibleMonth = newMonth.clone().add(numberOfMonths, 'month'); - var _numberOfWeeks = (0, _getNumberOfCalendarMonthWeeks2['default'])(_newInvisibleMonth, firstDayOfWeek); - this.calendarMonthWeeks = [].concat(_toConsumableArray(this.calendarMonthWeeks.slice(1)), [_numberOfWeeks]); - } else if (monthTransition === MONTH_SELECTION_TRANSITION) { - if (onMonthChange) onMonthChange(newMonth); - } else if (monthTransition === YEAR_SELECTION_TRANSITION) { - if (onYearChange) onYearChange(newMonth); - } - - var newFocusedDate = null; - if (nextFocusedDate) { - newFocusedDate = nextFocusedDate; - } else if (!focusedDate && !withMouseInteractions) { - newFocusedDate = this.getFocusedDay(newMonth); - } - - this.setState({ - currentMonth: newMonth, - monthTransition: null, - translationValue: isRTL && this.isHorizontal() ? -calendarMonthWidth : 0, - nextFocusedDate: null, - focusedDate: newFocusedDate - }, function () { - // we don't want to focus on the relevant calendar day after a month transition - // if the user is navigating around using a mouse - if (withMouseInteractions) { - var activeElement = (0, _getActiveElement2['default'])(); - if (activeElement && activeElement !== document.body && _this4.container.contains(activeElement)) { - activeElement.blur(); - } - } - }); - } - - return updateStateAfterMonthTransition; - }() - }, { - key: 'adjustDayPickerHeight', - value: function () { - function adjustDayPickerHeight(newMonthHeight) { - var _this5 = this; - - var monthHeight = newMonthHeight + MONTH_PADDING; - if (monthHeight !== this.calendarMonthGridHeight) { - this.transitionContainer.style.height = String(monthHeight) + 'px'; - if (!this.calendarMonthGridHeight) { - setTimeout(function () { - _this5.setState({ hasSetHeight: true }); - }, 0); - } - this.calendarMonthGridHeight = monthHeight; - } - } - - return adjustDayPickerHeight; - }() - }, { - key: 'calculateAndSetDayPickerHeight', - value: function () { - function calculateAndSetDayPickerHeight() { - var _props8 = this.props, - daySize = _props8.daySize, - numberOfMonths = _props8.numberOfMonths; - var monthTitleHeight = this.state.monthTitleHeight; - - - var visibleCalendarWeeks = this.calendarMonthWeeks.slice(1, numberOfMonths + 1); - var calendarMonthWeeksHeight = Math.max.apply(Math, [0].concat(_toConsumableArray(visibleCalendarWeeks))) * (daySize - 1); - var newMonthHeight = monthTitleHeight + calendarMonthWeeksHeight + 1; - - if (this.isHorizontal()) { - this.adjustDayPickerHeight(newMonthHeight); - } - } - - return calculateAndSetDayPickerHeight; - }() - }, { - key: 'openKeyboardShortcutsPanel', - value: function () { - function openKeyboardShortcutsPanel(onCloseCallBack) { - this.setState({ - showKeyboardShortcuts: true, - onKeyboardShortcutsPanelClose: onCloseCallBack - }); - } - - return openKeyboardShortcutsPanel; - }() - }, { - key: 'closeKeyboardShortcutsPanel', - value: function () { - function closeKeyboardShortcutsPanel() { - var onKeyboardShortcutsPanelClose = this.state.onKeyboardShortcutsPanelClose; - - - if (onKeyboardShortcutsPanelClose) { - onKeyboardShortcutsPanelClose(); - } - - this.setState({ - onKeyboardShortcutsPanelClose: null, - showKeyboardShortcuts: false - }); - } - - return closeKeyboardShortcutsPanel; - }() - }, { - key: 'renderNavigation', - value: function () { - function renderNavigation() { - var _this6 = this; - - var _props9 = this.props, - navPrev = _props9.navPrev, - navNext = _props9.navNext, - noNavButtons = _props9.noNavButtons, - orientation = _props9.orientation, - phrases = _props9.phrases, - isRTL = _props9.isRTL; - - - if (noNavButtons) { - return null; - } - - var onNextMonthClick = void 0; - if (orientation === _constants.VERTICAL_SCROLLABLE) { - onNextMonthClick = this.multiplyScrollableMonths; - } else { - onNextMonthClick = function () { - function onNextMonthClick(e) { - _this6.onNextMonthClick(null, e); - } - - return onNextMonthClick; - }(); - } - - return _react2['default'].createElement(_DayPickerNavigation2['default'], { - onPrevMonthClick: function () { - function onPrevMonthClick(e) { - _this6.onPrevMonthClick(null, e); - } - - return onPrevMonthClick; - }(), - onNextMonthClick: onNextMonthClick, - navPrev: navPrev, - navNext: navNext, - orientation: orientation, - phrases: phrases, - isRTL: isRTL - }); - } - - return renderNavigation; - }() - }, { - key: 'renderWeekHeader', - value: function () { - function renderWeekHeader(index) { - var _props10 = this.props, - daySize = _props10.daySize, - horizontalMonthPadding = _props10.horizontalMonthPadding, - orientation = _props10.orientation, - weekDayFormat = _props10.weekDayFormat, - styles = _props10.styles; - var calendarMonthWidth = this.state.calendarMonthWidth; - - var verticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE; - var horizontalStyle = { - left: index * calendarMonthWidth - }; - var verticalStyle = { - marginLeft: -calendarMonthWidth / 2 - }; - - var weekHeaderStyle = {}; // no styles applied to the vertical-scrollable orientation - if (this.isHorizontal()) { - weekHeaderStyle = horizontalStyle; - } else if (this.isVertical() && !verticalScrollable) { - weekHeaderStyle = verticalStyle; - } - - var firstDayOfWeek = this.getFirstDayOfWeek(); - - var header = []; - for (var i = 0; i < 7; i += 1) { - header.push(_react2['default'].createElement( - 'li', - _extends({ key: i }, (0, _reactWithStyles.css)(styles.DayPicker_weekHeader_li, { width: daySize })), - _react2['default'].createElement( - 'small', - null, - (0, _moment2['default'])().day((i + firstDayOfWeek) % 7).format(weekDayFormat) - ) - )); - } - - return _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.DayPicker_weekHeader, this.isVertical() && styles.DayPicker_weekHeader__vertical, verticalScrollable && styles.DayPicker_weekHeader__verticalScrollable, weekHeaderStyle, { padding: '0 ' + String(horizontalMonthPadding) + 'px' }), { - key: 'week-' + String(index) - }), - _react2['default'].createElement( - 'ul', - (0, _reactWithStyles.css)(styles.DayPicker_weekHeader_ul), - header - ) - ); - } - - return renderWeekHeader; - }() - }, { - key: 'render', - value: function () { - function render() { - var _this7 = this; - - var _state8 = this.state, - calendarMonthWidth = _state8.calendarMonthWidth, - currentMonth = _state8.currentMonth, - monthTransition = _state8.monthTransition, - translationValue = _state8.translationValue, - scrollableMonthMultiple = _state8.scrollableMonthMultiple, - focusedDate = _state8.focusedDate, - showKeyboardShortcuts = _state8.showKeyboardShortcuts, - isTouch = _state8.isTouchDevice, - hasSetHeight = _state8.hasSetHeight, - calendarInfoWidth = _state8.calendarInfoWidth, - monthTitleHeight = _state8.monthTitleHeight; - var _props11 = this.props, - enableOutsideDays = _props11.enableOutsideDays, - numberOfMonths = _props11.numberOfMonths, - orientation = _props11.orientation, - modifiers = _props11.modifiers, - withPortal = _props11.withPortal, - onDayClick = _props11.onDayClick, - onDayMouseEnter = _props11.onDayMouseEnter, - onDayMouseLeave = _props11.onDayMouseLeave, - firstDayOfWeek = _props11.firstDayOfWeek, - renderMonthText = _props11.renderMonthText, - renderCalendarDay = _props11.renderCalendarDay, - renderDayContents = _props11.renderDayContents, - renderCalendarInfo = _props11.renderCalendarInfo, - renderMonthElement = _props11.renderMonthElement, - calendarInfoPosition = _props11.calendarInfoPosition, - hideKeyboardShortcutsPanel = _props11.hideKeyboardShortcutsPanel, - onOutsideClick = _props11.onOutsideClick, - monthFormat = _props11.monthFormat, - daySize = _props11.daySize, - isFocused = _props11.isFocused, - isRTL = _props11.isRTL, - styles = _props11.styles, - theme = _props11.theme, - phrases = _props11.phrases, - verticalHeight = _props11.verticalHeight, - dayAriaLabelFormat = _props11.dayAriaLabelFormat, - noBorder = _props11.noBorder, - transitionDuration = _props11.transitionDuration, - verticalBorderSpacing = _props11.verticalBorderSpacing, - horizontalMonthPadding = _props11.horizontalMonthPadding; - var dayPickerHorizontalPadding = theme.reactDates.spacing.dayPickerHorizontalPadding; - - - var isHorizontal = this.isHorizontal(); - - var numOfWeekHeaders = this.isVertical() ? 1 : numberOfMonths; - var weekHeaders = []; - for (var i = 0; i < numOfWeekHeaders; i += 1) { - weekHeaders.push(this.renderWeekHeader(i)); - } - - var verticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE; - var height = void 0; - if (isHorizontal) { - height = this.calendarMonthGridHeight; - } else if (this.isVertical() && !verticalScrollable && !withPortal) { - // If the user doesn't set a desired height, - // we default back to this kind of made-up value that generally looks good - height = verticalHeight || 1.75 * calendarMonthWidth; - } - - var isCalendarMonthGridAnimating = monthTransition !== null; - - var shouldFocusDate = !isCalendarMonthGridAnimating && isFocused; - - var keyboardShortcutButtonLocation = _DayPickerKeyboardShortcuts.BOTTOM_RIGHT; - if (this.isVertical()) { - keyboardShortcutButtonLocation = withPortal ? _DayPickerKeyboardShortcuts.TOP_LEFT : _DayPickerKeyboardShortcuts.TOP_RIGHT; - } - - var shouldAnimateHeight = isHorizontal && hasSetHeight; - - var calendarInfoPositionTop = calendarInfoPosition === _constants.INFO_POSITION_TOP; - var calendarInfoPositionBottom = calendarInfoPosition === _constants.INFO_POSITION_BOTTOM; - var calendarInfoPositionBefore = calendarInfoPosition === _constants.INFO_POSITION_BEFORE; - var calendarInfoPositionAfter = calendarInfoPosition === _constants.INFO_POSITION_AFTER; - var calendarInfoIsInline = calendarInfoPositionBefore || calendarInfoPositionAfter; - - var calendarInfo = renderCalendarInfo && _react2['default'].createElement( - 'div', - _extends({ - ref: this.setCalendarInfoRef - }, (0, _reactWithStyles.css)(calendarInfoIsInline && styles.DayPicker_calendarInfo__horizontal)), - renderCalendarInfo() - ); - - var calendarInfoPanelWidth = renderCalendarInfo && calendarInfoIsInline ? calendarInfoWidth : 0; - - var firstVisibleMonthIndex = this.getFirstVisibleIndex(); - var wrapperHorizontalWidth = calendarMonthWidth * numberOfMonths + 2 * dayPickerHorizontalPadding; - // Adding `1px` because of whitespace between 2 inline-block - var fullHorizontalWidth = wrapperHorizontalWidth + calendarInfoPanelWidth + 1; - - var transitionContainerStyle = { - width: isHorizontal && wrapperHorizontalWidth, - height: height - }; - - var dayPickerWrapperStyle = { - width: isHorizontal && wrapperHorizontalWidth - }; - - var dayPickerStyle = { - width: isHorizontal && fullHorizontalWidth, - - // These values are to center the datepicker (approximately) on the page - marginLeft: isHorizontal && withPortal ? -fullHorizontalWidth / 2 : null, - marginTop: isHorizontal && withPortal ? -calendarMonthWidth / 2 : null - }; - - return _react2['default'].createElement( - 'div', - _extends({ - role: 'application', - 'aria-label': phrases.calendarLabel - }, (0, _reactWithStyles.css)(styles.DayPicker, isHorizontal && styles.DayPicker__horizontal, verticalScrollable && styles.DayPicker__verticalScrollable, isHorizontal && withPortal && styles.DayPicker_portal__horizontal, this.isVertical() && withPortal && styles.DayPicker_portal__vertical, dayPickerStyle, !monthTitleHeight && styles.DayPicker__hidden, !noBorder && styles.DayPicker__withBorder)), - _react2['default'].createElement( - _reactOutsideClickHandler2['default'], - { onOutsideClick: onOutsideClick }, - (calendarInfoPositionTop || calendarInfoPositionBefore) && calendarInfo, - _react2['default'].createElement( - 'div', - (0, _reactWithStyles.css)(dayPickerWrapperStyle, calendarInfoIsInline && isHorizontal && styles.DayPicker_wrapper__horizontal), - _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.DayPicker_weekHeaders, isHorizontal && styles.DayPicker_weekHeaders__horizontal), { - 'aria-hidden': 'true', - role: 'presentation' - }), - weekHeaders - ), - _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.DayPicker_focusRegion), { - ref: this.setContainerRef, - onClick: function () { - function onClick(e) { - e.stopPropagation(); - } - - return onClick; - }(), - onKeyDown: this.onKeyDown, - onMouseUp: function () { - function onMouseUp() { - _this7.setState({ withMouseInteractions: true }); - } - - return onMouseUp; - }(), - role: 'region', - tabIndex: -1 - }), - !verticalScrollable && this.renderNavigation(), - _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.DayPicker_transitionContainer, shouldAnimateHeight && styles.DayPicker_transitionContainer__horizontal, this.isVertical() && styles.DayPicker_transitionContainer__vertical, verticalScrollable && styles.DayPicker_transitionContainer__verticalScrollable, transitionContainerStyle), { - ref: this.setTransitionContainerRef - }), - _react2['default'].createElement(_CalendarMonthGrid2['default'], { - setMonthTitleHeight: !monthTitleHeight ? this.setMonthTitleHeight : undefined, - translationValue: translationValue, - enableOutsideDays: enableOutsideDays, - firstVisibleMonthIndex: firstVisibleMonthIndex, - initialMonth: currentMonth, - isAnimating: isCalendarMonthGridAnimating, - modifiers: modifiers, - orientation: orientation, - numberOfMonths: numberOfMonths * scrollableMonthMultiple, - onDayClick: onDayClick, - onDayMouseEnter: onDayMouseEnter, - onDayMouseLeave: onDayMouseLeave, - onMonthChange: this.onMonthChange, - onYearChange: this.onYearChange, - renderMonthText: renderMonthText, - renderCalendarDay: renderCalendarDay, - renderDayContents: renderDayContents, - renderMonthElement: renderMonthElement, - onMonthTransitionEnd: this.updateStateAfterMonthTransition, - monthFormat: monthFormat, - daySize: daySize, - firstDayOfWeek: firstDayOfWeek, - isFocused: shouldFocusDate, - focusedDate: focusedDate, - phrases: phrases, - isRTL: isRTL, - dayAriaLabelFormat: dayAriaLabelFormat, - transitionDuration: transitionDuration, - verticalBorderSpacing: verticalBorderSpacing, - horizontalMonthPadding: horizontalMonthPadding - }), - verticalScrollable && this.renderNavigation() - ), - !isTouch && !hideKeyboardShortcutsPanel && _react2['default'].createElement(_DayPickerKeyboardShortcuts2['default'], { - block: this.isVertical() && !withPortal, - buttonLocation: keyboardShortcutButtonLocation, - showKeyboardShortcutsPanel: showKeyboardShortcuts, - openKeyboardShortcutsPanel: this.openKeyboardShortcutsPanel, - closeKeyboardShortcutsPanel: this.closeKeyboardShortcutsPanel, - phrases: phrases - }) - ) - ), - (calendarInfoPositionBottom || calendarInfoPositionAfter) && calendarInfo - ) - ); - } - - return render; - }() - }]); - - return DayPicker; -}(_react2['default'].Component); - -DayPicker.propTypes = propTypes; -DayPicker.defaultProps = defaultProps; - -exports.PureDayPicker = DayPicker; -exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { - var _ref2$reactDates = _ref2.reactDates, - color = _ref2$reactDates.color, - font = _ref2$reactDates.font, - noScrollBarOnVerticalScrollable = _ref2$reactDates.noScrollBarOnVerticalScrollable, - spacing = _ref2$reactDates.spacing, - zIndex = _ref2$reactDates.zIndex; - return { - DayPicker: { - background: color.background, - position: 'relative', - textAlign: 'left' - }, - - DayPicker__horizontal: { - background: color.background - }, - - DayPicker__verticalScrollable: { - height: '100%' - }, - - DayPicker__hidden: { - visibility: 'hidden' - }, - - DayPicker__withBorder: { - boxShadow: '0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07)', - borderRadius: 3 - }, - - DayPicker_portal__horizontal: { - boxShadow: 'none', - position: 'absolute', - left: '50%', - top: '50%' - }, - - DayPicker_portal__vertical: { - position: 'initial' - }, - - DayPicker_focusRegion: { - outline: 'none' - }, - - DayPicker_calendarInfo__horizontal: { - display: 'inline-block', - verticalAlign: 'top' - }, - - DayPicker_wrapper__horizontal: { - display: 'inline-block', - verticalAlign: 'top' - }, - - DayPicker_weekHeaders: { - position: 'relative' - }, - - DayPicker_weekHeaders__horizontal: { - marginLeft: spacing.dayPickerHorizontalPadding - }, - - DayPicker_weekHeader: { - color: color.placeholderText, - position: 'absolute', - top: 62, - zIndex: zIndex + 2, - textAlign: 'left' - }, - - DayPicker_weekHeader__vertical: { - left: '50%' - }, - - DayPicker_weekHeader__verticalScrollable: { - top: 0, - display: 'table-row', - borderBottom: '1px solid ' + String(color.core.border), - background: color.background, - marginLeft: 0, - left: 0, - width: '100%', - textAlign: 'center' - }, - - DayPicker_weekHeader_ul: { - listStyle: 'none', - margin: '1px 0', - paddingLeft: 0, - paddingRight: 0, - fontSize: font.size - }, - - DayPicker_weekHeader_li: { - display: 'inline-block', - textAlign: 'center' - }, - - DayPicker_transitionContainer: { - position: 'relative', - overflow: 'hidden', - borderRadius: 3 - }, - - DayPicker_transitionContainer__horizontal: { - transition: 'height 0.2s ease-in-out' - }, - - DayPicker_transitionContainer__vertical: { - width: '100%' - }, - - DayPicker_transitionContainer__verticalScrollable: (0, _object2['default'])({ - paddingTop: 20, - height: '100%', - position: 'absolute', - top: 0, - bottom: 0, - right: 0, - left: 0, - overflowY: 'scroll' - }, noScrollBarOnVerticalScrollable && { - '-webkitOverflowScrolling': 'touch', - '::-webkit-scrollbar': { - '-webkit-appearance': 'none', - display: 'none' - } - }) - }; -})(DayPicker); - -/***/ }), -/* 182 */, -/* 183 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Consumer; }); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var _createContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createContext"])({ - focusHistory: [] -}), - Provider = _createContext.Provider, - Consumer = _createContext.Consumer; - -Provider.displayName = 'FocusReturnProvider'; -Consumer.displayName = 'FocusReturnConsumer'; -/** - * The maximum history length to capture for the focus stack. When exceeded, - * items should be shifted from the stack for each consecutive push. - * - * @type {number} - */ - -var MAX_STACK_LENGTH = 100; - -var FocusReturnProvider = -/*#__PURE__*/ -function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(FocusReturnProvider, _Component); - - function FocusReturnProvider() { - var _this; - - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, FocusReturnProvider); - - _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(FocusReturnProvider).apply(this, arguments)); - _this.onFocus = _this.onFocus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_this)); - _this.state = { - focusHistory: [] - }; - return _this; - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(FocusReturnProvider, [{ - key: "onFocus", - value: function onFocus(event) { - var focusHistory = this.state.focusHistory; // Push the focused element to the history stack, keeping only unique - // members but preferring the _last_ occurrence of any duplicates. - // Lodash's `uniq` behavior favors the first occurrence, so the array - // is temporarily reversed prior to it being called upon. Uniqueness - // helps avoid situations where, such as in a constrained tabbing area, - // the user changes focus enough within a transient element that the - // stack may otherwise only consist of members pending destruction, at - // which point focus might have been lost. - - var nextFocusHistory = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["uniq"])([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(focusHistory), [event.target]).slice(-1 * MAX_STACK_LENGTH).reverse()).reverse(); - this.setState({ - focusHistory: nextFocusHistory - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - className = _this$props.className; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(Provider, { - value: this.state - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", { - onFocus: this.onFocus, - className: className - }, children)); - } - }]); - - return FocusReturnProvider; -}(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); - -/* harmony default export */ __webpack_exports__["b"] = (FocusReturnProvider); - - - -/***/ }), -/* 184 */, -/* 185 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -if (true) { - module.exports = __webpack_require__(292); -} else {} - - -/***/ }), -/* 186 */ -/***/ (function(module, exports) { - -// Copyright (c) 2014 Rafael Caricio. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -var GradientParser = {}; - -GradientParser.parse = (function() { - - var tokens = { - linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i, - repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i, - radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i, - repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i, - sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i, - extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/, - positionKeywords: /^(left|center|right|top|bottom)/i, - pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/, - percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/, - emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/, - angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/, - startCall: /^\(/, - endCall: /^\)/, - comma: /^,/, - hexColor: /^\#([0-9a-fA-F]+)/, - literalColor: /^([a-zA-Z]+)/, - rgbColor: /^rgb/i, - rgbaColor: /^rgba/i, - number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/ - }; - - var input = ''; - - function error(msg) { - var err = new Error(input + ': ' + msg); - err.source = input; - throw err; - } - - function getAST() { - var ast = matchListDefinitions(); - - if (input.length > 0) { - error('Invalid input not EOF'); - } - - return ast; - } - - function matchListDefinitions() { - return matchListing(matchDefinition); - } - - function matchDefinition() { - return matchGradient( - 'linear-gradient', - tokens.linearGradient, - matchLinearOrientation) || - - matchGradient( - 'repeating-linear-gradient', - tokens.repeatingLinearGradient, - matchLinearOrientation) || - - matchGradient( - 'radial-gradient', - tokens.radialGradient, - matchListRadialOrientations) || - - matchGradient( - 'repeating-radial-gradient', - tokens.repeatingRadialGradient, - matchListRadialOrientations); - } - - function matchGradient(gradientType, pattern, orientationMatcher) { - return matchCall(pattern, function(captures) { - - var orientation = orientationMatcher(); - if (orientation) { - if (!scan(tokens.comma)) { - error('Missing comma before color stops'); - } - } - - return { - type: gradientType, - orientation: orientation, - colorStops: matchListing(matchColorStop) - }; - }); - } - - function matchCall(pattern, callback) { - var captures = scan(pattern); - - if (captures) { - if (!scan(tokens.startCall)) { - error('Missing ('); - } - - result = callback(captures); - - if (!scan(tokens.endCall)) { - error('Missing )'); - } - - return result; - } - } - - function matchLinearOrientation() { - return matchSideOrCorner() || - matchAngle(); - } - - function matchSideOrCorner() { - return match('directional', tokens.sideOrCorner, 1); - } - - function matchAngle() { - return match('angular', tokens.angleValue, 1); - } - - function matchListRadialOrientations() { - var radialOrientations, - radialOrientation = matchRadialOrientation(), - lookaheadCache; - - if (radialOrientation) { - radialOrientations = []; - radialOrientations.push(radialOrientation); - - lookaheadCache = input; - if (scan(tokens.comma)) { - radialOrientation = matchRadialOrientation(); - if (radialOrientation) { - radialOrientations.push(radialOrientation); - } else { - input = lookaheadCache; - } - } - } - - return radialOrientations; - } - - function matchRadialOrientation() { - var radialType = matchCircle() || - matchEllipse(); - - if (radialType) { - radialType.at = matchAtPosition(); - } else { - var defaultPosition = matchPositioning(); - if (defaultPosition) { - radialType = { - type: 'default-radial', - at: defaultPosition - }; - } - } - - return radialType; - } - - function matchCircle() { - var circle = match('shape', /^(circle)/i, 0); - - if (circle) { - circle.style = matchLength() || matchExtentKeyword(); - } - - return circle; - } - - function matchEllipse() { - var ellipse = match('shape', /^(ellipse)/i, 0); - - if (ellipse) { - ellipse.style = matchDistance() || matchExtentKeyword(); - } - - return ellipse; - } - - function matchExtentKeyword() { - return match('extent-keyword', tokens.extentKeywords, 1); - } - - function matchAtPosition() { - if (match('position', /^at/, 0)) { - var positioning = matchPositioning(); - - if (!positioning) { - error('Missing positioning value'); - } - - return positioning; - } - } - - function matchPositioning() { - var location = matchCoordinates(); - - if (location.x || location.y) { - return { - type: 'position', - value: location - }; - } - } - - function matchCoordinates() { - return { - x: matchDistance(), - y: matchDistance() - }; - } - - function matchListing(matcher) { - var captures = matcher(), - result = []; - - if (captures) { - result.push(captures); - while (scan(tokens.comma)) { - captures = matcher(); - if (captures) { - result.push(captures); - } else { - error('One extra comma'); - } - } - } - - return result; - } - - function matchColorStop() { - var color = matchColor(); - - if (!color) { - error('Expected color definition'); - } - - color.length = matchDistance(); - return color; - } - - function matchColor() { - return matchHexColor() || - matchRGBAColor() || - matchRGBColor() || - matchLiteralColor(); - } - - function matchLiteralColor() { - return match('literal', tokens.literalColor, 0); - } - - function matchHexColor() { - return match('hex', tokens.hexColor, 1); - } - - function matchRGBColor() { - return matchCall(tokens.rgbColor, function() { - return { - type: 'rgb', - value: matchListing(matchNumber) - }; - }); - } - - function matchRGBAColor() { - return matchCall(tokens.rgbaColor, function() { - return { - type: 'rgba', - value: matchListing(matchNumber) - }; - }); - } - - function matchNumber() { - return scan(tokens.number)[1]; - } - - function matchDistance() { - return match('%', tokens.percentageValue, 1) || - matchPositionKeyword() || - matchLength(); - } - - function matchPositionKeyword() { - return match('position-keyword', tokens.positionKeywords, 1); - } - - function matchLength() { - return match('px', tokens.pixelValue, 1) || - match('em', tokens.emValue, 1); - } - - function match(type, pattern, captureIndex) { - var captures = scan(pattern); - if (captures) { - return { - type: type, - value: captures[captureIndex] - }; - } - } - - function scan(regexp) { - var captures, - blankCaptures; - - blankCaptures = /^[\n\r\t\s]+/.exec(input); - if (blankCaptures) { - consume(blankCaptures[0].length); - } - - captures = regexp.exec(input); - if (captures) { - consume(captures[0].length); - } - - return captures; - } - - function consume(size) { - input = input.substr(size); - } - - return function(code) { - input = code.toString(); - return getAST(); - }; -})(); - -exports.parse = (GradientParser || {}).parse; - - -/***/ }), -/* 187 */, -/* 188 */, -/* 189 */, -/* 190 */, -/* 191 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); - - - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * WordPress dependencies - */ - - -function Icon(_ref) { - var icon = _ref.icon, - _ref$size = _ref.size, - size = _ref$size === void 0 ? 24 : _ref$size, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ - width: size, - height: size - }, props)); -} - -/* harmony default export */ __webpack_exports__["a"] = (Icon); - - -/***/ }), -/* 192 */, -/* 193 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2" -})); -/* harmony default export */ __webpack_exports__["a"] = (check); - - -/***/ }), -/* 194 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var toStr = Object.prototype.toString; - -module.exports = function isArguments(value) { - var str = toStr.call(value); - var isArgs = str === '[object Arguments]'; - if (!isArgs) { - isArgs = str !== '[object Array]' && - value !== null && - typeof value === 'object' && - typeof value.length === 'number' && - value.length >= 0 && - toStr.call(value.callee) === '[object Function]'; - } - return isArgs; -}; - - -/***/ }), -/* 195 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var ArraySpeciesCreate = __webpack_require__(303); -var FlattenIntoArray = __webpack_require__(308); -var Get = __webpack_require__(168); -var ToInteger = __webpack_require__(205); -var ToLength = __webpack_require__(204); -var ToObject = __webpack_require__(333); - -module.exports = function flat() { - var O = ToObject(this); - var sourceLen = ToLength(Get(O, 'length')); - - var depthNum = 1; - if (arguments.length > 0 && typeof arguments[0] !== 'undefined') { - depthNum = ToInteger(arguments[0]); - } - - var A = ArraySpeciesCreate(O, 0); - FlattenIntoArray(A, O, sourceLen, 0, depthNum); - return A; -}; - - -/***/ }), -/* 196 */ -/***/ (function(module, exports, __webpack_require__) { - -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var match = String.prototype.match; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; - -var inspectCustom = __webpack_require__(304).custom; -var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null; - -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - - if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } - - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - return String(obj); - } - if (typeof obj === 'bigint') { // eslint-disable-line valid-typeof - return String(obj) + 'n'; - } - - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return '[Object]'; - } - - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } - - function inspect(value, from) { - if (from) { - seen = seen.slice(); - seen.push(from); - } - return inspect_(value, opts, depth + 1, seen); - } - - if (typeof obj === 'function') { - var name = nameOf(obj); - return '[Function' + (name ? ': ' + name : '') + ']'; - } - if (isSymbol(obj)) { - var symString = Symbol.prototype.toString.call(obj); - return typeof obj === 'object' ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + String(obj.nodeName).toLowerCase(); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - return '[ ' + arrObjKeys(obj, inspect).join(', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }'; - } - if (typeof obj === 'object') { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function') { - return obj[inspectSymbol](); - } else if (typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj) + ' => ' + inspect(value, obj)); - }); - return collectionOf('Map', mapSize.call(obj), mapParts); - } - if (isSet(obj)) { - var setParts = []; - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - return collectionOf('Set', setSize.call(obj), setParts); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - if (!isDate(obj) && !isRegExp(obj)) { - var xs = arrObjKeys(obj, inspect); - if (xs.length === 0) { return '{}'; } - return '{ ' + xs.join(', ') + ' }'; - } - return String(obj); -}; - -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; -} - -function quote(s) { - return String(s).replace(/"/g, '"'); -} - -function isArray(obj) { return toStr(obj) === '[object Array]'; } -function isDate(obj) { return toStr(obj) === '[object Date]'; } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]'; } -function isError(obj) { return toStr(obj) === '[object Error]'; } -function isSymbol(obj) { return toStr(obj) === '[object Symbol]'; } -function isString(obj) { return toStr(obj) === '[object String]'; } -function isNumber(obj) { return toStr(obj) === '[object Number]'; } -function isBigInt(obj) { return toStr(obj) === '[object BigInt]'; } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]'; } - -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} - -function toStr(obj) { - return objectToString.call(obj); -} - -function nameOf(f) { - if (f.name) { return f.name; } - var m = match.call(f, /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} - -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } - } - return -1; -} - -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} - -function inspectString(str, opts) { - // eslint-disable-next-line no-control-regex - var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} - -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16); -} - -function markBoxed(str) { - return 'Object(' + str + ')'; -} - -function weakCollectionOf(type) { - return type + ' { ? }'; -} - -function collectionOf(type, size, entries) { - return type + ' (' + size + ') {' + entries.join(', ') + '}'; -} - -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if ((/[^\w$]/).test(key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - return xs; -} - - -/***/ }), -/* 197 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var $isNaN = Number.isNaN || function (a) { return a !== a; }; - -module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; - - -/***/ }), -/* 198 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(52); - -var $Math = GetIntrinsic('%Math%'); -var $Number = GetIntrinsic('%Number%'); - -module.exports = $Number.MAX_SAFE_INTEGER || $Math.pow(2, 53) - 1; - - -/***/ }), -/* 199 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11 - -module.exports = __webpack_require__(200); - - -/***/ }), -/* 200 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var fnToStr = Function.prototype.toString; - -var constructorRegex = /^\s*class\b/; -var isES6ClassFn = function isES6ClassFunction(value) { - try { - var fnStr = fnToStr.call(value); - return constructorRegex.test(fnStr); - } catch (e) { - return false; // not a function - } -}; - -var tryFunctionObject = function tryFunctionToStr(value) { - try { - if (isES6ClassFn(value)) { return false; } - fnToStr.call(value); - return true; - } catch (e) { - return false; - } -}; -var toStr = Object.prototype.toString; -var fnClass = '[object Function]'; -var genClass = '[object GeneratorFunction]'; -var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; - -module.exports = function isCallable(value) { - if (!value) { return false; } - if (typeof value !== 'function' && typeof value !== 'object') { return false; } - if (typeof value === 'function' && !value.prototype) { return true; } - if (hasToStringTag) { return tryFunctionObject(value); } - if (isES6ClassFn(value)) { return false; } - var strClass = toStr.call(value); - return strClass === fnClass || strClass === genClass; -}; - - -/***/ }), -/* 201 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(52); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $SyntaxError = GetIntrinsic('%SyntaxError%'); - -var has = __webpack_require__(74); - -var predicates = { - // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type - 'Property Descriptor': function isPropertyDescriptor(Type, Desc) { - if (Type(Desc) !== 'Object') { - return false; - } - var allowed = { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Get]]': true, - '[[Set]]': true, - '[[Value]]': true, - '[[Writable]]': true - }; - - for (var key in Desc) { // eslint-disable-line - if (has(Desc, key) && !allowed[key]) { - return false; - } - } - - var isData = has(Desc, '[[Value]]'); - var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); - if (isData && IsAccessor) { - throw new $TypeError('Property Descriptors may not be both accessor and data descriptors'); - } - return true; - } -}; - -module.exports = function assertRecord(Type, recordType, argumentName, value) { - var predicate = predicates[recordType]; - if (typeof predicate !== 'function') { - throw new $SyntaxError('unknown record type: ' + recordType); - } - if (!predicate(Type, value)) { - throw new $TypeError(argumentName + ' must be a ' + recordType); - } -}; - - -/***/ }), -/* 202 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2 - -module.exports = function ToBoolean(value) { return !!value; }; - - -/***/ }), -/* 203 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function isPrimitive(value) { - return value === null || (typeof value !== 'function' && typeof value !== 'object'); -}; - - -/***/ }), -/* 204 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var MAX_SAFE_INTEGER = __webpack_require__(198); - -var ToInteger = __webpack_require__(205); - -module.exports = function ToLength(argument) { - var len = ToInteger(argument); - if (len <= 0) { return 0; } // includes converting -0 to +0 - if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; } - return len; -}; - - -/***/ }), -/* 205 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var ES5ToInteger = __webpack_require__(323); - -var ToNumber = __webpack_require__(326); - -// https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger - -module.exports = function ToInteger(value) { - var number = ToNumber(value); - return ES5ToInteger(number); -}; - - -/***/ }), -/* 206 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var getDay = Date.prototype.getDay; -var tryDateObject = function tryDateObject(value) { - try { - getDay.call(value); - return true; - } catch (e) { - return false; - } -}; - -var toStr = Object.prototype.toString; -var dateClass = '[object Date]'; -var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; - -module.exports = function isDateObject(value) { - if (typeof value !== 'object' || value === null) { return false; } - return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass; -}; - - -/***/ }), -/* 207 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/* eslint complexity: [2, 17], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } - - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } - - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } - - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } - - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } - - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } - - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } - - return true; -}; - - -/***/ }), -/* 208 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(195); - -module.exports = function getPolyfill() { - return Array.prototype.flat || implementation; -}; - - -/***/ }), -/* 209 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var styleInterface = void 0; -var styleTheme = void 0; - -var START_MARK = 'react-with-styles.resolve.start'; -var END_MARK = 'react-with-styles.resolve.end'; -var MEASURE_MARK = '\uD83D\uDC69\u200D\uD83C\uDFA8 [resolve]'; - -function registerTheme(theme) { - styleTheme = theme; -} - -function registerInterface(interfaceToRegister) { - styleInterface = interfaceToRegister; -} - -function create(makeFromTheme, createWithDirection) { - var styles = createWithDirection(makeFromTheme(styleTheme)); - return function () { - return styles; - }; -} - -function createLTR(makeFromTheme) { - return create(makeFromTheme, styleInterface.createLTR || styleInterface.create); -} - -function createRTL(makeFromTheme) { - return create(makeFromTheme, styleInterface.createRTL || styleInterface.create); -} - -function get() { - return styleTheme; -} - -function resolve() { - if (false) {} - - for (var _len = arguments.length, styles = Array(_len), _key = 0; _key < _len; _key++) { - styles[_key] = arguments[_key]; - } - - var result = styleInterface.resolve(styles); - - if (false) {} - - return result; -} - -function resolveLTR() { - for (var _len2 = arguments.length, styles = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - styles[_key2] = arguments[_key2]; - } - - if (styleInterface.resolveLTR) { - return styleInterface.resolveLTR(styles); - } - - return resolve(styles); -} - -function resolveRTL() { - for (var _len3 = arguments.length, styles = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - styles[_key3] = arguments[_key3]; - } - - if (styleInterface.resolveRTL) { - return styleInterface.resolveRTL(styles); - } - - return resolve(styles); -} - -function flush() { - if (styleInterface.flush) { - styleInterface.flush(); - } -} - -exports['default'] = { - registerTheme: registerTheme, - registerInterface: registerInterface, - create: createLTR, - createLTR: createLTR, - createRTL: createRTL, - get: get, - resolve: resolveLTR, - resolveLTR: resolveLTR, - resolveRTL: resolveRTL, - flush: flush -}; - -/***/ }), -/* 210 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var core = { - white: '#fff', - gray: '#484848', - grayLight: '#82888a', - grayLighter: '#cacccd', - grayLightest: '#f2f2f2', - - borderMedium: '#c4c4c4', - border: '#dbdbdb', - borderLight: '#e4e7e7', - borderLighter: '#eceeee', - borderBright: '#f4f5f5', - - primary: '#00a699', - primaryShade_1: '#33dacd', - primaryShade_2: '#66e2da', - primaryShade_3: '#80e8e0', - primaryShade_4: '#b2f1ec', - primary_dark: '#008489', - - secondary: '#007a87', - - yellow: '#ffe8bc', - yellow_dark: '#ffce71' -}; - -exports['default'] = { - reactDates: { - zIndex: 0, - border: { - input: { - border: 0, - borderTop: 0, - borderRight: 0, - borderBottom: '2px solid transparent', - borderLeft: 0, - outlineFocused: 0, - borderFocused: 0, - borderTopFocused: 0, - borderLeftFocused: 0, - borderBottomFocused: '2px solid ' + String(core.primary_dark), - borderRightFocused: 0, - borderRadius: 0 - }, - pickerInput: { - borderWidth: 1, - borderStyle: 'solid', - borderRadius: 2 - } - }, - - color: { - core: core, - - disabled: core.grayLightest, - - background: core.white, - backgroundDark: '#f2f2f2', - backgroundFocused: core.white, - border: 'rgb(219, 219, 219)', - text: core.gray, - textDisabled: core.border, - textFocused: '#007a87', - placeholderText: '#757575', - - outside: { - backgroundColor: core.white, - backgroundColor_active: core.white, - backgroundColor_hover: core.white, - color: core.gray, - color_active: core.gray, - color_hover: core.gray - }, - - highlighted: { - backgroundColor: core.yellow, - backgroundColor_active: core.yellow_dark, - backgroundColor_hover: core.yellow_dark, - color: core.gray, - color_active: core.gray, - color_hover: core.gray - }, - - minimumNights: { - backgroundColor: core.white, - backgroundColor_active: core.white, - backgroundColor_hover: core.white, - borderColor: core.borderLighter, - color: core.grayLighter, - color_active: core.grayLighter, - color_hover: core.grayLighter - }, - - hoveredSpan: { - backgroundColor: core.primaryShade_4, - backgroundColor_active: core.primaryShade_3, - backgroundColor_hover: core.primaryShade_4, - borderColor: core.primaryShade_3, - borderColor_active: core.primaryShade_3, - borderColor_hover: core.primaryShade_3, - color: core.secondary, - color_active: core.secondary, - color_hover: core.secondary - }, - - selectedSpan: { - backgroundColor: core.primaryShade_2, - backgroundColor_active: core.primaryShade_1, - backgroundColor_hover: core.primaryShade_1, - borderColor: core.primaryShade_1, - borderColor_active: core.primary, - borderColor_hover: core.primary, - color: core.white, - color_active: core.white, - color_hover: core.white - }, - - selected: { - backgroundColor: core.primary, - backgroundColor_active: core.primary, - backgroundColor_hover: core.primary, - borderColor: core.primary, - borderColor_active: core.primary, - borderColor_hover: core.primary, - color: core.white, - color_active: core.white, - color_hover: core.white - }, - - blocked_calendar: { - backgroundColor: core.grayLighter, - backgroundColor_active: core.grayLighter, - backgroundColor_hover: core.grayLighter, - borderColor: core.grayLighter, - borderColor_active: core.grayLighter, - borderColor_hover: core.grayLighter, - color: core.grayLight, - color_active: core.grayLight, - color_hover: core.grayLight - }, - - blocked_out_of_range: { - backgroundColor: core.white, - backgroundColor_active: core.white, - backgroundColor_hover: core.white, - borderColor: core.borderLight, - borderColor_active: core.borderLight, - borderColor_hover: core.borderLight, - color: core.grayLighter, - color_active: core.grayLighter, - color_hover: core.grayLighter - } - }, - - spacing: { - dayPickerHorizontalPadding: 9, - captionPaddingTop: 22, - captionPaddingBottom: 37, - inputPadding: 0, - displayTextPaddingVertical: undefined, - displayTextPaddingTop: 11, - displayTextPaddingBottom: 9, - displayTextPaddingHorizontal: undefined, - displayTextPaddingLeft: 11, - displayTextPaddingRight: 11, - displayTextPaddingVertical_small: undefined, - displayTextPaddingTop_small: 7, - displayTextPaddingBottom_small: 5, - displayTextPaddingHorizontal_small: undefined, - displayTextPaddingLeft_small: 7, - displayTextPaddingRight_small: 7 - }, - - sizing: { - inputWidth: 130, - inputWidth_small: 97, - arrowWidth: 24 - }, - - noScrollBarOnVerticalScrollable: false, - - font: { - size: 14, - captionSize: 18, - input: { - size: 19, - lineHeight: '24px', - size_small: 15, - lineHeight_small: '18px', - letterSpacing_small: '0.2px', - styleDisabled: 'italic' - } - } - } -}; - -/***/ }), -/* 211 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -// modified from https://github.com/es-shims/es6-shim -var keys = __webpack_require__(166); -var bind = __webpack_require__(93); -var canBeObject = function (obj) { - return typeof obj !== 'undefined' && obj !== null; -}; -var hasSymbols = __webpack_require__(207)(); -var toObject = Object; -var push = bind.call(Function.call, Array.prototype.push); -var propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); -var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null; - -module.exports = function assign(target, source1) { - if (!canBeObject(target)) { throw new TypeError('target must be an object'); } - var objTarget = toObject(target); - var s, source, i, props, syms, value, key; - for (s = 1; s < arguments.length; ++s) { - source = toObject(arguments[s]); - props = keys(source); - var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols); - if (getSymbols) { - syms = getSymbols(source); - for (i = 0; i < syms.length; ++i) { - key = syms[i]; - if (propIsEnumerable(source, key)) { - push(props, key); - } - } - } - for (i = 0; i < props.length; ++i) { - key = props[i]; - value = source[key]; - if (propIsEnumerable(source, key)) { - objTarget[key] = value; - } - } - } - return objTarget; -}; - - -/***/ }), -/* 212 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(211); - -var lacksProperEnumerationOrder = function () { - if (!Object.assign) { - return false; - } - // v8, specifically in node 4.x, has a bug with incorrect property enumeration order - // note: this does not detect the bug unless there's 20 characters - var str = 'abcdefghijklmnopqrst'; - var letters = str.split(''); - var map = {}; - for (var i = 0; i < letters.length; ++i) { - map[letters[i]] = letters[i]; - } - var obj = Object.assign({}, map); - var actual = ''; - for (var k in obj) { - actual += k; - } - return str !== actual; -}; - -var assignHasPendingExceptions = function () { - if (!Object.assign || !Object.preventExtensions) { - return false; - } - // Firefox 37 still has "pending exception" logic in its Object.assign implementation, - // which is 72% slower than our shim, and Firefox 40's native implementation. - var thrower = Object.preventExtensions({ 1: 2 }); - try { - Object.assign(thrower, 'xy'); - } catch (e) { - return thrower[1] === 'y'; - } - return false; -}; - -module.exports = function getPolyfill() { - if (!Object.assign) { - return implementation; - } - if (lacksProperEnumerationOrder()) { - return implementation; - } - if (assignHasPendingExceptions()) { - return implementation; - } - return Object.assign; -}; - - -/***/ }), -/* 213 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16911,11 +17665,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarDaySettings; -var _getPhrase = __webpack_require__(353); +var _getPhrase = __webpack_require__(387); var _getPhrase2 = _interopRequireDefault(_getPhrase); -var _constants = __webpack_require__(47); +var _constants = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -16958,412 +17712,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase } /***/ }), -/* 214 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactAddonsShallowCompare = __webpack_require__(99); - -var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _reactWithStyles = __webpack_require__(65); - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _CalendarWeek = __webpack_require__(354); - -var _CalendarWeek2 = _interopRequireDefault(_CalendarWeek); - -var _CalendarDay = __webpack_require__(172); - -var _CalendarDay2 = _interopRequireDefault(_CalendarDay); - -var _calculateDimension = __webpack_require__(215); - -var _calculateDimension2 = _interopRequireDefault(_calculateDimension); - -var _getCalendarMonthWeeks = __webpack_require__(356); - -var _getCalendarMonthWeeks2 = _interopRequireDefault(_getCalendarMonthWeeks); - -var _isSameDay = __webpack_require__(100); - -var _isSameDay2 = _interopRequireDefault(_isSameDay); - -var _toISODateString = __webpack_require__(134); - -var _toISODateString2 = _interopRequireDefault(_toISODateString); - -var _ModifiersShape = __webpack_require__(133); - -var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); - -var _ScrollableOrientationShape = __webpack_require__(102); - -var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/no-array-index-key: 0 */ - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, { - month: _reactMomentProptypes2['default'].momentObj, - horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger, - isVisible: _propTypes2['default'].bool, - enableOutsideDays: _propTypes2['default'].bool, - modifiers: _propTypes2['default'].objectOf(_ModifiersShape2['default']), - orientation: _ScrollableOrientationShape2['default'], - daySize: _airbnbPropTypes.nonNegativeInteger, - onDayClick: _propTypes2['default'].func, - onDayMouseEnter: _propTypes2['default'].func, - onDayMouseLeave: _propTypes2['default'].func, - onMonthSelect: _propTypes2['default'].func, - onYearSelect: _propTypes2['default'].func, - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - firstDayOfWeek: _DayOfWeekShape2['default'], - setMonthTitleHeight: _propTypes2['default'].func, - verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger, - - focusedDate: _reactMomentProptypes2['default'].momentObj, // indicates focusable day - isFocused: _propTypes2['default'].bool, // indicates whether or not to move focus to focusable day - - // i18n - monthFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.CalendarDayPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string -})); - -var defaultProps = { - month: (0, _moment2['default'])(), - horizontalMonthPadding: 13, - isVisible: true, - enableOutsideDays: false, - modifiers: {}, - orientation: _constants.HORIZONTAL_ORIENTATION, - daySize: _constants.DAY_SIZE, - onDayClick: function () { - function onDayClick() {} - - return onDayClick; - }(), - onDayMouseEnter: function () { - function onDayMouseEnter() {} - - return onDayMouseEnter; - }(), - onDayMouseLeave: function () { - function onDayMouseLeave() {} - - return onDayMouseLeave; - }(), - onMonthSelect: function () { - function onMonthSelect() {} - - return onMonthSelect; - }(), - onYearSelect: function () { - function onYearSelect() {} - - return onYearSelect; - }(), - - renderMonthText: null, - renderCalendarDay: function () { - function renderCalendarDay(props) { - return _react2['default'].createElement(_CalendarDay2['default'], props); - } - - return renderCalendarDay; - }(), - renderDayContents: null, - renderMonthElement: null, - firstDayOfWeek: null, - setMonthTitleHeight: null, - - focusedDate: null, - isFocused: false, - - // i18n - monthFormat: 'MMMM YYYY', // english locale - phrases: _defaultPhrases.CalendarDayPhrases, - dayAriaLabelFormat: undefined, - verticalBorderSpacing: undefined -}; - -var CalendarMonth = function (_React$Component) { - _inherits(CalendarMonth, _React$Component); - - function CalendarMonth(props) { - _classCallCheck(this, CalendarMonth); - - var _this = _possibleConstructorReturn(this, (CalendarMonth.__proto__ || Object.getPrototypeOf(CalendarMonth)).call(this, props)); - - _this.state = { - weeks: (0, _getCalendarMonthWeeks2['default'])(props.month, props.enableOutsideDays, props.firstDayOfWeek == null ? _moment2['default'].localeData().firstDayOfWeek() : props.firstDayOfWeek) - }; - - _this.setCaptionRef = _this.setCaptionRef.bind(_this); - _this.setMonthTitleHeight = _this.setMonthTitleHeight.bind(_this); - return _this; - } - - _createClass(CalendarMonth, [{ - key: 'componentDidMount', - value: function () { - function componentDidMount() { - this.setMonthTitleHeightTimeout = setTimeout(this.setMonthTitleHeight, 0); - } - - return componentDidMount; - }() - }, { - key: 'componentWillReceiveProps', - value: function () { - function componentWillReceiveProps(nextProps) { - var month = nextProps.month, - enableOutsideDays = nextProps.enableOutsideDays, - firstDayOfWeek = nextProps.firstDayOfWeek; - var _props = this.props, - prevMonth = _props.month, - prevEnableOutsideDays = _props.enableOutsideDays, - prevFirstDayOfWeek = _props.firstDayOfWeek; - - if (!month.isSame(prevMonth) || enableOutsideDays !== prevEnableOutsideDays || firstDayOfWeek !== prevFirstDayOfWeek) { - this.setState({ - weeks: (0, _getCalendarMonthWeeks2['default'])(month, enableOutsideDays, firstDayOfWeek == null ? _moment2['default'].localeData().firstDayOfWeek() : firstDayOfWeek) - }); - } - } - - return componentWillReceiveProps; - }() - }, { - key: 'shouldComponentUpdate', - value: function () { - function shouldComponentUpdate(nextProps, nextState) { - return (0, _reactAddonsShallowCompare2['default'])(this, nextProps, nextState); - } - - return shouldComponentUpdate; - }() - }, { - key: 'componentWillUnmount', - value: function () { - function componentWillUnmount() { - if (this.setMonthTitleHeightTimeout) { - clearTimeout(this.setMonthTitleHeightTimeout); - } - } - - return componentWillUnmount; - }() - }, { - key: 'setMonthTitleHeight', - value: function () { - function setMonthTitleHeight() { - var setMonthTitleHeight = this.props.setMonthTitleHeight; - - if (setMonthTitleHeight) { - var captionHeight = (0, _calculateDimension2['default'])(this.captionRef, 'height', true, true); - setMonthTitleHeight(captionHeight); - } - } - - return setMonthTitleHeight; - }() - }, { - key: 'setCaptionRef', - value: function () { - function setCaptionRef(ref) { - this.captionRef = ref; - } - - return setCaptionRef; - }() - }, { - key: 'render', - value: function () { - function render() { - var _props2 = this.props, - dayAriaLabelFormat = _props2.dayAriaLabelFormat, - daySize = _props2.daySize, - focusedDate = _props2.focusedDate, - horizontalMonthPadding = _props2.horizontalMonthPadding, - isFocused = _props2.isFocused, - isVisible = _props2.isVisible, - modifiers = _props2.modifiers, - month = _props2.month, - monthFormat = _props2.monthFormat, - onDayClick = _props2.onDayClick, - onDayMouseEnter = _props2.onDayMouseEnter, - onDayMouseLeave = _props2.onDayMouseLeave, - onMonthSelect = _props2.onMonthSelect, - onYearSelect = _props2.onYearSelect, - orientation = _props2.orientation, - phrases = _props2.phrases, - renderCalendarDay = _props2.renderCalendarDay, - renderDayContents = _props2.renderDayContents, - renderMonthElement = _props2.renderMonthElement, - renderMonthText = _props2.renderMonthText, - styles = _props2.styles, - verticalBorderSpacing = _props2.verticalBorderSpacing; - var weeks = this.state.weeks; - - var monthTitle = renderMonthText ? renderMonthText(month) : month.format(monthFormat); - - var verticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE; - - return _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.CalendarMonth, { padding: '0 ' + String(horizontalMonthPadding) + 'px' }), { - 'data-visible': isVisible - }), - _react2['default'].createElement( - 'div', - _extends({ - ref: this.setCaptionRef - }, (0, _reactWithStyles.css)(styles.CalendarMonth_caption, verticalScrollable && styles.CalendarMonth_caption__verticalScrollable)), - renderMonthElement ? renderMonthElement({ month: month, onMonthSelect: onMonthSelect, onYearSelect: onYearSelect }) : _react2['default'].createElement( - 'strong', - null, - monthTitle - ) - ), - _react2['default'].createElement( - 'table', - _extends({}, (0, _reactWithStyles.css)(!verticalBorderSpacing && styles.CalendarMonth_table, verticalBorderSpacing && styles.CalendarMonth_verticalSpacing, verticalBorderSpacing && { borderSpacing: '0px ' + String(verticalBorderSpacing) + 'px' }), { - role: 'presentation' - }), - _react2['default'].createElement( - 'tbody', - null, - weeks.map(function (week, i) { - return _react2['default'].createElement( - _CalendarWeek2['default'], - { key: i }, - week.map(function (day, dayOfWeek) { - return renderCalendarDay({ - key: dayOfWeek, - day: day, - daySize: daySize, - isOutsideDay: !day || day.month() !== month.month(), - tabIndex: isVisible && (0, _isSameDay2['default'])(day, focusedDate) ? 0 : -1, - isFocused: isFocused, - onDayMouseEnter: onDayMouseEnter, - onDayMouseLeave: onDayMouseLeave, - onDayClick: onDayClick, - renderDayContents: renderDayContents, - phrases: phrases, - modifiers: modifiers[(0, _toISODateString2['default'])(day)], - ariaLabelFormat: dayAriaLabelFormat - }); - }) - ); - }) - ) - ) - ); - } - - return render; - }() - }]); - - return CalendarMonth; -}(_react2['default'].Component); - -CalendarMonth.propTypes = propTypes; -CalendarMonth.defaultProps = defaultProps; - -exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { - var _ref$reactDates = _ref.reactDates, - color = _ref$reactDates.color, - font = _ref$reactDates.font, - spacing = _ref$reactDates.spacing; - return { - CalendarMonth: { - background: color.background, - textAlign: 'center', - verticalAlign: 'top', - userSelect: 'none' - }, - - CalendarMonth_table: { - borderCollapse: 'collapse', - borderSpacing: 0 - }, - - CalendarMonth_verticalSpacing: { - borderCollapse: 'separate' - }, - - CalendarMonth_caption: { - color: color.text, - fontSize: font.captionSize, - textAlign: 'center', - paddingTop: spacing.captionPaddingTop, - paddingBottom: spacing.captionPaddingBottom, - captionSide: 'initial' - }, - - CalendarMonth_caption__verticalScrollable: { - paddingTop: 12, - paddingBottom: 7 - } - }; -})(CalendarMonth); - -/***/ }), -/* 215 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17407,573 +17756,7 @@ function calculateDimension(el, axis) { } /***/ }), -/* 216 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactAddonsShallowCompare = __webpack_require__(99); - -var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _reactWithStyles = __webpack_require__(65); - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _consolidatedEvents = __webpack_require__(135); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _CalendarMonth = __webpack_require__(214); - -var _CalendarMonth2 = _interopRequireDefault(_CalendarMonth); - -var _isTransitionEndSupported = __webpack_require__(357); - -var _isTransitionEndSupported2 = _interopRequireDefault(_isTransitionEndSupported); - -var _getTransformStyles = __webpack_require__(358); - -var _getTransformStyles2 = _interopRequireDefault(_getTransformStyles); - -var _getCalendarMonthWidth = __webpack_require__(217); - -var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); - -var _toISOMonthString = __webpack_require__(136); - -var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); - -var _isPrevMonth = __webpack_require__(359); - -var _isPrevMonth2 = _interopRequireDefault(_isPrevMonth); - -var _isNextMonth = __webpack_require__(360); - -var _isNextMonth2 = _interopRequireDefault(_isNextMonth); - -var _ModifiersShape = __webpack_require__(133); - -var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); - -var _ScrollableOrientationShape = __webpack_require__(102); - -var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, { - enableOutsideDays: _propTypes2['default'].bool, - firstVisibleMonthIndex: _propTypes2['default'].number, - horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger, - initialMonth: _reactMomentProptypes2['default'].momentObj, - isAnimating: _propTypes2['default'].bool, - numberOfMonths: _propTypes2['default'].number, - modifiers: _propTypes2['default'].objectOf(_propTypes2['default'].objectOf(_ModifiersShape2['default'])), - orientation: _ScrollableOrientationShape2['default'], - onDayClick: _propTypes2['default'].func, - onDayMouseEnter: _propTypes2['default'].func, - onDayMouseLeave: _propTypes2['default'].func, - onMonthTransitionEnd: _propTypes2['default'].func, - onMonthChange: _propTypes2['default'].func, - onYearChange: _propTypes2['default'].func, - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - translationValue: _propTypes2['default'].number, - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - daySize: _airbnbPropTypes.nonNegativeInteger, - focusedDate: _reactMomentProptypes2['default'].momentObj, // indicates focusable day - isFocused: _propTypes2['default'].bool, // indicates whether or not to move focus to focusable day - firstDayOfWeek: _DayOfWeekShape2['default'], - setMonthTitleHeight: _propTypes2['default'].func, - isRTL: _propTypes2['default'].bool, - transitionDuration: _airbnbPropTypes.nonNegativeInteger, - verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger, - - // i18n - monthFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.CalendarDayPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string -})); - -var defaultProps = { - enableOutsideDays: false, - firstVisibleMonthIndex: 0, - horizontalMonthPadding: 13, - initialMonth: (0, _moment2['default'])(), - isAnimating: false, - numberOfMonths: 1, - modifiers: {}, - orientation: _constants.HORIZONTAL_ORIENTATION, - onDayClick: function () { - function onDayClick() {} - - return onDayClick; - }(), - onDayMouseEnter: function () { - function onDayMouseEnter() {} - - return onDayMouseEnter; - }(), - onDayMouseLeave: function () { - function onDayMouseLeave() {} - - return onDayMouseLeave; - }(), - onMonthChange: function () { - function onMonthChange() {} - - return onMonthChange; - }(), - onYearChange: function () { - function onYearChange() {} - - return onYearChange; - }(), - onMonthTransitionEnd: function () { - function onMonthTransitionEnd() {} - - return onMonthTransitionEnd; - }(), - - renderMonthText: null, - renderCalendarDay: undefined, - renderDayContents: null, - translationValue: null, - renderMonthElement: null, - daySize: _constants.DAY_SIZE, - focusedDate: null, - isFocused: false, - firstDayOfWeek: null, - setMonthTitleHeight: null, - isRTL: false, - transitionDuration: 200, - verticalBorderSpacing: undefined, - - // i18n - monthFormat: 'MMMM YYYY', // english locale - phrases: _defaultPhrases.CalendarDayPhrases, - dayAriaLabelFormat: undefined -}; - -function getMonths(initialMonth, numberOfMonths, withoutTransitionMonths) { - var month = initialMonth.clone(); - if (!withoutTransitionMonths) month = month.subtract(1, 'month'); - - var months = []; - for (var i = 0; i < (withoutTransitionMonths ? numberOfMonths : numberOfMonths + 2); i += 1) { - months.push(month); - month = month.clone().add(1, 'month'); - } - - return months; -} - -var CalendarMonthGrid = function (_React$Component) { - _inherits(CalendarMonthGrid, _React$Component); - - function CalendarMonthGrid(props) { - _classCallCheck(this, CalendarMonthGrid); - - var _this = _possibleConstructorReturn(this, (CalendarMonthGrid.__proto__ || Object.getPrototypeOf(CalendarMonthGrid)).call(this, props)); - - var withoutTransitionMonths = props.orientation === _constants.VERTICAL_SCROLLABLE; - _this.state = { - months: getMonths(props.initialMonth, props.numberOfMonths, withoutTransitionMonths) - }; - - _this.isTransitionEndSupported = (0, _isTransitionEndSupported2['default'])(); - _this.onTransitionEnd = _this.onTransitionEnd.bind(_this); - _this.setContainerRef = _this.setContainerRef.bind(_this); - - _this.locale = _moment2['default'].locale(); - _this.onMonthSelect = _this.onMonthSelect.bind(_this); - _this.onYearSelect = _this.onYearSelect.bind(_this); - return _this; - } - - _createClass(CalendarMonthGrid, [{ - key: 'componentDidMount', - value: function () { - function componentDidMount() { - this.removeEventListener = (0, _consolidatedEvents.addEventListener)(this.container, 'transitionend', this.onTransitionEnd); - } - - return componentDidMount; - }() - }, { - key: 'componentWillReceiveProps', - value: function () { - function componentWillReceiveProps(nextProps) { - var _this2 = this; - - var initialMonth = nextProps.initialMonth, - numberOfMonths = nextProps.numberOfMonths, - orientation = nextProps.orientation; - var months = this.state.months; - var _props = this.props, - prevInitialMonth = _props.initialMonth, - prevNumberOfMonths = _props.numberOfMonths; - - var hasMonthChanged = !prevInitialMonth.isSame(initialMonth, 'month'); - var hasNumberOfMonthsChanged = prevNumberOfMonths !== numberOfMonths; - var newMonths = months; - - if (hasMonthChanged && !hasNumberOfMonthsChanged) { - if ((0, _isNextMonth2['default'])(prevInitialMonth, initialMonth)) { - newMonths = months.slice(1); - newMonths.push(months[months.length - 1].clone().add(1, 'month')); - } else if ((0, _isPrevMonth2['default'])(prevInitialMonth, initialMonth)) { - newMonths = months.slice(0, months.length - 1); - newMonths.unshift(months[0].clone().subtract(1, 'month')); - } else { - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - newMonths = getMonths(initialMonth, numberOfMonths, withoutTransitionMonths); - } - } - - if (hasNumberOfMonthsChanged) { - var _withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - newMonths = getMonths(initialMonth, numberOfMonths, _withoutTransitionMonths); - } - - var momentLocale = _moment2['default'].locale(); - if (this.locale !== momentLocale) { - this.locale = momentLocale; - newMonths = newMonths.map(function (m) { - return m.locale(_this2.locale); - }); - } - - this.setState({ - months: newMonths - }); - } - - return componentWillReceiveProps; - }() - }, { - key: 'shouldComponentUpdate', - value: function () { - function shouldComponentUpdate(nextProps, nextState) { - return (0, _reactAddonsShallowCompare2['default'])(this, nextProps, nextState); - } - - return shouldComponentUpdate; - }() - }, { - key: 'componentDidUpdate', - value: function () { - function componentDidUpdate() { - var _props2 = this.props, - isAnimating = _props2.isAnimating, - transitionDuration = _props2.transitionDuration, - onMonthTransitionEnd = _props2.onMonthTransitionEnd; - - // For IE9, immediately call onMonthTransitionEnd instead of - // waiting for the animation to complete. Similarly, if transitionDuration - // is set to 0, also immediately invoke the onMonthTransitionEnd callback - - if ((!this.isTransitionEndSupported || !transitionDuration) && isAnimating) { - onMonthTransitionEnd(); - } - } - - return componentDidUpdate; - }() - }, { - key: 'componentWillUnmount', - value: function () { - function componentWillUnmount() { - if (this.removeEventListener) this.removeEventListener(); - } - - return componentWillUnmount; - }() - }, { - key: 'onTransitionEnd', - value: function () { - function onTransitionEnd() { - var onMonthTransitionEnd = this.props.onMonthTransitionEnd; - - onMonthTransitionEnd(); - } - - return onTransitionEnd; - }() - }, { - key: 'onMonthSelect', - value: function () { - function onMonthSelect(currentMonth, newMonthVal) { - var newMonth = currentMonth.clone(); - var _props3 = this.props, - onMonthChange = _props3.onMonthChange, - orientation = _props3.orientation; - var months = this.state.months; - - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var initialMonthSubtraction = months.indexOf(currentMonth); - if (!withoutTransitionMonths) { - initialMonthSubtraction -= 1; - } - newMonth.set('month', newMonthVal).subtract(initialMonthSubtraction, 'months'); - onMonthChange(newMonth); - } - - return onMonthSelect; - }() - }, { - key: 'onYearSelect', - value: function () { - function onYearSelect(currentMonth, newYearVal) { - var newMonth = currentMonth.clone(); - var _props4 = this.props, - onYearChange = _props4.onYearChange, - orientation = _props4.orientation; - var months = this.state.months; - - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var initialMonthSubtraction = months.indexOf(currentMonth); - if (!withoutTransitionMonths) { - initialMonthSubtraction -= 1; - } - newMonth.set('year', newYearVal).subtract(initialMonthSubtraction, 'months'); - onYearChange(newMonth); - } - - return onYearSelect; - }() - }, { - key: 'setContainerRef', - value: function () { - function setContainerRef(ref) { - this.container = ref; - } - - return setContainerRef; - }() - }, { - key: 'render', - value: function () { - function render() { - var _this3 = this; - - var _props5 = this.props, - enableOutsideDays = _props5.enableOutsideDays, - firstVisibleMonthIndex = _props5.firstVisibleMonthIndex, - horizontalMonthPadding = _props5.horizontalMonthPadding, - isAnimating = _props5.isAnimating, - modifiers = _props5.modifiers, - numberOfMonths = _props5.numberOfMonths, - monthFormat = _props5.monthFormat, - orientation = _props5.orientation, - translationValue = _props5.translationValue, - daySize = _props5.daySize, - onDayMouseEnter = _props5.onDayMouseEnter, - onDayMouseLeave = _props5.onDayMouseLeave, - onDayClick = _props5.onDayClick, - renderMonthText = _props5.renderMonthText, - renderCalendarDay = _props5.renderCalendarDay, - renderDayContents = _props5.renderDayContents, - renderMonthElement = _props5.renderMonthElement, - onMonthTransitionEnd = _props5.onMonthTransitionEnd, - firstDayOfWeek = _props5.firstDayOfWeek, - focusedDate = _props5.focusedDate, - isFocused = _props5.isFocused, - isRTL = _props5.isRTL, - styles = _props5.styles, - phrases = _props5.phrases, - dayAriaLabelFormat = _props5.dayAriaLabelFormat, - transitionDuration = _props5.transitionDuration, - verticalBorderSpacing = _props5.verticalBorderSpacing, - setMonthTitleHeight = _props5.setMonthTitleHeight; - var months = this.state.months; - - var isVertical = orientation === _constants.VERTICAL_ORIENTATION; - var isVerticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE; - var isHorizontal = orientation === _constants.HORIZONTAL_ORIENTATION; - - var calendarMonthWidth = (0, _getCalendarMonthWidth2['default'])(daySize, horizontalMonthPadding); - - var width = isVertical || isVerticalScrollable ? calendarMonthWidth : (numberOfMonths + 2) * calendarMonthWidth; - - var transformType = isVertical || isVerticalScrollable ? 'translateY' : 'translateX'; - var transformValue = transformType + '(' + String(translationValue) + 'px)'; - - return _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.CalendarMonthGrid, isHorizontal && styles.CalendarMonthGrid__horizontal, isVertical && styles.CalendarMonthGrid__vertical, isVerticalScrollable && styles.CalendarMonthGrid__vertical_scrollable, isAnimating && styles.CalendarMonthGrid__animating, isAnimating && transitionDuration && { - transition: 'transform ' + String(transitionDuration) + 'ms ease-in-out' - }, (0, _object2['default'])({}, (0, _getTransformStyles2['default'])(transformValue), { - width: width - })), { - ref: this.setContainerRef, - onTransitionEnd: onMonthTransitionEnd - }), - months.map(function (month, i) { - var isVisible = i >= firstVisibleMonthIndex && i < firstVisibleMonthIndex + numberOfMonths; - var hideForAnimation = i === 0 && !isVisible; - var showForAnimation = i === 0 && isAnimating && isVisible; - var monthString = (0, _toISOMonthString2['default'])(month); - return _react2['default'].createElement( - 'div', - _extends({ - key: monthString - }, (0, _reactWithStyles.css)(isHorizontal && styles.CalendarMonthGrid_month__horizontal, hideForAnimation && styles.CalendarMonthGrid_month__hideForAnimation, showForAnimation && !isVertical && !isRTL && { - position: 'absolute', - left: -calendarMonthWidth - }, showForAnimation && !isVertical && isRTL && { - position: 'absolute', - right: 0 - }, showForAnimation && isVertical && { - position: 'absolute', - top: -translationValue - }, !isVisible && !isAnimating && styles.CalendarMonthGrid_month__hidden)), - _react2['default'].createElement(_CalendarMonth2['default'], { - month: month, - isVisible: isVisible, - enableOutsideDays: enableOutsideDays, - modifiers: modifiers[monthString], - monthFormat: monthFormat, - orientation: orientation, - onDayMouseEnter: onDayMouseEnter, - onDayMouseLeave: onDayMouseLeave, - onDayClick: onDayClick, - onMonthSelect: _this3.onMonthSelect, - onYearSelect: _this3.onYearSelect, - renderMonthText: renderMonthText, - renderCalendarDay: renderCalendarDay, - renderDayContents: renderDayContents, - renderMonthElement: renderMonthElement, - firstDayOfWeek: firstDayOfWeek, - daySize: daySize, - focusedDate: isVisible ? focusedDate : null, - isFocused: isFocused, - phrases: phrases, - setMonthTitleHeight: setMonthTitleHeight, - dayAriaLabelFormat: dayAriaLabelFormat, - verticalBorderSpacing: verticalBorderSpacing, - horizontalMonthPadding: horizontalMonthPadding - }) - ); - }) - ); - } - - return render; - }() - }]); - - return CalendarMonthGrid; -}(_react2['default'].Component); - -CalendarMonthGrid.propTypes = propTypes; -CalendarMonthGrid.defaultProps = defaultProps; - -exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { - var _ref$reactDates = _ref.reactDates, - color = _ref$reactDates.color, - noScrollBarOnVerticalScrollable = _ref$reactDates.noScrollBarOnVerticalScrollable, - spacing = _ref$reactDates.spacing, - zIndex = _ref$reactDates.zIndex; - return { - CalendarMonthGrid: { - background: color.background, - textAlign: 'left', - zIndex: zIndex - }, - - CalendarMonthGrid__animating: { - zIndex: zIndex + 1 - }, - - CalendarMonthGrid__horizontal: { - position: 'absolute', - left: spacing.dayPickerHorizontalPadding - }, - - CalendarMonthGrid__vertical: { - margin: '0 auto' - }, - - CalendarMonthGrid__vertical_scrollable: (0, _object2['default'])({ - margin: '0 auto', - overflowY: 'scroll' - }, noScrollBarOnVerticalScrollable && { - '-webkitOverflowScrolling': 'touch', - '::-webkit-scrollbar': { - '-webkit-appearance': 'none', - display: 'none' - } - }), - - CalendarMonthGrid_month__horizontal: { - display: 'inline-block', - verticalAlign: 'top', - minHeight: '100%' - }, - - CalendarMonthGrid_month__hideForAnimation: { - position: 'absolute', - zIndex: zIndex - 1, - opacity: 0, - pointerEvents: 'none' - }, - - CalendarMonthGrid_month__hidden: { - visibility: 'hidden' - } - }; -})(CalendarMonthGrid); - -/***/ }), -/* 217 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17988,7 +17771,7 @@ function getCalendarMonthWidth(daySize, calendarMonthPadding) { } /***/ }), -/* 218 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17999,7 +17782,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isSameMonth; -var _moment = __webpack_require__(33); +var _moment = __webpack_require__(43); var _moment2 = _interopRequireDefault(_moment); @@ -18013,5402 +17796,663 @@ function isSameMonth(a, b) { } /***/ }), -/* 219 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var ES = __webpack_require__(363); -var has = __webpack_require__(74); -var bind = __webpack_require__(93); -var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); - -module.exports = function values(O) { - var obj = ES.RequireObjectCoercible(O); - var vals = []; - for (var key in obj) { - if (has(obj, key) && isEnumerable(obj, key)) { - vals.push(obj[key]); - } - } - return vals; -}; - - -/***/ }), -/* 220 */ -/***/ (function(module, exports) { - -module.exports = function isPrimitive(value) { - return value === null || (typeof value !== 'function' && typeof value !== 'object'); -}; - - -/***/ }), -/* 221 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(176); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $SyntaxError = GetIntrinsic('%SyntaxError%'); - -var has = __webpack_require__(74); - -var predicates = { - // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type - 'Property Descriptor': function isPropertyDescriptor(ES, Desc) { - if (ES.Type(Desc) !== 'Object') { - return false; - } - var allowed = { - '[[Configurable]]': true, - '[[Enumerable]]': true, - '[[Get]]': true, - '[[Set]]': true, - '[[Value]]': true, - '[[Writable]]': true - }; - - for (var key in Desc) { // eslint-disable-line - if (has(Desc, key) && !allowed[key]) { - return false; - } - } - - var isData = has(Desc, '[[Value]]'); - var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); - if (isData && IsAccessor) { - throw new $TypeError('Property Descriptors may not be both accessor and data descriptors'); - } - return true; - } -}; - -module.exports = function assertRecord(ES, recordType, argumentName, value) { - var predicate = predicates[recordType]; - if (typeof predicate !== 'function') { - throw new $SyntaxError('unknown record type: ' + recordType); - } - if (!predicate(ES, value)) { - throw new $TypeError(argumentName + ' must be a ' + recordType); - } - console.log(predicate(ES, value), value); -}; - - -/***/ }), -/* 222 */ -/***/ (function(module, exports) { - -module.exports = Number.isNaN || function isNaN(a) { - return a !== a; -}; - - -/***/ }), -/* 223 */ -/***/ (function(module, exports) { - -var $isNaN = Number.isNaN || function (a) { return a !== a; }; - -module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; - - -/***/ }), -/* 224 */ -/***/ (function(module, exports, __webpack_require__) { - -var bind = __webpack_require__(93); -var has = bind.call(Function.call, Object.prototype.hasOwnProperty); - -var $assign = Object.assign; - -module.exports = function assign(target, source) { - if ($assign) { - return $assign(target, source); - } - - for (var key in source) { - if (has(source, key)) { - target[key] = source[key]; - } - } - return target; -}; - - -/***/ }), -/* 225 */ -/***/ (function(module, exports) { - -module.exports = function sign(number) { - return number >= 0 ? 1 : -1; -}; - - -/***/ }), -/* 226 */ -/***/ (function(module, exports) { - -module.exports = function mod(number, modulo) { - var remain = number % modulo; - return Math.floor(remain >= 0 ? remain : remain + modulo); -}; - - -/***/ }), -/* 227 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(219); - -module.exports = function getPolyfill() { - return typeof Object.values === 'function' ? Object.values : implementation; -}; - - -/***/ }), -/* 228 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function contains(other) { - if (arguments.length < 1) { - throw new TypeError('1 argument is required'); - } - if (typeof other !== 'object') { - throw new TypeError('Argument 1 (”other“) to Node.contains must be an instance of Node'); - } - - var node = other; - do { - if (this === node) { - return true; - } - if (node) { - node = node.parentNode; - } - } while (node); - - return false; -}; - - -/***/ }), -/* 229 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(228); - -module.exports = function getPolyfill() { - if (typeof document !== 'undefined') { - if (document.contains) { - return document.contains; - } - if (document.body && document.body.contains) { - return document.body.contains; - } - } - return implementation; -}; - - -/***/ }), -/* 230 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _FocusedInputShape = __webpack_require__(231); - -var _FocusedInputShape2 = _interopRequireDefault(_FocusedInputShape); - -var _IconPositionShape = __webpack_require__(122); - -var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); - -var _OrientationShape = __webpack_require__(232); - -var _OrientationShape2 = _interopRequireDefault(_OrientationShape); - -var _DisabledShape = __webpack_require__(137); - -var _DisabledShape2 = _interopRequireDefault(_DisabledShape); - -var _AnchorDirectionShape = __webpack_require__(233); - -var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); - -var _OpenDirectionShape = __webpack_require__(104); - -var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _CalendarInfoPositionShape = __webpack_require__(123); - -var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - // required props for a functional interactive DateRangePicker - startDate: _reactMomentProptypes2['default'].momentObj, - endDate: _reactMomentProptypes2['default'].momentObj, - onDatesChange: _propTypes2['default'].func.isRequired, - - focusedInput: _FocusedInputShape2['default'], - onFocusChange: _propTypes2['default'].func.isRequired, - - onClose: _propTypes2['default'].func, - - // input related props - startDateId: _propTypes2['default'].string.isRequired, - startDatePlaceholderText: _propTypes2['default'].string, - endDateId: _propTypes2['default'].string.isRequired, - endDatePlaceholderText: _propTypes2['default'].string, - disabled: _DisabledShape2['default'], - required: _propTypes2['default'].bool, - readOnly: _propTypes2['default'].bool, - screenReaderInputMessage: _propTypes2['default'].string, - showClearDates: _propTypes2['default'].bool, - showDefaultInputIcon: _propTypes2['default'].bool, - inputIconPosition: _IconPositionShape2['default'], - customInputIcon: _propTypes2['default'].node, - customArrowIcon: _propTypes2['default'].node, - customCloseIcon: _propTypes2['default'].node, - noBorder: _propTypes2['default'].bool, - block: _propTypes2['default'].bool, - small: _propTypes2['default'].bool, - regular: _propTypes2['default'].bool, - keepFocusOnInput: _propTypes2['default'].bool, - - // calendar presentation and interaction related props - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - orientation: _OrientationShape2['default'], - anchorDirection: _AnchorDirectionShape2['default'], - openDirection: _OpenDirectionShape2['default'], - horizontalMargin: _propTypes2['default'].number, - withPortal: _propTypes2['default'].bool, - withFullScreenPortal: _propTypes2['default'].bool, - appendToBody: _propTypes2['default'].bool, - disableScroll: _propTypes2['default'].bool, - daySize: _airbnbPropTypes.nonNegativeInteger, - isRTL: _propTypes2['default'].bool, - firstDayOfWeek: _DayOfWeekShape2['default'], - initialVisibleMonth: _propTypes2['default'].func, - numberOfMonths: _propTypes2['default'].number, - keepOpenOnDateSelect: _propTypes2['default'].bool, - reopenPickerOnClearDates: _propTypes2['default'].bool, - renderCalendarInfo: _propTypes2['default'].func, - calendarInfoPosition: _CalendarInfoPositionShape2['default'], - hideKeyboardShortcutsPanel: _propTypes2['default'].bool, - verticalHeight: _airbnbPropTypes.nonNegativeInteger, - transitionDuration: _airbnbPropTypes.nonNegativeInteger, - verticalSpacing: _airbnbPropTypes.nonNegativeInteger, - - // navigation related props - navPrev: _propTypes2['default'].node, - navNext: _propTypes2['default'].node, - onPrevMonthClick: _propTypes2['default'].func, - onNextMonthClick: _propTypes2['default'].func, - - // day presentation and interaction related props - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - minimumNights: _propTypes2['default'].number, - enableOutsideDays: _propTypes2['default'].bool, - isDayBlocked: _propTypes2['default'].func, - isOutsideRange: _propTypes2['default'].func, - isDayHighlighted: _propTypes2['default'].func, - - // internationalization props - displayFormat: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func]), - monthFormat: _propTypes2['default'].string, - weekDayFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.DateRangePickerPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string -}; - -/***/ }), -/* 231 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf([_constants.START_DATE, _constants.END_DATE]); - -/***/ }), -/* 232 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION]); - -/***/ }), -/* 233 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = _propTypes2['default'].oneOf([_constants.ANCHOR_LEFT, _constants.ANCHOR_RIGHT]); - -/***/ }), -/* 234 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = getResponsiveContainerStyles; - -var _constants = __webpack_require__(47); - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function getResponsiveContainerStyles(anchorDirection, currentOffset, containerEdge, margin) { - var windowWidth = typeof window !== 'undefined' ? window.innerWidth : 0; - var calculatedOffset = anchorDirection === _constants.ANCHOR_LEFT ? windowWidth - containerEdge : containerEdge; - var calculatedMargin = margin || 0; - - return _defineProperty({}, anchorDirection, Math.min(currentOffset + calculatedOffset - calculatedMargin, 0)); -} - -/***/ }), -/* 235 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = getDetachedContainerStyles; - -var _constants = __webpack_require__(47); - -/** - * Calculate and return a CSS transform style to position a detached element - * next to a reference element. The open and anchor direction indicate wether - * it should be positioned above/below and/or to the left/right of the - * reference element. - * - * Assuming r(0,0), r(1,1), d(0,0), d(1,1) for the bottom-left and top-right - * corners of the reference and detached elements, respectively: - * - openDirection = DOWN, anchorDirection = LEFT => d(0,1) == r(0,1) - * - openDirection = UP, anchorDirection = LEFT => d(0,0) == r(0,0) - * - openDirection = DOWN, anchorDirection = RIGHT => d(1,1) == r(1,1) - * - openDirection = UP, anchorDirection = RIGHT => d(1,0) == r(1,0) - * - * By using a CSS transform, we allow to further position it using - * top/bottom CSS properties for the anchor gutter. - * - * @param {string} openDirection The vertical positioning of the popup - * @param {string} anchorDirection The horizontal position of the popup - * @param {HTMLElement} referenceEl The reference element - */ -function getDetachedContainerStyles(openDirection, anchorDirection, referenceEl) { - var referenceRect = referenceEl.getBoundingClientRect(); - var offsetX = referenceRect.left; - var offsetY = referenceRect.top; - - if (openDirection === _constants.OPEN_UP) { - offsetY = -(window.innerHeight - referenceRect.bottom); - } - - if (anchorDirection === _constants.ANCHOR_RIGHT) { - offsetX = -(window.innerWidth - referenceRect.right); - } - - return { - transform: 'translate3d(' + String(Math.round(offsetX)) + 'px, ' + String(Math.round(offsetY)) + 'px, 0)' - }; -} - -/***/ }), -/* 236 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.getScrollParent = getScrollParent; -exports.getScrollAncestorsOverflowY = getScrollAncestorsOverflowY; -exports['default'] = disableScroll; -var getScrollingRoot = function getScrollingRoot() { - return document.scrollingElement || document.documentElement; -}; - -/** - * Recursively finds the scroll parent of a node. The scroll parrent of a node - * is the closest node that is scrollable. A node is scrollable if: - * - it is allowed to scroll via CSS ('overflow-y' not visible or hidden); - * - and its children/content are "bigger" than the node's box height. - * - * The root of the document always scrolls by default. - * - * @param {HTMLElement} node Any DOM element. - * @return {HTMLElement} The scroll parent element. - */ -function getScrollParent(node) { - var parent = node.parentElement; - - if (parent == null) return getScrollingRoot(); - - var _window$getComputedSt = window.getComputedStyle(parent), - overflowY = _window$getComputedSt.overflowY; - - var canScroll = overflowY !== 'visible' && overflowY !== 'hidden'; - - if (canScroll && parent.scrollHeight > parent.clientHeight) { - return parent; - } - - return getScrollParent(parent); -} - -/** - * Recursively traverses the tree upwards from the given node, capturing all - * ancestor nodes that scroll along with their current 'overflow-y' CSS - * property. - * - * @param {HTMLElement} node Any DOM element. - * @param {Map} [acc] Accumulator map. - * @return {Map} Map of ancestors with their 'overflow-y' value. - */ -function getScrollAncestorsOverflowY(node) { - var acc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Map(); - - var scrollingRoot = getScrollingRoot(); - var scrollParent = getScrollParent(node); - acc.set(scrollParent, scrollParent.style.overflowY); - - if (scrollParent === scrollingRoot) return acc; - return getScrollAncestorsOverflowY(scrollParent, acc); -} - -/** - * Disabling the scroll on a node involves finding all the scrollable ancestors - * and set their 'overflow-y' CSS property to 'hidden'. When all ancestors have - * 'overflow-y: hidden' (up to the document element) there is no scroll - * container, thus all the scroll outside of the node is disabled. In order to - * enable scroll again, we store the previous value of the 'overflow-y' for - * every ancestor in a closure and reset it back. - * - * @param {HTMLElement} node Any DOM element. - */ -function disableScroll(node) { - var scrollAncestorsOverflowY = getScrollAncestorsOverflowY(node); - var toggle = function toggle(on) { - return scrollAncestorsOverflowY.forEach(function (overflowY, ancestor) { - ancestor.style.setProperty('overflow-y', on ? 'hidden' : overflowY); - }); - }; - - toggle(true); - return function () { - return toggle(false); - }; -} - -/***/ }), -/* 237 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _OpenDirectionShape = __webpack_require__(104); - -var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _DateRangePickerInput = __webpack_require__(238); - -var _DateRangePickerInput2 = _interopRequireDefault(_DateRangePickerInput); - -var _IconPositionShape = __webpack_require__(122); - -var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); - -var _DisabledShape = __webpack_require__(137); - -var _DisabledShape2 = _interopRequireDefault(_DisabledShape); - -var _toMomentObject = __webpack_require__(101); - -var _toMomentObject2 = _interopRequireDefault(_toMomentObject); - -var _toLocalizedDateString = __webpack_require__(179); - -var _toLocalizedDateString2 = _interopRequireDefault(_toLocalizedDateString); - -var _isInclusivelyAfterDay = __webpack_require__(124); - -var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); - -var _isBeforeDay = __webpack_require__(125); - -var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({ - startDate: _reactMomentProptypes2['default'].momentObj, - startDateId: _propTypes2['default'].string, - startDatePlaceholderText: _propTypes2['default'].string, - isStartDateFocused: _propTypes2['default'].bool, - - endDate: _reactMomentProptypes2['default'].momentObj, - endDateId: _propTypes2['default'].string, - endDatePlaceholderText: _propTypes2['default'].string, - isEndDateFocused: _propTypes2['default'].bool, - - screenReaderMessage: _propTypes2['default'].string, - showClearDates: _propTypes2['default'].bool, - showCaret: _propTypes2['default'].bool, - showDefaultInputIcon: _propTypes2['default'].bool, - inputIconPosition: _IconPositionShape2['default'], - disabled: _DisabledShape2['default'], - required: _propTypes2['default'].bool, - readOnly: _propTypes2['default'].bool, - openDirection: _OpenDirectionShape2['default'], - noBorder: _propTypes2['default'].bool, - block: _propTypes2['default'].bool, - small: _propTypes2['default'].bool, - regular: _propTypes2['default'].bool, - verticalSpacing: _airbnbPropTypes.nonNegativeInteger, - - keepOpenOnDateSelect: _propTypes2['default'].bool, - reopenPickerOnClearDates: _propTypes2['default'].bool, - withFullScreenPortal: _propTypes2['default'].bool, - minimumNights: _airbnbPropTypes.nonNegativeInteger, - isOutsideRange: _propTypes2['default'].func, - displayFormat: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func]), - - onFocusChange: _propTypes2['default'].func, - onClose: _propTypes2['default'].func, - onDatesChange: _propTypes2['default'].func, - onKeyDownArrowDown: _propTypes2['default'].func, - onKeyDownQuestionMark: _propTypes2['default'].func, - - customInputIcon: _propTypes2['default'].node, - customArrowIcon: _propTypes2['default'].node, - customCloseIcon: _propTypes2['default'].node, - - // accessibility - isFocused: _propTypes2['default'].bool, - - // i18n - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.DateRangePickerInputPhrases)), - - isRTL: _propTypes2['default'].bool -}); - -var defaultProps = { - startDate: null, - startDateId: _constants.START_DATE, - startDatePlaceholderText: 'Start Date', - isStartDateFocused: false, - - endDate: null, - endDateId: _constants.END_DATE, - endDatePlaceholderText: 'End Date', - isEndDateFocused: false, - - screenReaderMessage: '', - showClearDates: false, - showCaret: false, - showDefaultInputIcon: false, - inputIconPosition: _constants.ICON_BEFORE_POSITION, - disabled: false, - required: false, - readOnly: false, - openDirection: _constants.OPEN_DOWN, - noBorder: false, - block: false, - small: false, - regular: false, - verticalSpacing: undefined, - - keepOpenOnDateSelect: false, - reopenPickerOnClearDates: false, - withFullScreenPortal: false, - minimumNights: 1, - isOutsideRange: function () { - function isOutsideRange(day) { - return !(0, _isInclusivelyAfterDay2['default'])(day, (0, _moment2['default'])()); - } - - return isOutsideRange; - }(), - displayFormat: function () { - function displayFormat() { - return _moment2['default'].localeData().longDateFormat('L'); - } - - return displayFormat; - }(), - - onFocusChange: function () { - function onFocusChange() {} - - return onFocusChange; - }(), - onClose: function () { - function onClose() {} - - return onClose; - }(), - onDatesChange: function () { - function onDatesChange() {} - - return onDatesChange; - }(), - onKeyDownArrowDown: function () { - function onKeyDownArrowDown() {} - - return onKeyDownArrowDown; - }(), - onKeyDownQuestionMark: function () { - function onKeyDownQuestionMark() {} - - return onKeyDownQuestionMark; - }(), - - - customInputIcon: null, - customArrowIcon: null, - customCloseIcon: null, - - // accessibility - isFocused: false, - - // i18n - phrases: _defaultPhrases.DateRangePickerInputPhrases, - - isRTL: false -}; - -var DateRangePickerInputController = function (_React$Component) { - _inherits(DateRangePickerInputController, _React$Component); - - function DateRangePickerInputController(props) { - _classCallCheck(this, DateRangePickerInputController); - - var _this = _possibleConstructorReturn(this, (DateRangePickerInputController.__proto__ || Object.getPrototypeOf(DateRangePickerInputController)).call(this, props)); - - _this.onClearFocus = _this.onClearFocus.bind(_this); - _this.onStartDateChange = _this.onStartDateChange.bind(_this); - _this.onStartDateFocus = _this.onStartDateFocus.bind(_this); - _this.onEndDateChange = _this.onEndDateChange.bind(_this); - _this.onEndDateFocus = _this.onEndDateFocus.bind(_this); - _this.clearDates = _this.clearDates.bind(_this); - return _this; - } - - _createClass(DateRangePickerInputController, [{ - key: 'onClearFocus', - value: function () { - function onClearFocus() { - var _props = this.props, - onFocusChange = _props.onFocusChange, - onClose = _props.onClose, - startDate = _props.startDate, - endDate = _props.endDate; - - - onFocusChange(null); - onClose({ startDate: startDate, endDate: endDate }); - } - - return onClearFocus; - }() - }, { - key: 'onEndDateChange', - value: function () { - function onEndDateChange(endDateString) { - var _props2 = this.props, - startDate = _props2.startDate, - isOutsideRange = _props2.isOutsideRange, - minimumNights = _props2.minimumNights, - keepOpenOnDateSelect = _props2.keepOpenOnDateSelect, - onDatesChange = _props2.onDatesChange; - - - var endDate = (0, _toMomentObject2['default'])(endDateString, this.getDisplayFormat()); - - var isEndDateValid = endDate && !isOutsideRange(endDate) && !(startDate && (0, _isBeforeDay2['default'])(endDate, startDate.clone().add(minimumNights, 'days'))); - if (isEndDateValid) { - onDatesChange({ startDate: startDate, endDate: endDate }); - if (!keepOpenOnDateSelect) this.onClearFocus(); - } else { - onDatesChange({ - startDate: startDate, - endDate: null - }); - } - } - - return onEndDateChange; - }() - }, { - key: 'onEndDateFocus', - value: function () { - function onEndDateFocus() { - var _props3 = this.props, - startDate = _props3.startDate, - onFocusChange = _props3.onFocusChange, - withFullScreenPortal = _props3.withFullScreenPortal, - disabled = _props3.disabled; - - - if (!startDate && withFullScreenPortal && (!disabled || disabled === _constants.END_DATE)) { - // When the datepicker is full screen, we never want to focus the end date first - // because there's no indication that that is the case once the datepicker is open and it - // might confuse the user - onFocusChange(_constants.START_DATE); - } else if (!disabled || disabled === _constants.START_DATE) { - onFocusChange(_constants.END_DATE); - } - } - - return onEndDateFocus; - }() - }, { - key: 'onStartDateChange', - value: function () { - function onStartDateChange(startDateString) { - var endDate = this.props.endDate; - var _props4 = this.props, - isOutsideRange = _props4.isOutsideRange, - minimumNights = _props4.minimumNights, - onDatesChange = _props4.onDatesChange, - onFocusChange = _props4.onFocusChange, - disabled = _props4.disabled; - - - var startDate = (0, _toMomentObject2['default'])(startDateString, this.getDisplayFormat()); - var isEndDateBeforeStartDate = startDate && (0, _isBeforeDay2['default'])(endDate, startDate.clone().add(minimumNights, 'days')); - var isStartDateValid = startDate && !isOutsideRange(startDate) && !(disabled === _constants.END_DATE && isEndDateBeforeStartDate); - - if (isStartDateValid) { - if (isEndDateBeforeStartDate) { - endDate = null; - } - - onDatesChange({ startDate: startDate, endDate: endDate }); - onFocusChange(_constants.END_DATE); - } else { - onDatesChange({ - startDate: null, - endDate: endDate - }); - } - } - - return onStartDateChange; - }() - }, { - key: 'onStartDateFocus', - value: function () { - function onStartDateFocus() { - var _props5 = this.props, - disabled = _props5.disabled, - onFocusChange = _props5.onFocusChange; - - if (!disabled || disabled === _constants.END_DATE) { - onFocusChange(_constants.START_DATE); - } - } - - return onStartDateFocus; - }() - }, { - key: 'getDisplayFormat', - value: function () { - function getDisplayFormat() { - var displayFormat = this.props.displayFormat; - - return typeof displayFormat === 'string' ? displayFormat : displayFormat(); - } - - return getDisplayFormat; - }() - }, { - key: 'getDateString', - value: function () { - function getDateString(date) { - var displayFormat = this.getDisplayFormat(); - if (date && displayFormat) { - return date && date.format(displayFormat); - } - return (0, _toLocalizedDateString2['default'])(date); - } - - return getDateString; - }() - }, { - key: 'clearDates', - value: function () { - function clearDates() { - var _props6 = this.props, - onDatesChange = _props6.onDatesChange, - reopenPickerOnClearDates = _props6.reopenPickerOnClearDates, - onFocusChange = _props6.onFocusChange; - - onDatesChange({ startDate: null, endDate: null }); - if (reopenPickerOnClearDates) { - onFocusChange(_constants.START_DATE); - } - } - - return clearDates; - }() - }, { - key: 'render', - value: function () { - function render() { - var _props7 = this.props, - startDate = _props7.startDate, - startDateId = _props7.startDateId, - startDatePlaceholderText = _props7.startDatePlaceholderText, - isStartDateFocused = _props7.isStartDateFocused, - endDate = _props7.endDate, - endDateId = _props7.endDateId, - endDatePlaceholderText = _props7.endDatePlaceholderText, - isEndDateFocused = _props7.isEndDateFocused, - screenReaderMessage = _props7.screenReaderMessage, - showClearDates = _props7.showClearDates, - showCaret = _props7.showCaret, - showDefaultInputIcon = _props7.showDefaultInputIcon, - inputIconPosition = _props7.inputIconPosition, - customInputIcon = _props7.customInputIcon, - customArrowIcon = _props7.customArrowIcon, - customCloseIcon = _props7.customCloseIcon, - disabled = _props7.disabled, - required = _props7.required, - readOnly = _props7.readOnly, - openDirection = _props7.openDirection, - isFocused = _props7.isFocused, - phrases = _props7.phrases, - onKeyDownArrowDown = _props7.onKeyDownArrowDown, - onKeyDownQuestionMark = _props7.onKeyDownQuestionMark, - isRTL = _props7.isRTL, - noBorder = _props7.noBorder, - block = _props7.block, - small = _props7.small, - regular = _props7.regular, - verticalSpacing = _props7.verticalSpacing; - - - var startDateString = this.getDateString(startDate); - var endDateString = this.getDateString(endDate); - - return _react2['default'].createElement(_DateRangePickerInput2['default'], { - startDate: startDateString, - startDateId: startDateId, - startDatePlaceholderText: startDatePlaceholderText, - isStartDateFocused: isStartDateFocused, - endDate: endDateString, - endDateId: endDateId, - endDatePlaceholderText: endDatePlaceholderText, - isEndDateFocused: isEndDateFocused, - isFocused: isFocused, - disabled: disabled, - required: required, - readOnly: readOnly, - openDirection: openDirection, - showCaret: showCaret, - showDefaultInputIcon: showDefaultInputIcon, - inputIconPosition: inputIconPosition, - customInputIcon: customInputIcon, - customArrowIcon: customArrowIcon, - customCloseIcon: customCloseIcon, - phrases: phrases, - onStartDateChange: this.onStartDateChange, - onStartDateFocus: this.onStartDateFocus, - onStartDateShiftTab: this.onClearFocus, - onEndDateChange: this.onEndDateChange, - onEndDateFocus: this.onEndDateFocus, - onEndDateTab: this.onClearFocus, - showClearDates: showClearDates, - onClearDates: this.clearDates, - screenReaderMessage: screenReaderMessage, - onKeyDownArrowDown: onKeyDownArrowDown, - onKeyDownQuestionMark: onKeyDownQuestionMark, - isRTL: isRTL, - noBorder: noBorder, - block: block, - small: small, - regular: regular, - verticalSpacing: verticalSpacing - }); - } - - return render; - }() - }]); - - return DateRangePickerInputController; -}(_react2['default'].Component); - -exports['default'] = DateRangePickerInputController; - - -DateRangePickerInputController.propTypes = propTypes; -DateRangePickerInputController.defaultProps = defaultProps; - -/***/ }), -/* 238 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _reactWithStyles = __webpack_require__(65); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _OpenDirectionShape = __webpack_require__(104); - -var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); - -var _DateInput = __webpack_require__(239); - -var _DateInput2 = _interopRequireDefault(_DateInput); - -var _IconPositionShape = __webpack_require__(122); - -var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); - -var _DisabledShape = __webpack_require__(137); - -var _DisabledShape2 = _interopRequireDefault(_DisabledShape); - -var _RightArrow = __webpack_require__(243); - -var _RightArrow2 = _interopRequireDefault(_RightArrow); - -var _LeftArrow = __webpack_require__(244); - -var _LeftArrow2 = _interopRequireDefault(_LeftArrow); - -var _CloseButton = __webpack_require__(126); - -var _CloseButton2 = _interopRequireDefault(_CloseButton); - -var _CalendarIcon = __webpack_require__(245); - -var _CalendarIcon2 = _interopRequireDefault(_CalendarIcon); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, { - startDateId: _propTypes2['default'].string, - startDatePlaceholderText: _propTypes2['default'].string, - screenReaderMessage: _propTypes2['default'].string, - - endDateId: _propTypes2['default'].string, - endDatePlaceholderText: _propTypes2['default'].string, - - onStartDateFocus: _propTypes2['default'].func, - onEndDateFocus: _propTypes2['default'].func, - onStartDateChange: _propTypes2['default'].func, - onEndDateChange: _propTypes2['default'].func, - onStartDateShiftTab: _propTypes2['default'].func, - onEndDateTab: _propTypes2['default'].func, - onClearDates: _propTypes2['default'].func, - onKeyDownArrowDown: _propTypes2['default'].func, - onKeyDownQuestionMark: _propTypes2['default'].func, - - startDate: _propTypes2['default'].string, - endDate: _propTypes2['default'].string, - - isStartDateFocused: _propTypes2['default'].bool, - isEndDateFocused: _propTypes2['default'].bool, - showClearDates: _propTypes2['default'].bool, - disabled: _DisabledShape2['default'], - required: _propTypes2['default'].bool, - readOnly: _propTypes2['default'].bool, - openDirection: _OpenDirectionShape2['default'], - showCaret: _propTypes2['default'].bool, - showDefaultInputIcon: _propTypes2['default'].bool, - inputIconPosition: _IconPositionShape2['default'], - customInputIcon: _propTypes2['default'].node, - customArrowIcon: _propTypes2['default'].node, - customCloseIcon: _propTypes2['default'].node, - noBorder: _propTypes2['default'].bool, - block: _propTypes2['default'].bool, - small: _propTypes2['default'].bool, - regular: _propTypes2['default'].bool, - verticalSpacing: _airbnbPropTypes.nonNegativeInteger, - - // accessibility - isFocused: _propTypes2['default'].bool, // describes actual DOM focus - - // i18n - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.DateRangePickerInputPhrases)), - - isRTL: _propTypes2['default'].bool -})); - -var defaultProps = { - startDateId: _constants.START_DATE, - endDateId: _constants.END_DATE, - startDatePlaceholderText: 'Start Date', - endDatePlaceholderText: 'End Date', - screenReaderMessage: '', - onStartDateFocus: function () { - function onStartDateFocus() {} - - return onStartDateFocus; - }(), - onEndDateFocus: function () { - function onEndDateFocus() {} - - return onEndDateFocus; - }(), - onStartDateChange: function () { - function onStartDateChange() {} - - return onStartDateChange; - }(), - onEndDateChange: function () { - function onEndDateChange() {} - - return onEndDateChange; - }(), - onStartDateShiftTab: function () { - function onStartDateShiftTab() {} - - return onStartDateShiftTab; - }(), - onEndDateTab: function () { - function onEndDateTab() {} - - return onEndDateTab; - }(), - onClearDates: function () { - function onClearDates() {} - - return onClearDates; - }(), - onKeyDownArrowDown: function () { - function onKeyDownArrowDown() {} - - return onKeyDownArrowDown; - }(), - onKeyDownQuestionMark: function () { - function onKeyDownQuestionMark() {} - - return onKeyDownQuestionMark; - }(), - - - startDate: '', - endDate: '', - - isStartDateFocused: false, - isEndDateFocused: false, - showClearDates: false, - disabled: false, - required: false, - readOnly: false, - openDirection: _constants.OPEN_DOWN, - showCaret: false, - showDefaultInputIcon: false, - inputIconPosition: _constants.ICON_BEFORE_POSITION, - customInputIcon: null, - customArrowIcon: null, - customCloseIcon: null, - noBorder: false, - block: false, - small: false, - regular: false, - verticalSpacing: undefined, - - // accessibility - isFocused: false, - - // i18n - phrases: _defaultPhrases.DateRangePickerInputPhrases, - - isRTL: false -}; - -function DateRangePickerInput(_ref) { - var startDate = _ref.startDate, - startDateId = _ref.startDateId, - startDatePlaceholderText = _ref.startDatePlaceholderText, - screenReaderMessage = _ref.screenReaderMessage, - isStartDateFocused = _ref.isStartDateFocused, - onStartDateChange = _ref.onStartDateChange, - onStartDateFocus = _ref.onStartDateFocus, - onStartDateShiftTab = _ref.onStartDateShiftTab, - endDate = _ref.endDate, - endDateId = _ref.endDateId, - endDatePlaceholderText = _ref.endDatePlaceholderText, - isEndDateFocused = _ref.isEndDateFocused, - onEndDateChange = _ref.onEndDateChange, - onEndDateFocus = _ref.onEndDateFocus, - onEndDateTab = _ref.onEndDateTab, - onKeyDownArrowDown = _ref.onKeyDownArrowDown, - onKeyDownQuestionMark = _ref.onKeyDownQuestionMark, - onClearDates = _ref.onClearDates, - showClearDates = _ref.showClearDates, - disabled = _ref.disabled, - required = _ref.required, - readOnly = _ref.readOnly, - showCaret = _ref.showCaret, - openDirection = _ref.openDirection, - showDefaultInputIcon = _ref.showDefaultInputIcon, - inputIconPosition = _ref.inputIconPosition, - customInputIcon = _ref.customInputIcon, - customArrowIcon = _ref.customArrowIcon, - customCloseIcon = _ref.customCloseIcon, - isFocused = _ref.isFocused, - phrases = _ref.phrases, - isRTL = _ref.isRTL, - noBorder = _ref.noBorder, - block = _ref.block, - verticalSpacing = _ref.verticalSpacing, - small = _ref.small, - regular = _ref.regular, - styles = _ref.styles; - - var calendarIcon = customInputIcon || _react2['default'].createElement(_CalendarIcon2['default'], (0, _reactWithStyles.css)(styles.DateRangePickerInput_calendarIcon_svg)); - - var arrowIcon = customArrowIcon || _react2['default'].createElement(_RightArrow2['default'], (0, _reactWithStyles.css)(styles.DateRangePickerInput_arrow_svg)); - if (isRTL) arrowIcon = _react2['default'].createElement(_LeftArrow2['default'], (0, _reactWithStyles.css)(styles.DateRangePickerInput_arrow_svg)); - if (small) arrowIcon = '-'; - - var closeIcon = customCloseIcon || _react2['default'].createElement(_CloseButton2['default'], (0, _reactWithStyles.css)(styles.DateRangePickerInput_clearDates_svg, small && styles.DateRangePickerInput_clearDates_svg__small)); - var screenReaderText = screenReaderMessage || phrases.keyboardNavigationInstructions; - var inputIcon = (showDefaultInputIcon || customInputIcon !== null) && _react2['default'].createElement( - 'button', - _extends({}, (0, _reactWithStyles.css)(styles.DateRangePickerInput_calendarIcon), { - type: 'button', - disabled: disabled, - 'aria-label': phrases.focusStartDate, - onClick: onKeyDownArrowDown - }), - calendarIcon - ); - var startDateDisabled = disabled === _constants.START_DATE || disabled === true; - var endDateDisabled = disabled === _constants.END_DATE || disabled === true; - - return _react2['default'].createElement( - 'div', - (0, _reactWithStyles.css)(styles.DateRangePickerInput, disabled && styles.DateRangePickerInput__disabled, isRTL && styles.DateRangePickerInput__rtl, !noBorder && styles.DateRangePickerInput__withBorder, block && styles.DateRangePickerInput__block, showClearDates && styles.DateRangePickerInput__showClearDates), - inputIconPosition === _constants.ICON_BEFORE_POSITION && inputIcon, - _react2['default'].createElement(_DateInput2['default'], { - id: startDateId, - placeholder: startDatePlaceholderText, - displayValue: startDate, - screenReaderMessage: screenReaderText, - focused: isStartDateFocused, - isFocused: isFocused, - disabled: startDateDisabled, - required: required, - readOnly: readOnly, - showCaret: showCaret, - openDirection: openDirection, - onChange: onStartDateChange, - onFocus: onStartDateFocus, - onKeyDownShiftTab: onStartDateShiftTab, - onKeyDownArrowDown: onKeyDownArrowDown, - onKeyDownQuestionMark: onKeyDownQuestionMark, - verticalSpacing: verticalSpacing, - small: small, - regular: regular - }), - _react2['default'].createElement( - 'div', - _extends({}, (0, _reactWithStyles.css)(styles.DateRangePickerInput_arrow), { - 'aria-hidden': 'true', - role: 'presentation' - }), - arrowIcon - ), - _react2['default'].createElement(_DateInput2['default'], { - id: endDateId, - placeholder: endDatePlaceholderText, - displayValue: endDate, - screenReaderMessage: screenReaderText, - focused: isEndDateFocused, - isFocused: isFocused, - disabled: endDateDisabled, - required: required, - readOnly: readOnly, - showCaret: showCaret, - openDirection: openDirection, - onChange: onEndDateChange, - onFocus: onEndDateFocus, - onKeyDownTab: onEndDateTab, - onKeyDownArrowDown: onKeyDownArrowDown, - onKeyDownQuestionMark: onKeyDownQuestionMark, - verticalSpacing: verticalSpacing, - small: small, - regular: regular - }), - showClearDates && _react2['default'].createElement( - 'button', - _extends({ - type: 'button', - 'aria-label': phrases.clearDates - }, (0, _reactWithStyles.css)(styles.DateRangePickerInput_clearDates, small && styles.DateRangePickerInput_clearDates__small, !customCloseIcon && styles.DateRangePickerInput_clearDates_default, !(startDate || endDate) && styles.DateRangePickerInput_clearDates__hide), { - onClick: onClearDates, - disabled: disabled - }), - closeIcon - ), - inputIconPosition === _constants.ICON_AFTER_POSITION && inputIcon - ); -} - -DateRangePickerInput.propTypes = propTypes; -DateRangePickerInput.defaultProps = defaultProps; - -exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { - var _ref2$reactDates = _ref2.reactDates, - border = _ref2$reactDates.border, - color = _ref2$reactDates.color, - sizing = _ref2$reactDates.sizing; - return { - DateRangePickerInput: { - backgroundColor: color.background, - display: 'inline-block' - }, - - DateRangePickerInput__disabled: { - background: color.disabled - }, - - DateRangePickerInput__withBorder: { - borderColor: color.border, - borderWidth: border.pickerInput.borderWidth, - borderStyle: border.pickerInput.borderStyle, - borderRadius: border.pickerInput.borderRadius - }, - - DateRangePickerInput__rtl: { - direction: 'rtl' - }, - - DateRangePickerInput__block: { - display: 'block' - }, - - DateRangePickerInput__showClearDates: { - paddingRight: 30 - }, - - DateRangePickerInput_arrow: { - display: 'inline-block', - verticalAlign: 'middle', - color: color.text - }, - - DateRangePickerInput_arrow_svg: { - verticalAlign: 'middle', - fill: color.text, - height: sizing.arrowWidth, - width: sizing.arrowWidth - }, - - DateRangePickerInput_clearDates: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - - cursor: 'pointer', - padding: 10, - margin: '0 10px 0 5px', - position: 'absolute', - right: 0, - top: '50%', - transform: 'translateY(-50%)' - }, - - DateRangePickerInput_clearDates__small: { - padding: 6 - }, - - DateRangePickerInput_clearDates_default: { - ':focus': { - background: color.core.border, - borderRadius: '50%' - }, - - ':hover': { - background: color.core.border, - borderRadius: '50%' - } - }, - - DateRangePickerInput_clearDates__hide: { - visibility: 'hidden' - }, - - DateRangePickerInput_clearDates_svg: { - fill: color.core.grayLight, - height: 12, - width: 15, - verticalAlign: 'middle' - }, - - DateRangePickerInput_clearDates_svg__small: { - height: 9 - }, - - DateRangePickerInput_calendarIcon: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - - cursor: 'pointer', - display: 'inline-block', - verticalAlign: 'middle', - padding: 10, - margin: '0 5px 0 10px' - }, - - DateRangePickerInput_calendarIcon_svg: { - fill: color.core.grayLight, - height: 15, - width: 14, - verticalAlign: 'middle' - } - }; -})(DateRangePickerInput); - -/***/ }), -/* 239 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _reactWithStyles = __webpack_require__(65); - -var _throttle = __webpack_require__(240); - -var _throttle2 = _interopRequireDefault(_throttle); - -var _isTouchDevice = __webpack_require__(103); - -var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); - -var _getInputHeight = __webpack_require__(177); - -var _getInputHeight2 = _interopRequireDefault(_getInputHeight); - -var _OpenDirectionShape = __webpack_require__(104); - -var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var FANG_PATH_TOP = 'M0,' + String(_constants.FANG_HEIGHT_PX) + ' ' + String(_constants.FANG_WIDTH_PX) + ',' + String(_constants.FANG_HEIGHT_PX) + ' ' + _constants.FANG_WIDTH_PX / 2 + ',0z'; -var FANG_STROKE_TOP = 'M0,' + String(_constants.FANG_HEIGHT_PX) + ' ' + _constants.FANG_WIDTH_PX / 2 + ',0 ' + String(_constants.FANG_WIDTH_PX) + ',' + String(_constants.FANG_HEIGHT_PX); -var FANG_PATH_BOTTOM = 'M0,0 ' + String(_constants.FANG_WIDTH_PX) + ',0 ' + _constants.FANG_WIDTH_PX / 2 + ',' + String(_constants.FANG_HEIGHT_PX) + 'z'; -var FANG_STROKE_BOTTOM = 'M0,0 ' + _constants.FANG_WIDTH_PX / 2 + ',' + String(_constants.FANG_HEIGHT_PX) + ' ' + String(_constants.FANG_WIDTH_PX) + ',0'; - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, { - id: _propTypes2['default'].string.isRequired, - placeholder: _propTypes2['default'].string, // also used as label - displayValue: _propTypes2['default'].string, - screenReaderMessage: _propTypes2['default'].string, - focused: _propTypes2['default'].bool, - disabled: _propTypes2['default'].bool, - required: _propTypes2['default'].bool, - readOnly: _propTypes2['default'].bool, - openDirection: _OpenDirectionShape2['default'], - showCaret: _propTypes2['default'].bool, - verticalSpacing: _airbnbPropTypes.nonNegativeInteger, - small: _propTypes2['default'].bool, - block: _propTypes2['default'].bool, - regular: _propTypes2['default'].bool, - - onChange: _propTypes2['default'].func, - onFocus: _propTypes2['default'].func, - onKeyDownShiftTab: _propTypes2['default'].func, - onKeyDownTab: _propTypes2['default'].func, - - onKeyDownArrowDown: _propTypes2['default'].func, - onKeyDownQuestionMark: _propTypes2['default'].func, - - // accessibility - isFocused: _propTypes2['default'].bool // describes actual DOM focus -})); - -var defaultProps = { - placeholder: 'Select Date', - displayValue: '', - screenReaderMessage: '', - focused: false, - disabled: false, - required: false, - readOnly: null, - openDirection: _constants.OPEN_DOWN, - showCaret: false, - verticalSpacing: _constants.DEFAULT_VERTICAL_SPACING, - small: false, - block: false, - regular: false, - - onChange: function () { - function onChange() {} - - return onChange; - }(), - onFocus: function () { - function onFocus() {} - - return onFocus; - }(), - onKeyDownShiftTab: function () { - function onKeyDownShiftTab() {} - - return onKeyDownShiftTab; - }(), - onKeyDownTab: function () { - function onKeyDownTab() {} - - return onKeyDownTab; - }(), - onKeyDownArrowDown: function () { - function onKeyDownArrowDown() {} - - return onKeyDownArrowDown; - }(), - onKeyDownQuestionMark: function () { - function onKeyDownQuestionMark() {} - - return onKeyDownQuestionMark; - }(), - - - // accessibility - isFocused: false -}; - -var DateInput = function (_React$Component) { - _inherits(DateInput, _React$Component); - - function DateInput(props) { - _classCallCheck(this, DateInput); - - var _this = _possibleConstructorReturn(this, (DateInput.__proto__ || Object.getPrototypeOf(DateInput)).call(this, props)); - - _this.state = { - dateString: '', - isTouchDevice: false - }; - - _this.onChange = _this.onChange.bind(_this); - _this.onKeyDown = _this.onKeyDown.bind(_this); - _this.setInputRef = _this.setInputRef.bind(_this); - _this.throttledKeyDown = (0, _throttle2['default'])(_this.onFinalKeyDown, 300, { trailing: false }); - return _this; - } - - _createClass(DateInput, [{ - key: 'componentDidMount', - value: function () { - function componentDidMount() { - this.setState({ isTouchDevice: (0, _isTouchDevice2['default'])() }); - } - - return componentDidMount; - }() - }, { - key: 'componentWillReceiveProps', - value: function () { - function componentWillReceiveProps(nextProps) { - var dateString = this.state.dateString; - - if (dateString && nextProps.displayValue) { - this.setState({ - dateString: '' - }); - } - } - - return componentWillReceiveProps; - }() - }, { - key: 'componentDidUpdate', - value: function () { - function componentDidUpdate(prevProps) { - var _props = this.props, - focused = _props.focused, - isFocused = _props.isFocused; - - if (prevProps.focused === focused && prevProps.isFocused === isFocused) return; - - if (focused && isFocused) { - this.inputRef.focus(); - } - } - - return componentDidUpdate; - }() - }, { - key: 'onChange', - value: function () { - function onChange(e) { - var _props2 = this.props, - onChange = _props2.onChange, - onKeyDownQuestionMark = _props2.onKeyDownQuestionMark; - - var dateString = e.target.value; - - // In Safari, onKeyDown does not consistently fire ahead of onChange. As a result, we need to - // special case the `?` key so that it always triggers the appropriate callback, instead of - // modifying the input value - if (dateString[dateString.length - 1] === '?') { - onKeyDownQuestionMark(e); - } else { - this.setState({ dateString: dateString }, function () { - return onChange(dateString); - }); - } - } - - return onChange; - }() - }, { - key: 'onKeyDown', - value: function () { - function onKeyDown(e) { - e.stopPropagation(); - if (!_constants.MODIFIER_KEY_NAMES.has(e.key)) { - this.throttledKeyDown(e); - } - } - - return onKeyDown; - }() - }, { - key: 'onFinalKeyDown', - value: function () { - function onFinalKeyDown(e) { - var _props3 = this.props, - onKeyDownShiftTab = _props3.onKeyDownShiftTab, - onKeyDownTab = _props3.onKeyDownTab, - onKeyDownArrowDown = _props3.onKeyDownArrowDown, - onKeyDownQuestionMark = _props3.onKeyDownQuestionMark; - var key = e.key; - - - if (key === 'Tab') { - if (e.shiftKey) { - onKeyDownShiftTab(e); - } else { - onKeyDownTab(e); - } - } else if (key === 'ArrowDown') { - onKeyDownArrowDown(e); - } else if (key === '?') { - e.preventDefault(); - onKeyDownQuestionMark(e); - } - } - - return onFinalKeyDown; - }() - }, { - key: 'setInputRef', - value: function () { - function setInputRef(ref) { - this.inputRef = ref; - } - - return setInputRef; - }() - }, { - key: 'render', - value: function () { - function render() { - var _state = this.state, - dateString = _state.dateString, - isTouch = _state.isTouchDevice; - var _props4 = this.props, - id = _props4.id, - placeholder = _props4.placeholder, - displayValue = _props4.displayValue, - screenReaderMessage = _props4.screenReaderMessage, - focused = _props4.focused, - showCaret = _props4.showCaret, - onFocus = _props4.onFocus, - disabled = _props4.disabled, - required = _props4.required, - readOnly = _props4.readOnly, - openDirection = _props4.openDirection, - verticalSpacing = _props4.verticalSpacing, - small = _props4.small, - regular = _props4.regular, - block = _props4.block, - styles = _props4.styles, - reactDates = _props4.theme.reactDates; - - - var value = dateString || displayValue || ''; - var screenReaderMessageId = 'DateInput__screen-reader-message-' + String(id); - - var withFang = showCaret && focused; - - var inputHeight = (0, _getInputHeight2['default'])(reactDates, small); - - return _react2['default'].createElement( - 'div', - (0, _reactWithStyles.css)(styles.DateInput, small && styles.DateInput__small, block && styles.DateInput__block, withFang && styles.DateInput__withFang, disabled && styles.DateInput__disabled, withFang && openDirection === _constants.OPEN_DOWN && styles.DateInput__openDown, withFang && openDirection === _constants.OPEN_UP && styles.DateInput__openUp), - _react2['default'].createElement('input', _extends({}, (0, _reactWithStyles.css)(styles.DateInput_input, small && styles.DateInput_input__small, regular && styles.DateInput_input__regular, readOnly && styles.DateInput_input__readOnly, focused && styles.DateInput_input__focused, disabled && styles.DateInput_input__disabled), { - 'aria-label': placeholder, - type: 'text', - id: id, - name: id, - ref: this.setInputRef, - value: value, - onChange: this.onChange, - onKeyDown: this.onKeyDown, - onFocus: onFocus, - placeholder: placeholder, - autoComplete: 'off', - disabled: disabled, - readOnly: typeof readOnly === 'boolean' ? readOnly : isTouch, - required: required, - 'aria-describedby': screenReaderMessage && screenReaderMessageId - })), - withFang && _react2['default'].createElement( - 'svg', - _extends({ - role: 'presentation', - focusable: 'false' - }, (0, _reactWithStyles.css)(styles.DateInput_fang, openDirection === _constants.OPEN_DOWN && { - top: inputHeight + verticalSpacing - _constants.FANG_HEIGHT_PX - 1 - }, openDirection === _constants.OPEN_UP && { - bottom: inputHeight + verticalSpacing - _constants.FANG_HEIGHT_PX - 1 - })), - _react2['default'].createElement('path', _extends({}, (0, _reactWithStyles.css)(styles.DateInput_fangShape), { - d: openDirection === _constants.OPEN_DOWN ? FANG_PATH_TOP : FANG_PATH_BOTTOM - })), - _react2['default'].createElement('path', _extends({}, (0, _reactWithStyles.css)(styles.DateInput_fangStroke), { - d: openDirection === _constants.OPEN_DOWN ? FANG_STROKE_TOP : FANG_STROKE_BOTTOM - })) - ), - screenReaderMessage && _react2['default'].createElement( - 'p', - _extends({}, (0, _reactWithStyles.css)(styles.DateInput_screenReaderMessage), { id: screenReaderMessageId }), - screenReaderMessage - ) - ); - } - - return render; - }() - }]); - - return DateInput; -}(_react2['default'].Component); - -DateInput.propTypes = propTypes; -DateInput.defaultProps = defaultProps; - -exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { - var _ref$reactDates = _ref.reactDates, - border = _ref$reactDates.border, - color = _ref$reactDates.color, - sizing = _ref$reactDates.sizing, - spacing = _ref$reactDates.spacing, - font = _ref$reactDates.font, - zIndex = _ref$reactDates.zIndex; - return { - DateInput: { - margin: 0, - padding: spacing.inputPadding, - background: color.background, - position: 'relative', - display: 'inline-block', - width: sizing.inputWidth, - verticalAlign: 'middle' - }, - - DateInput__small: { - width: sizing.inputWidth_small - }, - - DateInput__block: { - width: '100%' - }, - - DateInput__disabled: { - background: color.disabled, - color: color.textDisabled - }, - - DateInput_input: { - fontWeight: 200, - fontSize: font.input.size, - lineHeight: font.input.lineHeight, - color: color.text, - backgroundColor: color.background, - width: '100%', - padding: String(spacing.displayTextPaddingVertical) + 'px ' + String(spacing.displayTextPaddingHorizontal) + 'px', - paddingTop: spacing.displayTextPaddingTop, - paddingBottom: spacing.displayTextPaddingBottom, - paddingLeft: spacing.displayTextPaddingLeft, - paddingRight: spacing.displayTextPaddingRight, - border: border.input.border, - borderTop: border.input.borderTop, - borderRight: border.input.borderRight, - borderBottom: border.input.borderBottom, - borderLeft: border.input.borderLeft, - borderRadius: border.input.borderRadius - }, - - DateInput_input__small: { - fontSize: font.input.size_small, - lineHeight: font.input.lineHeight_small, - letterSpacing: font.input.letterSpacing_small, - padding: String(spacing.displayTextPaddingVertical_small) + 'px ' + String(spacing.displayTextPaddingHorizontal_small) + 'px', - paddingTop: spacing.displayTextPaddingTop_small, - paddingBottom: spacing.displayTextPaddingBottom_small, - paddingLeft: spacing.displayTextPaddingLeft_small, - paddingRight: spacing.displayTextPaddingRight_small - }, - - DateInput_input__regular: { - fontWeight: 'auto' - }, - - DateInput_input__readOnly: { - userSelect: 'none' - }, - - DateInput_input__focused: { - outline: border.input.outlineFocused, - background: color.backgroundFocused, - border: border.input.borderFocused, - borderTop: border.input.borderTopFocused, - borderRight: border.input.borderRightFocused, - borderBottom: border.input.borderBottomFocused, - borderLeft: border.input.borderLeftFocused - }, - - DateInput_input__disabled: { - background: color.disabled, - fontStyle: font.input.styleDisabled - }, - - DateInput_screenReaderMessage: { - border: 0, - clip: 'rect(0, 0, 0, 0)', - height: 1, - margin: -1, - overflow: 'hidden', - padding: 0, - position: 'absolute', - width: 1 - }, - - DateInput_fang: { - position: 'absolute', - width: _constants.FANG_WIDTH_PX, - height: _constants.FANG_HEIGHT_PX, - left: 22, - zIndex: zIndex + 2 - }, - - DateInput_fangShape: { - fill: color.background - }, - - DateInput_fangStroke: { - stroke: color.core.border, - fill: 'transparent' - } - }; -})(DateInput); - -/***/ }), -/* 240 */ -/***/ (function(module, exports, __webpack_require__) { - -var debounce = __webpack_require__(375), - isObject = __webpack_require__(178); - -/** Error message constants. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** - * Creates a throttled function that only invokes `func` at most once per - * every `wait` milliseconds. The throttled function comes with a `cancel` - * method to cancel delayed `func` invocations and a `flush` method to - * immediately invoke them. Provide `options` to indicate whether `func` - * should be invoked on the leading and/or trailing edge of the `wait` - * timeout. The `func` is invoked with the last arguments provided to the - * throttled function. Subsequent calls to the throttled function return the - * result of the last `func` invocation. - * - * **Note:** If `leading` and `trailing` options are `true`, `func` is - * invoked on the trailing edge of the timeout only if the throttled function - * is invoked more than once during the `wait` timeout. - * - * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred - * until to the next tick, similar to `setTimeout` with a timeout of `0`. - * - * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) - * for details over the differences between `_.throttle` and `_.debounce`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to throttle. - * @param {number} [wait=0] The number of milliseconds to throttle invocations to. - * @param {Object} [options={}] The options object. - * @param {boolean} [options.leading=true] - * Specify invoking on the leading edge of the timeout. - * @param {boolean} [options.trailing=true] - * Specify invoking on the trailing edge of the timeout. - * @returns {Function} Returns the new throttled function. - * @example - * - * // Avoid excessively updating the position while scrolling. - * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); - * - * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. - * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); - * jQuery(element).on('click', throttled); - * - * // Cancel the trailing throttled invocation. - * jQuery(window).on('popstate', throttled.cancel); - */ -function throttle(func, wait, options) { - var leading = true, - trailing = true; - - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - if (isObject(options)) { - leading = 'leading' in options ? !!options.leading : leading; - trailing = 'trailing' in options ? !!options.trailing : trailing; - } - return debounce(func, wait, { - 'leading': leading, - 'maxWait': wait, - 'trailing': trailing - }); -} - -module.exports = throttle; - - -/***/ }), -/* 241 */ -/***/ (function(module, exports, __webpack_require__) { - -var freeGlobal = __webpack_require__(377); - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -module.exports = root; - - -/***/ }), -/* 242 */ -/***/ (function(module, exports, __webpack_require__) { - -var root = __webpack_require__(241); - -/** Built-in value references. */ -var Symbol = root.Symbol; - -module.exports = Symbol; - - -/***/ }), -/* 243 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var RightArrow = function () { - function RightArrow(props) { - return _react2['default'].createElement( - 'svg', - props, - _react2['default'].createElement('path', { - d: 'M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z' - }) - ); - } - - return RightArrow; -}(); - -RightArrow.defaultProps = { - viewBox: '0 0 1000 1000' -}; -exports['default'] = RightArrow; - -/***/ }), -/* 244 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var LeftArrow = function () { - function LeftArrow(props) { - return _react2['default'].createElement( - 'svg', - props, - _react2['default'].createElement('path', { - d: 'M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z' - }) - ); - } - - return LeftArrow; -}(); - -LeftArrow.defaultProps = { - viewBox: '0 0 1000 1000' -}; -exports['default'] = LeftArrow; - -/***/ }), -/* 245 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var CalendarIcon = function () { - function CalendarIcon(props) { - return _react2['default'].createElement( - 'svg', - props, - _react2['default'].createElement('path', { - d: 'M107.2 1392.9h241.1v-241.1H107.2v241.1zm294.7 0h267.9v-241.1H401.9v241.1zm-294.7-294.7h241.1V830.4H107.2v267.8zm294.7 0h267.9V830.4H401.9v267.8zM107.2 776.8h241.1V535.7H107.2v241.1zm616.2 616.1h267.9v-241.1H723.4v241.1zM401.9 776.8h267.9V535.7H401.9v241.1zm642.9 616.1H1286v-241.1h-241.1v241.1zm-321.4-294.7h267.9V830.4H723.4v267.8zM428.7 375V133.9c0-7.3-2.7-13.5-8-18.8-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3 0-13.5 2.7-18.8 8-5.3 5.3-8 11.6-8 18.8V375c0 7.3 2.7 13.5 8 18.8 5.3 5.3 11.6 8 18.8 8h53.6c7.3 0 13.5-2.7 18.8-8 5.3-5.3 8-11.5 8-18.8zm616.1 723.2H1286V830.4h-241.1v267.8zM723.4 776.8h267.9V535.7H723.4v241.1zm321.4 0H1286V535.7h-241.1v241.1zm26.8-401.8V133.9c0-7.3-2.7-13.5-8-18.8-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3 0-13.5 2.7-18.8 8-5.3 5.3-8 11.6-8 18.8V375c0 7.3 2.7 13.5 8 18.8 5.3 5.3 11.6 8 18.8 8h53.6c7.3 0 13.5-2.7 18.8-8 5.4-5.3 8-11.5 8-18.8zm321.5-53.6v1071.4c0 29-10.6 54.1-31.8 75.3-21.2 21.2-46.3 31.8-75.3 31.8H107.2c-29 0-54.1-10.6-75.3-31.8C10.6 1447 0 1421.9 0 1392.9V321.4c0-29 10.6-54.1 31.8-75.3s46.3-31.8 75.3-31.8h107.2v-80.4c0-36.8 13.1-68.4 39.3-94.6S311.4 0 348.3 0h53.6c36.8 0 68.4 13.1 94.6 39.3 26.2 26.2 39.3 57.8 39.3 94.6v80.4h321.5v-80.4c0-36.8 13.1-68.4 39.3-94.6C922.9 13.1 954.4 0 991.3 0h53.6c36.8 0 68.4 13.1 94.6 39.3s39.3 57.8 39.3 94.6v80.4H1286c29 0 54.1 10.6 75.3 31.8 21.2 21.2 31.8 46.3 31.8 75.3z' - }) - ); - } - - return CalendarIcon; -}(); - -CalendarIcon.defaultProps = { - viewBox: '0 0 1393.1 1500' -}; -exports['default'] = CalendarIcon; - -/***/ }), -/* 246 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _object3 = __webpack_require__(174); - -var _object4 = _interopRequireDefault(_object3); - -var _isTouchDevice = __webpack_require__(103); - -var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _isInclusivelyAfterDay = __webpack_require__(124); - -var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); - -var _isNextDay = __webpack_require__(247); - -var _isNextDay2 = _interopRequireDefault(_isNextDay); - -var _isSameDay = __webpack_require__(100); - -var _isSameDay2 = _interopRequireDefault(_isSameDay); - -var _isAfterDay = __webpack_require__(138); - -var _isAfterDay2 = _interopRequireDefault(_isAfterDay); - -var _isBeforeDay = __webpack_require__(125); - -var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); - -var _getVisibleDays = __webpack_require__(248); - -var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); - -var _isDayVisible = __webpack_require__(180); - -var _isDayVisible2 = _interopRequireDefault(_isDayVisible); - -var _getSelectedDateOffset = __webpack_require__(384); - -var _getSelectedDateOffset2 = _interopRequireDefault(_getSelectedDateOffset); - -var _toISODateString = __webpack_require__(134); - -var _toISODateString2 = _interopRequireDefault(_toISODateString); - -var _toISOMonthString = __webpack_require__(136); - -var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); - -var _DisabledShape = __webpack_require__(137); - -var _DisabledShape2 = _interopRequireDefault(_DisabledShape); - -var _FocusedInputShape = __webpack_require__(231); - -var _FocusedInputShape2 = _interopRequireDefault(_FocusedInputShape); - -var _ScrollableOrientationShape = __webpack_require__(102); - -var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _CalendarInfoPositionShape = __webpack_require__(123); - -var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); - -var _constants = __webpack_require__(47); - -var _DayPicker = __webpack_require__(181); - -var _DayPicker2 = _interopRequireDefault(_DayPicker); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({ - startDate: _reactMomentProptypes2['default'].momentObj, - endDate: _reactMomentProptypes2['default'].momentObj, - onDatesChange: _propTypes2['default'].func, - startDateOffset: _propTypes2['default'].func, - endDateOffset: _propTypes2['default'].func, - - focusedInput: _FocusedInputShape2['default'], - onFocusChange: _propTypes2['default'].func, - onClose: _propTypes2['default'].func, - - keepOpenOnDateSelect: _propTypes2['default'].bool, - minimumNights: _propTypes2['default'].number, - disabled: _DisabledShape2['default'], - isOutsideRange: _propTypes2['default'].func, - isDayBlocked: _propTypes2['default'].func, - isDayHighlighted: _propTypes2['default'].func, - - // DayPicker props - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - enableOutsideDays: _propTypes2['default'].bool, - numberOfMonths: _propTypes2['default'].number, - orientation: _ScrollableOrientationShape2['default'], - withPortal: _propTypes2['default'].bool, - initialVisibleMonth: _propTypes2['default'].func, - hideKeyboardShortcutsPanel: _propTypes2['default'].bool, - daySize: _airbnbPropTypes.nonNegativeInteger, - noBorder: _propTypes2['default'].bool, - verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger, - horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger, - - navPrev: _propTypes2['default'].node, - navNext: _propTypes2['default'].node, - noNavButtons: _propTypes2['default'].bool, - - onPrevMonthClick: _propTypes2['default'].func, - onNextMonthClick: _propTypes2['default'].func, - onOutsideClick: _propTypes2['default'].func, - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - renderCalendarInfo: _propTypes2['default'].func, - calendarInfoPosition: _CalendarInfoPositionShape2['default'], - firstDayOfWeek: _DayOfWeekShape2['default'], - verticalHeight: _airbnbPropTypes.nonNegativeInteger, - transitionDuration: _airbnbPropTypes.nonNegativeInteger, - - // accessibility - onBlur: _propTypes2['default'].func, - isFocused: _propTypes2['default'].bool, - showKeyboardShortcuts: _propTypes2['default'].bool, - - // i18n - monthFormat: _propTypes2['default'].string, - weekDayFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.DayPickerPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string, - - isRTL: _propTypes2['default'].bool -}); - -var defaultProps = { - startDate: undefined, // TODO: use null - endDate: undefined, // TODO: use null - onDatesChange: function () { - function onDatesChange() {} - - return onDatesChange; - }(), - - startDateOffset: undefined, - endDateOffset: undefined, - - focusedInput: null, - onFocusChange: function () { - function onFocusChange() {} - - return onFocusChange; - }(), - onClose: function () { - function onClose() {} - - return onClose; - }(), - - - keepOpenOnDateSelect: false, - minimumNights: 1, - disabled: false, - isOutsideRange: function () { - function isOutsideRange() {} - - return isOutsideRange; - }(), - isDayBlocked: function () { - function isDayBlocked() {} - - return isDayBlocked; - }(), - isDayHighlighted: function () { - function isDayHighlighted() {} - - return isDayHighlighted; - }(), - - - // DayPicker props - renderMonthText: null, - enableOutsideDays: false, - numberOfMonths: 1, - orientation: _constants.HORIZONTAL_ORIENTATION, - withPortal: false, - hideKeyboardShortcutsPanel: false, - initialVisibleMonth: null, - daySize: _constants.DAY_SIZE, - - navPrev: null, - navNext: null, - noNavButtons: false, - - onPrevMonthClick: function () { - function onPrevMonthClick() {} - - return onPrevMonthClick; - }(), - onNextMonthClick: function () { - function onNextMonthClick() {} - - return onNextMonthClick; - }(), - onOutsideClick: function () { - function onOutsideClick() {} - - return onOutsideClick; - }(), - - - renderCalendarDay: undefined, - renderDayContents: null, - renderCalendarInfo: null, - renderMonthElement: null, - calendarInfoPosition: _constants.INFO_POSITION_BOTTOM, - firstDayOfWeek: null, - verticalHeight: null, - noBorder: false, - transitionDuration: undefined, - verticalBorderSpacing: undefined, - horizontalMonthPadding: 13, - - // accessibility - onBlur: function () { - function onBlur() {} - - return onBlur; - }(), - - isFocused: false, - showKeyboardShortcuts: false, - - // i18n - monthFormat: 'MMMM YYYY', - weekDayFormat: 'dd', - phrases: _defaultPhrases.DayPickerPhrases, - dayAriaLabelFormat: undefined, - - isRTL: false -}; - -var getChooseAvailableDatePhrase = function getChooseAvailableDatePhrase(phrases, focusedInput) { - if (focusedInput === _constants.START_DATE) { - return phrases.chooseAvailableStartDate; - } - if (focusedInput === _constants.END_DATE) { - return phrases.chooseAvailableEndDate; - } - return phrases.chooseAvailableDate; -}; - -var DayPickerRangeController = function (_React$Component) { - _inherits(DayPickerRangeController, _React$Component); - - function DayPickerRangeController(props) { - _classCallCheck(this, DayPickerRangeController); - - var _this = _possibleConstructorReturn(this, (DayPickerRangeController.__proto__ || Object.getPrototypeOf(DayPickerRangeController)).call(this, props)); - - _this.isTouchDevice = (0, _isTouchDevice2['default'])(); - _this.today = (0, _moment2['default'])(); - _this.modifiers = { - today: function () { - function today(day) { - return _this.isToday(day); - } - - return today; - }(), - blocked: function () { - function blocked(day) { - return _this.isBlocked(day); - } - - return blocked; - }(), - 'blocked-calendar': function () { - function blockedCalendar(day) { - return props.isDayBlocked(day); - } - - return blockedCalendar; - }(), - 'blocked-out-of-range': function () { - function blockedOutOfRange(day) { - return props.isOutsideRange(day); - } - - return blockedOutOfRange; - }(), - 'highlighted-calendar': function () { - function highlightedCalendar(day) { - return props.isDayHighlighted(day); - } - - return highlightedCalendar; - }(), - valid: function () { - function valid(day) { - return !_this.isBlocked(day); - } - - return valid; - }(), - 'selected-start': function () { - function selectedStart(day) { - return _this.isStartDate(day); - } - - return selectedStart; - }(), - 'selected-end': function () { - function selectedEnd(day) { - return _this.isEndDate(day); - } - - return selectedEnd; - }(), - 'blocked-minimum-nights': function () { - function blockedMinimumNights(day) { - return _this.doesNotMeetMinimumNights(day); - } - - return blockedMinimumNights; - }(), - 'selected-span': function () { - function selectedSpan(day) { - return _this.isInSelectedSpan(day); - } - - return selectedSpan; - }(), - 'last-in-range': function () { - function lastInRange(day) { - return _this.isLastInRange(day); - } - - return lastInRange; - }(), - hovered: function () { - function hovered(day) { - return _this.isHovered(day); - } - - return hovered; - }(), - 'hovered-span': function () { - function hoveredSpan(day) { - return _this.isInHoveredSpan(day); - } - - return hoveredSpan; - }(), - 'hovered-offset': function () { - function hoveredOffset(day) { - return _this.isInHoveredSpan(day); - } - - return hoveredOffset; - }(), - 'after-hovered-start': function () { - function afterHoveredStart(day) { - return _this.isDayAfterHoveredStartDate(day); - } - - return afterHoveredStart; - }(), - 'first-day-of-week': function () { - function firstDayOfWeek(day) { - return _this.isFirstDayOfWeek(day); - } - - return firstDayOfWeek; - }(), - 'last-day-of-week': function () { - function lastDayOfWeek(day) { - return _this.isLastDayOfWeek(day); - } - - return lastDayOfWeek; - }() - }; - - var _this$getStateForNewM = _this.getStateForNewMonth(props), - currentMonth = _this$getStateForNewM.currentMonth, - visibleDays = _this$getStateForNewM.visibleDays; - - // initialize phrases - // set the appropriate CalendarDay phrase based on focusedInput - - - var chooseAvailableDate = getChooseAvailableDatePhrase(props.phrases, props.focusedInput); - - _this.state = { - hoverDate: null, - currentMonth: currentMonth, - phrases: (0, _object2['default'])({}, props.phrases, { - chooseAvailableDate: chooseAvailableDate - }), - visibleDays: visibleDays - }; - - _this.onDayClick = _this.onDayClick.bind(_this); - _this.onDayMouseEnter = _this.onDayMouseEnter.bind(_this); - _this.onDayMouseLeave = _this.onDayMouseLeave.bind(_this); - _this.onPrevMonthClick = _this.onPrevMonthClick.bind(_this); - _this.onNextMonthClick = _this.onNextMonthClick.bind(_this); - _this.onMonthChange = _this.onMonthChange.bind(_this); - _this.onYearChange = _this.onYearChange.bind(_this); - _this.onMultiplyScrollableMonths = _this.onMultiplyScrollableMonths.bind(_this); - _this.getFirstFocusableDay = _this.getFirstFocusableDay.bind(_this); - return _this; - } - - _createClass(DayPickerRangeController, [{ - key: 'componentWillReceiveProps', - value: function () { - function componentWillReceiveProps(nextProps) { - var _this2 = this; - - var startDate = nextProps.startDate, - endDate = nextProps.endDate, - focusedInput = nextProps.focusedInput, - minimumNights = nextProps.minimumNights, - isOutsideRange = nextProps.isOutsideRange, - isDayBlocked = nextProps.isDayBlocked, - isDayHighlighted = nextProps.isDayHighlighted, - phrases = nextProps.phrases, - initialVisibleMonth = nextProps.initialVisibleMonth, - numberOfMonths = nextProps.numberOfMonths, - enableOutsideDays = nextProps.enableOutsideDays; - var _props = this.props, - prevStartDate = _props.startDate, - prevEndDate = _props.endDate, - prevFocusedInput = _props.focusedInput, - prevMinimumNights = _props.minimumNights, - prevIsOutsideRange = _props.isOutsideRange, - prevIsDayBlocked = _props.isDayBlocked, - prevIsDayHighlighted = _props.isDayHighlighted, - prevPhrases = _props.phrases, - prevInitialVisibleMonth = _props.initialVisibleMonth, - prevNumberOfMonths = _props.numberOfMonths, - prevEnableOutsideDays = _props.enableOutsideDays; - var visibleDays = this.state.visibleDays; - - - var recomputeOutsideRange = false; - var recomputeDayBlocked = false; - var recomputeDayHighlighted = false; - - if (isOutsideRange !== prevIsOutsideRange) { - this.modifiers['blocked-out-of-range'] = function (day) { - return isOutsideRange(day); - }; - recomputeOutsideRange = true; - } - - if (isDayBlocked !== prevIsDayBlocked) { - this.modifiers['blocked-calendar'] = function (day) { - return isDayBlocked(day); - }; - recomputeDayBlocked = true; - } - - if (isDayHighlighted !== prevIsDayHighlighted) { - this.modifiers['highlighted-calendar'] = function (day) { - return isDayHighlighted(day); - }; - recomputeDayHighlighted = true; - } - - var recomputePropModifiers = recomputeOutsideRange || recomputeDayBlocked || recomputeDayHighlighted; - - var didStartDateChange = startDate !== prevStartDate; - var didEndDateChange = endDate !== prevEndDate; - var didFocusChange = focusedInput !== prevFocusedInput; - - if (numberOfMonths !== prevNumberOfMonths || enableOutsideDays !== prevEnableOutsideDays || initialVisibleMonth !== prevInitialVisibleMonth && !prevFocusedInput && didFocusChange) { - var newMonthState = this.getStateForNewMonth(nextProps); - var currentMonth = newMonthState.currentMonth; - visibleDays = newMonthState.visibleDays; - - this.setState({ - currentMonth: currentMonth, - visibleDays: visibleDays - }); - } - - var modifiers = {}; - - if (didStartDateChange) { - modifiers = this.deleteModifier(modifiers, prevStartDate, 'selected-start'); - modifiers = this.addModifier(modifiers, startDate, 'selected-start'); - - if (prevStartDate) { - var startSpan = prevStartDate.clone().add(1, 'day'); - var endSpan = prevStartDate.clone().add(prevMinimumNights + 1, 'days'); - modifiers = this.deleteModifierFromRange(modifiers, startSpan, endSpan, 'after-hovered-start'); - } - } - - if (didEndDateChange) { - modifiers = this.deleteModifier(modifiers, prevEndDate, 'selected-end'); - modifiers = this.addModifier(modifiers, endDate, 'selected-end'); - } - - if (didStartDateChange || didEndDateChange) { - if (prevStartDate && prevEndDate) { - modifiers = this.deleteModifierFromRange(modifiers, prevStartDate, prevEndDate.clone().add(1, 'day'), 'selected-span'); - } - - if (startDate && endDate) { - modifiers = this.deleteModifierFromRange(modifiers, startDate, endDate.clone().add(1, 'day'), 'hovered-span'); - - modifiers = this.addModifierToRange(modifiers, startDate.clone().add(1, 'day'), endDate, 'selected-span'); - } - } - - if (!this.isTouchDevice && didStartDateChange && startDate && !endDate) { - var _startSpan = startDate.clone().add(1, 'day'); - var _endSpan = startDate.clone().add(minimumNights + 1, 'days'); - modifiers = this.addModifierToRange(modifiers, _startSpan, _endSpan, 'after-hovered-start'); - } - - if (prevMinimumNights > 0) { - if (didFocusChange || didStartDateChange || minimumNights !== prevMinimumNights) { - var _startSpan2 = prevStartDate || this.today; - modifiers = this.deleteModifierFromRange(modifiers, _startSpan2, _startSpan2.clone().add(prevMinimumNights, 'days'), 'blocked-minimum-nights'); - - modifiers = this.deleteModifierFromRange(modifiers, _startSpan2, _startSpan2.clone().add(prevMinimumNights, 'days'), 'blocked'); - } - } - - if (didFocusChange || recomputePropModifiers) { - (0, _object4['default'])(visibleDays).forEach(function (days) { - Object.keys(days).forEach(function (day) { - var momentObj = (0, _moment2['default'])(day); - var isBlocked = false; - - if (didFocusChange || recomputeOutsideRange) { - if (isOutsideRange(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-out-of-range'); - isBlocked = true; - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-out-of-range'); - } - } - - if (didFocusChange || recomputeDayBlocked) { - if (isDayBlocked(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-calendar'); - isBlocked = true; - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-calendar'); - } - } - - if (isBlocked) { - modifiers = _this2.addModifier(modifiers, momentObj, 'blocked'); - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked'); - } - - if (didFocusChange || recomputeDayHighlighted) { - if (isDayHighlighted(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'highlighted-calendar'); - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'highlighted-calendar'); - } - } - }); - }); - } - - if (minimumNights > 0 && startDate && focusedInput === _constants.END_DATE) { - modifiers = this.addModifierToRange(modifiers, startDate, startDate.clone().add(minimumNights, 'days'), 'blocked-minimum-nights'); - - modifiers = this.addModifierToRange(modifiers, startDate, startDate.clone().add(minimumNights, 'days'), 'blocked'); - } - - var today = (0, _moment2['default'])(); - if (!(0, _isSameDay2['default'])(this.today, today)) { - modifiers = this.deleteModifier(modifiers, this.today, 'today'); - modifiers = this.addModifier(modifiers, today, 'today'); - this.today = today; - } - - if (Object.keys(modifiers).length > 0) { - this.setState({ - visibleDays: (0, _object2['default'])({}, visibleDays, modifiers) - }); - } - - if (didFocusChange || phrases !== prevPhrases) { - // set the appropriate CalendarDay phrase based on focusedInput - var chooseAvailableDate = getChooseAvailableDatePhrase(phrases, focusedInput); - - this.setState({ - phrases: (0, _object2['default'])({}, phrases, { - chooseAvailableDate: chooseAvailableDate - }) - }); - } - } - - return componentWillReceiveProps; - }() - }, { - key: 'onDayClick', - value: function () { - function onDayClick(day, e) { - var _props2 = this.props, - keepOpenOnDateSelect = _props2.keepOpenOnDateSelect, - minimumNights = _props2.minimumNights, - onBlur = _props2.onBlur, - focusedInput = _props2.focusedInput, - onFocusChange = _props2.onFocusChange, - onClose = _props2.onClose, - onDatesChange = _props2.onDatesChange, - startDateOffset = _props2.startDateOffset, - endDateOffset = _props2.endDateOffset, - disabled = _props2.disabled; - - - if (e) e.preventDefault(); - if (this.isBlocked(day)) return; - - var _props3 = this.props, - startDate = _props3.startDate, - endDate = _props3.endDate; - - - if (startDateOffset || endDateOffset) { - startDate = (0, _getSelectedDateOffset2['default'])(startDateOffset, day); - endDate = (0, _getSelectedDateOffset2['default'])(endDateOffset, day); - - if (!keepOpenOnDateSelect) { - onFocusChange(null); - onClose({ startDate: startDate, endDate: endDate }); - } - } else if (focusedInput === _constants.START_DATE) { - var lastAllowedStartDate = endDate && endDate.clone().subtract(minimumNights, 'days'); - var isStartDateAfterEndDate = (0, _isBeforeDay2['default'])(lastAllowedStartDate, day) || (0, _isAfterDay2['default'])(startDate, endDate); - var isEndDateDisabled = disabled === _constants.END_DATE; - - if (!isEndDateDisabled || !isStartDateAfterEndDate) { - startDate = day; - if (isStartDateAfterEndDate) { - endDate = null; - } - } - - if (isEndDateDisabled && !isStartDateAfterEndDate) { - onFocusChange(null); - onClose({ startDate: startDate, endDate: endDate }); - } else if (!isEndDateDisabled) { - onFocusChange(_constants.END_DATE); - } - } else if (focusedInput === _constants.END_DATE) { - var firstAllowedEndDate = startDate && startDate.clone().add(minimumNights, 'days'); - - if (!startDate) { - endDate = day; - onFocusChange(_constants.START_DATE); - } else if ((0, _isInclusivelyAfterDay2['default'])(day, firstAllowedEndDate)) { - endDate = day; - if (!keepOpenOnDateSelect) { - onFocusChange(null); - onClose({ startDate: startDate, endDate: endDate }); - } - } else if (disabled !== _constants.START_DATE) { - startDate = day; - endDate = null; - } - } - - onDatesChange({ startDate: startDate, endDate: endDate }); - onBlur(); - } - - return onDayClick; - }() - }, { - key: 'onDayMouseEnter', - value: function () { - function onDayMouseEnter(day) { - /* eslint react/destructuring-assignment: 1 */ - if (this.isTouchDevice) return; - var _props4 = this.props, - startDate = _props4.startDate, - endDate = _props4.endDate, - focusedInput = _props4.focusedInput, - minimumNights = _props4.minimumNights, - startDateOffset = _props4.startDateOffset, - endDateOffset = _props4.endDateOffset; - var _state = this.state, - hoverDate = _state.hoverDate, - visibleDays = _state.visibleDays; - - var dateOffset = null; - - if (focusedInput) { - var hasOffset = startDateOffset || endDateOffset; - var modifiers = {}; - - if (hasOffset) { - var start = (0, _getSelectedDateOffset2['default'])(startDateOffset, day); - var end = (0, _getSelectedDateOffset2['default'])(endDateOffset, day, function (rangeDay) { - return rangeDay.add(1, 'day'); - }); - - dateOffset = { - start: start, - end: end - }; - - // eslint-disable-next-line react/destructuring-assignment - if (this.state.dateOffset && this.state.dateOffset.start && this.state.dateOffset.end) { - modifiers = this.deleteModifierFromRange(modifiers, this.state.dateOffset.start, this.state.dateOffset.end, 'hovered-offset'); - } - modifiers = this.addModifierToRange(modifiers, start, end, 'hovered-offset'); - } - - if (!hasOffset) { - modifiers = this.deleteModifier(modifiers, hoverDate, 'hovered'); - modifiers = this.addModifier(modifiers, day, 'hovered'); - - if (startDate && !endDate && focusedInput === _constants.END_DATE) { - if ((0, _isAfterDay2['default'])(hoverDate, startDate)) { - var endSpan = hoverDate.clone().add(1, 'day'); - modifiers = this.deleteModifierFromRange(modifiers, startDate, endSpan, 'hovered-span'); - } - - if (!this.isBlocked(day) && (0, _isAfterDay2['default'])(day, startDate)) { - var _endSpan2 = day.clone().add(1, 'day'); - modifiers = this.addModifierToRange(modifiers, startDate, _endSpan2, 'hovered-span'); - } - } - - if (!startDate && endDate && focusedInput === _constants.START_DATE) { - if ((0, _isBeforeDay2['default'])(hoverDate, endDate)) { - modifiers = this.deleteModifierFromRange(modifiers, hoverDate, endDate, 'hovered-span'); - } - - if (!this.isBlocked(day) && (0, _isBeforeDay2['default'])(day, endDate)) { - modifiers = this.addModifierToRange(modifiers, day, endDate, 'hovered-span'); - } - } - - if (startDate) { - var startSpan = startDate.clone().add(1, 'day'); - var _endSpan3 = startDate.clone().add(minimumNights + 1, 'days'); - modifiers = this.deleteModifierFromRange(modifiers, startSpan, _endSpan3, 'after-hovered-start'); - - if ((0, _isSameDay2['default'])(day, startDate)) { - var newStartSpan = startDate.clone().add(1, 'day'); - var newEndSpan = startDate.clone().add(minimumNights + 1, 'days'); - modifiers = this.addModifierToRange(modifiers, newStartSpan, newEndSpan, 'after-hovered-start'); - } - } - } - - this.setState({ - hoverDate: day, - dateOffset: dateOffset, - visibleDays: (0, _object2['default'])({}, visibleDays, modifiers) - }); - } - } - - return onDayMouseEnter; - }() - }, { - key: 'onDayMouseLeave', - value: function () { - function onDayMouseLeave(day) { - var _props5 = this.props, - startDate = _props5.startDate, - endDate = _props5.endDate, - minimumNights = _props5.minimumNights; - var _state2 = this.state, - hoverDate = _state2.hoverDate, - visibleDays = _state2.visibleDays, - dateOffset = _state2.dateOffset; - - if (this.isTouchDevice || !hoverDate) return; - - var modifiers = {}; - modifiers = this.deleteModifier(modifiers, hoverDate, 'hovered'); - - if (dateOffset) { - modifiers = this.deleteModifierFromRange(modifiers, this.state.dateOffset.start, this.state.dateOffset.end, 'hovered-offset'); - } - - if (startDate && !endDate && (0, _isAfterDay2['default'])(hoverDate, startDate)) { - var endSpan = hoverDate.clone().add(1, 'day'); - modifiers = this.deleteModifierFromRange(modifiers, startDate, endSpan, 'hovered-span'); - } - - if (!startDate && endDate && (0, _isAfterDay2['default'])(endDate, hoverDate)) { - modifiers = this.deleteModifierFromRange(modifiers, hoverDate, endDate, 'hovered-span'); - } - - if (startDate && (0, _isSameDay2['default'])(day, startDate)) { - var startSpan = startDate.clone().add(1, 'day'); - var _endSpan4 = startDate.clone().add(minimumNights + 1, 'days'); - modifiers = this.deleteModifierFromRange(modifiers, startSpan, _endSpan4, 'after-hovered-start'); - } - - this.setState({ - hoverDate: null, - visibleDays: (0, _object2['default'])({}, visibleDays, modifiers) - }); - } - - return onDayMouseLeave; - }() - }, { - key: 'onPrevMonthClick', - value: function () { - function onPrevMonthClick() { - var _props6 = this.props, - onPrevMonthClick = _props6.onPrevMonthClick, - numberOfMonths = _props6.numberOfMonths, - enableOutsideDays = _props6.enableOutsideDays; - var _state3 = this.state, - currentMonth = _state3.currentMonth, - visibleDays = _state3.visibleDays; - - - var newVisibleDays = {}; - Object.keys(visibleDays).sort().slice(0, numberOfMonths + 1).forEach(function (month) { - newVisibleDays[month] = visibleDays[month]; - }); - - var prevMonth = currentMonth.clone().subtract(2, 'months'); - var prevMonthVisibleDays = (0, _getVisibleDays2['default'])(prevMonth, 1, enableOutsideDays, true); - - var newCurrentMonth = currentMonth.clone().subtract(1, 'month'); - this.setState({ - currentMonth: newCurrentMonth, - visibleDays: (0, _object2['default'])({}, newVisibleDays, this.getModifiers(prevMonthVisibleDays)) - }, function () { - onPrevMonthClick(newCurrentMonth.clone()); - }); - } - - return onPrevMonthClick; - }() - }, { - key: 'onNextMonthClick', - value: function () { - function onNextMonthClick() { - var _props7 = this.props, - onNextMonthClick = _props7.onNextMonthClick, - numberOfMonths = _props7.numberOfMonths, - enableOutsideDays = _props7.enableOutsideDays; - var _state4 = this.state, - currentMonth = _state4.currentMonth, - visibleDays = _state4.visibleDays; - - - var newVisibleDays = {}; - Object.keys(visibleDays).sort().slice(1).forEach(function (month) { - newVisibleDays[month] = visibleDays[month]; - }); - - var nextMonth = currentMonth.clone().add(numberOfMonths + 1, 'month'); - var nextMonthVisibleDays = (0, _getVisibleDays2['default'])(nextMonth, 1, enableOutsideDays, true); - - var newCurrentMonth = currentMonth.clone().add(1, 'month'); - this.setState({ - currentMonth: newCurrentMonth, - visibleDays: (0, _object2['default'])({}, newVisibleDays, this.getModifiers(nextMonthVisibleDays)) - }, function () { - onNextMonthClick(newCurrentMonth.clone()); - }); - } - - return onNextMonthClick; - }() - }, { - key: 'onMonthChange', - value: function () { - function onMonthChange(newMonth) { - var _props8 = this.props, - numberOfMonths = _props8.numberOfMonths, - enableOutsideDays = _props8.enableOutsideDays, - orientation = _props8.orientation; - - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var newVisibleDays = (0, _getVisibleDays2['default'])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths); - - this.setState({ - currentMonth: newMonth.clone(), - visibleDays: this.getModifiers(newVisibleDays) - }); - } - - return onMonthChange; - }() - }, { - key: 'onYearChange', - value: function () { - function onYearChange(newMonth) { - var _props9 = this.props, - numberOfMonths = _props9.numberOfMonths, - enableOutsideDays = _props9.enableOutsideDays, - orientation = _props9.orientation; - - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var newVisibleDays = (0, _getVisibleDays2['default'])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths); - - this.setState({ - currentMonth: newMonth.clone(), - visibleDays: this.getModifiers(newVisibleDays) - }); - } - - return onYearChange; - }() - }, { - key: 'onMultiplyScrollableMonths', - value: function () { - function onMultiplyScrollableMonths() { - var _props10 = this.props, - numberOfMonths = _props10.numberOfMonths, - enableOutsideDays = _props10.enableOutsideDays; - var _state5 = this.state, - currentMonth = _state5.currentMonth, - visibleDays = _state5.visibleDays; - - - var numberOfVisibleMonths = Object.keys(visibleDays).length; - var nextMonth = currentMonth.clone().add(numberOfVisibleMonths, 'month'); - var newVisibleDays = (0, _getVisibleDays2['default'])(nextMonth, numberOfMonths, enableOutsideDays, true); - - this.setState({ - visibleDays: (0, _object2['default'])({}, visibleDays, this.getModifiers(newVisibleDays)) - }); - } - - return onMultiplyScrollableMonths; - }() - }, { - key: 'getFirstFocusableDay', - value: function () { - function getFirstFocusableDay(newMonth) { - var _this3 = this; - - var _props11 = this.props, - startDate = _props11.startDate, - endDate = _props11.endDate, - focusedInput = _props11.focusedInput, - minimumNights = _props11.minimumNights, - numberOfMonths = _props11.numberOfMonths; - - - var focusedDate = newMonth.clone().startOf('month'); - if (focusedInput === _constants.START_DATE && startDate) { - focusedDate = startDate.clone(); - } else if (focusedInput === _constants.END_DATE && !endDate && startDate) { - focusedDate = startDate.clone().add(minimumNights, 'days'); - } else if (focusedInput === _constants.END_DATE && endDate) { - focusedDate = endDate.clone(); - } - - if (this.isBlocked(focusedDate)) { - var days = []; - var lastVisibleDay = newMonth.clone().add(numberOfMonths - 1, 'months').endOf('month'); - var currentDay = focusedDate.clone(); - while (!(0, _isAfterDay2['default'])(currentDay, lastVisibleDay)) { - currentDay = currentDay.clone().add(1, 'day'); - days.push(currentDay); - } - - var viableDays = days.filter(function (day) { - return !_this3.isBlocked(day); - }); - - if (viableDays.length > 0) { - var _viableDays = _slicedToArray(viableDays, 1); - - focusedDate = _viableDays[0]; - } - } - - return focusedDate; - } - - return getFirstFocusableDay; - }() - }, { - key: 'getModifiers', - value: function () { - function getModifiers(visibleDays) { - var _this4 = this; - - var modifiers = {}; - Object.keys(visibleDays).forEach(function (month) { - modifiers[month] = {}; - visibleDays[month].forEach(function (day) { - modifiers[month][(0, _toISODateString2['default'])(day)] = _this4.getModifiersForDay(day); - }); - }); - - return modifiers; - } - - return getModifiers; - }() - }, { - key: 'getModifiersForDay', - value: function () { - function getModifiersForDay(day) { - var _this5 = this; - - return new Set(Object.keys(this.modifiers).filter(function (modifier) { - return _this5.modifiers[modifier](day); - })); - } - - return getModifiersForDay; - }() - }, { - key: 'getStateForNewMonth', - value: function () { - function getStateForNewMonth(nextProps) { - var _this6 = this; - - var initialVisibleMonth = nextProps.initialVisibleMonth, - numberOfMonths = nextProps.numberOfMonths, - enableOutsideDays = nextProps.enableOutsideDays, - orientation = nextProps.orientation, - startDate = nextProps.startDate; - - var initialVisibleMonthThunk = initialVisibleMonth || (startDate ? function () { - return startDate; - } : function () { - return _this6.today; - }); - var currentMonth = initialVisibleMonthThunk(); - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var visibleDays = this.getModifiers((0, _getVisibleDays2['default'])(currentMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths)); - return { currentMonth: currentMonth, visibleDays: visibleDays }; - } - - return getStateForNewMonth; - }() - }, { - key: 'addModifier', - value: function () { - function addModifier(updatedDays, day, modifier) { - var _props12 = this.props, - numberOfVisibleMonths = _props12.numberOfMonths, - enableOutsideDays = _props12.enableOutsideDays, - orientation = _props12.orientation; - var _state6 = this.state, - firstVisibleMonth = _state6.currentMonth, - visibleDays = _state6.visibleDays; - - - var currentMonth = firstVisibleMonth; - var numberOfMonths = numberOfVisibleMonths; - if (orientation === _constants.VERTICAL_SCROLLABLE) { - numberOfMonths = Object.keys(visibleDays).length; - } else { - currentMonth = currentMonth.clone().subtract(1, 'month'); - numberOfMonths += 2; - } - if (!day || !(0, _isDayVisible2['default'])(day, currentMonth, numberOfMonths, enableOutsideDays)) { - return updatedDays; - } - - var iso = (0, _toISODateString2['default'])(day); - - var updatedDaysAfterAddition = (0, _object2['default'])({}, updatedDays); - if (enableOutsideDays) { - var monthsToUpdate = Object.keys(visibleDays).filter(function (monthKey) { - return Object.keys(visibleDays[monthKey]).indexOf(iso) > -1; - }); - - updatedDaysAfterAddition = monthsToUpdate.reduce(function (days, monthIso) { - var month = updatedDays[monthIso] || visibleDays[monthIso]; - var modifiers = new Set(month[iso]); - modifiers.add(modifier); - return (0, _object2['default'])({}, days, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - }, updatedDaysAfterAddition); - } else { - var monthIso = (0, _toISOMonthString2['default'])(day); - var month = updatedDays[monthIso] || visibleDays[monthIso]; - - var modifiers = new Set(month[iso]); - modifiers.add(modifier); - updatedDaysAfterAddition = (0, _object2['default'])({}, updatedDaysAfterAddition, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - } - - return updatedDaysAfterAddition; - } - - return addModifier; - }() - }, { - key: 'addModifierToRange', - value: function () { - function addModifierToRange(updatedDays, start, end, modifier) { - var days = updatedDays; - - var spanStart = start.clone(); - while ((0, _isBeforeDay2['default'])(spanStart, end)) { - days = this.addModifier(days, spanStart, modifier); - spanStart = spanStart.clone().add(1, 'day'); - } - - return days; - } - - return addModifierToRange; - }() - }, { - key: 'deleteModifier', - value: function () { - function deleteModifier(updatedDays, day, modifier) { - var _props13 = this.props, - numberOfVisibleMonths = _props13.numberOfMonths, - enableOutsideDays = _props13.enableOutsideDays, - orientation = _props13.orientation; - var _state7 = this.state, - firstVisibleMonth = _state7.currentMonth, - visibleDays = _state7.visibleDays; - - var currentMonth = firstVisibleMonth; - var numberOfMonths = numberOfVisibleMonths; - if (orientation === _constants.VERTICAL_SCROLLABLE) { - numberOfMonths = Object.keys(visibleDays).length; - } else { - currentMonth = currentMonth.clone().subtract(1, 'month'); - numberOfMonths += 2; - } - if (!day || !(0, _isDayVisible2['default'])(day, currentMonth, numberOfMonths, enableOutsideDays)) { - return updatedDays; - } - - var iso = (0, _toISODateString2['default'])(day); - - var updatedDaysAfterDeletion = (0, _object2['default'])({}, updatedDays); - if (enableOutsideDays) { - var monthsToUpdate = Object.keys(visibleDays).filter(function (monthKey) { - return Object.keys(visibleDays[monthKey]).indexOf(iso) > -1; - }); - - updatedDaysAfterDeletion = monthsToUpdate.reduce(function (days, monthIso) { - var month = updatedDays[monthIso] || visibleDays[monthIso]; - var modifiers = new Set(month[iso]); - modifiers['delete'](modifier); - return (0, _object2['default'])({}, days, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - }, updatedDaysAfterDeletion); - } else { - var monthIso = (0, _toISOMonthString2['default'])(day); - var month = updatedDays[monthIso] || visibleDays[monthIso]; - - var modifiers = new Set(month[iso]); - modifiers['delete'](modifier); - updatedDaysAfterDeletion = (0, _object2['default'])({}, updatedDaysAfterDeletion, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - } - - return updatedDaysAfterDeletion; - } - - return deleteModifier; - }() - }, { - key: 'deleteModifierFromRange', - value: function () { - function deleteModifierFromRange(updatedDays, start, end, modifier) { - var days = updatedDays; - - var spanStart = start.clone(); - while ((0, _isBeforeDay2['default'])(spanStart, end)) { - days = this.deleteModifier(days, spanStart, modifier); - spanStart = spanStart.clone().add(1, 'day'); - } - - return days; - } - - return deleteModifierFromRange; - }() - }, { - key: 'doesNotMeetMinimumNights', - value: function () { - function doesNotMeetMinimumNights(day) { - var _props14 = this.props, - startDate = _props14.startDate, - isOutsideRange = _props14.isOutsideRange, - focusedInput = _props14.focusedInput, - minimumNights = _props14.minimumNights; - - if (focusedInput !== _constants.END_DATE) return false; - - if (startDate) { - var dayDiff = day.diff(startDate.clone().startOf('day').hour(12), 'days'); - return dayDiff < minimumNights && dayDiff >= 0; - } - return isOutsideRange((0, _moment2['default'])(day).subtract(minimumNights, 'days')); - } - - return doesNotMeetMinimumNights; - }() - }, { - key: 'isDayAfterHoveredStartDate', - value: function () { - function isDayAfterHoveredStartDate(day) { - var _props15 = this.props, - startDate = _props15.startDate, - endDate = _props15.endDate, - minimumNights = _props15.minimumNights; - - var _ref = this.state || {}, - hoverDate = _ref.hoverDate; - - return !!startDate && !endDate && !this.isBlocked(day) && (0, _isNextDay2['default'])(hoverDate, day) && minimumNights > 0 && (0, _isSameDay2['default'])(hoverDate, startDate); - } - - return isDayAfterHoveredStartDate; - }() - }, { - key: 'isEndDate', - value: function () { - function isEndDate(day) { - var endDate = this.props.endDate; - - return (0, _isSameDay2['default'])(day, endDate); - } - - return isEndDate; - }() - }, { - key: 'isHovered', - value: function () { - function isHovered(day) { - var _ref2 = this.state || {}, - hoverDate = _ref2.hoverDate; - - var focusedInput = this.props.focusedInput; - - return !!focusedInput && (0, _isSameDay2['default'])(day, hoverDate); - } - - return isHovered; - }() - }, { - key: 'isInHoveredSpan', - value: function () { - function isInHoveredSpan(day) { - var _props16 = this.props, - startDate = _props16.startDate, - endDate = _props16.endDate; - - var _ref3 = this.state || {}, - hoverDate = _ref3.hoverDate; - - var isForwardRange = !!startDate && !endDate && (day.isBetween(startDate, hoverDate) || (0, _isSameDay2['default'])(hoverDate, day)); - var isBackwardRange = !!endDate && !startDate && (day.isBetween(hoverDate, endDate) || (0, _isSameDay2['default'])(hoverDate, day)); - - var isValidDayHovered = hoverDate && !this.isBlocked(hoverDate); - - return (isForwardRange || isBackwardRange) && isValidDayHovered; - } - - return isInHoveredSpan; - }() - }, { - key: 'isInSelectedSpan', - value: function () { - function isInSelectedSpan(day) { - var _props17 = this.props, - startDate = _props17.startDate, - endDate = _props17.endDate; - - return day.isBetween(startDate, endDate); - } - - return isInSelectedSpan; - }() - }, { - key: 'isLastInRange', - value: function () { - function isLastInRange(day) { - var endDate = this.props.endDate; - - return this.isInSelectedSpan(day) && (0, _isNextDay2['default'])(day, endDate); - } - - return isLastInRange; - }() - }, { - key: 'isStartDate', - value: function () { - function isStartDate(day) { - var startDate = this.props.startDate; - - return (0, _isSameDay2['default'])(day, startDate); - } - - return isStartDate; - }() - }, { - key: 'isBlocked', - value: function () { - function isBlocked(day) { - var _props18 = this.props, - isDayBlocked = _props18.isDayBlocked, - isOutsideRange = _props18.isOutsideRange; - - return isDayBlocked(day) || isOutsideRange(day) || this.doesNotMeetMinimumNights(day); - } - - return isBlocked; - }() - }, { - key: 'isToday', - value: function () { - function isToday(day) { - return (0, _isSameDay2['default'])(day, this.today); - } - - return isToday; - }() - }, { - key: 'isFirstDayOfWeek', - value: function () { - function isFirstDayOfWeek(day) { - var firstDayOfWeek = this.props.firstDayOfWeek; - - return day.day() === (firstDayOfWeek || _moment2['default'].localeData().firstDayOfWeek()); - } - - return isFirstDayOfWeek; - }() - }, { - key: 'isLastDayOfWeek', - value: function () { - function isLastDayOfWeek(day) { - var firstDayOfWeek = this.props.firstDayOfWeek; - - return day.day() === ((firstDayOfWeek || _moment2['default'].localeData().firstDayOfWeek()) + 6) % 7; - } - - return isLastDayOfWeek; - }() - }, { - key: 'render', - value: function () { - function render() { - var _props19 = this.props, - numberOfMonths = _props19.numberOfMonths, - orientation = _props19.orientation, - monthFormat = _props19.monthFormat, - renderMonthText = _props19.renderMonthText, - navPrev = _props19.navPrev, - navNext = _props19.navNext, - noNavButtons = _props19.noNavButtons, - onOutsideClick = _props19.onOutsideClick, - withPortal = _props19.withPortal, - enableOutsideDays = _props19.enableOutsideDays, - firstDayOfWeek = _props19.firstDayOfWeek, - hideKeyboardShortcutsPanel = _props19.hideKeyboardShortcutsPanel, - daySize = _props19.daySize, - focusedInput = _props19.focusedInput, - renderCalendarDay = _props19.renderCalendarDay, - renderDayContents = _props19.renderDayContents, - renderCalendarInfo = _props19.renderCalendarInfo, - renderMonthElement = _props19.renderMonthElement, - calendarInfoPosition = _props19.calendarInfoPosition, - onBlur = _props19.onBlur, - isFocused = _props19.isFocused, - showKeyboardShortcuts = _props19.showKeyboardShortcuts, - isRTL = _props19.isRTL, - weekDayFormat = _props19.weekDayFormat, - dayAriaLabelFormat = _props19.dayAriaLabelFormat, - verticalHeight = _props19.verticalHeight, - noBorder = _props19.noBorder, - transitionDuration = _props19.transitionDuration, - verticalBorderSpacing = _props19.verticalBorderSpacing, - horizontalMonthPadding = _props19.horizontalMonthPadding; - var _state8 = this.state, - currentMonth = _state8.currentMonth, - phrases = _state8.phrases, - visibleDays = _state8.visibleDays; - - - return _react2['default'].createElement(_DayPicker2['default'], { - orientation: orientation, - enableOutsideDays: enableOutsideDays, - modifiers: visibleDays, - numberOfMonths: numberOfMonths, - onDayClick: this.onDayClick, - onDayMouseEnter: this.onDayMouseEnter, - onDayMouseLeave: this.onDayMouseLeave, - onPrevMonthClick: this.onPrevMonthClick, - onNextMonthClick: this.onNextMonthClick, - onMonthChange: this.onMonthChange, - onYearChange: this.onYearChange, - onMultiplyScrollableMonths: this.onMultiplyScrollableMonths, - monthFormat: monthFormat, - renderMonthText: renderMonthText, - withPortal: withPortal, - hidden: !focusedInput, - initialVisibleMonth: function () { - function initialVisibleMonth() { - return currentMonth; - } - - return initialVisibleMonth; - }(), - daySize: daySize, - onOutsideClick: onOutsideClick, - navPrev: navPrev, - navNext: navNext, - noNavButtons: noNavButtons, - renderCalendarDay: renderCalendarDay, - renderDayContents: renderDayContents, - renderCalendarInfo: renderCalendarInfo, - renderMonthElement: renderMonthElement, - calendarInfoPosition: calendarInfoPosition, - firstDayOfWeek: firstDayOfWeek, - hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel, - isFocused: isFocused, - getFirstFocusableDay: this.getFirstFocusableDay, - onBlur: onBlur, - showKeyboardShortcuts: showKeyboardShortcuts, - phrases: phrases, - isRTL: isRTL, - weekDayFormat: weekDayFormat, - dayAriaLabelFormat: dayAriaLabelFormat, - verticalHeight: verticalHeight, - verticalBorderSpacing: verticalBorderSpacing, - noBorder: noBorder, - transitionDuration: transitionDuration, - horizontalMonthPadding: horizontalMonthPadding - }); - } - - return render; - }() - }]); - - return DayPickerRangeController; -}(_react2['default'].Component); - -exports['default'] = DayPickerRangeController; - - -DayPickerRangeController.propTypes = propTypes; -DayPickerRangeController.defaultProps = defaultProps; - -/***/ }), -/* 247 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = isNextDay; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _isSameDay = __webpack_require__(100); - -var _isSameDay2 = _interopRequireDefault(_isSameDay); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function isNextDay(a, b) { - if (!_moment2['default'].isMoment(a) || !_moment2['default'].isMoment(b)) return false; - var nextDay = (0, _moment2['default'])(a).add(1, 'day'); - return (0, _isSameDay2['default'])(nextDay, b); -} - -/***/ }), -/* 248 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports['default'] = getVisibleDays; - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _toISOMonthString = __webpack_require__(136); - -var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransitionMonths) { - if (!_moment2['default'].isMoment(month)) return {}; - - var visibleDaysByMonth = {}; - var currentMonth = withoutTransitionMonths ? month.clone() : month.clone().subtract(1, 'month'); - for (var i = 0; i < (withoutTransitionMonths ? numberOfMonths : numberOfMonths + 2); i += 1) { - var visibleDays = []; - - // set utc offset to get correct dates in future (when timezone changes) - var baseDate = currentMonth.clone(); - var firstOfMonth = baseDate.clone().startOf('month').hour(12); - var lastOfMonth = baseDate.clone().endOf('month').hour(12); - - var currentDay = firstOfMonth.clone(); - - // days belonging to the previous month - if (enableOutsideDays) { - for (var j = 0; j < currentDay.weekday(); j += 1) { - var prevDay = currentDay.clone().subtract(j + 1, 'day'); - visibleDays.unshift(prevDay); - } - } - - while (currentDay < lastOfMonth) { - visibleDays.push(currentDay.clone()); - currentDay.add(1, 'day'); - } - - if (enableOutsideDays) { - // weekday() returns the index of the day of the week according to the locale - // this means if the week starts on Monday, weekday() will return 0 for a Monday date, not 1 - if (currentDay.weekday() !== 0) { - // days belonging to the next month - for (var k = currentDay.weekday(), count = 0; k < 7; k += 1, count += 1) { - var nextDay = currentDay.clone().add(count, 'day'); - visibleDays.push(nextDay); - } - } - } - - visibleDaysByMonth[(0, _toISOMonthString2['default'])(currentMonth)] = visibleDays; - currentMonth = currentMonth.clone().add(1, 'month'); - } - - return visibleDaysByMonth; -} - -/***/ }), -/* 249 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _moment = __webpack_require__(33); - -var _moment2 = _interopRequireDefault(_moment); - -var _object3 = __webpack_require__(174); - -var _object4 = _interopRequireDefault(_object3); - -var _isTouchDevice = __webpack_require__(103); - -var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _isSameDay = __webpack_require__(100); - -var _isSameDay2 = _interopRequireDefault(_isSameDay); - -var _isAfterDay = __webpack_require__(138); - -var _isAfterDay2 = _interopRequireDefault(_isAfterDay); - -var _getVisibleDays = __webpack_require__(248); - -var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); - -var _isDayVisible = __webpack_require__(180); - -var _isDayVisible2 = _interopRequireDefault(_isDayVisible); - -var _toISODateString = __webpack_require__(134); - -var _toISODateString2 = _interopRequireDefault(_toISODateString); - -var _toISOMonthString = __webpack_require__(136); - -var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); - -var _ScrollableOrientationShape = __webpack_require__(102); - -var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _CalendarInfoPositionShape = __webpack_require__(123); - -var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); - -var _constants = __webpack_require__(47); - -var _DayPicker = __webpack_require__(181); - -var _DayPicker2 = _interopRequireDefault(_DayPicker); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({ - date: _reactMomentProptypes2['default'].momentObj, - onDateChange: _propTypes2['default'].func, - - focused: _propTypes2['default'].bool, - onFocusChange: _propTypes2['default'].func, - onClose: _propTypes2['default'].func, - - keepOpenOnDateSelect: _propTypes2['default'].bool, - isOutsideRange: _propTypes2['default'].func, - isDayBlocked: _propTypes2['default'].func, - isDayHighlighted: _propTypes2['default'].func, - - // DayPicker props - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - enableOutsideDays: _propTypes2['default'].bool, - numberOfMonths: _propTypes2['default'].number, - orientation: _ScrollableOrientationShape2['default'], - withPortal: _propTypes2['default'].bool, - initialVisibleMonth: _propTypes2['default'].func, - firstDayOfWeek: _DayOfWeekShape2['default'], - hideKeyboardShortcutsPanel: _propTypes2['default'].bool, - daySize: _airbnbPropTypes.nonNegativeInteger, - verticalHeight: _airbnbPropTypes.nonNegativeInteger, - noBorder: _propTypes2['default'].bool, - verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger, - transitionDuration: _airbnbPropTypes.nonNegativeInteger, - horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger, - - navPrev: _propTypes2['default'].node, - navNext: _propTypes2['default'].node, - - onPrevMonthClick: _propTypes2['default'].func, - onNextMonthClick: _propTypes2['default'].func, - onOutsideClick: _propTypes2['default'].func, - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - renderCalendarInfo: _propTypes2['default'].func, - calendarInfoPosition: _CalendarInfoPositionShape2['default'], - - // accessibility - onBlur: _propTypes2['default'].func, - isFocused: _propTypes2['default'].bool, - showKeyboardShortcuts: _propTypes2['default'].bool, - - // i18n - monthFormat: _propTypes2['default'].string, - weekDayFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.DayPickerPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string, - - isRTL: _propTypes2['default'].bool -}); - -var defaultProps = { - date: undefined, // TODO: use null - onDateChange: function () { - function onDateChange() {} - - return onDateChange; - }(), - - - focused: false, - onFocusChange: function () { - function onFocusChange() {} - - return onFocusChange; - }(), - onClose: function () { - function onClose() {} - - return onClose; - }(), - - - keepOpenOnDateSelect: false, - isOutsideRange: function () { - function isOutsideRange() {} - - return isOutsideRange; - }(), - isDayBlocked: function () { - function isDayBlocked() {} - - return isDayBlocked; - }(), - isDayHighlighted: function () { - function isDayHighlighted() {} - - return isDayHighlighted; - }(), - - - // DayPicker props - renderMonthText: null, - enableOutsideDays: false, - numberOfMonths: 1, - orientation: _constants.HORIZONTAL_ORIENTATION, - withPortal: false, - hideKeyboardShortcutsPanel: false, - initialVisibleMonth: null, - firstDayOfWeek: null, - daySize: _constants.DAY_SIZE, - verticalHeight: null, - noBorder: false, - verticalBorderSpacing: undefined, - transitionDuration: undefined, - horizontalMonthPadding: 13, - - navPrev: null, - navNext: null, - - onPrevMonthClick: function () { - function onPrevMonthClick() {} - - return onPrevMonthClick; - }(), - onNextMonthClick: function () { - function onNextMonthClick() {} - - return onNextMonthClick; - }(), - onOutsideClick: function () { - function onOutsideClick() {} - - return onOutsideClick; - }(), - - - renderCalendarDay: undefined, - renderDayContents: null, - renderCalendarInfo: null, - renderMonthElement: null, - calendarInfoPosition: _constants.INFO_POSITION_BOTTOM, - - // accessibility - onBlur: function () { - function onBlur() {} - - return onBlur; - }(), - - isFocused: false, - showKeyboardShortcuts: false, - - // i18n - monthFormat: 'MMMM YYYY', - weekDayFormat: 'dd', - phrases: _defaultPhrases.DayPickerPhrases, - dayAriaLabelFormat: undefined, - - isRTL: false -}; - -var DayPickerSingleDateController = function (_React$Component) { - _inherits(DayPickerSingleDateController, _React$Component); - - function DayPickerSingleDateController(props) { - _classCallCheck(this, DayPickerSingleDateController); - - var _this = _possibleConstructorReturn(this, (DayPickerSingleDateController.__proto__ || Object.getPrototypeOf(DayPickerSingleDateController)).call(this, props)); - - _this.isTouchDevice = false; - _this.today = (0, _moment2['default'])(); - - _this.modifiers = { - today: function () { - function today(day) { - return _this.isToday(day); - } - - return today; - }(), - blocked: function () { - function blocked(day) { - return _this.isBlocked(day); - } - - return blocked; - }(), - 'blocked-calendar': function () { - function blockedCalendar(day) { - return props.isDayBlocked(day); - } - - return blockedCalendar; - }(), - 'blocked-out-of-range': function () { - function blockedOutOfRange(day) { - return props.isOutsideRange(day); - } - - return blockedOutOfRange; - }(), - 'highlighted-calendar': function () { - function highlightedCalendar(day) { - return props.isDayHighlighted(day); - } - - return highlightedCalendar; - }(), - valid: function () { - function valid(day) { - return !_this.isBlocked(day); - } - - return valid; - }(), - hovered: function () { - function hovered(day) { - return _this.isHovered(day); - } - - return hovered; - }(), - selected: function () { - function selected(day) { - return _this.isSelected(day); - } - - return selected; - }(), - 'first-day-of-week': function () { - function firstDayOfWeek(day) { - return _this.isFirstDayOfWeek(day); - } - - return firstDayOfWeek; - }(), - 'last-day-of-week': function () { - function lastDayOfWeek(day) { - return _this.isLastDayOfWeek(day); - } - - return lastDayOfWeek; - }() - }; - - var _this$getStateForNewM = _this.getStateForNewMonth(props), - currentMonth = _this$getStateForNewM.currentMonth, - visibleDays = _this$getStateForNewM.visibleDays; - - _this.state = { - hoverDate: null, - currentMonth: currentMonth, - visibleDays: visibleDays - }; - - _this.onDayMouseEnter = _this.onDayMouseEnter.bind(_this); - _this.onDayMouseLeave = _this.onDayMouseLeave.bind(_this); - _this.onDayClick = _this.onDayClick.bind(_this); - - _this.onPrevMonthClick = _this.onPrevMonthClick.bind(_this); - _this.onNextMonthClick = _this.onNextMonthClick.bind(_this); - _this.onMonthChange = _this.onMonthChange.bind(_this); - _this.onYearChange = _this.onYearChange.bind(_this); - - _this.getFirstFocusableDay = _this.getFirstFocusableDay.bind(_this); - return _this; - } - - _createClass(DayPickerSingleDateController, [{ - key: 'componentDidMount', - value: function () { - function componentDidMount() { - this.isTouchDevice = (0, _isTouchDevice2['default'])(); - } - - return componentDidMount; - }() - }, { - key: 'componentWillReceiveProps', - value: function () { - function componentWillReceiveProps(nextProps) { - var _this2 = this; - - var date = nextProps.date, - focused = nextProps.focused, - isOutsideRange = nextProps.isOutsideRange, - isDayBlocked = nextProps.isDayBlocked, - isDayHighlighted = nextProps.isDayHighlighted, - initialVisibleMonth = nextProps.initialVisibleMonth, - numberOfMonths = nextProps.numberOfMonths, - enableOutsideDays = nextProps.enableOutsideDays; - var _props = this.props, - prevIsOutsideRange = _props.isOutsideRange, - prevIsDayBlocked = _props.isDayBlocked, - prevIsDayHighlighted = _props.isDayHighlighted, - prevNumberOfMonths = _props.numberOfMonths, - prevEnableOutsideDays = _props.enableOutsideDays, - prevInitialVisibleMonth = _props.initialVisibleMonth, - prevFocused = _props.focused, - prevDate = _props.date; - var visibleDays = this.state.visibleDays; - - - var recomputeOutsideRange = false; - var recomputeDayBlocked = false; - var recomputeDayHighlighted = false; - - if (isOutsideRange !== prevIsOutsideRange) { - this.modifiers['blocked-out-of-range'] = function (day) { - return isOutsideRange(day); - }; - recomputeOutsideRange = true; - } - - if (isDayBlocked !== prevIsDayBlocked) { - this.modifiers['blocked-calendar'] = function (day) { - return isDayBlocked(day); - }; - recomputeDayBlocked = true; - } - - if (isDayHighlighted !== prevIsDayHighlighted) { - this.modifiers['highlighted-calendar'] = function (day) { - return isDayHighlighted(day); - }; - recomputeDayHighlighted = true; - } - - var recomputePropModifiers = recomputeOutsideRange || recomputeDayBlocked || recomputeDayHighlighted; - - if (numberOfMonths !== prevNumberOfMonths || enableOutsideDays !== prevEnableOutsideDays || initialVisibleMonth !== prevInitialVisibleMonth && !prevFocused && focused) { - var newMonthState = this.getStateForNewMonth(nextProps); - var currentMonth = newMonthState.currentMonth; - visibleDays = newMonthState.visibleDays; - - this.setState({ - currentMonth: currentMonth, - visibleDays: visibleDays - }); - } - - var didDateChange = date !== prevDate; - var didFocusChange = focused !== prevFocused; - - var modifiers = {}; - - if (didDateChange) { - modifiers = this.deleteModifier(modifiers, prevDate, 'selected'); - modifiers = this.addModifier(modifiers, date, 'selected'); - } - - if (didFocusChange || recomputePropModifiers) { - (0, _object4['default'])(visibleDays).forEach(function (days) { - Object.keys(days).forEach(function (day) { - var momentObj = (0, _moment2['default'])(day); - if (_this2.isBlocked(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'blocked'); - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked'); - } - - if (didFocusChange || recomputeOutsideRange) { - if (isOutsideRange(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-out-of-range'); - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-out-of-range'); - } - } - - if (didFocusChange || recomputeDayBlocked) { - if (isDayBlocked(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-calendar'); - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-calendar'); - } - } - - if (didFocusChange || recomputeDayHighlighted) { - if (isDayHighlighted(momentObj)) { - modifiers = _this2.addModifier(modifiers, momentObj, 'highlighted-calendar'); - } else { - modifiers = _this2.deleteModifier(modifiers, momentObj, 'highlighted-calendar'); - } - } - }); - }); - } - - var today = (0, _moment2['default'])(); - if (!(0, _isSameDay2['default'])(this.today, today)) { - modifiers = this.deleteModifier(modifiers, this.today, 'today'); - modifiers = this.addModifier(modifiers, today, 'today'); - this.today = today; - } - - if (Object.keys(modifiers).length > 0) { - this.setState({ - visibleDays: (0, _object2['default'])({}, visibleDays, modifiers) - }); - } - } - - return componentWillReceiveProps; - }() - }, { - key: 'componentWillUpdate', - value: function () { - function componentWillUpdate() { - this.today = (0, _moment2['default'])(); - } - - return componentWillUpdate; - }() - }, { - key: 'onDayClick', - value: function () { - function onDayClick(day, e) { - if (e) e.preventDefault(); - if (this.isBlocked(day)) return; - var _props2 = this.props, - onDateChange = _props2.onDateChange, - keepOpenOnDateSelect = _props2.keepOpenOnDateSelect, - onFocusChange = _props2.onFocusChange, - onClose = _props2.onClose; - - - onDateChange(day); - if (!keepOpenOnDateSelect) { - onFocusChange({ focused: false }); - onClose({ date: day }); - } - } - - return onDayClick; - }() - }, { - key: 'onDayMouseEnter', - value: function () { - function onDayMouseEnter(day) { - if (this.isTouchDevice) return; - var _state = this.state, - hoverDate = _state.hoverDate, - visibleDays = _state.visibleDays; - - - var modifiers = this.deleteModifier({}, hoverDate, 'hovered'); - modifiers = this.addModifier(modifiers, day, 'hovered'); - - this.setState({ - hoverDate: day, - visibleDays: (0, _object2['default'])({}, visibleDays, modifiers) - }); - } - - return onDayMouseEnter; - }() - }, { - key: 'onDayMouseLeave', - value: function () { - function onDayMouseLeave() { - var _state2 = this.state, - hoverDate = _state2.hoverDate, - visibleDays = _state2.visibleDays; - - if (this.isTouchDevice || !hoverDate) return; - - var modifiers = this.deleteModifier({}, hoverDate, 'hovered'); - - this.setState({ - hoverDate: null, - visibleDays: (0, _object2['default'])({}, visibleDays, modifiers) - }); - } - - return onDayMouseLeave; - }() - }, { - key: 'onPrevMonthClick', - value: function () { - function onPrevMonthClick() { - var _props3 = this.props, - onPrevMonthClick = _props3.onPrevMonthClick, - numberOfMonths = _props3.numberOfMonths, - enableOutsideDays = _props3.enableOutsideDays; - var _state3 = this.state, - currentMonth = _state3.currentMonth, - visibleDays = _state3.visibleDays; - - - var newVisibleDays = {}; - Object.keys(visibleDays).sort().slice(0, numberOfMonths + 1).forEach(function (month) { - newVisibleDays[month] = visibleDays[month]; - }); - - var prevMonth = currentMonth.clone().subtract(1, 'month'); - var prevMonthVisibleDays = (0, _getVisibleDays2['default'])(prevMonth, 1, enableOutsideDays); - - this.setState({ - currentMonth: prevMonth, - visibleDays: (0, _object2['default'])({}, newVisibleDays, this.getModifiers(prevMonthVisibleDays)) - }, function () { - onPrevMonthClick(prevMonth.clone()); - }); - } - - return onPrevMonthClick; - }() - }, { - key: 'onNextMonthClick', - value: function () { - function onNextMonthClick() { - var _props4 = this.props, - onNextMonthClick = _props4.onNextMonthClick, - numberOfMonths = _props4.numberOfMonths, - enableOutsideDays = _props4.enableOutsideDays; - var _state4 = this.state, - currentMonth = _state4.currentMonth, - visibleDays = _state4.visibleDays; - - - var newVisibleDays = {}; - Object.keys(visibleDays).sort().slice(1).forEach(function (month) { - newVisibleDays[month] = visibleDays[month]; - }); - - var nextMonth = currentMonth.clone().add(numberOfMonths, 'month'); - var nextMonthVisibleDays = (0, _getVisibleDays2['default'])(nextMonth, 1, enableOutsideDays); - - var newCurrentMonth = currentMonth.clone().add(1, 'month'); - this.setState({ - currentMonth: newCurrentMonth, - visibleDays: (0, _object2['default'])({}, newVisibleDays, this.getModifiers(nextMonthVisibleDays)) - }, function () { - onNextMonthClick(newCurrentMonth.clone()); - }); - } - - return onNextMonthClick; - }() - }, { - key: 'onMonthChange', - value: function () { - function onMonthChange(newMonth) { - var _props5 = this.props, - numberOfMonths = _props5.numberOfMonths, - enableOutsideDays = _props5.enableOutsideDays, - orientation = _props5.orientation; - - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var newVisibleDays = (0, _getVisibleDays2['default'])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths); - - this.setState({ - currentMonth: newMonth.clone(), - visibleDays: this.getModifiers(newVisibleDays) - }); - } - - return onMonthChange; - }() - }, { - key: 'onYearChange', - value: function () { - function onYearChange(newMonth) { - var _props6 = this.props, - numberOfMonths = _props6.numberOfMonths, - enableOutsideDays = _props6.enableOutsideDays, - orientation = _props6.orientation; - - var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE; - var newVisibleDays = (0, _getVisibleDays2['default'])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths); - - this.setState({ - currentMonth: newMonth.clone(), - visibleDays: this.getModifiers(newVisibleDays) - }); - } - - return onYearChange; - }() - }, { - key: 'getFirstFocusableDay', - value: function () { - function getFirstFocusableDay(newMonth) { - var _this3 = this; - - var _props7 = this.props, - date = _props7.date, - numberOfMonths = _props7.numberOfMonths; - - - var focusedDate = newMonth.clone().startOf('month'); - if (date) { - focusedDate = date.clone(); - } - - if (this.isBlocked(focusedDate)) { - var days = []; - var lastVisibleDay = newMonth.clone().add(numberOfMonths - 1, 'months').endOf('month'); - var currentDay = focusedDate.clone(); - while (!(0, _isAfterDay2['default'])(currentDay, lastVisibleDay)) { - currentDay = currentDay.clone().add(1, 'day'); - days.push(currentDay); - } - - var viableDays = days.filter(function (day) { - return !_this3.isBlocked(day) && (0, _isAfterDay2['default'])(day, focusedDate); - }); - if (viableDays.length > 0) { - var _viableDays = _slicedToArray(viableDays, 1); - - focusedDate = _viableDays[0]; - } - } - - return focusedDate; - } - - return getFirstFocusableDay; - }() - }, { - key: 'getModifiers', - value: function () { - function getModifiers(visibleDays) { - var _this4 = this; - - var modifiers = {}; - Object.keys(visibleDays).forEach(function (month) { - modifiers[month] = {}; - visibleDays[month].forEach(function (day) { - modifiers[month][(0, _toISODateString2['default'])(day)] = _this4.getModifiersForDay(day); - }); - }); - - return modifiers; - } - - return getModifiers; - }() - }, { - key: 'getModifiersForDay', - value: function () { - function getModifiersForDay(day) { - var _this5 = this; - - return new Set(Object.keys(this.modifiers).filter(function (modifier) { - return _this5.modifiers[modifier](day); - })); - } - - return getModifiersForDay; - }() - }, { - key: 'getStateForNewMonth', - value: function () { - function getStateForNewMonth(nextProps) { - var _this6 = this; - - var initialVisibleMonth = nextProps.initialVisibleMonth, - date = nextProps.date, - numberOfMonths = nextProps.numberOfMonths, - enableOutsideDays = nextProps.enableOutsideDays; - - var initialVisibleMonthThunk = initialVisibleMonth || (date ? function () { - return date; - } : function () { - return _this6.today; - }); - var currentMonth = initialVisibleMonthThunk(); - var visibleDays = this.getModifiers((0, _getVisibleDays2['default'])(currentMonth, numberOfMonths, enableOutsideDays)); - return { currentMonth: currentMonth, visibleDays: visibleDays }; - } - - return getStateForNewMonth; - }() - }, { - key: 'addModifier', - value: function () { - function addModifier(updatedDays, day, modifier) { - var _props8 = this.props, - numberOfVisibleMonths = _props8.numberOfMonths, - enableOutsideDays = _props8.enableOutsideDays, - orientation = _props8.orientation; - var _state5 = this.state, - firstVisibleMonth = _state5.currentMonth, - visibleDays = _state5.visibleDays; - - - var currentMonth = firstVisibleMonth; - var numberOfMonths = numberOfVisibleMonths; - if (orientation === _constants.VERTICAL_SCROLLABLE) { - numberOfMonths = Object.keys(visibleDays).length; - } else { - currentMonth = currentMonth.clone().subtract(1, 'month'); - numberOfMonths += 2; - } - if (!day || !(0, _isDayVisible2['default'])(day, currentMonth, numberOfMonths, enableOutsideDays)) { - return updatedDays; - } - - var iso = (0, _toISODateString2['default'])(day); - - var updatedDaysAfterAddition = (0, _object2['default'])({}, updatedDays); - if (enableOutsideDays) { - var monthsToUpdate = Object.keys(visibleDays).filter(function (monthKey) { - return Object.keys(visibleDays[monthKey]).indexOf(iso) > -1; - }); - - updatedDaysAfterAddition = monthsToUpdate.reduce(function (days, monthIso) { - var month = updatedDays[monthIso] || visibleDays[monthIso]; - var modifiers = new Set(month[iso]); - modifiers.add(modifier); - return (0, _object2['default'])({}, days, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - }, updatedDaysAfterAddition); - } else { - var monthIso = (0, _toISOMonthString2['default'])(day); - var month = updatedDays[monthIso] || visibleDays[monthIso]; - - var modifiers = new Set(month[iso]); - modifiers.add(modifier); - updatedDaysAfterAddition = (0, _object2['default'])({}, updatedDaysAfterAddition, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - } - - return updatedDaysAfterAddition; - } - - return addModifier; - }() - }, { - key: 'deleteModifier', - value: function () { - function deleteModifier(updatedDays, day, modifier) { - var _props9 = this.props, - numberOfVisibleMonths = _props9.numberOfMonths, - enableOutsideDays = _props9.enableOutsideDays, - orientation = _props9.orientation; - var _state6 = this.state, - firstVisibleMonth = _state6.currentMonth, - visibleDays = _state6.visibleDays; - - - var currentMonth = firstVisibleMonth; - var numberOfMonths = numberOfVisibleMonths; - if (orientation === _constants.VERTICAL_SCROLLABLE) { - numberOfMonths = Object.keys(visibleDays).length; - } else { - currentMonth = currentMonth.clone().subtract(1, 'month'); - numberOfMonths += 2; - } - if (!day || !(0, _isDayVisible2['default'])(day, currentMonth, numberOfMonths, enableOutsideDays)) { - return updatedDays; - } - - var iso = (0, _toISODateString2['default'])(day); - - var updatedDaysAfterDeletion = (0, _object2['default'])({}, updatedDays); - if (enableOutsideDays) { - var monthsToUpdate = Object.keys(visibleDays).filter(function (monthKey) { - return Object.keys(visibleDays[monthKey]).indexOf(iso) > -1; - }); - - updatedDaysAfterDeletion = monthsToUpdate.reduce(function (days, monthIso) { - var month = updatedDays[monthIso] || visibleDays[monthIso]; - var modifiers = new Set(month[iso]); - modifiers['delete'](modifier); - return (0, _object2['default'])({}, days, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - }, updatedDaysAfterDeletion); - } else { - var monthIso = (0, _toISOMonthString2['default'])(day); - var month = updatedDays[monthIso] || visibleDays[monthIso]; - - var modifiers = new Set(month[iso]); - modifiers['delete'](modifier); - updatedDaysAfterDeletion = (0, _object2['default'])({}, updatedDaysAfterDeletion, _defineProperty({}, monthIso, (0, _object2['default'])({}, month, _defineProperty({}, iso, modifiers)))); - } - - return updatedDaysAfterDeletion; - } - - return deleteModifier; - }() - }, { - key: 'isBlocked', - value: function () { - function isBlocked(day) { - var _props10 = this.props, - isDayBlocked = _props10.isDayBlocked, - isOutsideRange = _props10.isOutsideRange; - - return isDayBlocked(day) || isOutsideRange(day); - } - - return isBlocked; - }() - }, { - key: 'isHovered', - value: function () { - function isHovered(day) { - var _ref = this.state || {}, - hoverDate = _ref.hoverDate; - - return (0, _isSameDay2['default'])(day, hoverDate); - } - - return isHovered; - }() - }, { - key: 'isSelected', - value: function () { - function isSelected(day) { - var date = this.props.date; - - return (0, _isSameDay2['default'])(day, date); - } - - return isSelected; - }() - }, { - key: 'isToday', - value: function () { - function isToday(day) { - return (0, _isSameDay2['default'])(day, this.today); - } - - return isToday; - }() - }, { - key: 'isFirstDayOfWeek', - value: function () { - function isFirstDayOfWeek(day) { - var firstDayOfWeek = this.props.firstDayOfWeek; - - return day.day() === (firstDayOfWeek || _moment2['default'].localeData().firstDayOfWeek()); - } - - return isFirstDayOfWeek; - }() - }, { - key: 'isLastDayOfWeek', - value: function () { - function isLastDayOfWeek(day) { - var firstDayOfWeek = this.props.firstDayOfWeek; - - return day.day() === ((firstDayOfWeek || _moment2['default'].localeData().firstDayOfWeek()) + 6) % 7; - } - - return isLastDayOfWeek; - }() - }, { - key: 'render', - value: function () { - function render() { - var _props11 = this.props, - numberOfMonths = _props11.numberOfMonths, - orientation = _props11.orientation, - monthFormat = _props11.monthFormat, - renderMonthText = _props11.renderMonthText, - navPrev = _props11.navPrev, - navNext = _props11.navNext, - onOutsideClick = _props11.onOutsideClick, - withPortal = _props11.withPortal, - focused = _props11.focused, - enableOutsideDays = _props11.enableOutsideDays, - hideKeyboardShortcutsPanel = _props11.hideKeyboardShortcutsPanel, - daySize = _props11.daySize, - firstDayOfWeek = _props11.firstDayOfWeek, - renderCalendarDay = _props11.renderCalendarDay, - renderDayContents = _props11.renderDayContents, - renderCalendarInfo = _props11.renderCalendarInfo, - renderMonthElement = _props11.renderMonthElement, - calendarInfoPosition = _props11.calendarInfoPosition, - isFocused = _props11.isFocused, - isRTL = _props11.isRTL, - phrases = _props11.phrases, - dayAriaLabelFormat = _props11.dayAriaLabelFormat, - onBlur = _props11.onBlur, - showKeyboardShortcuts = _props11.showKeyboardShortcuts, - weekDayFormat = _props11.weekDayFormat, - verticalHeight = _props11.verticalHeight, - noBorder = _props11.noBorder, - transitionDuration = _props11.transitionDuration, - verticalBorderSpacing = _props11.verticalBorderSpacing, - horizontalMonthPadding = _props11.horizontalMonthPadding; - var _state7 = this.state, - currentMonth = _state7.currentMonth, - visibleDays = _state7.visibleDays; - - - return _react2['default'].createElement(_DayPicker2['default'], { - orientation: orientation, - enableOutsideDays: enableOutsideDays, - modifiers: visibleDays, - numberOfMonths: numberOfMonths, - onDayClick: this.onDayClick, - onDayMouseEnter: this.onDayMouseEnter, - onDayMouseLeave: this.onDayMouseLeave, - onPrevMonthClick: this.onPrevMonthClick, - onNextMonthClick: this.onNextMonthClick, - onMonthChange: this.onMonthChange, - onYearChange: this.onYearChange, - monthFormat: monthFormat, - withPortal: withPortal, - hidden: !focused, - hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel, - initialVisibleMonth: function () { - function initialVisibleMonth() { - return currentMonth; - } - - return initialVisibleMonth; - }(), - firstDayOfWeek: firstDayOfWeek, - onOutsideClick: onOutsideClick, - navPrev: navPrev, - navNext: navNext, - renderMonthText: renderMonthText, - renderCalendarDay: renderCalendarDay, - renderDayContents: renderDayContents, - renderCalendarInfo: renderCalendarInfo, - renderMonthElement: renderMonthElement, - calendarInfoPosition: calendarInfoPosition, - isFocused: isFocused, - getFirstFocusableDay: this.getFirstFocusableDay, - onBlur: onBlur, - phrases: phrases, - daySize: daySize, - isRTL: isRTL, - showKeyboardShortcuts: showKeyboardShortcuts, - weekDayFormat: weekDayFormat, - dayAriaLabelFormat: dayAriaLabelFormat, - verticalHeight: verticalHeight, - noBorder: noBorder, - transitionDuration: transitionDuration, - verticalBorderSpacing: verticalBorderSpacing, - horizontalMonthPadding: horizontalMonthPadding - }); - } - - return render; - }() - }]); - - return DayPickerSingleDateController; -}(_react2['default'].Component); - -exports['default'] = DayPickerSingleDateController; - - -DayPickerSingleDateController.propTypes = propTypes; -DayPickerSingleDateController.defaultProps = defaultProps; - -/***/ }), -/* 250 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactMomentProptypes = __webpack_require__(81); - -var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _IconPositionShape = __webpack_require__(122); - -var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); - -var _OrientationShape = __webpack_require__(232); - -var _OrientationShape2 = _interopRequireDefault(_OrientationShape); - -var _AnchorDirectionShape = __webpack_require__(233); - -var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); - -var _OpenDirectionShape = __webpack_require__(104); - -var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); - -var _DayOfWeekShape = __webpack_require__(94); - -var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); - -var _CalendarInfoPositionShape = __webpack_require__(123); - -var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -exports['default'] = { - // required props for a functional interactive SingleDatePicker - date: _reactMomentProptypes2['default'].momentObj, - onDateChange: _propTypes2['default'].func.isRequired, - - focused: _propTypes2['default'].bool, - onFocusChange: _propTypes2['default'].func.isRequired, - - // input related props - id: _propTypes2['default'].string.isRequired, - placeholder: _propTypes2['default'].string, - disabled: _propTypes2['default'].bool, - required: _propTypes2['default'].bool, - readOnly: _propTypes2['default'].bool, - screenReaderInputMessage: _propTypes2['default'].string, - showClearDate: _propTypes2['default'].bool, - customCloseIcon: _propTypes2['default'].node, - showDefaultInputIcon: _propTypes2['default'].bool, - inputIconPosition: _IconPositionShape2['default'], - customInputIcon: _propTypes2['default'].node, - noBorder: _propTypes2['default'].bool, - block: _propTypes2['default'].bool, - small: _propTypes2['default'].bool, - regular: _propTypes2['default'].bool, - verticalSpacing: _airbnbPropTypes.nonNegativeInteger, - keepFocusOnInput: _propTypes2['default'].bool, - - // calendar presentation and interaction related props - renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes2['default'].func, 'renderMonthText', 'renderMonthElement'), - orientation: _OrientationShape2['default'], - anchorDirection: _AnchorDirectionShape2['default'], - openDirection: _OpenDirectionShape2['default'], - horizontalMargin: _propTypes2['default'].number, - withPortal: _propTypes2['default'].bool, - withFullScreenPortal: _propTypes2['default'].bool, - appendToBody: _propTypes2['default'].bool, - disableScroll: _propTypes2['default'].bool, - initialVisibleMonth: _propTypes2['default'].func, - firstDayOfWeek: _DayOfWeekShape2['default'], - numberOfMonths: _propTypes2['default'].number, - keepOpenOnDateSelect: _propTypes2['default'].bool, - reopenPickerOnClearDate: _propTypes2['default'].bool, - renderCalendarInfo: _propTypes2['default'].func, - calendarInfoPosition: _CalendarInfoPositionShape2['default'], - hideKeyboardShortcutsPanel: _propTypes2['default'].bool, - daySize: _airbnbPropTypes.nonNegativeInteger, - isRTL: _propTypes2['default'].bool, - verticalHeight: _airbnbPropTypes.nonNegativeInteger, - transitionDuration: _airbnbPropTypes.nonNegativeInteger, - horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger, - - // navigation related props - navPrev: _propTypes2['default'].node, - navNext: _propTypes2['default'].node, - - onPrevMonthClick: _propTypes2['default'].func, - onNextMonthClick: _propTypes2['default'].func, - onClose: _propTypes2['default'].func, - - // day presentation and interaction related props - renderCalendarDay: _propTypes2['default'].func, - renderDayContents: _propTypes2['default'].func, - enableOutsideDays: _propTypes2['default'].bool, - isDayBlocked: _propTypes2['default'].func, - isOutsideRange: _propTypes2['default'].func, - isDayHighlighted: _propTypes2['default'].func, - - // internationalization props - displayFormat: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func]), - monthFormat: _propTypes2['default'].string, - weekDayFormat: _propTypes2['default'].string, - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.SingleDatePickerPhrases)), - dayAriaLabelFormat: _propTypes2['default'].string -}; - -/***/ }), +/* 245 */, +/* 246 */, +/* 247 */, +/* 248 */, +/* 249 */, +/* 250 */, /* 251 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _object = __webpack_require__(57); - -var _object2 = _interopRequireDefault(_object); - -var _react = __webpack_require__(21); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(26); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _airbnbPropTypes = __webpack_require__(53); - -var _reactWithStyles = __webpack_require__(65); - -var _defaultPhrases = __webpack_require__(59); - -var _getPhrasePropTypes = __webpack_require__(61); - -var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); - -var _DateInput = __webpack_require__(239); - -var _DateInput2 = _interopRequireDefault(_DateInput); - -var _IconPositionShape = __webpack_require__(122); - -var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); - -var _CloseButton = __webpack_require__(126); - -var _CloseButton2 = _interopRequireDefault(_CloseButton); - -var _CalendarIcon = __webpack_require__(245); - -var _CalendarIcon2 = _interopRequireDefault(_CalendarIcon); - -var _OpenDirectionShape = __webpack_require__(104); - -var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); - -var _constants = __webpack_require__(47); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - -var propTypes = (0, _airbnbPropTypes.forbidExtraProps)((0, _object2['default'])({}, _reactWithStyles.withStylesPropTypes, { - id: _propTypes2['default'].string.isRequired, - placeholder: _propTypes2['default'].string, // also used as label - displayValue: _propTypes2['default'].string, - screenReaderMessage: _propTypes2['default'].string, - focused: _propTypes2['default'].bool, - isFocused: _propTypes2['default'].bool, // describes actual DOM focus - disabled: _propTypes2['default'].bool, - required: _propTypes2['default'].bool, - readOnly: _propTypes2['default'].bool, - openDirection: _OpenDirectionShape2['default'], - showCaret: _propTypes2['default'].bool, - showClearDate: _propTypes2['default'].bool, - customCloseIcon: _propTypes2['default'].node, - showDefaultInputIcon: _propTypes2['default'].bool, - inputIconPosition: _IconPositionShape2['default'], - customInputIcon: _propTypes2['default'].node, - isRTL: _propTypes2['default'].bool, - noBorder: _propTypes2['default'].bool, - block: _propTypes2['default'].bool, - small: _propTypes2['default'].bool, - regular: _propTypes2['default'].bool, - verticalSpacing: _airbnbPropTypes.nonNegativeInteger, - - onChange: _propTypes2['default'].func, - onClearDate: _propTypes2['default'].func, - onFocus: _propTypes2['default'].func, - onKeyDownShiftTab: _propTypes2['default'].func, - onKeyDownTab: _propTypes2['default'].func, - onKeyDownArrowDown: _propTypes2['default'].func, - onKeyDownQuestionMark: _propTypes2['default'].func, - - // i18n - phrases: _propTypes2['default'].shape((0, _getPhrasePropTypes2['default'])(_defaultPhrases.SingleDatePickerInputPhrases)) -})); - -var defaultProps = { - placeholder: 'Select Date', - displayValue: '', - screenReaderMessage: '', - focused: false, - isFocused: false, - disabled: false, - required: false, - readOnly: false, - openDirection: _constants.OPEN_DOWN, - showCaret: false, - showClearDate: false, - showDefaultInputIcon: false, - inputIconPosition: _constants.ICON_BEFORE_POSITION, - customCloseIcon: null, - customInputIcon: null, - isRTL: false, - noBorder: false, - block: false, - small: false, - regular: false, - verticalSpacing: undefined, - - onChange: function () { - function onChange() {} - - return onChange; - }(), - onClearDate: function () { - function onClearDate() {} - - return onClearDate; - }(), - onFocus: function () { - function onFocus() {} - - return onFocus; - }(), - onKeyDownShiftTab: function () { - function onKeyDownShiftTab() {} - - return onKeyDownShiftTab; - }(), - onKeyDownTab: function () { - function onKeyDownTab() {} - - return onKeyDownTab; - }(), - onKeyDownArrowDown: function () { - function onKeyDownArrowDown() {} - - return onKeyDownArrowDown; - }(), - onKeyDownQuestionMark: function () { - function onKeyDownQuestionMark() {} - - return onKeyDownQuestionMark; - }(), - - - // i18n - phrases: _defaultPhrases.SingleDatePickerInputPhrases -}; - -/* eslint react/no-this-in-sfc: 1 */ - -function SingleDatePickerInput(_ref) { - var id = _ref.id, - placeholder = _ref.placeholder, - displayValue = _ref.displayValue, - focused = _ref.focused, - isFocused = _ref.isFocused, - disabled = _ref.disabled, - required = _ref.required, - readOnly = _ref.readOnly, - showCaret = _ref.showCaret, - showClearDate = _ref.showClearDate, - showDefaultInputIcon = _ref.showDefaultInputIcon, - inputIconPosition = _ref.inputIconPosition, - phrases = _ref.phrases, - onClearDate = _ref.onClearDate, - onChange = _ref.onChange, - onFocus = _ref.onFocus, - onKeyDownShiftTab = _ref.onKeyDownShiftTab, - onKeyDownTab = _ref.onKeyDownTab, - onKeyDownArrowDown = _ref.onKeyDownArrowDown, - onKeyDownQuestionMark = _ref.onKeyDownQuestionMark, - screenReaderMessage = _ref.screenReaderMessage, - customCloseIcon = _ref.customCloseIcon, - customInputIcon = _ref.customInputIcon, - openDirection = _ref.openDirection, - isRTL = _ref.isRTL, - noBorder = _ref.noBorder, - block = _ref.block, - small = _ref.small, - regular = _ref.regular, - verticalSpacing = _ref.verticalSpacing, - styles = _ref.styles; - - var calendarIcon = customInputIcon || _react2['default'].createElement(_CalendarIcon2['default'], (0, _reactWithStyles.css)(styles.SingleDatePickerInput_calendarIcon_svg)); - var closeIcon = customCloseIcon || _react2['default'].createElement(_CloseButton2['default'], (0, _reactWithStyles.css)(styles.SingleDatePickerInput_clearDate_svg, small && styles.SingleDatePickerInput_clearDate_svg__small)); - - var screenReaderText = screenReaderMessage || phrases.keyboardNavigationInstructions; - var inputIcon = (showDefaultInputIcon || customInputIcon !== null) && _react2['default'].createElement( - 'button', - _extends({}, (0, _reactWithStyles.css)(styles.SingleDatePickerInput_calendarIcon), { - type: 'button', - disabled: disabled, - 'aria-label': phrases.focusStartDate, - onClick: onFocus - }), - calendarIcon - ); - - return _react2['default'].createElement( - 'div', - (0, _reactWithStyles.css)(styles.SingleDatePickerInput, disabled && styles.SingleDatePickerInput__disabled, isRTL && styles.SingleDatePickerInput__rtl, !noBorder && styles.SingleDatePickerInput__withBorder, block && styles.SingleDatePickerInput__block, showClearDate && styles.SingleDatePickerInput__showClearDate), - inputIconPosition === _constants.ICON_BEFORE_POSITION && inputIcon, - _react2['default'].createElement(_DateInput2['default'], { - id: id, - placeholder: placeholder // also used as label - , displayValue: displayValue, - screenReaderMessage: screenReaderText, - focused: focused, - isFocused: isFocused, - disabled: disabled, - required: required, - readOnly: readOnly, - showCaret: showCaret, - onChange: onChange, - onFocus: onFocus, - onKeyDownShiftTab: onKeyDownShiftTab, - onKeyDownTab: onKeyDownTab, - onKeyDownArrowDown: onKeyDownArrowDown, - onKeyDownQuestionMark: onKeyDownQuestionMark, - openDirection: openDirection, - verticalSpacing: verticalSpacing, - small: small, - regular: regular, - block: block - }), - showClearDate && _react2['default'].createElement( - 'button', - _extends({}, (0, _reactWithStyles.css)(styles.SingleDatePickerInput_clearDate, small && styles.SingleDatePickerInput_clearDate__small, !customCloseIcon && styles.SingleDatePickerInput_clearDate__default, !displayValue && styles.SingleDatePickerInput_clearDate__hide), { - type: 'button', - 'aria-label': phrases.clearDate, - disabled: disabled, - onMouseEnter: this && this.onClearDateMouseEnter, - onMouseLeave: this && this.onClearDateMouseLeave, - onClick: onClearDate - }), - closeIcon - ), - inputIconPosition === _constants.ICON_AFTER_POSITION && inputIcon - ); -} - -SingleDatePickerInput.propTypes = propTypes; -SingleDatePickerInput.defaultProps = defaultProps; - -exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { - var _ref2$reactDates = _ref2.reactDates, - border = _ref2$reactDates.border, - color = _ref2$reactDates.color; - return { - SingleDatePickerInput: { - display: 'inline-block', - backgroundColor: color.background - }, - - SingleDatePickerInput__withBorder: { - borderColor: color.border, - borderWidth: border.pickerInput.borderWidth, - borderStyle: border.pickerInput.borderStyle, - borderRadius: border.pickerInput.borderRadius - }, - - SingleDatePickerInput__rtl: { - direction: 'rtl' - }, - - SingleDatePickerInput__disabled: { - backgroundColor: color.disabled - }, - - SingleDatePickerInput__block: { - display: 'block' - }, - - SingleDatePickerInput__showClearDate: { - paddingRight: 30 - }, - - SingleDatePickerInput_clearDate: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - - cursor: 'pointer', - padding: 10, - margin: '0 10px 0 5px', - position: 'absolute', - right: 0, - top: '50%', - transform: 'translateY(-50%)' - }, - - SingleDatePickerInput_clearDate__default: { - ':focus': { - background: color.core.border, - borderRadius: '50%' - }, - - ':hover': { - background: color.core.border, - borderRadius: '50%' - } - }, - - SingleDatePickerInput_clearDate__small: { - padding: 6 - }, - - SingleDatePickerInput_clearDate__hide: { - visibility: 'hidden' - }, - - SingleDatePickerInput_clearDate_svg: { - fill: color.core.grayLight, - height: 12, - width: 15, - verticalAlign: 'middle' - }, - - SingleDatePickerInput_clearDate_svg__small: { - height: 9 - }, - - SingleDatePickerInput_calendarIcon: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - - cursor: 'pointer', - display: 'inline-block', - verticalAlign: 'middle', - padding: 10, - margin: '0 5px 0 10px' - }, - - SingleDatePickerInput_calendarIcon_svg: { - fill: color.core.grayLight, - height: 15, - width: 14, - verticalAlign: 'middle' - } - }; -})(SingleDatePickerInput); - -/***/ }), -/* 252 */, -/* 253 */, -/* 254 */, -/* 255 */, -/* 256 */, -/* 257 */, -/* 258 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external {"this":["wp","primitives"]} -var external_this_wp_primitives_ = __webpack_require__(9); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var animate = __webpack_require__(140); +var external_this_wp_primitives_ = __webpack_require__(6); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(12); +var esm_extends = __webpack_require__(8); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -var objectWithoutProperties = __webpack_require__(19); +var objectWithoutProperties = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); +// EXTERNAL MODULE: external {"this":"lodash"} +var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/classnames/index.js var classnames = __webpack_require__(11); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/reakit/es/CompositeState-3a25dcee.js +var CompositeState_3a25dcee = __webpack_require__(53); + +// EXTERNAL MODULE: ./node_modules/reakit/es/_rollupPluginBabelHelpers-1f0bf8c2.js +var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__(24); + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/createComponent.js + 1 modules +var createComponent = __webpack_require__(52); + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/createHook.js + 4 modules +var createHook = __webpack_require__(51); + +// EXTERNAL MODULE: ./node_modules/reakit/es/Box/Box.js +var Box = __webpack_require__(71); + +// EXTERNAL MODULE: external {"this":"React"} +var external_this_React_ = __webpack_require__(17); +var external_this_React_default = /*#__PURE__*/__webpack_require__.n(external_this_React_); + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/useForkRef.js +var useForkRef = __webpack_require__(67); + +// EXTERNAL MODULE: ./node_modules/reakit-warning/es/index.js + 2 modules +var es = __webpack_require__(92); + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/useLiveRef.js +var useLiveRef = __webpack_require__(54); + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/isSelfTarget.js +var isSelfTarget = __webpack_require__(59); + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/getActiveElement.js +var getActiveElement = __webpack_require__(61); + +// EXTERNAL MODULE: ./node_modules/reakit/es/Tabbable/Tabbable.js +var Tabbable = __webpack_require__(87); + +// EXTERNAL MODULE: ./node_modules/reakit-system/es/useCreateElement.js +var useCreateElement = __webpack_require__(90); + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/createOnKeyDown.js +var createOnKeyDown = __webpack_require__(93); + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/getDocument.js +var getDocument = __webpack_require__(57); + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/createEvent.js + + +/** + * Creates an `Event` in a way that also works on IE 11. + * + * @example + * import { createEvent } from "reakit-utils"; + * + * const el = document.getElementById("id"); + * el.dispatchEvent(createEvent(el, "blur", { bubbles: false })); + */ + +function createEvent(element, type, eventInit) { + var _eventInit, _eventInit2; + + if (eventInit === void 0) { + eventInit = {}; + } + + if (typeof Event === "function") { + return new Event(type, eventInit); + } // IE 11 doesn't support Event constructors + + + var event = Object(getDocument["a" /* getDocument */])(element).createEvent("Event"); + event.initEvent(type, (_eventInit = eventInit) === null || _eventInit === void 0 ? void 0 : _eventInit.bubbles, (_eventInit2 = eventInit) === null || _eventInit2 === void 0 ? void 0 : _eventInit2.cancelable); + return event; +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/fireEvent.js + + + +/** + * Creates and dispatches `Event` in a way that also works on IE 11. + * + * @example + * import { fireEvent } from "reakit-utils"; + * + * fireEvent(document.getElementById("id"), "blur", { + * bubbles: true, + * cancelable: true, + * }); + */ + +function fireEvent(element, type, eventInit) { + return element.dispatchEvent(createEvent(element, type, eventInit)); +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/getDefaultView.js + + +/** + * Returns `element.ownerDocument.defaultView || window`. + */ + +function getDefaultView(element) { + return Object(getDocument["a" /* getDocument */])(element).defaultView || window; +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/createKeyboardEvent.js + + + +/** + * Creates a `KeyboardEvent` in a way that also works on IE 11. + * + * @example + * import { createKeyboardEvent } from "reakit-utils"; + * + * const el = document.getElementById("id"); + * el.dispatchEvent(createKeyboardEvent(el, "keydown", { key: "ArrowDown" })); + */ + +function createKeyboardEvent(element, type, eventInit) { + if (eventInit === void 0) { + eventInit = {}; + } + + if (typeof KeyboardEvent === "function") { + return new KeyboardEvent(type, eventInit); + } // IE 11 doesn't support Event constructors + + + var event = Object(getDocument["a" /* getDocument */])(element).createEvent("KeyboardEvent"); + event.initKeyboardEvent(type, eventInit.bubbles, eventInit.cancelable, getDefaultView(element), eventInit.key, eventInit.location, eventInit.ctrlKey, eventInit.altKey, eventInit.shiftKey, eventInit.metaKey); + return event; +} + + + +// CONCATENATED MODULE: ./node_modules/reakit-utils/es/fireKeyboardEvent.js + + + + +/** + * Creates and dispatches `KeyboardEvent` in a way that also works on IE 11. + * + * @example + * import { fireKeyboardEvent } from "reakit-utils"; + * + * fireKeyboardEvent(document.getElementById("id"), "keydown", { + * key: "ArrowDown", + * shiftKey: true, + * }); + */ + +function fireKeyboardEvent(element, type, eventInit) { + return element.dispatchEvent(createKeyboardEvent(element, type, eventInit)); +} + + + +// CONCATENATED MODULE: ./node_modules/reakit/es/Composite/Composite.js + + + + + + + + + + + + + + + + + + + + + + + + + + + + +var isIE11 = typeof window !== "undefined" && "msCrypto" in window; +function getNextActiveElementOnBlur(event) { + // IE 11 doesn't support event.relatedTarget on blur. + // document.activeElement points the the next active element. + // On modern browsers, document.activeElement points to the current target. + if (isIE11) { + var activeElement = Object(getActiveElement["a" /* getActiveElement */])(event.target); + return activeElement; + } + + return event.relatedTarget; +} + +var validCompositeRoles = ["combobox", "grid", "tablist", "listbox", "menu", "menubar", "toolbar", "radiogroup", "tree", "treegrid"]; +var isIE11$1 = typeof window !== "undefined" && "msCrypto" in window; + +function canProxyKeyboardEvent(event) { + if (!Object(isSelfTarget["a" /* isSelfTarget */])(event)) return false; + if (event.metaKey) return false; + if (event.key === "Tab") return false; + return true; +} + +function useKeyboardEventProxy(virtual, currentItem, htmlEventHandler) { + var eventHandlerRef = Object(useLiveRef["a" /* useLiveRef */])(htmlEventHandler); + return Object(external_this_React_["useCallback"])(function (event) { + var _eventHandlerRef$curr; + + if (virtual && canProxyKeyboardEvent(event)) { + var currentElement = currentItem === null || currentItem === void 0 ? void 0 : currentItem.ref.current; + + if (currentElement) { + fireKeyboardEvent(currentElement, event.type, event); // The event will be triggered on the composite item and then + // propagated up to this composite element again, so we can pretend + // that it wasn't called on this component in the first place. + + if (event.currentTarget.contains(currentElement)) { + event.stopPropagation(); + event.preventDefault(); + return; + } + } + } + + (_eventHandlerRef$curr = eventHandlerRef.current) === null || _eventHandlerRef$curr === void 0 ? void 0 : _eventHandlerRef$curr.call(eventHandlerRef, event); + }, [virtual, currentItem]); +} // istanbul ignore next + + +function useActiveElementRef(elementRef) { + var activeElementRef = Object(external_this_React_["useRef"])(null); + Object(external_this_React_["useEffect"])(function () { + var document = Object(getDocument["a" /* getDocument */])(elementRef.current); + + var onFocus = function onFocus(event) { + var target = event.target; + activeElementRef.current = target; + }; + + document.addEventListener("focus", onFocus, true); + return function () { + document.removeEventListener("focus", onFocus, true); + }; + }, []); + return activeElementRef; +} + +function findFirstEnabledItemInTheLastRow(items) { + return Object(CompositeState_3a25dcee["a"])(Object(CompositeState_3a25dcee["b"])(Object(CompositeState_3a25dcee["f" /* r */])(Object(CompositeState_3a25dcee["c"])(items)))); +} + +function isItem(items, element) { + return items === null || items === void 0 ? void 0 : items.some(function (item) { + return !!element && item.ref.current === element; + }); +} + +var useComposite = Object(createHook["a" /* createHook */])({ + name: "Composite", + compose: [Tabbable["a" /* useTabbable */]], + useState: CompositeState_3a25dcee["g" /* u */], + useOptions: function useOptions(options) { + return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])(Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({}, options), {}, { + currentId: Object(CompositeState_3a25dcee["e" /* g */])(options) + }); + }, + useProps: function useProps(options, _ref) { + var htmlRef = _ref.ref, + htmlOnFocus = _ref.onFocus, + htmlOnBlur = _ref.onBlur, + htmlOnKeyDown = _ref.onKeyDown, + htmlOnKeyUp = _ref.onKeyUp, + htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(_ref, ["ref", "onFocus", "onBlur", "onKeyDown", "onKeyUp"]); + + var ref = Object(external_this_React_["useRef"])(null); + var currentItem = Object(CompositeState_3a25dcee["d" /* f */])(options.items, options.currentId); + var previousItem = Object(external_this_React_["useRef"])(undefined); + var onFocusRef = Object(useLiveRef["a" /* useLiveRef */])(htmlOnFocus); + var onBlurRef = Object(useLiveRef["a" /* useLiveRef */])(htmlOnBlur); // IE 11 doesn't support event.relatedTarget, so we use the active element + // ref instead. + + var activeElementRef = isIE11$1 ? useActiveElementRef(ref) : undefined; + Object(external_this_React_["useEffect"])(function () { + var element = ref.current; + + if (!element) { + false ? undefined : void 0; + return; + } + + if (options.unstable_moves && !currentItem) { + // If composite.move(null) has been called, the composite container + // will receive focus. + element.focus(); + } + }, [options.unstable_moves, currentItem]); + var onKeyDown = useKeyboardEventProxy(options.unstable_virtual, currentItem, htmlOnKeyDown); + var onKeyUp = useKeyboardEventProxy(options.unstable_virtual, currentItem, htmlOnKeyUp); + var onFocus = Object(external_this_React_["useCallback"])(function (event) { + var _onFocusRef$current2; + + if (options.unstable_virtual) { + // IE11 doesn't support event.relatedTarget, so we use the active + // element ref instead. + var previousActiveElement = (activeElementRef === null || activeElementRef === void 0 ? void 0 : activeElementRef.current) || event.relatedTarget; + var previousActiveElementWasItem = isItem(options.items, previousActiveElement); + + if (Object(isSelfTarget["a" /* isSelfTarget */])(event) && !previousActiveElementWasItem) { + var _onFocusRef$current, _currentItem$ref$curr; + + // This means that the composite element has been focused while the + // composite item has not. For example, by clicking on the + // composite element without touching any item, or by tabbing into + // the composite element. In this case, we want to trigger focus on + // the item, just like it would happen with roving tabindex. + // When it receives focus, the composite item will put focus back + // on the composite element, in which case hasItemWithFocus will be + // true. + (_onFocusRef$current = onFocusRef.current) === null || _onFocusRef$current === void 0 ? void 0 : _onFocusRef$current.call(onFocusRef, event); + currentItem === null || currentItem === void 0 ? void 0 : (_currentItem$ref$curr = currentItem.ref.current) === null || _currentItem$ref$curr === void 0 ? void 0 : _currentItem$ref$curr.focus(); + return; + } + + if (previousActiveElementWasItem) { + // Composite has been focused as a result of an item receiving + // focus. The composite item will move focus back to the composite + // container. In this case, we don't want to propagate this + // additional event nor call the onFocus handler passed to + // (htmlOnFocus). Unless users add DOM + // event handlers to the composite element directly, this will be + // like this event has never existed. + event.stopPropagation(); + return; + } + } else if (Object(isSelfTarget["a" /* isSelfTarget */])(event)) { + var _options$setCurrentId; + + // When the roving tabindex composite gets intentionally focused (for + // example, by clicking directly on it, and not on an item), we make + // sure to set the current id to null (which means the composite + // itself is focused). + (_options$setCurrentId = options.setCurrentId) === null || _options$setCurrentId === void 0 ? void 0 : _options$setCurrentId.call(options, null); + } + + (_onFocusRef$current2 = onFocusRef.current) === null || _onFocusRef$current2 === void 0 ? void 0 : _onFocusRef$current2.call(onFocusRef, event); + }, [options.unstable_virtual, options.items, currentItem, options.setCurrentId]); + var onBlur = Object(external_this_React_["useCallback"])(function (event) { + var _onBlurRef$current; + + // When virtual is set to true, we move focus from the composite + // container (this component) to the composite item that is being + // selected. Then we move focus back to the composite container. This + // is so we can provide the same API as the roving tabindex method, + // which means people can attach onFocus/onBlur handlers on the + // CompositeItem component regardless of whether it's virtual or not. + // This sequence of blurring and focusing items and composite may be + // confusing, so we ignore intermediate focus and blurs by stopping its + // propagation and not calling the passed onBlur handler (htmlOnBlur). + if (options.unstable_virtual) { + var targetIsItem = isItem(options.items, event.target); + var nextActiveElement = getNextActiveElementOnBlur(event); + var nextActiveElementIsItem = isItem(options.items, nextActiveElement); + + if (Object(isSelfTarget["a" /* isSelfTarget */])(event) && nextActiveElementIsItem) { + var _previousItem$current; + + // This is an intermediate blur event: blurring the composite + // container to focus an item (nextActiveElement). We ignore this + // event. + if ((_previousItem$current = previousItem.current) === null || _previousItem$current === void 0 ? void 0 : _previousItem$current.ref.current) { + // If there's a previous active item we fire a blur event on it + // so it will work just like if it had DOM focus before (like when + // using roving tabindex). + fireEvent(previousItem.current.ref.current, "blur", event); + } + + previousItem.current = currentItem; + event.stopPropagation(); + return; + } + + if (!targetIsItem) { + // If target is another thing (probably something outside of the + // composite container), we don't ignore the event, but we should + // reset the previousItem reference. + if (currentItem === null || currentItem === void 0 ? void 0 : currentItem.ref.current) { + fireEvent(currentItem.ref.current, "blur", event); + } + + previousItem.current = undefined; + } else { + previousItem.current = currentItem; + } + } + + (_onBlurRef$current = onBlurRef.current) === null || _onBlurRef$current === void 0 ? void 0 : _onBlurRef$current.call(onBlurRef, event); + }, [options.unstable_virtual, options.items, currentItem]); + var onMove = Object(external_this_React_["useMemo"])(function () { + return Object(createOnKeyDown["a" /* createOnKeyDown */])({ + onKeyDown: onKeyDown, + stopPropagation: true, + shouldKeyDown: function shouldKeyDown(event) { + return Object(isSelfTarget["a" /* isSelfTarget */])(event) && options.currentId === null; + }, + keyMap: function keyMap() { + var _options$groups; + + var isVertical = options.orientation !== "horizontal"; + var isHorizontal = options.orientation !== "vertical"; + var isGrid = !!((_options$groups = options.groups) === null || _options$groups === void 0 ? void 0 : _options$groups.length); + + var up = function up() { + if (isGrid) { + var item = findFirstEnabledItemInTheLastRow(options.items); + + if (item === null || item === void 0 ? void 0 : item.id) { + var _options$move; + + (_options$move = options.move) === null || _options$move === void 0 ? void 0 : _options$move.call(options, item.id); + } + } else { + var _options$last; + + (_options$last = options.last) === null || _options$last === void 0 ? void 0 : _options$last.call(options); + } + }; + + var first = options.first && function () { + return options.first(); + }; + + var last = options.last && function () { + return options.last(); + }; + + return { + ArrowUp: (isGrid || isVertical) && up, + ArrowRight: (isGrid || isHorizontal) && first, + ArrowDown: (isGrid || isVertical) && first, + ArrowLeft: (isGrid || isHorizontal) && last, + Home: first, + End: last, + PageUp: first, + PageDown: last + }; + } + }); + }, [onKeyDown, options.currentId, options.orientation, options.groups, options.items, options.move, options.last, options.first]); + return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({ + ref: Object(useForkRef["a" /* useForkRef */])(ref, htmlRef), + id: options.baseId, + onFocus: onFocus, + onBlur: onBlur, + onKeyDown: onMove, + onKeyUp: onKeyUp, + "aria-activedescendant": options.unstable_virtual ? (currentItem === null || currentItem === void 0 ? void 0 : currentItem.id) || undefined : undefined + }, htmlProps); + }, + useComposeProps: function useComposeProps(options, htmlProps) { + htmlProps = Object(Box["a" /* useBox */])(options, htmlProps, true); + var tabbableHTMLProps = Object(Tabbable["a" /* useTabbable */])(options, htmlProps, true); + + if (options.unstable_virtual || options.currentId === null) { + // Composite will only be tabbable by default if the focus is managed + // using aria-activedescendant, which requires DOM focus on the container + // element (the composite) + return tabbableHTMLProps; + } + + return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])(Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({}, htmlProps), {}, { + ref: tabbableHTMLProps.ref + }); + } +}); +var Composite = Object(createComponent["a" /* createComponent */])({ + as: "div", + useHook: useComposite, + useCreateElement: function useCreateElement$1(type, props, children) { + false ? undefined : void 0; + false ? undefined : void 0; + return Object(useCreateElement["a" /* useCreateElement */])(type, props, children); + } +}); + + + +// EXTERNAL MODULE: ./node_modules/reakit-utils/es/useIsomorphicEffect.js +var useIsomorphicEffect = __webpack_require__(60); + +// CONCATENATED MODULE: ./node_modules/reakit/es/Group/Group.js + + + + + + +var useGroup = Object(createHook["a" /* createHook */])({ + name: "Group", + compose: Box["a" /* useBox */], + useProps: function useProps(_, htmlProps) { + return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({ + role: "group" + }, htmlProps); + } +}); +var Group = Object(createComponent["a" /* createComponent */])({ + as: "div", + useHook: useGroup +}); + + + +// EXTERNAL MODULE: ./node_modules/reakit/es/Id/Id.js +var Id = __webpack_require__(102); + +// CONCATENATED MODULE: ./node_modules/reakit/es/Composite/CompositeGroup.js + + + + + + + + + + + + + + + + +var useCompositeGroup = Object(createHook["a" /* createHook */])({ + name: "CompositeGroup", + compose: [useGroup, Id["a" /* unstable_useId */]], + useState: CompositeState_3a25dcee["g" /* u */], + propsAreEqual: function propsAreEqual(prev, next) { + if (!next.id || prev.id !== next.id) { + return useGroup.unstable_propsAreEqual(prev, next); + } + + var prevCurrentId = prev.currentId, + prevMoves = prev.unstable_moves, + prevProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(prev, ["currentId", "unstable_moves"]); + + var nextCurrentId = next.currentId, + nextMoves = next.unstable_moves, + nextProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(next, ["currentId", "unstable_moves"]); + + if (prev.items && next.items) { + var prevCurrentItem = Object(CompositeState_3a25dcee["d" /* f */])(prev.items, prevCurrentId); + var nextCurrentItem = Object(CompositeState_3a25dcee["d" /* f */])(next.items, nextCurrentId); + var prevGroupId = prevCurrentItem === null || prevCurrentItem === void 0 ? void 0 : prevCurrentItem.groupId; + var nextGroupId = nextCurrentItem === null || nextCurrentItem === void 0 ? void 0 : nextCurrentItem.groupId; + + if (next.id === nextGroupId || next.id === prevGroupId) { + return false; + } + } + + return useGroup.unstable_propsAreEqual(prevProps, nextProps); + }, + useProps: function useProps(options, _ref) { + var htmlRef = _ref.ref, + htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(_ref, ["ref"]); + + var ref = Object(external_this_React_["useRef"])(null); + var id = options.id; // We need this to be called before CompositeItems' register + + Object(useIsomorphicEffect["a" /* useIsomorphicEffect */])(function () { + var _options$registerGrou; + + if (!id) return undefined; + (_options$registerGrou = options.registerGroup) === null || _options$registerGrou === void 0 ? void 0 : _options$registerGrou.call(options, { + id: id, + ref: ref + }); + return function () { + var _options$unregisterGr; + + (_options$unregisterGr = options.unregisterGroup) === null || _options$unregisterGr === void 0 ? void 0 : _options$unregisterGr.call(options, id); + }; + }, [id, options.registerGroup, options.unregisterGroup]); + return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({ + ref: Object(useForkRef["a" /* useForkRef */])(ref, htmlRef) + }, htmlProps); + } +}); +var CompositeGroup = Object(createComponent["a" /* createComponent */])({ + as: "div", + useHook: useCompositeGroup +}); + + + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/reakit/es/Composite/CompositeItem.js +var CompositeItem = __webpack_require__(124); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js +var build_module_tooltip = __webpack_require__(76); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -23452,247 +18496,39 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +/** + * External dependencies + */ + /** * Internal dependencies */ + /** * VisuallyHidden component to render text out non-visually * for use in devices such as a screen reader. + * + * @param {Object} props Component props. + * @param {string|WPComponent} [props.as="div"] A tag or component to render. + * @param {string} [props.className] Class to set on the container. */ function VisuallyHidden(_ref) { var _ref$as = _ref.as, as = _ref$as === void 0 ? 'div' : _ref$as, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["as"]); + className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["as", "className"]); return renderAsRenderProps(_objectSpread({ as: as, - className: 'components-visually-hidden' + className: classnames_default()('components-visually-hidden', className) }, props)); } /* harmony default export */ var visually_hidden = (VisuallyHidden); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js - - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - - -function BaseControl(_ref) { - var id = _ref.id, - label = _ref.label, - hideLabelFromVision = _ref.hideLabelFromVision, - help = _ref.help, - className = _ref.className, - children = _ref.children; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('components-base-control', className) - }, Object(external_this_wp_element_["createElement"])("div", { - className: "components-base-control__field" - }, label && id && (hideLabelFromVision ? Object(external_this_wp_element_["createElement"])(visually_hidden, { - as: "label", - htmlFor: id - }, label) : Object(external_this_wp_element_["createElement"])("label", { - className: "components-base-control__label", - htmlFor: id - }, label)), label && !id && (hideLabelFromVision ? Object(external_this_wp_element_["createElement"])(visually_hidden, { - as: "label" - }, label) : Object(external_this_wp_element_["createElement"])(BaseControl.VisualLabel, null, label)), children), !!help && Object(external_this_wp_element_["createElement"])("p", { - id: id + '__help', - className: "components-base-control__help" - }, help)); -} - -BaseControl.VisualLabel = function (_ref2) { - var className = _ref2.className, - children = _ref2.children; - className = classnames_default()('components-base-control__label', className); - return Object(external_this_wp_element_["createElement"])("span", { - className: className - }, children); -}; - -/* harmony default export */ var base_control = (BaseControl); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js - - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -function getAngle(centerX, centerY, pointX, pointY) { - var y = pointY - centerY; - var x = pointX - centerX; - var angleInRadians = Math.atan2(y, x); - var angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90; - - if (angleInDeg < 0) { - return 360 + angleInDeg; - } - - return angleInDeg; -} - -var angle_picker_control_AngleCircle = function AngleCircle(_ref) { - var value = _ref.value, - onChange = _ref.onChange, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["value", "onChange"]); - - var angleCircleRef = Object(external_this_wp_element_["useRef"])(); - var angleCircleCenter = Object(external_this_wp_element_["useRef"])(); - - var setAngleCircleCenter = function setAngleCircleCenter() { - var rect = angleCircleRef.current.getBoundingClientRect(); - angleCircleCenter.current = { - x: rect.x + rect.width / 2, - y: rect.y + rect.height / 2 - }; - }; - - var changeAngleToPosition = function changeAngleToPosition(event) { - var _angleCircleCenter$cu = angleCircleCenter.current, - centerX = _angleCircleCenter$cu.x, - centerY = _angleCircleCenter$cu.y; // Prevent (drag) mouse events from selecting and accidentally - // triggering actions from other elements. - - event.preventDefault(); - onChange(getAngle(centerX, centerY, event.clientX, event.clientY)); - }; - - var _useDragging = Object(external_this_wp_compose_["__experimentalUseDragging"])({ - onDragStart: function onDragStart(event) { - setAngleCircleCenter(); - changeAngleToPosition(event); - }, - onDragMove: changeAngleToPosition, - onDragEnd: changeAngleToPosition - }), - startDrag = _useDragging.startDrag, - isDragging = _useDragging.isDragging; - - return ( - /* eslint-disable jsx-a11y/no-static-element-interactions */ - Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - ref: angleCircleRef, - onMouseDown: startDrag, - className: "components-angle-picker-control__angle-circle", - style: isDragging ? { - cursor: 'grabbing' - } : undefined - }, props), Object(external_this_wp_element_["createElement"])("div", { - style: value ? { - transform: "rotate(".concat(value, "deg)") - } : undefined, - className: "components-angle-picker-control__angle-circle-indicator-wrapper" - }, Object(external_this_wp_element_["createElement"])("span", { - className: "components-angle-picker-control__angle-circle-indicator" - }))) - /* eslint-enable jsx-a11y/no-static-element-interactions */ - - ); -}; - -function AnglePickerControl(_ref2) { - var value = _ref2.value, - _onChange = _ref2.onChange, - _ref2$label = _ref2.label, - label = _ref2$label === void 0 ? Object(external_this_wp_i18n_["__"])('Angle') : _ref2$label; - var instanceId = Object(external_this_wp_compose_["useInstanceId"])(AnglePickerControl); - var inputId = "components-angle-picker-control__input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(base_control, { - label: label, - id: inputId, - className: "components-angle-picker-control" - }, Object(external_this_wp_element_["createElement"])(angle_picker_control_AngleCircle, { - value: value, - onChange: _onChange, - "aria-hidden": "true" - }), Object(external_this_wp_element_["createElement"])("input", { - className: "components-angle-picker-control__input-field", - type: "number", - id: inputId, - onChange: function onChange(event) { - var unprocessedValue = event.target.value; - var inputValue = unprocessedValue !== '' ? parseInt(event.target.value, 10) : 0; - - _onChange(inputValue); - }, - value: value, - min: 0, - max: 360, - step: "1" - })); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(16); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); - -// EXTERNAL MODULE: external {"this":"lodash"} -var external_this_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(22); - -// EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(24); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js -var build_module_button = __webpack_require__(36); - -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js + 2 modules -var popover = __webpack_require__(91); - -// EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(50); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js - - - - - - - - - +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/utils.js /** * External dependencies */ @@ -23702,654 +18538,65 @@ var external_this_wp_a11y_ = __webpack_require__(50); */ +var GRID = [['top left', 'top center', 'top right'], ['center left', 'center center', 'center right'], ['bottom left', 'bottom center', 'bottom right']]; // Stored as map as i18n __() only accepts strings (not variables) +var ALIGNMENT_LABEL = { + 'top left': Object(external_this_wp_i18n_["__"])('Top Left'), + 'top center': Object(external_this_wp_i18n_["__"])('Top Center'), + 'top right': Object(external_this_wp_i18n_["__"])('Top Right'), + 'center left': Object(external_this_wp_i18n_["__"])('Center Left'), + 'center center': Object(external_this_wp_i18n_["__"])('Center Center'), + 'center right': Object(external_this_wp_i18n_["__"])('Center Right'), + 'bottom left': Object(external_this_wp_i18n_["__"])('Bottom Left'), + 'bottom center': Object(external_this_wp_i18n_["__"])('Bottom Center'), + 'bottom right': Object(external_this_wp_i18n_["__"])('Bottom Right') +}; // Transforms GRID into a flat Array of values +var ALIGNMENTS = Object(external_this_lodash_["flattenDeep"])(GRID); /** - * A Higher Order Component used to be provide a unique instance ID by - * component. + * Parses and transforms an incoming value to better match the alignment values * - * @param {WPComponent} WrappedComponent The wrapped component. + * @param {string} value An alignment value to parse. * - * @return {WPComponent} The component to be rendered. + * @return {string} The parsed value. */ -/* harmony default export */ var with_spoken_messages = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class() { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); - _this.debouncedSpeak = Object(external_this_lodash_["debounce"])(_this.speak.bind(Object(assertThisInitialized["a" /* default */])(_this)), 500); - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "speak", - value: function speak(message) { - var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polite'; - - Object(external_this_wp_a11y_["speak"])(message, type); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.debouncedSpeak.cancel(); - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, this.props, { - speak: this.speak, - debouncedSpeak: this.debouncedSpeak - })); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); -}, 'withSpokenMessages')); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/index.js - - - - - - - - - - -function autocomplete_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function autocomplete_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { autocomplete_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { autocomplete_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - -/** - * A raw completer option. - * - * @typedef {*} CompleterOption - */ - -/** - * @callback FnGetOptions - * - * @return {(CompleterOption[]|Promise.)} The completer options or a promise for them. - */ - -/** - * @callback FnGetOptionKeywords - * @param {CompleterOption} option a completer option. - * - * @return {string[]} list of key words to search. - */ - -/** - * @callback FnIsOptionDisabled - * @param {CompleterOption} option a completer option. - * - * @return {string[]} whether or not the given option is disabled. - */ - -/** - * @callback FnGetOptionLabel - * @param {CompleterOption} option a completer option. - * - * @return {(string|Array.<(string|Component)>)} list of react components to render. - */ - -/** - * @callback FnAllowContext - * @param {string} before the string before the auto complete trigger and query. - * @param {string} after the string after the autocomplete trigger and query. - * - * @return {boolean} true if the completer can handle. - */ - -/** - * @typedef {Object} OptionCompletion - * @property {'insert-at-caret'|'replace'} action the intended placement of the completion. - * @property {OptionCompletionValue} value the completion value. - */ - -/** - * A completion value. - * - * @typedef {(string|WPElement|Object)} OptionCompletionValue - */ - -/** - * @callback FnGetOptionCompletion - * @param {CompleterOption} value the value of the completer option. - * @param {string} query the text value of the autocomplete query. - * - * @return {(OptionCompletion|OptionCompletionValue)} the completion for the given option. If an - * OptionCompletionValue is returned, the - * completion action defaults to `insert-at-caret`. - */ - -/** - * @typedef {Object} WPCompleter - * @property {string} name a way to identify a completer, useful for selective overriding. - * @property {?string} className A class to apply to the popup menu. - * @property {string} triggerPrefix the prefix that will display the menu. - * @property {(CompleterOption[]|FnGetOptions)} options the completer options or a function to get them. - * @property {?FnGetOptionKeywords} getOptionKeywords get the keywords for a given option. - * @property {?FnIsOptionDisabled} isOptionDisabled get whether or not the given option is disabled. - * @property {FnGetOptionLabel} getOptionLabel get the label for a given option. - * @property {?FnAllowContext} allowContext filter the context under which the autocomplete activates. - * @property {FnGetOptionCompletion} getOptionCompletion get the completion associated with a given option. - */ - -function filterOptions(search) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var maxResults = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10; - var filtered = []; - - for (var i = 0; i < options.length; i++) { - var option = options[i]; // Merge label into keywords - - var _option$keywords = option.keywords, - keywords = _option$keywords === void 0 ? [] : _option$keywords; - - if ('string' === typeof option.label) { - keywords = [].concat(Object(toConsumableArray["a" /* default */])(keywords), [option.label]); - } - - var isMatch = keywords.some(function (keyword) { - return search.test(Object(external_this_lodash_["deburr"])(keyword)); - }); - - if (!isMatch) { - continue; - } - - filtered.push(option); // Abort early if max reached - - if (filtered.length === maxResults) { - break; - } - } - - return filtered; +function transformValue(value) { + var nextValue = value === 'center' ? 'center center' : value; + return nextValue.replace('-', ' '); } - -function getRange() { - var selection = window.getSelection(); - return selection.rangeCount ? selection.getRangeAt(0) : null; -} - -var autocomplete_Autocomplete = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(Autocomplete, _Component); - - Object(createClass["a" /* default */])(Autocomplete, null, [{ - key: "getInitialState", - value: function getInitialState() { - return { - search: /./, - selectedIndex: 0, - suppress: undefined, - open: undefined, - query: undefined, - filteredOptions: [] - }; - } - }]); - - function Autocomplete() { - var _this; - - Object(classCallCheck["a" /* default */])(this, Autocomplete); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Autocomplete).apply(this, arguments)); - _this.select = _this.select.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.reset = _this.reset.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.resetWhenSuppressed = _this.resetWhenSuppressed.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleKeyDown = _this.handleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.debouncedLoadOptions = Object(external_this_lodash_["debounce"])(_this.loadOptions, 250); - _this.state = _this.constructor.getInitialState(); - return _this; - } - - Object(createClass["a" /* default */])(Autocomplete, [{ - key: "insertCompletion", - value: function insertCompletion(replacement) { - var _this$state = this.state, - open = _this$state.open, - query = _this$state.query; - var _this$props = this.props, - record = _this$props.record, - onChange = _this$props.onChange; - var end = record.start; - var start = end - open.triggerPrefix.length - query.length; - var toInsert = Object(external_this_wp_richText_["create"])({ - html: Object(external_this_wp_element_["renderToString"])(replacement) - }); - onChange(Object(external_this_wp_richText_["insert"])(record, toInsert, start, end)); - } - }, { - key: "select", - value: function select(option) { - var onReplace = this.props.onReplace; - var _this$state2 = this.state, - open = _this$state2.open, - query = _this$state2.query; - - var _ref = open || {}, - getOptionCompletion = _ref.getOptionCompletion; - - if (option.isDisabled) { - return; - } - - if (getOptionCompletion) { - var completion = getOptionCompletion(option.value, query); - - var _ref2 = undefined === completion.action || undefined === completion.value ? { - action: 'insert-at-caret', - value: completion - } : completion, - action = _ref2.action, - value = _ref2.value; - - if ('replace' === action) { - onReplace([value]); - } else if ('insert-at-caret' === action) { - this.insertCompletion(value); - } - } // Reset autocomplete state after insertion rather than before - // so insertion events don't cause the completion menu to redisplay. - - - this.reset(); - } - }, { - key: "reset", - value: function reset() { - this.setState(this.constructor.getInitialState()); - } - }, { - key: "resetWhenSuppressed", - value: function resetWhenSuppressed() { - var _this$state3 = this.state, - open = _this$state3.open, - suppress = _this$state3.suppress; - - if (open && suppress === open.idx) { - this.reset(); - } - } - }, { - key: "announce", - value: function announce(filteredOptions) { - var debouncedSpeak = this.props.debouncedSpeak; - - if (!debouncedSpeak) { - return; - } - - if (!!filteredOptions.length) { - debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', filteredOptions.length), filteredOptions.length), 'assertive'); - } else { - debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); - } - } - /** - * Load options for an autocompleter. - * - * @param {WPCompleter} completer The autocompleter. - * @param {string} query The query, if any. - */ - - }, { - key: "loadOptions", - value: function loadOptions(completer, query) { - var _this2 = this; - - var options = completer.options; - /* - * We support both synchronous and asynchronous retrieval of completer options - * but internally treat all as async so we maintain a single, consistent code path. - * - * Because networks can be slow, and the internet is wonderfully unpredictable, - * we don't want two promises updating the state at once. This ensures that only - * the most recent promise will act on `optionsData`. This doesn't use the state - * because `setState` is batched, and so there's no guarantee that setting - * `activePromise` in the state would result in it actually being in `this.state` - * before the promise resolves and we check to see if this is the active promise or not. - */ - - var promise = this.activePromise = Promise.resolve(typeof options === 'function' ? options(query) : options).then(function (optionsData) { - var _this2$setState; - - if (promise !== _this2.activePromise) { - // Another promise has become active since this one was asked to resolve, so do nothing, - // or else we might end triggering a race condition updating the state. - return; - } - - var keyedOptions = optionsData.map(function (optionData, optionIndex) { - return { - key: "".concat(completer.idx, "-").concat(optionIndex), - value: optionData, - label: completer.getOptionLabel(optionData), - keywords: completer.getOptionKeywords ? completer.getOptionKeywords(optionData) : [], - isDisabled: completer.isOptionDisabled ? completer.isOptionDisabled(optionData) : false - }; - }); - var filteredOptions = filterOptions(_this2.state.search, keyedOptions); - var selectedIndex = filteredOptions.length === _this2.state.filteredOptions.length ? _this2.state.selectedIndex : 0; - - _this2.setState((_this2$setState = {}, Object(defineProperty["a" /* default */])(_this2$setState, 'options_' + completer.idx, keyedOptions), Object(defineProperty["a" /* default */])(_this2$setState, "filteredOptions", filteredOptions), Object(defineProperty["a" /* default */])(_this2$setState, "selectedIndex", selectedIndex), _this2$setState)); - - _this2.announce(filteredOptions); - }); - } - }, { - key: "handleKeyDown", - value: function handleKeyDown(event) { - var _this$state4 = this.state, - open = _this$state4.open, - suppress = _this$state4.suppress, - selectedIndex = _this$state4.selectedIndex, - filteredOptions = _this$state4.filteredOptions; - - if (!open) { - return; - } - - if (suppress === open.idx) { - switch (event.keyCode) { - // cancel popup suppression on CTRL+SPACE - case external_this_wp_keycodes_["SPACE"]: - var ctrlKey = event.ctrlKey, - shiftKey = event.shiftKey, - altKey = event.altKey, - metaKey = event.metaKey; - - if (ctrlKey && !(shiftKey || altKey || metaKey)) { - this.setState({ - suppress: undefined - }); - event.preventDefault(); - event.stopPropagation(); - } - - break; - // reset on cursor movement - - case external_this_wp_keycodes_["UP"]: - case external_this_wp_keycodes_["DOWN"]: - case external_this_wp_keycodes_["LEFT"]: - case external_this_wp_keycodes_["RIGHT"]: - this.reset(); - } - - return; - } - - if (filteredOptions.length === 0) { - return; - } - - var nextSelectedIndex; - - switch (event.keyCode) { - case external_this_wp_keycodes_["UP"]: - nextSelectedIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1; - this.setState({ - selectedIndex: nextSelectedIndex - }); - break; - - case external_this_wp_keycodes_["DOWN"]: - nextSelectedIndex = (selectedIndex + 1) % filteredOptions.length; - this.setState({ - selectedIndex: nextSelectedIndex - }); - break; - - case external_this_wp_keycodes_["ESCAPE"]: - this.setState({ - suppress: open.idx - }); - break; - - case external_this_wp_keycodes_["ENTER"]: - this.select(filteredOptions[selectedIndex]); - break; - - case external_this_wp_keycodes_["LEFT"]: - case external_this_wp_keycodes_["RIGHT"]: - this.reset(); - return; - - default: - return; - } // Any handled keycode should prevent original behavior. This relies on - // the early return in the default case. - - - event.preventDefault(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props2 = this.props, - record = _this$props2.record, - completers = _this$props2.completers; - var prevRecord = prevProps.record; - - if (Object(external_this_wp_richText_["isCollapsed"])(record)) { - var text = Object(external_this_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, 0))); - var prevText = Object(external_this_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(prevRecord, 0))); - - if (text !== prevText) { - var textAfterSelection = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, undefined, Object(external_this_wp_richText_["getTextContent"])(record).length)); - var allCompleters = Object(external_this_lodash_["map"])(completers, function (completer, idx) { - return autocomplete_objectSpread({}, completer, { - idx: idx - }); - }); - var open = Object(external_this_lodash_["find"])(allCompleters, function (_ref3) { - var triggerPrefix = _ref3.triggerPrefix, - allowContext = _ref3.allowContext; - var index = text.lastIndexOf(triggerPrefix); - - if (index === -1) { - return false; - } - - if (allowContext && !allowContext(text.slice(0, index), textAfterSelection)) { - return false; - } - - return /^\S*$/.test(text.slice(index + triggerPrefix.length)); - }); - - if (!open) { - this.reset(); - return; - } - - var safeTrigger = Object(external_this_lodash_["escapeRegExp"])(open.triggerPrefix); - var match = text.match(new RegExp("".concat(safeTrigger, "(\\S*)$"))); - var query = match && match[1]; - var _this$state5 = this.state, - wasOpen = _this$state5.open, - wasSuppress = _this$state5.suppress, - wasQuery = _this$state5.query; - - if (open && (!wasOpen || open.idx !== wasOpen.idx || query !== wasQuery)) { - if (open.isDebounced) { - this.debouncedLoadOptions(open, query); - } else { - this.loadOptions(open, query); - } - } // create a regular expression to filter the options - - - var search = open ? new RegExp('(?:\\b|\\s|^)' + Object(external_this_lodash_["escapeRegExp"])(query), 'i') : /./; // filter the options we already have - - var filteredOptions = open ? filterOptions(search, this.state['options_' + open.idx]) : []; // check if we should still suppress the popover - - var suppress = open && wasSuppress === open.idx ? wasSuppress : undefined; // update the state - - if (wasOpen || open) { - this.setState({ - selectedIndex: 0, - filteredOptions: filteredOptions, - suppress: suppress, - search: search, - open: open, - query: query - }); - } // announce the count of filtered options but only if they have loaded - - - if (open && this.state['options_' + open.idx]) { - this.announce(filteredOptions); - } - } - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.debouncedLoadOptions.cancel(); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props3 = this.props, - children = _this$props3.children, - instanceId = _this$props3.instanceId, - isSelected = _this$props3.isSelected; - var _this$state6 = this.state, - open = _this$state6.open, - suppress = _this$state6.suppress, - selectedIndex = _this$state6.selectedIndex, - filteredOptions = _this$state6.filteredOptions; - - var _ref4 = filteredOptions[selectedIndex] || {}, - _ref4$key = _ref4.key, - selectedKey = _ref4$key === void 0 ? '' : _ref4$key; - - var _ref5 = open || {}, - className = _ref5.className, - idx = _ref5.idx; - - var isExpanded = suppress !== idx && filteredOptions.length > 0; - var listBoxId = isExpanded ? "components-autocomplete-listbox-".concat(instanceId) : null; - var activeId = isExpanded ? "components-autocomplete-item-".concat(instanceId, "-").concat(selectedKey) : null; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children({ - isExpanded: isExpanded, - listBoxId: listBoxId, - activeId: activeId, - onKeyDown: this.handleKeyDown - }), isExpanded && isSelected && Object(external_this_wp_element_["createElement"])(popover["a" /* default */], { - focusOnMount: false, - onClose: this.reset, - position: "top right", - className: "components-autocomplete__popover", - anchorRef: getRange() - }, Object(external_this_wp_element_["createElement"])("div", { - id: listBoxId, - role: "listbox", - className: "components-autocomplete__results" - }, isExpanded && Object(external_this_lodash_["map"])(filteredOptions, function (option, index) { - return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { - key: option.key, - id: "components-autocomplete-item-".concat(instanceId, "-").concat(option.key), - role: "option", - "aria-selected": index === selectedIndex, - disabled: option.isDisabled, - className: classnames_default()('components-autocomplete__result', className, { - 'is-selected': index === selectedIndex - }), - onClick: function onClick() { - return _this3.select(option); - } - }, option.label); - })))); - } - }]); - - return Autocomplete; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([with_spoken_messages, external_this_wp_compose_["withInstanceId"]])(autocomplete_Autocomplete)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button-group/index.js - - - - /** - * External dependencies + * Creates an item ID based on a prefix ID and an alignment value. + * + * @param {string} prefixId An ID to prefix. + * @param {string} value An alignment value. + * + * @return {string} The item id. */ - -function ButtonGroup(_ref) { - var className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); - - var classes = classnames_default()('components-button-group', className); - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({}, props, { - className: classes, - role: "group" - })); +function utils_getItemId(prefixId, value) { + var valueId = transformValue(value).replace(' ', '-'); + return "".concat(prefixId, "-").concat(valueId); } - -/* harmony default export */ var button_group = (ButtonGroup); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/context.js /** - * WordPress dependencies + * Retrieves the alignment index from a value. + * + * @param {string} alignment Value to check. + * + * @return {number} The index of a matching alignment. */ -var CardContext = Object(external_this_wp_element_["createContext"])({}); -var context_useCardContext = function useCardContext() { - return Object(external_this_wp_element_["useContext"])(CardContext); -}; +function getAlignmentIndex() { + var alignment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'center'; + var item = transformValue(alignment).replace('-', ' '); + var index = ALIGNMENTS.indexOf(item); + return index > -1 ? index : undefined; +} // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js -var helpers_defineProperty = __webpack_require__(267); +var helpers_defineProperty = __webpack_require__(261); var defineProperty_default = /*#__PURE__*/__webpack_require__.n(helpers_defineProperty); -// EXTERNAL MODULE: external {"this":"React"} -var external_this_React_ = __webpack_require__(21); - // CONCATENATED MODULE: ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js function memoize(fn) { var cache = {}; @@ -24379,7 +18626,7 @@ var is_prop_valid_browser_esm_index = memoize_browser_esm(function (prop) { /* harmony default export */ var is_prop_valid_browser_esm = (is_prop_valid_browser_esm_index); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inheritsLoose.js -var inheritsLoose = __webpack_require__(127); +var inheritsLoose = __webpack_require__(139); var inheritsLoose_default = /*#__PURE__*/__webpack_require__.n(inheritsLoose); // CONCATENATED MODULE: ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js @@ -26226,7 +20473,7 @@ var styled_base_browser_esm_createStyled = function createStyled(tag, options) { /* harmony default export */ var styled_base_browser_esm = (styled_base_browser_esm_createStyled); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(54); +var tinycolor = __webpack_require__(56); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/colors-values.js @@ -26236,14 +20483,45 @@ function colors_values_ownKeys(object, enumerableOnly) { var keys = Object.keys( function colors_values_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { colors_values_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { colors_values_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +/** + * External dependencies + */ + /** * Internal dependencies */ + var BASE = { black: '#000', white: '#fff' }; +/** + * TODO: Continue to update values as "G2" design evolves. + * + * "G2" refers to the movement to advance the interface of the block editor. + * https://github.com/WordPress/gutenberg/issues/18667 + */ + +var G2 = { + blue: { + medium: { + focus: '#007cba', + focusDark: '#fff' + } + }, + darkGray: { + primary: '#1e1e1e' + }, + mediumGray: { + text: '#757575' + }, + lightGray: { + ui: '#949494', + secondary: '#ccc', + tertiary: '#e7e8e9' + } +}; var DARK_GRAY = { 900: '#191e23', 800: '#23282d', @@ -26334,15 +20612,29 @@ var ALERT = { yellow: '#f0b849', red: '#d94f4f', green: '#4ab866' +}; // Namespaced values for raw colors hex codes + +var UI = { + background: BASE.white, + backgroundDisabled: LIGHT_GRAY[200], + brand: BLUE.wordpress[700], + border: BASE.black, + borderFocus: BLUE.medium.focus, + borderDisabled: DARK_GRAY[700], + borderLight: LIGHT_GRAY[600], + label: DARK_GRAY[500], + textDisabled: DARK_GRAY[150] }; var COLORS = colors_values_objectSpread({}, BASE, { - darkGrey: DARK_GRAY, + darkGray: Object(external_this_lodash_["merge"])({}, DARK_GRAY, G2.darkGray), darkOpacity: DARK_OPACITY, darkOpacityLight: DARK_OPACITY_LIGHT, - lightGray: LIGHT_GRAY, + mediumGray: G2.mediumGray, + lightGray: Object(external_this_lodash_["merge"])({}, LIGHT_GRAY, G2.lightGray), lightGrayLight: LIGHT_OPACITY_LIGHT, - blue: BLUE, - alert: ALERT + blue: Object(external_this_lodash_["merge"])({}, BLUE, G2.blue), + alert: ALERT, + ui: UI }); /* harmony default export */ var colors_values = (COLORS); @@ -26396,6 +20688,7212 @@ function colors_color(value) { return Object(external_this_lodash_["get"])(COLORS, value, fallbackColor); } +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/reduce-motion.js +/** + * Allows users to opt-out of animations via OS-level preferences. + * + * @param {string} prop CSS Property name + * @return {string} Generated CSS code for the reduced style + */ +function reduceMotion() { + var prop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transition'; + var style; + + switch (prop) { + case 'transition': + style = 'transition-duration: 0ms;'; + break; + + case 'animation': + style = 'animation-duration: 1ms;'; + break; + + default: + style = "\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"; + } + + return "\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(style, ";\n\t\t}\n\t"); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js + + +function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + + +/** + * Internal dependencies + */ + + + +var alignment_matrix_control_styles_ref = true ? { + name: "1xiracb", + styles: "border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;" +} : undefined; + +var rootBase = function rootBase() { + return alignment_matrix_control_styles_ref; +}; + +var alignment_matrix_control_styles_rootSize = function rootSize(_ref2) { + var _ref2$size = _ref2.size, + size = _ref2$size === void 0 ? 92 : _ref2$size; + return /*#__PURE__*/css_browser_esm("grid-template-rows:repeat( 3,calc( ", size, "px / 3 ) );width:", size, "px;" + ( true ? "" : undefined)); +}; + +var Root = styled_base_browser_esm("div", { + target: "e1od1u4s0", + label: "Root" +})(rootBase, ";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;", alignment_matrix_control_styles_rootSize, ";" + ( true ? "" : undefined)); +var Row = styled_base_browser_esm("div", { + target: "e1od1u4s1", + label: "Row" +})( true ? { + name: "1177s8r", + styles: "box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );" +} : undefined); + +var alignment_matrix_control_styles_pointActive = function pointActive(_ref3) { + var isActive = _ref3.isActive; + var boxShadow = isActive ? "0 0 0 2px ".concat(colors_color('black')) : null; + var pointColor = isActive ? colors_color('black') : colors_color('lightGray.800'); + var pointColorHover = isActive ? colors_color('black') : colors_color('blue.medium.focus'); + return /*#__PURE__*/css_browser_esm("box-shadow:", boxShadow, ";color:", pointColor, ";*:hover > &{color:", pointColorHover, ";}" + ( true ? "" : undefined)); +}; + +var alignment_matrix_control_styles_pointBase = function pointBase(props) { + return /*#__PURE__*/css_browser_esm("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;", reduceMotion('transition'), " ", alignment_matrix_control_styles_pointActive(props), true ? "" : undefined); +}; +var Point = styled_base_browser_esm("span", { + target: "e1od1u4s2", + label: "Point" +})("height:6px;width:6px;", alignment_matrix_control_styles_pointBase, true ? "" : undefined); +var Cell = styled_base_browser_esm("span", { + target: "e1od1u4s3", + label: "Cell" +})( true ? { + name: "10ro24i", + styles: "appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/cell.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +/** + * Internal dependencies + */ + + + +function cell_Cell(_ref) { + var _ref$isActive = _ref.isActive, + isActive = _ref$isActive === void 0 ? false : _ref$isActive, + value = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["isActive", "value"]); + + var tooltipText = ALIGNMENT_LABEL[value]; + return Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { + text: tooltipText + }, Object(external_this_wp_element_["createElement"])(CompositeItem["a" /* CompositeItem */], Object(esm_extends["a" /* default */])({ + as: Cell, + role: "gridcell" + }, props), Object(external_this_wp_element_["createElement"])(visually_hidden, null, value), Object(external_this_wp_element_["createElement"])(Point, { + isActive: isActive, + role: "presentation" + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/rtl.js +/** + * External dependencies + */ + + +var LOWER_LEFT_REGEXP = new RegExp(/-left/g); +var LOWER_RIGHT_REGEXP = new RegExp(/-right/g); +var UPPER_LEFT_REGEXP = new RegExp(/Left/g); +var UPPER_RIGHT_REGEXP = new RegExp(/Right/g); +/** + * Checks to see whether the document is set to rtl. + * + * @return {boolean} Whether document is RTL. + */ + +function getRTL() { + return !!(document && document.documentElement.dir === 'rtl'); +} +/** + * Simple hook to retrieve RTL direction value + * + * @return {boolean} Whether document is RTL. + */ + +function useRTL() { + return getRTL(); +} +/** + * Flips a CSS property from left <-> right. + * + * @param {string} key The CSS property name. + * + * @return {string} The flipped CSS property name, if applicable. + */ + +function getConvertedKey(key) { + if (key === 'left') { + return 'right'; + } + + if (key === 'right') { + return 'left'; + } + + if (LOWER_LEFT_REGEXP.test(key)) { + return key.replace(LOWER_LEFT_REGEXP, '-right'); + } + + if (LOWER_RIGHT_REGEXP.test(key)) { + return key.replace(LOWER_RIGHT_REGEXP, '-left'); + } + + if (UPPER_LEFT_REGEXP.test(key)) { + return key.replace(UPPER_LEFT_REGEXP, 'Right'); + } + + if (UPPER_RIGHT_REGEXP.test(key)) { + return key.replace(UPPER_RIGHT_REGEXP, 'Left'); + } + + return key; +} +/** + * An incredibly basic ltr -> rtl converter for style properties + * + * @param {Object} ltrStyles + * + * @return {Object} Converted ltr -> rtl styles + */ + + +var rtl_convertLTRToRTL = function convertLTRToRTL() { + var ltrStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return Object(external_this_lodash_["mapKeys"])(ltrStyles, function (_value, key) { + return getConvertedKey(key); + }); +}; +/** + * A higher-order function that create an incredibly basic ltr -> rtl style converter for CSS objects. + * + * @param {Object} ltrStyles Ltr styles. Converts and renders from ltr -> rtl styles, if applicable. + * @param {null|Object} rtlStyles Rtl styles. Renders if provided. + * + * @return {Function} A function to output CSS styles for Emotion's renderer + */ + +function rtl() { + var ltrStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var rtlStyles = arguments.length > 1 ? arguments[1] : undefined; + return function () { + var isRTL = getRTL(); + + if (rtlStyles) { + return isRTL ? /*#__PURE__*/css_browser_esm(rtlStyles, true ? "" : undefined) : /*#__PURE__*/css_browser_esm(ltrStyles, true ? "" : undefined); + } + + return isRTL ? /*#__PURE__*/css_browser_esm(rtl_convertLTRToRTL(ltrStyles), true ? "" : undefined) : /*#__PURE__*/css_browser_esm(ltrStyles, true ? "" : undefined); + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js + + +function alignment_matrix_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + + +/** + * Internal dependencies + */ + + + +var alignment_matrix_control_icon_styles_rootSize = function rootSize() { + var padding = 1.5; + var size = 24; + return /*#__PURE__*/css_browser_esm({ + gridTemplateRows: "repeat( 3, calc( ".concat(size - padding * 2, "px / 3))"), + padding: padding, + maxHeight: size, + maxWidth: size + }, true ? "" : undefined); +}; + +var alignment_matrix_control_icon_styles_rootPointerEvents = function rootPointerEvents(_ref) { + var disablePointerEvents = _ref.disablePointerEvents; + return /*#__PURE__*/css_browser_esm({ + pointerEvents: disablePointerEvents ? 'none' : null + }, true ? "" : undefined); +}; + +var alignment_matrix_control_icon_styles_Wrapper = styled_base_browser_esm("div", { + target: "elqsdmc0", + label: "Wrapper" +})( true ? { + name: "co61ta", + styles: "box-sizing:border-box;padding:2px;" +} : undefined); +var alignment_matrix_control_icon_styles_Root = styled_base_browser_esm("div", { + target: "elqsdmc1", + label: "Root" +})("transform-origin:top left;height:100%;width:100%;", rootBase, ";", alignment_matrix_control_icon_styles_rootSize, ";", alignment_matrix_control_icon_styles_rootPointerEvents, ";" + ( true ? "" : undefined)); + +var alignment_matrix_control_icon_styles_pointActive = function pointActive(_ref2) { + var isActive = _ref2.isActive; + var boxShadow = isActive ? "0 0 0 1px currentColor" : null; + return /*#__PURE__*/css_browser_esm("box-shadow:", boxShadow, ";color:currentColor;*:hover > &{color:currentColor;}" + ( true ? "" : undefined)); +}; + +var alignment_matrix_control_icon_styles_Point = styled_base_browser_esm("span", { + target: "elqsdmc2", + label: "Point" +})("height:2px;width:2px;", alignment_matrix_control_styles_pointBase, ";", alignment_matrix_control_icon_styles_pointActive, ";" + ( true ? "" : undefined)); +var alignment_matrix_control_icon_styles_Cell = Cell; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/icon.js + + + + + +function icon_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function icon_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { icon_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { icon_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +var BASE_SIZE = 24; +function AlignmentMatrixControlIcon(_ref) { + var className = _ref.className, + _ref$disablePointerEv = _ref.disablePointerEvents, + disablePointerEvents = _ref$disablePointerEv === void 0 ? true : _ref$disablePointerEv, + _ref$size = _ref.size, + size = _ref$size === void 0 ? BASE_SIZE : _ref$size, + _ref$style = _ref.style, + style = _ref$style === void 0 ? {} : _ref$style, + _ref$value = _ref.value, + value = _ref$value === void 0 ? 'center' : _ref$value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "disablePointerEvents", "size", "style", "value"]); + + var alignIndex = getAlignmentIndex(value); + var scale = (size / BASE_SIZE).toFixed(2); + var classes = classnames_default()('component-alignment-matrix-control-icon', className); + + var styles = icon_objectSpread({}, style, { + transform: "scale(".concat(scale, ")") + }); + + return Object(external_this_wp_element_["createElement"])(alignment_matrix_control_icon_styles_Root, Object(esm_extends["a" /* default */])({}, props, { + className: classes, + disablePointerEvents: disablePointerEvents, + role: "presentation", + size: size, + style: styles + }), ALIGNMENTS.map(function (align, index) { + var isActive = alignIndex === index; + return Object(external_this_wp_element_["createElement"])(alignment_matrix_control_icon_styles_Cell, { + key: align + }, Object(external_this_wp_element_["createElement"])(alignment_matrix_control_icon_styles_Point, { + isActive: isActive + })); + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/index.js + + + + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + + + +function useBaseId(id) { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(AlignmentMatrixControl, 'alignment-matrix-control'); + return id || instanceId; +} + +function AlignmentMatrixControl(_ref) { + var className = _ref.className, + id = _ref.id, + _ref$label = _ref.label, + label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Alignment Matrix Control') : _ref$label, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? 'center center' : _ref$defaultValue, + value = _ref.value, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$width = _ref.width, + width = _ref$width === void 0 ? 92 : _ref$width, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "id", "label", "defaultValue", "value", "onChange", "width"]); + + var _useState = Object(external_this_wp_element_["useState"])(value !== null && value !== void 0 ? value : defaultValue), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 1), + immutableDefaultValue = _useState2[0]; + + var isRTL = useRTL(); + var baseId = useBaseId(id); + var initialCurrentId = utils_getItemId(baseId, immutableDefaultValue); + var composite = Object(CompositeState_3a25dcee["g" /* u */])({ + baseId: baseId, + currentId: initialCurrentId, + rtl: isRTL + }); + + var handleOnChange = function handleOnChange(nextValue) { + onChange(nextValue); + }; + + Object(external_this_wp_element_["useEffect"])(function () { + if (typeof value !== 'undefined') { + composite.setCurrentId(utils_getItemId(baseId, value)); + } + }, [value, composite.setCurrentId]); + var classes = classnames_default()('component-alignment-matrix-control', className); + return Object(external_this_wp_element_["createElement"])(Composite, Object(esm_extends["a" /* default */])({}, props, composite, { + "aria-label": label, + as: Root, + className: classes, + role: "grid", + width: width + }), GRID.map(function (cells, index) { + return Object(external_this_wp_element_["createElement"])(CompositeGroup, Object(esm_extends["a" /* default */])({}, composite, { + as: Row, + role: "row", + key: index + }), cells.map(function (cell) { + var cellId = utils_getItemId(baseId, cell); + var isActive = composite.currentId === cellId; + return Object(external_this_wp_element_["createElement"])(cell_Cell, Object(esm_extends["a" /* default */])({}, composite, { + id: cellId, + isActive: isActive, + key: cell, + value: cell, + onFocus: function onFocus() { + return handleOnChange(cell); + } + })); + })); + })); +} +AlignmentMatrixControl.Icon = AlignmentMatrixControlIcon; + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js +var animate = __webpack_require__(151); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +function BaseControl(_ref) { + var id = _ref.id, + label = _ref.label, + hideLabelFromVision = _ref.hideLabelFromVision, + help = _ref.help, + className = _ref.className, + children = _ref.children; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('components-base-control', className) + }, Object(external_this_wp_element_["createElement"])("div", { + className: "components-base-control__field" + }, label && id && (hideLabelFromVision ? Object(external_this_wp_element_["createElement"])(visually_hidden, { + as: "label", + htmlFor: id + }, label) : Object(external_this_wp_element_["createElement"])("label", { + className: "components-base-control__label", + htmlFor: id + }, label)), label && !id && (hideLabelFromVision ? Object(external_this_wp_element_["createElement"])(visually_hidden, { + as: "label" + }, label) : Object(external_this_wp_element_["createElement"])(BaseControl.VisualLabel, null, label)), children), !!help && Object(external_this_wp_element_["createElement"])("p", { + id: id + '__help', + className: "components-base-control__help" + }, help)); +} + +BaseControl.VisualLabel = function (_ref2) { + var className = _ref2.className, + children = _ref2.children; + className = classnames_default()('components-base-control__label', className); + return Object(external_this_wp_element_["createElement"])("span", { + className: className + }, children); +}; + +/* harmony default export */ var base_control = (BaseControl); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js + + + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +function getAngle(centerX, centerY, pointX, pointY) { + var y = pointY - centerY; + var x = pointX - centerX; + var angleInRadians = Math.atan2(y, x); + var angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90; + + if (angleInDeg < 0) { + return 360 + angleInDeg; + } + + return angleInDeg; +} + +var angle_picker_control_AngleCircle = function AngleCircle(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["value", "onChange"]); + + var angleCircleRef = Object(external_this_wp_element_["useRef"])(); + var angleCircleCenter = Object(external_this_wp_element_["useRef"])(); + + var setAngleCircleCenter = function setAngleCircleCenter() { + var rect = angleCircleRef.current.getBoundingClientRect(); + angleCircleCenter.current = { + x: rect.x + rect.width / 2, + y: rect.y + rect.height / 2 + }; + }; + + var changeAngleToPosition = function changeAngleToPosition(event) { + var _angleCircleCenter$cu = angleCircleCenter.current, + centerX = _angleCircleCenter$cu.x, + centerY = _angleCircleCenter$cu.y; // Prevent (drag) mouse events from selecting and accidentally + // triggering actions from other elements. + + event.preventDefault(); + onChange(getAngle(centerX, centerY, event.clientX, event.clientY)); + }; + + var _useDragging = Object(external_this_wp_compose_["__experimentalUseDragging"])({ + onDragStart: function onDragStart(event) { + setAngleCircleCenter(); + changeAngleToPosition(event); + }, + onDragMove: changeAngleToPosition, + onDragEnd: changeAngleToPosition + }), + startDrag = _useDragging.startDrag, + isDragging = _useDragging.isDragging; + + return ( + /* eslint-disable jsx-a11y/no-static-element-interactions */ + Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + ref: angleCircleRef, + onMouseDown: startDrag, + className: "components-angle-picker-control__angle-circle", + style: isDragging ? { + cursor: 'grabbing' + } : undefined + }, props), Object(external_this_wp_element_["createElement"])("div", { + style: value ? { + transform: "rotate(".concat(value, "deg)") + } : undefined, + className: "components-angle-picker-control__angle-circle-indicator-wrapper" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "components-angle-picker-control__angle-circle-indicator" + }))) + /* eslint-enable jsx-a11y/no-static-element-interactions */ + + ); +}; + +function AnglePickerControl(_ref2) { + var value = _ref2.value, + _onChange = _ref2.onChange, + _ref2$label = _ref2.label, + label = _ref2$label === void 0 ? Object(external_this_wp_i18n_["__"])('Angle') : _ref2$label; + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(AnglePickerControl); + var inputId = "components-angle-picker-control__input-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(base_control, { + label: label, + id: inputId, + className: "components-angle-picker-control" + }, Object(external_this_wp_element_["createElement"])(angle_picker_control_AngleCircle, { + value: value, + onChange: _onChange, + "aria-hidden": "true" + }), Object(external_this_wp_element_["createElement"])("input", { + className: "components-angle-picker-control__input-field", + type: "number", + id: inputId, + onChange: function onChange(event) { + var unprocessedValue = event.target.value; + var inputValue = unprocessedValue !== '' ? parseInt(event.target.value, 10) : 0; + + _onChange(inputValue); + }, + value: value, + min: 0, + max: 360, + step: "1" + })); +} + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(18); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(20); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(16); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(22); + +// EXTERNAL MODULE: external {"this":["wp","richText"]} +var external_this_wp_richText_ = __webpack_require__(25); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js +var build_module_button = __webpack_require__(34); + +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js + 2 modules +var popover = __webpack_require__(106); + +// EXTERNAL MODULE: external {"this":["wp","a11y"]} +var external_this_wp_a11y_ = __webpack_require__(49); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js + + + + + + + + + +function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * A Higher Order Component used to be provide a unique instance ID by + * component. + * + * @param {WPComponent} WrappedComponent The wrapped component. + * + * @return {WPComponent} The component to be rendered. + */ + +/* harmony default export */ var with_spoken_messages = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + var _super = _createSuper(_class); + + function _class() { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = _super.apply(this, arguments); + _this.debouncedSpeak = Object(external_this_lodash_["debounce"])(_this.speak.bind(Object(assertThisInitialized["a" /* default */])(_this)), 500); + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "speak", + value: function speak(message) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polite'; + + Object(external_this_wp_a11y_["speak"])(message, type); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.debouncedSpeak.cancel(); + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, this.props, { + speak: this.speak, + debouncedSpeak: this.debouncedSpeak + })); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]); +}, 'withSpokenMessages')); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/index.js + + + + + + + + + + +function autocomplete_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function autocomplete_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { autocomplete_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { autocomplete_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function autocomplete_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (autocomplete_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function autocomplete_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + +/** + * A raw completer option. + * + * @typedef {*} CompleterOption + */ + +/** + * @callback FnGetOptions + * + * @return {(CompleterOption[]|Promise.)} The completer options or a promise for them. + */ + +/** + * @callback FnGetOptionKeywords + * @param {CompleterOption} option a completer option. + * + * @return {string[]} list of key words to search. + */ + +/** + * @callback FnIsOptionDisabled + * @param {CompleterOption} option a completer option. + * + * @return {string[]} whether or not the given option is disabled. + */ + +/** + * @callback FnGetOptionLabel + * @param {CompleterOption} option a completer option. + * + * @return {(string|Array.<(string|Component)>)} list of react components to render. + */ + +/** + * @callback FnAllowContext + * @param {string} before the string before the auto complete trigger and query. + * @param {string} after the string after the autocomplete trigger and query. + * + * @return {boolean} true if the completer can handle. + */ + +/** + * @typedef {Object} OptionCompletion + * @property {'insert-at-caret'|'replace'} action the intended placement of the completion. + * @property {OptionCompletionValue} value the completion value. + */ + +/** + * A completion value. + * + * @typedef {(string|WPElement|Object)} OptionCompletionValue + */ + +/** + * @callback FnGetOptionCompletion + * @param {CompleterOption} value the value of the completer option. + * @param {string} query the text value of the autocomplete query. + * + * @return {(OptionCompletion|OptionCompletionValue)} the completion for the given option. If an + * OptionCompletionValue is returned, the + * completion action defaults to `insert-at-caret`. + */ + +/** + * @typedef {Object} WPCompleter + * @property {string} name a way to identify a completer, useful for selective overriding. + * @property {?string} className A class to apply to the popup menu. + * @property {string} triggerPrefix the prefix that will display the menu. + * @property {(CompleterOption[]|FnGetOptions)} options the completer options or a function to get them. + * @property {?FnGetOptionKeywords} getOptionKeywords get the keywords for a given option. + * @property {?FnIsOptionDisabled} isOptionDisabled get whether or not the given option is disabled. + * @property {FnGetOptionLabel} getOptionLabel get the label for a given option. + * @property {?FnAllowContext} allowContext filter the context under which the autocomplete activates. + * @property {FnGetOptionCompletion} getOptionCompletion get the completion associated with a given option. + */ + +function filterOptions(search) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var maxResults = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10; + var filtered = []; + + for (var i = 0; i < options.length; i++) { + var option = options[i]; // Merge label into keywords + + var _option$keywords = option.keywords, + keywords = _option$keywords === void 0 ? [] : _option$keywords; + + if ('string' === typeof option.label) { + keywords = [].concat(Object(toConsumableArray["a" /* default */])(keywords), [option.label]); + } + + var isMatch = keywords.some(function (keyword) { + return search.test(Object(external_this_lodash_["deburr"])(keyword)); + }); + + if (!isMatch) { + continue; + } + + filtered.push(option); // Abort early if max reached + + if (filtered.length === maxResults) { + break; + } + } + + return filtered; +} + +function getRange() { + var selection = window.getSelection(); + return selection.rangeCount ? selection.getRangeAt(0) : null; +} + +var autocomplete_Autocomplete = /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(Autocomplete, _Component); + + var _super = autocomplete_createSuper(Autocomplete); + + Object(createClass["a" /* default */])(Autocomplete, null, [{ + key: "getInitialState", + value: function getInitialState() { + return { + search: /./, + selectedIndex: 0, + suppress: undefined, + open: undefined, + query: undefined, + filteredOptions: [] + }; + } + }]); + + function Autocomplete() { + var _this; + + Object(classCallCheck["a" /* default */])(this, Autocomplete); + + _this = _super.apply(this, arguments); + _this.select = _this.select.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.reset = _this.reset.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.resetWhenSuppressed = _this.resetWhenSuppressed.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.handleKeyDown = _this.handleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.debouncedLoadOptions = Object(external_this_lodash_["debounce"])(_this.loadOptions, 250); + _this.state = _this.constructor.getInitialState(); + return _this; + } + + Object(createClass["a" /* default */])(Autocomplete, [{ + key: "insertCompletion", + value: function insertCompletion(replacement) { + var _this$state = this.state, + open = _this$state.open, + query = _this$state.query; + var _this$props = this.props, + record = _this$props.record, + onChange = _this$props.onChange; + var end = record.start; + var start = end - open.triggerPrefix.length - query.length; + var toInsert = Object(external_this_wp_richText_["create"])({ + html: Object(external_this_wp_element_["renderToString"])(replacement) + }); + onChange(Object(external_this_wp_richText_["insert"])(record, toInsert, start, end)); + } + }, { + key: "select", + value: function select(option) { + var onReplace = this.props.onReplace; + var _this$state2 = this.state, + open = _this$state2.open, + query = _this$state2.query; + + var _ref = open || {}, + getOptionCompletion = _ref.getOptionCompletion; + + if (option.isDisabled) { + return; + } + + if (getOptionCompletion) { + var completion = getOptionCompletion(option.value, query); + + var _ref2 = undefined === completion.action || undefined === completion.value ? { + action: 'insert-at-caret', + value: completion + } : completion, + action = _ref2.action, + value = _ref2.value; + + if ('replace' === action) { + onReplace([value]); + } else if ('insert-at-caret' === action) { + this.insertCompletion(value); + } + } // Reset autocomplete state after insertion rather than before + // so insertion events don't cause the completion menu to redisplay. + + + this.reset(); + } + }, { + key: "reset", + value: function reset() { + this.setState(this.constructor.getInitialState()); + } + }, { + key: "resetWhenSuppressed", + value: function resetWhenSuppressed() { + var _this$state3 = this.state, + open = _this$state3.open, + suppress = _this$state3.suppress; + + if (open && suppress === open.idx) { + this.reset(); + } + } + }, { + key: "announce", + value: function announce(filteredOptions) { + var debouncedSpeak = this.props.debouncedSpeak; + + if (!debouncedSpeak) { + return; + } + + if (!!filteredOptions.length) { + debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])( + /* translators: %d: number of results. */ + Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', filteredOptions.length), filteredOptions.length), 'assertive'); + } else { + debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); + } + } + /** + * Load options for an autocompleter. + * + * @param {WPCompleter} completer The autocompleter. + * @param {string} query The query, if any. + */ + + }, { + key: "loadOptions", + value: function loadOptions(completer, query) { + var _this2 = this; + + var options = completer.options; + /* + * We support both synchronous and asynchronous retrieval of completer options + * but internally treat all as async so we maintain a single, consistent code path. + * + * Because networks can be slow, and the internet is wonderfully unpredictable, + * we don't want two promises updating the state at once. This ensures that only + * the most recent promise will act on `optionsData`. This doesn't use the state + * because `setState` is batched, and so there's no guarantee that setting + * `activePromise` in the state would result in it actually being in `this.state` + * before the promise resolves and we check to see if this is the active promise or not. + */ + + var promise = this.activePromise = Promise.resolve(typeof options === 'function' ? options(query) : options).then(function (optionsData) { + var _this2$setState; + + if (promise !== _this2.activePromise) { + // Another promise has become active since this one was asked to resolve, so do nothing, + // or else we might end triggering a race condition updating the state. + return; + } + + var keyedOptions = optionsData.map(function (optionData, optionIndex) { + return { + key: "".concat(completer.idx, "-").concat(optionIndex), + value: optionData, + label: completer.getOptionLabel(optionData), + keywords: completer.getOptionKeywords ? completer.getOptionKeywords(optionData) : [], + isDisabled: completer.isOptionDisabled ? completer.isOptionDisabled(optionData) : false + }; + }); + var filteredOptions = filterOptions(_this2.state.search, keyedOptions); + var selectedIndex = filteredOptions.length === _this2.state.filteredOptions.length ? _this2.state.selectedIndex : 0; + + _this2.setState((_this2$setState = {}, Object(defineProperty["a" /* default */])(_this2$setState, 'options_' + completer.idx, keyedOptions), Object(defineProperty["a" /* default */])(_this2$setState, "filteredOptions", filteredOptions), Object(defineProperty["a" /* default */])(_this2$setState, "selectedIndex", selectedIndex), _this2$setState)); + + _this2.announce(filteredOptions); + }); + } + }, { + key: "handleKeyDown", + value: function handleKeyDown(event) { + var _this$state4 = this.state, + open = _this$state4.open, + suppress = _this$state4.suppress, + selectedIndex = _this$state4.selectedIndex, + filteredOptions = _this$state4.filteredOptions; + + if (!open) { + return; + } + + if (suppress === open.idx) { + switch (event.keyCode) { + // cancel popup suppression on CTRL+SPACE + case external_this_wp_keycodes_["SPACE"]: + var ctrlKey = event.ctrlKey, + shiftKey = event.shiftKey, + altKey = event.altKey, + metaKey = event.metaKey; + + if (ctrlKey && !(shiftKey || altKey || metaKey)) { + this.setState({ + suppress: undefined + }); + event.preventDefault(); + event.stopPropagation(); + } + + break; + // reset on cursor movement + + case external_this_wp_keycodes_["UP"]: + case external_this_wp_keycodes_["DOWN"]: + case external_this_wp_keycodes_["LEFT"]: + case external_this_wp_keycodes_["RIGHT"]: + this.reset(); + } + + return; + } + + if (filteredOptions.length === 0) { + return; + } + + var nextSelectedIndex; + + switch (event.keyCode) { + case external_this_wp_keycodes_["UP"]: + nextSelectedIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1; + this.setState({ + selectedIndex: nextSelectedIndex + }); + break; + + case external_this_wp_keycodes_["DOWN"]: + nextSelectedIndex = (selectedIndex + 1) % filteredOptions.length; + this.setState({ + selectedIndex: nextSelectedIndex + }); + break; + + case external_this_wp_keycodes_["ESCAPE"]: + this.setState({ + suppress: open.idx + }); + break; + + case external_this_wp_keycodes_["ENTER"]: + this.select(filteredOptions[selectedIndex]); + break; + + case external_this_wp_keycodes_["LEFT"]: + case external_this_wp_keycodes_["RIGHT"]: + this.reset(); + return; + + default: + return; + } // Any handled keycode should prevent original behavior. This relies on + // the early return in the default case. + + + event.preventDefault(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props2 = this.props, + record = _this$props2.record, + completers = _this$props2.completers; + var prevRecord = prevProps.record; + + if (Object(external_this_wp_richText_["isCollapsed"])(record)) { + var text = Object(external_this_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, 0))); + var prevText = Object(external_this_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(prevRecord, 0))); + + if (text !== prevText) { + var textAfterSelection = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, undefined, Object(external_this_wp_richText_["getTextContent"])(record).length)); + var allCompleters = Object(external_this_lodash_["map"])(completers, function (completer, idx) { + return autocomplete_objectSpread({}, completer, { + idx: idx + }); + }); + var open = Object(external_this_lodash_["find"])(allCompleters, function (_ref3) { + var triggerPrefix = _ref3.triggerPrefix, + allowContext = _ref3.allowContext; + var index = text.lastIndexOf(triggerPrefix); + + if (index === -1) { + return false; + } + + if (allowContext && !allowContext(text.slice(0, index), textAfterSelection)) { + return false; + } + + return /^\S*$/.test(text.slice(index + triggerPrefix.length)); + }); + + if (!open) { + this.reset(); + return; + } + + var safeTrigger = Object(external_this_lodash_["escapeRegExp"])(open.triggerPrefix); + var match = text.match(new RegExp("".concat(safeTrigger, "(\\S*)$"))); + var query = match && match[1]; + var _this$state5 = this.state, + wasOpen = _this$state5.open, + wasSuppress = _this$state5.suppress, + wasQuery = _this$state5.query; + + if (open && (!wasOpen || open.idx !== wasOpen.idx || query !== wasQuery)) { + if (open.isDebounced) { + this.debouncedLoadOptions(open, query); + } else { + this.loadOptions(open, query); + } + } // create a regular expression to filter the options + + + var search = open ? new RegExp('(?:\\b|\\s|^)' + Object(external_this_lodash_["escapeRegExp"])(query), 'i') : /./; // filter the options we already have + + var filteredOptions = open ? filterOptions(search, this.state['options_' + open.idx]) : []; // check if we should still suppress the popover + + var suppress = open && wasSuppress === open.idx ? wasSuppress : undefined; // update the state + + if (wasOpen || open) { + this.setState({ + selectedIndex: 0, + filteredOptions: filteredOptions, + suppress: suppress, + search: search, + open: open, + query: query + }); + } // announce the count of filtered options but only if they have loaded + + + if (open && this.state['options_' + open.idx]) { + this.announce(filteredOptions); + } + } + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.debouncedLoadOptions.cancel(); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$props3 = this.props, + children = _this$props3.children, + instanceId = _this$props3.instanceId, + isSelected = _this$props3.isSelected; + var _this$state6 = this.state, + open = _this$state6.open, + suppress = _this$state6.suppress, + selectedIndex = _this$state6.selectedIndex, + filteredOptions = _this$state6.filteredOptions; + + var _ref4 = filteredOptions[selectedIndex] || {}, + _ref4$key = _ref4.key, + selectedKey = _ref4$key === void 0 ? '' : _ref4$key; + + var _ref5 = open || {}, + className = _ref5.className, + idx = _ref5.idx; + + var isExpanded = suppress !== idx && filteredOptions.length > 0; + var listBoxId = isExpanded ? "components-autocomplete-listbox-".concat(instanceId) : null; + var activeId = isExpanded ? "components-autocomplete-item-".concat(instanceId, "-").concat(selectedKey) : null; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children({ + isExpanded: isExpanded, + listBoxId: listBoxId, + activeId: activeId, + onKeyDown: this.handleKeyDown + }), isExpanded && isSelected && Object(external_this_wp_element_["createElement"])(popover["a" /* default */], { + focusOnMount: false, + onClose: this.reset, + position: "top right", + className: "components-autocomplete__popover", + anchorRef: getRange() + }, Object(external_this_wp_element_["createElement"])("div", { + id: listBoxId, + role: "listbox", + className: "components-autocomplete__results" + }, isExpanded && Object(external_this_lodash_["map"])(filteredOptions, function (option, index) { + return Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + key: option.key, + id: "components-autocomplete-item-".concat(instanceId, "-").concat(option.key), + role: "option", + "aria-selected": index === selectedIndex, + disabled: option.isDisabled, + className: classnames_default()('components-autocomplete__result', className, { + 'is-selected': index === selectedIndex + }), + onClick: function onClick() { + return _this3.select(option); + } + }, option.label); + })))); + } + }]); + + return Autocomplete; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([with_spoken_messages, external_this_wp_compose_["withInstanceId"]])(autocomplete_Autocomplete)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/styles/flex-styles.js + + +function flex_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +var flex_styles_alignStyle = function alignStyle(_ref2) { + var align = _ref2.align; + var aligns = { + top: 'flex-start', + bottom: 'flex-end' + }; + var value = aligns[align] || align; + return /*#__PURE__*/css_browser_esm({ + alignItems: value + }, true ? "" : undefined); +}; + +var flex_styles_justifyStyle = function justifyStyle(_ref3) { + var justify = _ref3.justify, + isReversed = _ref3.isReversed; + var justifies = { + left: 'flex-start', + right: 'flex-end' + }; + var value = justifies[justify] || justify; + + if (isReversed && justifies[justify]) { + value = justify === 'left' ? justifies.right : justifies.left; + } + + return /*#__PURE__*/css_browser_esm({ + justifyContent: value + }, true ? "" : undefined); +}; + +var flex_styles_gapStyle = function gapStyle(_ref4) { + var gap = _ref4.gap, + isReversed = _ref4.isReversed; + var base = 4; + var value = typeof gap === 'number' ? base * gap : base; + var dir = isReversed ? 'left' : 'right'; + var padding = "padding-".concat(dir); + return /*#__PURE__*/css_browser_esm("> *{", padding, ":", value, "px;&:last-child{", padding, ":0;}}" + ( true ? "" : undefined)); +}; + +var flex_styles_ref = true ? { + name: "8kj89b", + styles: "flex-direction:row-reverse;" +} : undefined; + +var reversedStyles = function reversedStyles(_ref5) { + var isReversed = _ref5.isReversed; + if (!isReversed) return ''; + return flex_styles_ref; +}; + +var Flex = styled_base_browser_esm("div", { + target: "eboqfv50", + label: "Flex" +})("box-sizing:border-box;display:flex;", flex_styles_alignStyle, ";", flex_styles_justifyStyle, ";", flex_styles_gapStyle, ";", reversedStyles, ";" + ( true ? "" : undefined)); +var Item = styled_base_browser_esm("div", { + target: "eboqfv51", + label: "Item" +})( true ? { + name: "13luw5d", + styles: "box-sizing:border-box;min-width:0;max-width:100%;" +} : undefined); +var Block = /*#__PURE__*/styled_base_browser_esm(Item, { + target: "eboqfv52", + label: "Block" +})( true ? { + name: "1rr4qq7", + styles: "flex:1;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/item.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function FlexItem(_ref, ref) { + var className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); + + var classes = classnames_default()('components-flex__item', className); + return Object(external_this_wp_element_["createElement"])(Item, Object(esm_extends["a" /* default */])({}, props, { + className: classes, + ref: ref + })); +} + +/* harmony default export */ var flex_item = (Object(external_this_wp_element_["forwardRef"])(FlexItem)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/block.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function FlexBlock(_ref, ref) { + var className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); + + var classes = classnames_default()('components-flex__block', className); + return Object(external_this_wp_element_["createElement"])(Block, Object(esm_extends["a" /* default */])({}, props, { + className: classes, + ref: ref + })); +} + +/* harmony default export */ var block = (Object(external_this_wp_element_["forwardRef"])(FlexBlock)); + +// CONCATENATED MODULE: ./node_modules/react-use-gesture/dist/react-use-gesture.esm.js + + +// vector add +function addV(v1, v2) { + return v1.map(function (v, i) { + return v + v2[i]; + }); +} // vector substract + +function subV(v1, v2) { + return v1.map(function (v, i) { + return v - v2[i]; + }); +} +/** + * Calculates velocity + * @param delta the difference between current and previous vectors + * @param delta_t the time offset + * @param len the length of the delta vector + * @returns velocity + */ + +function calculateVelocity(delta, delta_t, len) { + len = len || Math.hypot.apply(Math, delta); + return delta_t ? len / delta_t : 0; +} +/** + * Calculates velocities vector + * @template T the expected vector type + * @param delta the difference between current and previous vectors + * @param delta_t the time offset + * @returns velocities vector + */ + +function calculateVelocities(delta, delta_t) { + return delta_t ? delta.map(function (v) { + return v / delta_t; + }) : Array(delta.length).fill(0); +} +/** + * Calculates distance + * @param movement the difference between current and initial vectors + * @returns distance + */ + +function calculateDistance(movement) { + return Math.hypot.apply(Math, movement); +} +/** + * Calculates direction + * @template T the expected vector type + * @param delta + * @param len + * @returns direction + */ + +function calculateDirection(delta, len) { + len = len || Math.hypot.apply(Math, delta) || 1; + return delta.map(function (v) { + return v / len; + }); +} +/** + * Calculates all kinematics + * @template T the expected vector type + * @param movement the difference between current and initial vectors + * @param delta the difference between current and previous vectors + * @param delta_t the time difference between current and previous timestamps + * @returns all kinematics + */ + +function calculateAllKinematics(movement, delta, delta_t) { + var len = Math.hypot.apply(Math, delta); + return { + velocities: calculateVelocities(delta, delta_t), + velocity: calculateVelocity(delta, delta_t, len), + distance: calculateDistance(movement), + direction: calculateDirection(delta, len) + }; +} +function getIntentionalDisplacement(movement, threshold) { + var abs = Math.abs(movement); + return abs >= threshold ? Math.sign(movement) * threshold : false; +} + +function minMax(value, min, max) { + return Math.max(min, Math.min(value, max)); +} // Based on @aholachek ;) +// https://twitter.com/chpwn/status/285540192096497664 +// iOS constant = 0.55 +// https://medium.com/@nathangitter/building-fluid-interfaces-ios-swift-9732bb934bf5 + + +function rubberband2(distance, constant) { + // default constant from the article is 0.7 + return Math.pow(distance, constant * 5); +} + +function rubberband(distance, dimension, constant) { + if (dimension === 0 || Math.abs(dimension) === Infinity) return rubberband2(distance, constant); + return distance * dimension * constant / (dimension + constant * distance); +} + +function rubberbandIfOutOfBounds(position, min, max, constant) { + if (constant === void 0) { + constant = 0.15; + } + + if (constant === 0) return minMax(position, min, max); + + if (position < min) { + return -rubberband(min - position, max - min, constant) + min; + } + + if (position > max) { + return rubberband(position - max, max - min, constant) + max; + } + + return position; +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(n); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); +} + +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + + return arr2; +} + +function _createForOfIteratorHelperLoose(o) { + var i = 0; + + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + + i = o[Symbol.iterator](); + return i.next.bind(i); +} + +// blank function +function noop() {} // returns a function that chains all functions given as parameters + +var chainFns = function chainFns() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { + fns[_key] = arguments[_key]; + } + + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return fns.forEach(function (fn) { + return fn.apply(void 0, args); + }); + }; +}; +var def = { + array: function array(value) { + return Array.isArray(value) ? value : [value, value]; + }, + withDefault: function withDefault(value, defaultIfUndefined) { + return value !== void 0 ? value : defaultIfUndefined; + } +}; +function matchKeysFromObject(obj, matchingObject) { + var o = {}; + Object.entries(obj).forEach(function (_ref) { + var key = _ref[0], + value = _ref[1]; + return (value !== void 0 || key in matchingObject) && (o[key] = value); + }); + return o; +} +function valueFn(v) { + return typeof v === 'function' ? v() : v; +} + +function getInitialState() { + // common initial state for all gestures + var initialCommon = { + _active: false, + _blocked: false, + _intentional: [false, false], + _movement: [0, 0], + _initial: [0, 0], + _lastEventType: undefined, + event: undefined, + // currentTarget: undefined, + // pointerId: undefined, + values: [0, 0], + velocities: [0, 0], + delta: [0, 0], + movement: [0, 0], + offset: [0, 0], + lastOffset: [0, 0], + direction: [0, 0], + initial: [0, 0], + previous: [0, 0], + first: false, + last: false, + active: false, + timeStamp: 0, + startTime: 0, + elapsedTime: 0, + cancel: noop, + canceled: false, + memo: undefined, + args: undefined + }; // initial state for coordinates-based gestures + + var initialCoordinates = { + axis: undefined, + xy: [0, 0], + vxvy: [0, 0], + velocity: 0, + distance: 0 + }; // initial state for distance and angle-based gestures (pinch) + + var initialDistanceAngle = { + da: [0, 0], + vdva: [0, 0], + origin: undefined, + turns: 0 + }; // initial state object (used by the gesture controller) + + return { + shared: { + hovering: false, + scrolling: false, + wheeling: false, + dragging: false, + moving: false, + pinching: false, + touches: 0, + buttons: 0, + down: false, + shiftKey: false, + altKey: false, + metaKey: false, + ctrlKey: false + }, + drag: _extends({}, initialCommon, {}, initialCoordinates, { + _isTap: true, + _delayedEvent: false, + tap: false, + swipe: [0, 0] + }), + pinch: _extends({}, initialCommon, {}, initialDistanceAngle), + wheel: _extends({}, initialCommon, {}, initialCoordinates), + move: _extends({}, initialCommon, {}, initialCoordinates), + scroll: _extends({}, initialCommon, {}, initialCoordinates) + }; +} + +var setListeners = function setListeners(add) { + return function (el, listeners, options) { + var action = add ? 'addEventListener' : 'removeEventListener'; + listeners.forEach(function (_ref) { + var eventName = _ref[0], + fn = _ref[1]; + return el[action](eventName, fn, options); + }); + }; +}; +/** + * Whether the browser supports GestureEvent (ie Safari) + * @returns true if the browser supports gesture event + */ + + +function supportsGestureEvents() { + try { + // TODO [TS] possibly find GestureEvent definitions? + // @ts-ignore: no type definitions for webkit GestureEvents + return 'constructor' in GestureEvent; + } catch (e) { + return false; + } +} +var addListeners = /*#__PURE__*/setListeners(true); +var removeListeners = /*#__PURE__*/setListeners(false); +/** + * Gets modifier keys from event + * @param event + * @returns modifier keys + */ + +function getModifierKeys(event) { + var shiftKey = event.shiftKey, + altKey = event.altKey, + metaKey = event.metaKey, + ctrlKey = event.ctrlKey; + return { + shiftKey: shiftKey, + altKey: altKey, + metaKey: metaKey, + ctrlKey: ctrlKey + }; +} + +function getTouchEvents(event) { + if ('touches' in event) { + var touches = event.touches, + changedTouches = event.changedTouches; + return touches.length > 0 ? touches : changedTouches; + } + + return null; +} + +function getGenericEventData(event) { + var buttons = 'buttons' in event ? event.buttons : 0; + var touchEvents = getTouchEvents(event); + var touches = touchEvents && touchEvents.length || 0; + var down = touches > 0 || buttons > 0; + return _extends({ + touches: touches, + down: down, + buttons: buttons + }, getModifierKeys(event)); +} +/** + * Gets scroll event values + * @param event + * @returns scroll event values + */ + +function getScrollEventValues(event) { + // If the currentTarget is the window then we return the scrollX/Y position. + // If not (ie the currentTarget is a DOM element), then we return scrollLeft/Top + var _event$currentTarget = event.currentTarget, + scrollX = _event$currentTarget.scrollX, + scrollY = _event$currentTarget.scrollY, + scrollLeft = _event$currentTarget.scrollLeft, + scrollTop = _event$currentTarget.scrollTop; + return { + values: [scrollX || scrollLeft || 0, scrollY || scrollTop || 0] + }; +} +/** + * Gets wheel event values. + * @param event + * @returns wheel event values + */ + +function getWheelEventValues(event) { + var deltaX = event.deltaX, + deltaY = event.deltaY; //TODO implement polyfill ? + // https://developer.mozilla.org/en-US/docs/Web/Events/wheel#Polyfill + + return { + values: [deltaX, deltaY] + }; +} +/** + * Gets pointer event values. + * @param event + * @returns pointer event values + */ + +function getPointerEventValues(event) { + var touchEvents = getTouchEvents(event); + + var _ref2 = touchEvents ? touchEvents[0] : event, + clientX = _ref2.clientX, + clientY = _ref2.clientY; + + return { + values: [clientX, clientY] + }; +} +var WEBKIT_DISTANCE_SCALE_FACTOR = 260; +/** + * Gets webkit gesture event values. + * @param event + * @returns webkit gesture event values + */ + +function getWebkitGestureEventValues(event) { + return { + values: [event.scale * WEBKIT_DISTANCE_SCALE_FACTOR, event.rotation] + }; +} +/** + * Gets two touches event data + * @param event + * @returns two touches event data + */ + +function getTwoTouchesEventData(event) { + var touches = event.touches; + var dx = touches[1].clientX - touches[0].clientX; + var dy = touches[1].clientY - touches[0].clientY; + var values = [Math.hypot(dx, dy), -(Math.atan2(dx, dy) * 180) / Math.PI]; + var origin = [(touches[1].clientX + touches[0].clientX) / 2, (touches[1].clientY + touches[0].clientY) / 2]; + return { + values: values, + origin: origin + }; +} + +/** + * The controller will keep track of the state for all gestures and also keep + * track of timeouts, and window listeners. + * + * @template BinderType the type the bind function should return + */ + +var Controller = function Controller() { + var _this = this; + + this.state = getInitialState(); // state for all gestures + + this.timeouts = {}; // keeping track of timeouts for debounced gestures (such as move, scroll, wheel) + + this.domListeners = []; // when config.domTarget is set, we attach events directly to the dom + + this.windowListeners = {}; // keeps track of window listeners added by gestures (drag only at the moment) + + this.bindings = {}; // an object holding the handlers associated to the gestures + + /** + * Function ran on component unmount: cleans timeouts and removes dom listeners set by the bind function. + */ + + this.clean = function () { + _this.resetBindings(); + + Object.values(_this.timeouts).forEach(clearTimeout); + Object.keys(_this.windowListeners).forEach(function (stateKey) { + return _this.removeWindowListeners(stateKey); + }); + }; + /** + * Function run every time the bind function is run (ie on every render). + * Resets the binding object and remove dom listeners attached to config.domTarget + */ + + + this.resetBindings = function () { + _this.bindings = {}; + + var domTarget = _this.getDomTarget(); + + if (domTarget) { + removeListeners(domTarget, _this.domListeners, _this.config.eventOptions); + _this.domListeners = []; + } + }; + /** + * Returns the domTarget element and parses a ref if needed. + */ + + + this.getDomTarget = function () { + var domTarget = _this.config.domTarget; + return domTarget && 'current' in domTarget ? domTarget.current : domTarget; + }; + /** + * Commodity function to let recognizers simply add listeners to config.window. + */ + + + this.addWindowListeners = function (stateKey, listeners) { + if (!_this.config.window) return; // we use this.windowListeners to keep track of the listeners we add + + _this.windowListeners[stateKey] = listeners; + addListeners(_this.config.window, listeners, _this.config.eventOptions); + }; + /** + * Commodity function to let recognizers simply remove listeners to config.window. + */ + + + this.removeWindowListeners = function (stateKey) { + if (!_this.config.window) return; + var listeners = _this.windowListeners[stateKey]; + + if (listeners) { + removeListeners(_this.config.window, listeners, _this.config.eventOptions); + delete _this.windowListeners[stateKey]; + } + }; + /** + * When config.domTarget is set, this function will add dom listeners to it + */ + + + this.addDomTargetListeners = function (target) { + /** We iterate on the entries of this.binding for each event, then we chain + * the array of functions mapped to it and push them to this.domListeners + */ + Object.entries(_this.bindings).forEach(function (_ref) { + var event = _ref[0], + fns = _ref[1]; + + _this.domListeners.push([event.substr(2).toLowerCase(), chainFns.apply(void 0, fns)]); + }); + addListeners(target, _this.domListeners, _this.config.eventOptions); + }; + /** + * this.bindings is an object which keys match ReactEventHandlerKeys. + * Since a recognizer might want to bind a handler function to an event key already used by a previously + * added recognizer, we need to make sure that each event key is an array of all the functions mapped for + * that key. + */ + + + this.addBindings = function (eventNames, fn) { + var eventNamesArray = !Array.isArray(eventNames) ? [eventNames] : eventNames; + eventNamesArray.forEach(function (eventName) { + if (_this.bindings[eventName]) _this.bindings[eventName].push(fn);else _this.bindings[eventName] = [fn]; + }); + }; + /** + * getBindings will return an object that will be bound by users + * to the react component they want to interact with. + */ + + + this.getBindings = function () { + var bindings = {}; + var captureString = _this.config.captureString; + Object.entries(_this.bindings).forEach(function (_ref2) { + var event = _ref2[0], + fns = _ref2[1]; + var fnsArray = Array.isArray(fns) ? fns : [fns]; + var key = event + captureString; + bindings[key] = chainFns.apply(void 0, fnsArray); + }); + return bindings; + }; + + this.getBind = function () { + // If config.domTarget is set we add event listeners to it and return the clean function. + if (_this.config.domTarget) { + var domTarget = _this.getDomTarget(); + + domTarget && _this.addDomTargetListeners(domTarget); + return _this.clean; + } // If not, we return an object that contains gesture handlers mapped to react handler event keys. + + + return _this.getBindings(); + }; +}; + +/** + * @private + * + * Utility hook called by all gesture hooks and that will be responsible for the internals. + * + * @param {Partial} handlers + * @param {RecognizerClasses} classes + * @param {InternalConfig} config + * @param {NativeHandlersPartial} nativeHandlers - native handlers such as onClick, onMouseDown, etc. + * @returns {(...args: any[]) => HookReturnType} + */ + +function useRecognizers(handlers, classes, config, nativeHandlers) { + // The gesture controller keeping track of all gesture states + var controller = external_this_React_default.a.useMemo(function () { + var current = new Controller(); + /** + * The bind function will create gesture recognizers and return the right + * bind object depending on whether `domTarget` was specified in the config object. + */ + + var bind = function bind() { + current.resetBindings(); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + for (var _iterator = _createForOfIteratorHelperLoose(classes), _step; !(_step = _iterator()).done;) { + var RecognizerClass = _step.value; + new RecognizerClass(current, args).addBindings(); + } // we also add event bindings for native handlers + + + if (controller.nativeRefs) { + for (var eventName in controller.nativeRefs) { + current.addBindings(eventName, // @ts-ignore we're cheating when it comes to event type :( + controller.nativeRefs[eventName]); + } + } + + return current.getBind(); + }; + + return { + nativeRefs: nativeHandlers, + current: current, + bind: bind + }; + }, []); // We reassign the config and handlers to the controller on every render. + + controller.current.config = config; + controller.current.handlers = handlers; // We assign nativeHandlers, otherwise they won't be refreshed on the next render. + + controller.nativeRefs = nativeHandlers; // Run controller clean functions on unmount. + + external_this_React_default.a.useEffect(function () { + return controller.current.clean; + }, []); + return controller.bind; +} + +/** + * @private + * Recognizer abstract class. + * + * @protected + * @abstract + * @type {StateKey} whether the Recognizer should deal with coordinates or distance / angle + */ + +var Recognizer = /*#__PURE__*/function () { + /** + * Creates an instance of a gesture recognizer. + * @param stateKey drag, move, pinch, etc. + * @param controller the controller attached to the gesture + * @param [args] the args that should be passed to the gesture handler + */ + function Recognizer(stateKey, controller, args) { + var _this = this; + + if (args === void 0) { + args = []; + } + + this.stateKey = stateKey; + this.controller = controller; + this.args = args; + this.debounced = true; // Convenience method to set a timeout for a given gesture + + this.setTimeout = function (callback, ms) { + var _window; + + if (ms === void 0) { + ms = 140; + } + + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + _this.controller.timeouts[_this.stateKey] = (_window = window).setTimeout.apply(_window, [callback, ms].concat(args)); + }; // Convenience method to clear a timeout for a given gesture + + + this.clearTimeout = function () { + clearTimeout(_this.controller.timeouts[_this.stateKey]); + }; // Convenience method to add window listeners for a given gesture + + + this.addWindowListeners = function (listeners) { + _this.controller.addWindowListeners(_this.stateKey, listeners); + }; // Convenience method to remove window listeners for a given gesture + + + this.removeWindowListeners = function () { + _this.controller.removeWindowListeners(_this.stateKey); + }; + /** + * Returns the reinitialized start state for the gesture. + * Should be common to all gestures. + * + * @param {Vector2} values + * @param {UseGestureEvent} event + * @returns - the start state for the gesture + */ + + + this.getStartGestureState = function (values, event) { + return _extends({}, getInitialState()[_this.stateKey], { + _active: true, + values: values, + initial: values, + offset: _this.state.offset, + lastOffset: _this.state.offset, + startTime: event.timeStamp + }); + }; // Runs rubberband on a vector + + + this.rubberband = function (vector, rubberband) { + var bounds = _this.config.bounds; + /** + * [x, y]: [rubberband(x, min, max), rubberband(y, min, max)] + */ + + return vector.map(function (v, i) { + return rubberbandIfOutOfBounds(v, bounds[i][0], bounds[i][1], rubberband[i]); + }); + }; + /** + * Fires the gesture handler + * + * @param {boolean} [forceFlag] - if true, then the handler will fire even if the gesture is not intentional + */ + + + this.fireGestureHandler = function (forceFlag) { + /** + * If the gesture has been blocked (this can happen when the gesture has started in an unwanted direction), + * clean everything and don't do anything. + */ + if (_this.state._blocked) { + // we need debounced gestures to end by themselves + if (!_this.debounced) { + _this.state._active = false; + + _this.clean(); + } + + return null; + } // If the gesture has no intentional dimension, don't do fire the handler. + + + var _this$state$_intentio = _this.state._intentional, + intentionalX = _this$state$_intentio[0], + intentionalY = _this$state$_intentio[1]; + if (!forceFlag && intentionalX === false && intentionalY === false) return null; + var _this$state = _this.state, + _active = _this$state._active, + active = _this$state.active; + _this.state.active = _active; + _this.state.first = _active && !active; // `first` is true when the gesture becomes active + + _this.state.last = active && !_active; // `last` is true when the gesture becomes inactive + + _this.controller.state.shared[_this.ingKey] = _active; // Sets dragging, pinching, etc. to the gesture active state + + var state = _extends({}, _this.controller.state.shared, {}, _this.state, {}, _this.mapStateValues(_this.state)); // @ts-ignore + + + var newMemo = _this.handler(state); // Sets memo to the returned value of the handler (unless it's not undefined) + + + _this.state.memo = newMemo !== void 0 ? newMemo : _this.state.memo; // Cleans the gesture when the gesture is no longer active. + + if (!_active) _this.clean(); + return state; + }; + } // Returns the gesture config + + + var _proto = Recognizer.prototype; + + // Conveninence method to update the shared state + _proto.updateSharedState = function updateSharedState(sharedState) { + Object.assign(this.controller.state.shared, sharedState); + } // Conveninence method to update the gesture state + ; + + _proto.updateGestureState = function updateGestureState(gestureState) { + Object.assign(this.state, gestureState); + } + /** + * Returns a generic, common payload for all gestures from an event. + * + * @param {UseGestureEvent} event + * @param {boolean} [isStartEvent] + * @returns - the generic gesture payload + */ + ; + + _proto.getGenericPayload = function getGenericPayload(event, isStartEvent) { + var timeStamp = event.timeStamp, + type = event.type; + var _this$state2 = this.state, + values = _this$state2.values, + startTime = _this$state2.startTime; + return { + _lastEventType: type, + event: event, + timeStamp: timeStamp, + elapsedTime: isStartEvent ? 0 : timeStamp - startTime, + args: this.args, + previous: values + }; + } + /** + * Returns state properties depending on the movement and state. + * + * Should be overriden for custom behavior, doesn't do anything in the implementation + * below. + */ + ; + + _proto.checkIntentionality = function checkIntentionality(_intentional, _movement, _state) { + return { + _intentional: _intentional, + _blocked: false + }; + } + /** + * Returns basic movement properties for the gesture based on the next values and current state. + */ + ; + + _proto.getMovement = function getMovement(values, state) { + if (state === void 0) { + state = this.state; + } + + var _this$config = this.config, + initial = _this$config.initial, + threshold = _this$config.threshold, + rubberband = _this$config.rubberband; + var t0 = threshold[0], + t1 = threshold[1]; + var _state2 = state, + _initial = _state2._initial, + _active = _state2._active, + intentional = _state2._intentional, + lastOffset = _state2.lastOffset, + prevMovement = _state2.movement; + var i0 = intentional[0], + i1 = intentional[1]; + + var _this$getInternalMove = this.getInternalMovement(values, state), + _m0 = _this$getInternalMove[0], + _m1 = _this$getInternalMove[1]; + /** + * For both dimensions of the gesture, check its intentionality on each frame. + */ + + + if (i0 === false) { + i0 = getIntentionalDisplacement(_m0, t0); + } + + if (i1 === false) { + i1 = getIntentionalDisplacement(_m1, t1); + } // Get gesture specific state properties based on intentionality and movement. + + + var intentionalityCheck = this.checkIntentionality([i0, i1], [_m0, _m1], state); + var _intentional = intentionalityCheck._intentional, + _blocked = intentionalityCheck._blocked; + var _i0 = _intentional[0], + _i1 = _intentional[1]; + var _movement = [_m0, _m1]; + if (_i0 !== false && intentional[0] === false) _initial[0] = valueFn(initial)[0]; + if (_i1 !== false && intentional[1] === false) _initial[1] = valueFn(initial)[1]; + /** + * If the gesture has been blocked (from gesture specific checkIntentionality), + * stop right there. + */ + + if (_blocked) return _extends({}, intentionalityCheck, { + _movement: _movement, + delta: [0, 0] + }); + /** + * The movement sent to the handler has 0 in its dimensions when intentionality is false. + * It is calculated from the actual movement minus the threshold. + */ + + var movement = [_i0 !== false ? _m0 - _i0 : valueFn(initial)[0], _i1 !== false ? _m1 - _i1 : valueFn(initial)[1]]; + var offset = addV(movement, lastOffset); + /** + * Rubberband should be 0 when the gesture is no longer active, so that movement + * and offset can return within their bounds. + */ + + var _rubberband = _active ? rubberband : [0, 0]; + + movement = this.rubberband(addV(movement, _initial), _rubberband); // rubberbanded movement + + return _extends({}, intentionalityCheck, { + _initial: _initial, + _movement: _movement, + movement: movement, + offset: this.rubberband(offset, _rubberband), + delta: subV(movement, prevMovement) + }); + } // Cleans the gesture. Can be overriden by gestures. + ; + + _proto.clean = function clean() { + this.clearTimeout(); + this.removeWindowListeners(); + }; + + _createClass(Recognizer, [{ + key: "config", + get: function get() { + return this.controller.config[this.stateKey]; + } // Is the gesture enabled + + }, { + key: "enabled", + get: function get() { + return this.controller.config.enabled && this.config.enabled; + } // Returns the controller state for a given gesture + + }, { + key: "state", + get: function get() { + return this.controller.state[this.stateKey]; + } // Returns the gesture handler + + }, { + key: "handler", + get: function get() { + return this.controller.handlers[this.stateKey]; + } + }]); + + return Recognizer; +}(); + +/** + * @private + * Abstract class for coordinates-based gesture recongizers + * @abstract + * @class CoordinatesRecognizer + * @extends {Recognizer} + * @template T + */ + +var CoordinatesRecognizer = /*#__PURE__*/function (_Recognizer) { + _inheritsLoose(CoordinatesRecognizer, _Recognizer); + + function CoordinatesRecognizer() { + return _Recognizer.apply(this, arguments) || this; + } + + var _proto = CoordinatesRecognizer.prototype; + + /** + * Returns the real movement (without taking intentionality into acount) + */ + _proto.getInternalMovement = function getInternalMovement(values, state) { + return subV(values, state.initial); + } + /** + * In coordinates-based gesture, this function will detect the first intentional axis, + * lock the gesture axis if lockDirection is specified in the config, block the gesture + * if the first intentional axis doesn't match the specified axis in config. + * + * @param {[FalseOrNumber, FalseOrNumber]} _intentional + * @param {Vector2} _movement + * @param {PartialGestureState} state + */ + ; + + _proto.checkIntentionality = function checkIntentionality(_intentional, _movement, state) { + var _intentional2 = _intentional, + _ix = _intentional2[0], + _iy = _intentional2[1]; + var intentionalMovement = _ix !== false || _iy !== false; + var axis = state.axis; + var _blocked = false; // If the movement is intentional, we can compute axis. + + if (intentionalMovement) { + var _movement$map = _movement.map(Math.abs), + absX = _movement$map[0], + absY = _movement$map[1]; + + var _this$config = this.config, + configAxis = _this$config.axis, + lockDirection = _this$config.lockDirection; // We make sure we only set axis value if it hadn't been detected before. + + axis = axis || (absX > absY ? 'x' : absX < absY ? 'y' : undefined); + + if (!!configAxis || lockDirection) { + if (!!axis) { + // If the detected axis doesn't match the config axis we block the gesture + if (!!configAxis && axis !== configAxis) _blocked = true;else { + // Otherwise we prevent the gesture from updating the unwanted axis. + var lockedIndex = axis === 'x' ? 1 : 0; + _intentional[lockedIndex] = false; + } + } else { + // Until we've detected the axis, we prevent the hnadler from updating. + _intentional = [false, false]; + } + } + } + + return { + _intentional: _intentional, + _blocked: _blocked, + axis: axis + }; + }; + + _proto.getKinematics = function getKinematics(values, event) { + var timeStamp = this.state.timeStamp; + var movementDetection = this.getMovement(values, this.state); + var _blocked = movementDetection._blocked, + delta = movementDetection.delta, + movement = movementDetection.movement; + if (_blocked) return movementDetection; + var delta_t = event.timeStamp - timeStamp; + var kinematics = calculateAllKinematics(movement, delta, delta_t); + return _extends({ + values: values, + delta: delta + }, movementDetection, {}, kinematics); + }; + + _proto.mapStateValues = function mapStateValues(state) { + return { + xy: state.values, + vxvy: state.velocities + }; + }; + + return CoordinatesRecognizer; +}(Recognizer); + +var TAP_DISTANCE_THRESHOLD = 3; +var SWIPE_MAX_ELAPSED_TIME = 220; +var FILTER_REPEATED_EVENTS_DELAY = 200; + +var DragRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(DragRecognizer, _CoordinatesRecognize); + + function DragRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'drag', controller, args) || this; + _this.ingKey = 'dragging'; + _this.wasTouch = false; + + _this.isEventTypeTouch = function (type) { + return !!type && type.indexOf('touch') === 0; + }; + + _this.dragShouldStart = function (event) { + var _getGenericEventData = getGenericEventData(event), + touches = _getGenericEventData.touches; + + var _lastEventType = _this.state._lastEventType; + /** + * This tries to filter out mouse events triggered by touch screens + * */ + // If the previous gesture was touch-based, and the current one is mouse based, + // this means that we might be dealing with mouse simulated events if they're close to + // each other. We're only doing this check when we're not using pointer events. + + if (!_this.controller.config.pointer && _this.isEventTypeTouch(_lastEventType) && !_this.isEventTypeTouch(event.type)) { + var delay = Math.abs(event.timeStamp - _this.state.startTime); + if (delay < FILTER_REPEATED_EVENTS_DELAY) return false; + } + + return _this.enabled && touches < 2; + }; + + _this.setPointers = function (event) { + var currentTarget = event.currentTarget, + pointerId = event.pointerId; + if (currentTarget) currentTarget.setPointerCapture(pointerId); + + _this.updateGestureState({ + currentTarget: currentTarget, + pointerId: pointerId + }); + }; + + _this.removePointers = function () { + var _this$state = _this.state, + currentTarget = _this$state.currentTarget, + pointerId = _this$state.pointerId; + if (currentTarget && pointerId) currentTarget.releasePointerCapture(pointerId); + }; + + _this.setListeners = function (isTouch) { + _this.removeWindowListeners(); + + var dragListeners = isTouch ? [['touchmove', _this.onDragChange], ['touchend', _this.onDragEnd], ['touchcancel', _this.onDragEnd]] : [['mousemove', _this.onDragChange], ['mouseup', _this.onDragEnd]]; + + _this.addWindowListeners(dragListeners); + }; + + _this.onDragStart = function (event) { + if (!_this.dragShouldStart(event)) return; // if pointers events + + if (_this.controller.config.pointer) _this.setPointers(event);else _this.setListeners(_this.isEventTypeTouch(event.type)); + + if (_this.config.delay > 0) { + _this.state._delayedEvent = true; + if (typeof event.persist === 'function') event.persist(); + + _this.setTimeout(function () { + return _this.startDrag(event); + }, _this.config.delay); + } else { + _this.startDrag(event); + } + }; + + _this.onDragChange = function (event) { + var canceled = _this.state.canceled; + if (canceled) return; + + if (!_this.state._active) { + if (_this.state._delayedEvent) { + _this.clearTimeout(); + + _this.startDrag(event); + } + + return; + } + + var genericEventData = getGenericEventData(event); + + if (!genericEventData.down) { + _this.onDragEnd(event); + + return; + } + + _this.updateSharedState(genericEventData); + + var _getPointerEventValue = getPointerEventValues(event), + values = _getPointerEventValue.values; + + var kinematics = _this.getKinematics(values, event); + + var _isTap = _this.state._isTap; + if (_isTap && calculateDistance(kinematics._movement) >= TAP_DISTANCE_THRESHOLD) _isTap = false; + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { + _isTap: _isTap, + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onDragEnd = function (event) { + _this.state._active = false; + + _this.updateSharedState({ + down: false, + buttons: 0, + touches: 0 + }); + + var _this$state2 = _this.state, + _isTap = _this$state2._isTap, + values = _this$state2.values, + _this$state2$velociti = _this$state2.velocities, + vx = _this$state2$velociti[0], + vy = _this$state2$velociti[1], + _this$state2$movement = _this$state2.movement, + mx = _this$state2$movement[0], + my = _this$state2$movement[1], + _this$state2$_intenti = _this$state2._intentional, + ix = _this$state2$_intenti[0], + iy = _this$state2$_intenti[1]; + + var endState = _extends({}, _this.getGenericPayload(event), {}, _this.getMovement(values)); + + var elapsedTime = endState.elapsedTime; + var _this$config = _this.config, + _this$config$swipeVel = _this$config.swipeVelocity, + svx = _this$config$swipeVel[0], + svy = _this$config$swipeVel[1], + _this$config$swipeDis = _this$config.swipeDistance, + sx = _this$config$swipeDis[0], + sy = _this$config$swipeDis[1]; + var swipe = [0, 0]; + + if (elapsedTime < SWIPE_MAX_ELAPSED_TIME) { + if (ix !== false && Math.abs(vx) > svx && Math.abs(mx) > sx) swipe[0] = Math.sign(vx); + if (iy !== false && Math.abs(vy) > svy && Math.abs(my) > sy) swipe[1] = Math.sign(vy); + } + + _this.updateGestureState(_extends({ + event: event + }, endState, { + tap: _isTap, + swipe: swipe + })); + + _this.fireGestureHandler(_this.config.filterTaps && _this.state._isTap); + }; + + _this.clean = function () { + _CoordinatesRecognize.prototype.clean.call(_assertThisInitialized(_this)); + + _this.state._delayedEvent = false; + if (_this.controller.config.pointer) _this.removePointers(); + }; + + _this.onCancel = function () { + _this.updateGestureState({ + canceled: true, + cancel: noop + }); + + _this.state._active = false; + + _this.updateSharedState({ + down: false, + buttons: 0, + touches: 0 + }); + + requestAnimationFrame(function () { + return _this.fireGestureHandler(); + }); + }; + + return _this; + } + + var _proto = DragRecognizer.prototype; + + _proto.startDrag = function startDrag(event) { + var _this2 = this; + + var _getPointerEventValue2 = getPointerEventValues(event), + values = _getPointerEventValue2.values; + + this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, this.getStartGestureState(values, event), {}, this.getGenericPayload(event, true)); + + this.updateGestureState(_extends({}, startState, {}, this.getMovement(values, startState), { + cancel: function cancel() { + return _this2.onCancel(); + } + })); + this.fireGestureHandler(); + }; + + _proto.addBindings = function addBindings() { + if (this.controller.config.pointer) { + this.controller.addBindings('onPointerDown', this.onDragStart); + this.controller.addBindings('onPointerMove', this.onDragChange); + this.controller.addBindings(['onPointerUp', 'onPointerCancel'], this.onDragEnd); + } else { + this.controller.addBindings(['onTouchStart', 'onMouseDown'], this.onDragStart); + } + }; + + return DragRecognizer; +}(CoordinatesRecognizer); + +var DEFAULT_DRAG_DELAY = 180; +var DEFAULT_RUBBERBAND = 0.15; +var DEFAULT_SWIPE_VELOCITY = 0.5; +var DEFAULT_SWIPE_DISTANCE = 60; +var defaultWindow = typeof window !== 'undefined' ? window : undefined; +var defaultCoordinatesOptions = { + lockDirection: false, + axis: undefined, + bounds: undefined +}; +/** + * @private + * + * Returns the internal generic option object. + * + * @param {Partial} [config={}] + * @returns {InternalGenericOptions} + */ + +function getInternalGenericOptions(config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + _config$eventOptions = _config.eventOptions; + _config$eventOptions = _config$eventOptions === void 0 ? {} : _config$eventOptions; + + var _config$eventOptions$ = _config$eventOptions.passive, + passive = _config$eventOptions$ === void 0 ? true : _config$eventOptions$, + _config$eventOptions$2 = _config$eventOptions.capture, + capture = _config$eventOptions$2 === void 0 ? false : _config$eventOptions$2, + _config$eventOptions$3 = _config$eventOptions.pointer, + pointer = _config$eventOptions$3 === void 0 ? false : _config$eventOptions$3, + _config$window = _config.window, + window = _config$window === void 0 ? defaultWindow : _config$window, + _config$domTarget = _config.domTarget, + domTarget = _config$domTarget === void 0 ? undefined : _config$domTarget, + _config$enabled = _config.enabled, + enabled = _config$enabled === void 0 ? true : _config$enabled, + restConfig = _objectWithoutPropertiesLoose(_config, ["eventOptions", "window", "domTarget", "enabled"]); + + return _extends({}, restConfig, { + enabled: enabled, + domTarget: domTarget, + window: window, + // passive is always true if there's no domTarget + eventOptions: { + passive: !domTarget || !!passive, + capture: !!capture + }, + captureString: capture ? 'Capture' : '', + pointer: !!pointer + }); +} +function getInternalGestureOptions(gestureConfig) { + var _gestureConfig$thresh = gestureConfig.threshold, + threshold = _gestureConfig$thresh === void 0 ? undefined : _gestureConfig$thresh, + _gestureConfig$rubber = gestureConfig.rubberband, + rubberband = _gestureConfig$rubber === void 0 ? 0 : _gestureConfig$rubber, + _gestureConfig$enable = gestureConfig.enabled, + enabled = _gestureConfig$enable === void 0 ? true : _gestureConfig$enable, + _gestureConfig$initia = gestureConfig.initial, + initial = _gestureConfig$initia === void 0 ? [0, 0] : _gestureConfig$initia; + if (typeof rubberband === 'boolean') rubberband = rubberband ? DEFAULT_RUBBERBAND : 0; + if (threshold === void 0) threshold = 0; + return { + enabled: enabled, + initial: initial, + threshold: def.array(threshold), + rubberband: def.array(rubberband) + }; +} +function getInternalCoordinatesOptions(coordinatesConfig) { + if (coordinatesConfig === void 0) { + coordinatesConfig = {}; + } + + var _coordinatesConfig = coordinatesConfig, + axis = _coordinatesConfig.axis, + lockDirection = _coordinatesConfig.lockDirection, + _coordinatesConfig$bo = _coordinatesConfig.bounds, + bounds = _coordinatesConfig$bo === void 0 ? {} : _coordinatesConfig$bo, + internalOptions = _objectWithoutPropertiesLoose(_coordinatesConfig, ["axis", "lockDirection", "bounds"]); + + var boundsArray = [[def.withDefault(bounds.left, -Infinity), def.withDefault(bounds.right, Infinity)], [def.withDefault(bounds.top, -Infinity), def.withDefault(bounds.bottom, Infinity)]]; + return _extends({}, getInternalGestureOptions(internalOptions), {}, defaultCoordinatesOptions, {}, matchKeysFromObject({ + axis: axis, + lockDirection: lockDirection + }, coordinatesConfig), { + bounds: boundsArray + }); +} +function getInternalDistanceAngleOptions(distanceAngleConfig) { + if (distanceAngleConfig === void 0) { + distanceAngleConfig = {}; + } + + var _distanceAngleConfig = distanceAngleConfig, + _distanceAngleConfig$ = _distanceAngleConfig.distanceBounds, + distanceBounds = _distanceAngleConfig$ === void 0 ? {} : _distanceAngleConfig$, + _distanceAngleConfig$2 = _distanceAngleConfig.angleBounds, + angleBounds = _distanceAngleConfig$2 === void 0 ? {} : _distanceAngleConfig$2, + internalOptions = _objectWithoutPropertiesLoose(_distanceAngleConfig, ["distanceBounds", "angleBounds"]); + + var boundsArray = [[def.withDefault(distanceBounds.min, -Infinity), def.withDefault(distanceBounds.max, Infinity)], [def.withDefault(angleBounds.min, -Infinity), def.withDefault(angleBounds.max, Infinity)]]; + return _extends({}, getInternalGestureOptions(internalOptions), { + bounds: boundsArray + }); +} +function getInternalDragOptions(dragConfig) { + if (dragConfig === void 0) { + dragConfig = {}; + } + + var _dragConfig = dragConfig, + enabled = _dragConfig.enabled, + threshold = _dragConfig.threshold, + bounds = _dragConfig.bounds, + rubberband = _dragConfig.rubberband, + initial = _dragConfig.initial, + dragOptions = _objectWithoutPropertiesLoose(_dragConfig, ["enabled", "threshold", "bounds", "rubberband", "initial"]); + + var _dragOptions$swipeVel = dragOptions.swipeVelocity, + swipeVelocity = _dragOptions$swipeVel === void 0 ? DEFAULT_SWIPE_VELOCITY : _dragOptions$swipeVel, + _dragOptions$swipeDis = dragOptions.swipeDistance, + swipeDistance = _dragOptions$swipeDis === void 0 ? DEFAULT_SWIPE_DISTANCE : _dragOptions$swipeDis, + _dragOptions$delay = dragOptions.delay, + delay = _dragOptions$delay === void 0 ? false : _dragOptions$delay, + _dragOptions$filterTa = dragOptions.filterTaps, + filterTaps = _dragOptions$filterTa === void 0 ? false : _dragOptions$filterTa, + axis = dragOptions.axis, + lockDirection = dragOptions.lockDirection; + + if (threshold === void 0) { + threshold = Math.max(0, filterTaps ? 3 : 0, lockDirection || axis ? 1 : 0); + } else { + filterTaps = true; + } + + var internalCoordinatesOptions = getInternalCoordinatesOptions(matchKeysFromObject({ + enabled: enabled, + threshold: threshold, + bounds: bounds, + rubberband: rubberband, + axis: axis, + lockDirection: lockDirection, + initial: initial + }, dragConfig)); + return _extends({}, internalCoordinatesOptions, { + filterTaps: filterTaps || internalCoordinatesOptions.threshold[0] + internalCoordinatesOptions.threshold[1] > 0, + swipeVelocity: def.array(swipeVelocity), + swipeDistance: def.array(swipeDistance), + delay: typeof delay === 'number' ? delay : delay ? DEFAULT_DRAG_DELAY : 0 + }); +} + +/** + * @public + * + * Drag hook. + * + * @param {Handler<'drag'>} handler - the function fired every time the drag gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and drag options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useDrag(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + drag = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + }), { + drag: getInternalDragOptions(drag) + }); + + return useRecognizers({ + drag: handler + }, [DragRecognizer], mergedConfig); +} + +/** + * @private + * Abstract class for distance/angle-based gesture recongizers + * @abstract + * @class DistanceAngleRecognizer + * @extends {Recognizer} + * @template T + */ + +var DistanceAngleRecognizer = /*#__PURE__*/function (_Recognizer) { + _inheritsLoose(DistanceAngleRecognizer, _Recognizer); + + function DistanceAngleRecognizer() { + return _Recognizer.apply(this, arguments) || this; + } + + var _proto = DistanceAngleRecognizer.prototype; + + /** + * Returns the real movement (without taking intentionality into acount) + */ + _proto.getInternalMovement = function getInternalMovement(_ref, state) { + var d = _ref[0], + a = _ref[1]; + var da = state.values, + turns = state.turns, + initial = state.initial; // angle might not be defined when ctrl wheel is used for zoom only + // in that case we set it to the previous angle value + + a = a !== void 0 ? a : da[1]; + var delta_a = a - da[1]; + /** + * The angle value might jump from 179deg to -179deg when we actually want to + * read 181deg to ensure continuity. To make that happen, we detect when the jump + * is supsiciously high (ie > 270deg) and increase the `turns` value + */ + + var newTurns = Math.abs(delta_a) > 270 ? turns + Math.sign(delta_a) : turns; // we update the angle difference to its corrected value + + var movement_d = d - initial[0]; + var movement_a = a - 360 * newTurns - initial[1]; + return [movement_d, movement_a]; + }; + + _proto.getKinematics = function getKinematics(values, event) { + var _this$state = this.state, + timeStamp = _this$state.timeStamp, + initial = _this$state.initial; + var movementDetection = this.getMovement(values, this.state); + var delta = movementDetection.delta, + movement = movementDetection.movement; + var turns = (values[1] - movement[1] - initial[1]) / 360; + var delta_t = event.timeStamp - timeStamp; + var kinematics = calculateAllKinematics(movement, delta, delta_t); + return _extends({ + values: values, + delta: delta, + turns: turns + }, movementDetection, {}, kinematics); + }; + + _proto.mapStateValues = function mapStateValues(state) { + return { + da: state.values, + vdva: state.velocities + }; + }; + + return DistanceAngleRecognizer; +}(Recognizer); + +var PinchRecognizer = /*#__PURE__*/function (_DistanceAngleRecogni) { + _inheritsLoose(PinchRecognizer, _DistanceAngleRecogni); + + function PinchRecognizer(controller, args) { + var _this; + + _this = _DistanceAngleRecogni.call(this, 'pinch', controller, args) || this; + _this.ingKey = 'pinching'; + + _this.pinchShouldStart = function (event) { + var _getGenericEventData = getGenericEventData(event), + touches = _getGenericEventData.touches; + + return _this.enabled && touches === 2; + }; + + _this.onPinchStart = function (event) { + if (!_this.pinchShouldStart(event)) return; + + var _getTwoTouchesEventDa = getTwoTouchesEventData(event), + values = _getTwoTouchesEventDa.values, + origin = _getTwoTouchesEventDa.origin; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true)); + + _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState), { + origin: origin, + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onPinchChange = function (event) { + var _this$state = _this.state, + canceled = _this$state.canceled, + timeStamp = _this$state.timeStamp, + _active = _this$state._active; + if (canceled || !_active) return; + var genericEventData = getGenericEventData(event); + if (genericEventData.touches !== 2 || event.timeStamp === timeStamp) return; + + _this.updateSharedState(genericEventData); + + var _getTwoTouchesEventDa2 = getTwoTouchesEventData(event), + values = _getTwoTouchesEventDa2.values, + origin = _getTwoTouchesEventDa2.origin; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { + origin: origin, + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onPinchEnd = function (event) { + if (!_this.state.active) return; + _this.state._active = false; + + _this.updateSharedState({ + down: false, + touches: 0 + }); + + _this.updateGestureState(_extends({ + event: event + }, _this.getGenericPayload(event), {}, _this.getMovement(_this.state.values))); + + _this.fireGestureHandler(); + }; + + _this.onCancel = function () { + _this.state._active = false; + + _this.updateGestureState({ + canceled: true, + cancel: noop + }); + + _this.updateSharedState({ + down: false, + touches: 0 + }); + + requestAnimationFrame(function () { + return _this.fireGestureHandler(); + }); + }; + /** + * PINCH WITH WEBKIT GESTURES + */ + + + _this.onGestureStart = function (event) { + if (!_this.enabled) return; + event.preventDefault(); + + var _getWebkitGestureEven = getWebkitGestureEventValues(event), + values = _getWebkitGestureEven.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true)); + + _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState), { + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onGestureChange = function (event) { + var _this$state2 = _this.state, + canceled = _this$state2.canceled, + _active = _this$state2._active; + if (canceled || !_active) return; + event.preventDefault(); + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _getWebkitGestureEven2 = getWebkitGestureEventValues(event), + values = _getWebkitGestureEven2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { + cancel: function cancel() { + return _this.onCancel(); + } + })); + + _this.fireGestureHandler(); + }; + + _this.onGestureEnd = function (event) { + event.preventDefault(); + if (!_this.state.active) return; + _this.state._active = false; + + _this.updateSharedState({ + down: false, + touches: 0 + }); + + _this.updateGestureState(_extends({ + event: event + }, _this.getGenericPayload(event), {}, _this.getMovement(_this.state.values))); + + _this.fireGestureHandler(); + }; + + _this.updateTouchData = function (event) { + if (!_this.enabled || event.touches.length !== 2 || !_this.state._active) return; + + var _getTwoTouchesEventDa3 = getTwoTouchesEventData(event), + origin = _getTwoTouchesEventDa3.origin; + + _this.state.origin = origin; + }; + /** + * PINCH WITH WHEEL + */ + + + _this.wheelShouldRun = function (event) { + return _this.enabled && event.ctrlKey; + }; + + _this.getWheelValuesFromEvent = function (event) { + var _getWheelEventValues = getWheelEventValues(event), + _getWheelEventValues$ = _getWheelEventValues.values, + delta_d = _getWheelEventValues$[1]; + + var _this$state$values = _this.state.values, + prev_d = _this$state$values[0], + prev_a = _this$state$values[1]; + var d = prev_d - delta_d; + var a = prev_a !== void 0 ? prev_a : 0; + return { + values: [d, a], + origin: [event.clientX, event.clientY], + delta: [0, delta_d] + }; + }; + + _this.onWheel = function (event) { + if (!_this.wheelShouldRun(event)) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onWheelEnd); + + if (!_this.state._active) _this.onWheelStart(event);else _this.onWheelChange(event); + }; + + _this.onWheelStart = function (event) { + var _this$getWheelValuesF = _this.getWheelValuesFromEvent(event), + values = _this$getWheelValuesF.values, + delta = _this$getWheelValuesF.delta, + origin = _this$getWheelValuesF.origin; + + if (!_this.controller.config.eventOptions.passive) { + event.preventDefault(); + } else if (false) {} + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true), { + initial: _this.state.values + }); + + _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState), { + offset: values, + delta: delta, + origin: origin + })); + + _this.fireGestureHandler(); + }; + + _this.onWheelChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _this$getWheelValuesF2 = _this.getWheelValuesFromEvent(event), + values = _this$getWheelValuesF2.values, + origin = _this$getWheelValuesF2.origin, + delta = _this$getWheelValuesF2.delta; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics, { + origin: origin, + delta: delta + })); + + _this.fireGestureHandler(); + }; + + _this.onWheelEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_this.getMovement(_this.state.values)); + + _this.fireGestureHandler(); + }; + + return _this; + } + + var _proto = PinchRecognizer.prototype; + + _proto.addBindings = function addBindings() { + // Only try to use gesture events when they are supported and domTarget is set + // as React doesn't support gesture handlers. + if (this.controller.config.domTarget && supportsGestureEvents()) { + this.controller.addBindings('onGestureStart', this.onGestureStart); + this.controller.addBindings('onGestureChange', this.onGestureChange); + this.controller.addBindings(['onGestureEnd', 'onTouchCancel'], this.onGestureEnd); + this.controller.addBindings(['onTouchStart', 'onTouchMove'], this.updateTouchData); + } else { + this.controller.addBindings('onTouchStart', this.onPinchStart); + this.controller.addBindings('onTouchMove', this.onPinchChange); + this.controller.addBindings(['onTouchEnd', 'onTouchCancel'], this.onPinchEnd); + this.controller.addBindings('onWheel', this.onWheel); + } + }; + + return PinchRecognizer; +}(DistanceAngleRecognizer); + +/** + * @public + * + * Pinch hook. + * + * @param {Handler<'pinch'>} handler - the function fired every time the pinch gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and pinch options + * @returns {(...args: any[]) => HookReturnType} + */ + +function usePinch(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + pinch = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + }), { + pinch: getInternalDistanceAngleOptions(pinch) + }); + + return useRecognizers({ + pinch: handler + }, [PinchRecognizer], mergedConfig); +} + +var WheelRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(WheelRecognizer, _CoordinatesRecognize); + + function WheelRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'wheel', controller, args) || this; + _this.ingKey = 'wheeling'; + _this.debounced = true; + + _this.wheelShouldRun = function (event) { + if (event.ctrlKey && 'pinch' in _this.controller.handlers) return false; + return _this.enabled; + }; + + _this.getValuesFromEvent = function (event) { + var prevValues = _this.state.values; + + var _getWheelEventValues = getWheelEventValues(event), + values = _getWheelEventValues.values; + + return { + values: addV(values, prevValues) + }; + }; + + _this.onWheel = function (event) { + if (!_this.wheelShouldRun(event)) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onWheelEnd); + + if (!_this.state._active) _this.onWheelStart(event);else _this.onWheelChange(event); + }; + + _this.onWheelStart = function (event) { + var _this$getValuesFromEv = _this.getValuesFromEvent(event), + values = _this$getValuesFromEv.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true), { + initial: _this.state.values + }); + + var movementDetection = _this.getMovement(values, startState); + + var delta = movementDetection.delta; + + _this.updateGestureState(_extends({}, startState, {}, movementDetection, { + distance: calculateDistance(delta), + direction: calculateDirection(delta) + })); + + _this.fireGestureHandler(); + }; + + _this.onWheelChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _this$getValuesFromEv2 = _this.getValuesFromEvent(event), + values = _this$getValuesFromEv2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics)); + + _this.fireGestureHandler(); + }; + + _this.onWheelEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_extends({}, _this.getMovement(_this.state.values), { + velocities: [0, 0], + velocity: 0 + })); + + _this.fireGestureHandler(); + }; + + return _this; + } + + var _proto = WheelRecognizer.prototype; + + _proto.addBindings = function addBindings() { + this.controller.addBindings('onWheel', this.onWheel); + }; + + return WheelRecognizer; +}(CoordinatesRecognizer); + +/** + * @public + * + * Wheel hook. + * + * @param {Handler<'wheel'>} handler - the function fired every time the wheel gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and wheel options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useWheel(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + wheel = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + }), { + wheel: getInternalCoordinatesOptions(wheel) + }); + + return useRecognizers({ + wheel: handler + }, [WheelRecognizer], mergedConfig); +} + +var MoveRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(MoveRecognizer, _CoordinatesRecognize); + + function MoveRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'move', controller, args) || this; + _this.ingKey = 'moving'; + _this.debounced = true; + + _this.moveShouldRun = function () { + return _this.enabled; + }; + + _this.onMove = function (event) { + if (!_this.moveShouldRun()) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onMoveEnd); + + if (!_this.state._active) _this.onMoveStart(event);else _this.onMoveChange(event); + }; + + _this.onMoveStart = function (event) { + var _getPointerEventValue = getPointerEventValues(event), + values = _getPointerEventValue.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true)); + + _this.updateGestureState(_extends({}, startState, {}, _this.getMovement(values, startState))); + + _this.fireGestureHandler(); + }; + + _this.onMoveChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _getPointerEventValue2 = getPointerEventValues(event), + values = _getPointerEventValue2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics)); + + _this.fireGestureHandler(); + }; + + _this.onMoveEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_extends({}, _this.getMovement(_this.state.values), { + velocities: [0, 0], + velocity: 0 + })); + + _this.fireGestureHandler(); + }; + + _this.onPointerEnter = function (event) { + _this.controller.state.shared.hovering = true; + if (!_this.controller.config.enabled) return; + + if (_this.controller.config.hover.enabled) { + var _getPointerEventValue3 = getPointerEventValues(event), + values = _getPointerEventValue3.values; + + var state = _extends({}, _this.controller.state.shared, {}, _this.state, {}, _this.getGenericPayload(event, true), { + values: values, + active: true, + hovering: true + }); + + _this.controller.handlers.hover(_extends({}, state, {}, _this.mapStateValues(state))); + } + + if ('move' in _this.controller.handlers) _this.onMoveStart(event); + }; + + _this.onPointerLeave = function (event) { + _this.controller.state.shared.hovering = false; + if ('move' in _this.controller.handlers) _this.onMoveEnd(); + + if (_this.controller.config.hover.enabled) { + var _getPointerEventValue4 = getPointerEventValues(event), + values = _getPointerEventValue4.values; + + var state = _extends({}, _this.controller.state.shared, {}, _this.state, {}, _this.getGenericPayload(event), { + values: values, + active: false + }); + + _this.controller.handlers.hover(_extends({}, state, {}, _this.mapStateValues(state))); + } + }; + + return _this; + } + + var _proto = MoveRecognizer.prototype; + + _proto.addBindings = function addBindings() { + if (this.controller.config.pointer) { + if ('move' in this.controller.handlers) { + this.controller.addBindings('onPointerMove', this.onMove); + } + + if ('hover' in this.controller.handlers) { + this.controller.addBindings('onPointerEnter', this.onPointerEnter); + this.controller.addBindings('onPointerLeave', this.onPointerLeave); + } + } else { + if ('move' in this.controller.handlers) { + this.controller.addBindings('onMouseMove', this.onMove); + } + + if ('hover' in this.controller.handlers) { + this.controller.addBindings('onMouseEnter', this.onPointerEnter); + this.controller.addBindings('onMouseLeave', this.onPointerLeave); + } + } + }; + + return MoveRecognizer; +}(CoordinatesRecognizer); + +/** + * @public + * + * Move hook. + * + * @param {Handler<'move'>} handler - the function fired every time the move gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and move options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useMove(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + move = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + }), { + move: getInternalCoordinatesOptions(move) + }); + + return useRecognizers({ + move: handler + }, [MoveRecognizer], mergedConfig); +} + +/** + * @public + * + * Hover hook. + * + * @param {Handler<'hover'>} handler - the function fired every time the hover gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and hover options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useHover(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + hover = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + }), { + hover: _extends({ + enabled: true + }, hover) + }); + + return useRecognizers({ + hover: handler + }, [MoveRecognizer], mergedConfig); +} + +var ScrollRecognizer = /*#__PURE__*/function (_CoordinatesRecognize) { + _inheritsLoose(ScrollRecognizer, _CoordinatesRecognize); + + function ScrollRecognizer(controller, args) { + var _this; + + _this = _CoordinatesRecognize.call(this, 'scroll', controller, args) || this; + _this.ingKey = 'scrolling'; + _this.debounced = true; + + _this.scrollShouldRun = function () { + return _this.enabled; + }; + + _this.onScroll = function (event) { + if (!_this.scrollShouldRun()) return; + + _this.clearTimeout(); + + _this.setTimeout(_this.onScrollEnd); + + if (!_this.state._active) _this.onScrollStart(event);else _this.onScrollChange(event); + }; + + _this.onScrollStart = function (event) { + var _getScrollEventValues = getScrollEventValues(event), + values = _getScrollEventValues.values; + + _this.updateSharedState(getGenericEventData(event)); + + var startState = _extends({}, _this.getStartGestureState(values, event), {}, _this.getGenericPayload(event, true), { + initial: _this.state.values + }); + + var movementDetection = _this.getMovement(values, startState); + + var delta = movementDetection.delta; + + _this.updateGestureState(_extends({}, startState, {}, movementDetection, { + distance: calculateDistance(delta), + direction: calculateDirection(delta) + })); + + _this.fireGestureHandler(); + }; + + _this.onScrollChange = function (event) { + var genericEventData = getGenericEventData(event); + + _this.updateSharedState(genericEventData); + + var _getScrollEventValues2 = getScrollEventValues(event), + values = _getScrollEventValues2.values; + + var kinematics = _this.getKinematics(values, event); + + _this.updateGestureState(_extends({}, _this.getGenericPayload(event), {}, kinematics)); + + _this.fireGestureHandler(); + }; + + _this.onScrollEnd = function () { + _this.state._active = false; + + _this.updateGestureState(_extends({}, _this.getMovement(_this.state.values), { + velocities: [0, 0], + velocity: 0 + })); + + _this.fireGestureHandler(); + }; + + return _this; + } + + var _proto = ScrollRecognizer.prototype; + + _proto.addBindings = function addBindings() { + this.controller.addBindings('onScroll', this.onScroll); + }; + + return ScrollRecognizer; +}(CoordinatesRecognizer); + +/** + * @public + * + * Scroll hook. + * + * @param {Handler<'scroll'>} handler - the function fired every time the scroll gesture updates + * @param {(Config | {})} [config={}] - the config object including generic options and scroll options + * @returns {(...args: any[]) => HookReturnType} + */ + +function useScroll(handler, config) { + if (config === void 0) { + config = {}; + } + + var _config = config, + domTarget = _config.domTarget, + eventOptions = _config.eventOptions, + window = _config.window, + scroll = _objectWithoutPropertiesLoose(_config, ["domTarget", "eventOptions", "window"]); + /** + * TODO: at the moment we recompute the config object at every render + * this could probably be optimized + */ + + + var mergedConfig = _extends({}, getInternalGenericOptions({ + domTarget: domTarget, + eventOptions: eventOptions, + window: window + }), { + scroll: getInternalCoordinatesOptions(scroll) + }); + + return useRecognizers({ + scroll: handler + }, [ScrollRecognizer], mergedConfig); +} + +/** + * @public + * + * The most complete gesture hook, allowing support for multiple gestures. + * + * @param {UserHandlersPartial} handlers - an object with on[Gesture] keys containg gesture handlers + * @param {UseGestureConfig} [config={}] - the full config object + * @returns {(...args: any[]) => HookReturnType} + */ + +function useGesture(handlers, config) { + if (config === void 0) { + config = {}; + } + + /** + * If handlers contains {onDragStart, onDrag, onDragEnd, onMoveStart, onMove} + * actions will include 'onDrag' and 'onMove. + */ + var _React$useState = external_this_React_default.a.useState(function () { + return new Set(Object.keys(handlers).map(function (k) { + return k.replace(/End|Start/, ''); + })); + }), + actions = _React$useState[0]; + /** + * Here we compute the derived internal config based on the provided config object. + * We decompose the config into its generic and gesture options and compute each. + * TODO: this is currently done on every render! + */ + + + var _config = config, + drag = _config.drag, + wheel = _config.wheel, + move = _config.move, + scroll = _config.scroll, + pinch = _config.pinch, + hover = _config.hover, + restConfig = _objectWithoutPropertiesLoose(_config, ["drag", "wheel", "move", "scroll", "pinch", "hover"]); + + var mergedConfig = getInternalGenericOptions(restConfig); + var classes = []; + var internalHandlers = {}; // will hold reference to native handlers such as onClick, onMouseDown, etc. + + var _nativeHandlers = _extends({}, handlers); + + if (actions.has('onDrag')) { + classes.push(DragRecognizer); + internalHandlers.drag = includeStartEndHandlers(handlers, 'onDrag', _nativeHandlers); + mergedConfig.drag = getInternalDragOptions(drag); + } + + if (actions.has('onWheel')) { + classes.push(WheelRecognizer); + internalHandlers.wheel = includeStartEndHandlers(handlers, 'onWheel', _nativeHandlers); + mergedConfig.wheel = getInternalCoordinatesOptions(wheel); + } + + if (actions.has('onScroll')) { + classes.push(ScrollRecognizer); + internalHandlers.scroll = includeStartEndHandlers(handlers, 'onScroll', _nativeHandlers); + mergedConfig.scroll = getInternalCoordinatesOptions(scroll); + } + + if (actions.has('onMove')) { + classes.push(MoveRecognizer); + internalHandlers.move = includeStartEndHandlers(handlers, 'onMove', _nativeHandlers); + mergedConfig.move = getInternalCoordinatesOptions(move); + } + + if (actions.has('onPinch')) { + classes.push(PinchRecognizer); + internalHandlers.pinch = includeStartEndHandlers(handlers, 'onPinch', _nativeHandlers); + mergedConfig.pinch = getInternalDistanceAngleOptions(pinch); + } + + if (actions.has('onHover')) { + if (!actions.has('onMove')) classes.push(MoveRecognizer); + internalHandlers.hover = handlers.onHover; + mergedConfig.hover = _extends({ + enabled: true + }, hover); + delete _nativeHandlers.onHover; + } + + return useRecognizers(internalHandlers, classes, mergedConfig, _nativeHandlers); +} +/** + * @private + * + * This utility function will integrate start and end handlers into the regular + * handler function by using first and last conditions. + * + * @param {UserHandlersPartial} handlers - the handlers function object + * @param {HandlerKey} handlerKey - the key for which to integrate start and end handlers + * @returns + */ + +function includeStartEndHandlers(handlers, handlerKey, _nativeHandlers) { + var startKey = handlerKey + 'Start'; + var endKey = handlerKey + 'End'; + delete _nativeHandlers[handlerKey]; + delete _nativeHandlers[startKey]; + delete _nativeHandlers[endKey]; + + var fn = function fn(state) { + var memo = undefined; + if (state.first && startKey in handlers) handlers[startKey](state); + if (handlerKey in handlers) memo = handlers[handlerKey](state); + if (state.last && endKey in handlers) handlers[endKey](state); + return memo; + }; + + return fn; +} + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +function FlexComponent(_ref, ref) { + var _ref$align = _ref.align, + align = _ref$align === void 0 ? 'center' : _ref$align, + className = _ref.className, + _ref$gap = _ref.gap, + gap = _ref$gap === void 0 ? 2 : _ref$gap, + _ref$justify = _ref.justify, + justify = _ref$justify === void 0 ? 'space-between' : _ref$justify, + _ref$isReversed = _ref.isReversed, + isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["align", "className", "gap", "justify", "isReversed"]); + + var classes = classnames_default()('components-flex', className); + return Object(external_this_wp_element_["createElement"])(Flex, Object(esm_extends["a" /* default */])({}, props, { + align: align, + className: classes, + ref: ref, + gap: gap, + justify: justify, + isReversed: isReversed + })); +} + +var flex_Flex = Object(external_this_wp_element_["forwardRef"])(FlexComponent); +/* harmony default export */ var flex = (flex_Flex); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/state.js + + + +function state_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function state_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { state_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { state_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var initialStateReducer = function initialStateReducer(state) { + return state; +}; + +var initialInputControlState = { + _event: {}, + error: null, + initialValue: '', + isDirty: false, + isDragEnabled: false, + isDragging: false, + isPressEnterToChange: false, + value: '' +}; +var actionTypes = { + CHANGE: 'CHANGE', + COMMIT: 'COMMIT', + DRAG_END: 'DRAG_END', + DRAG_START: 'DRAG_START', + DRAG: 'DRAG', + INVALIDATE: 'INVALIDATE', + PRESS_DOWN: 'PRESS_DOWN', + PRESS_ENTER: 'PRESS_ENTER', + PRESS_UP: 'PRESS_UP', + RESET: 'RESET', + UPDATE: 'UPDATE' +}; +var inputControlActionTypes = actionTypes; +/** + * Prepares initialState for the reducer. + * + * @param {Object} initialState The initial state. + * @return {Object} Prepared initialState for the reducer + */ + +function mergeInitialState() { + var initialState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialInputControlState; + var value = initialState.value; + return state_objectSpread({}, initialInputControlState, {}, initialState, { + initialValue: value + }); +} +/** + * Composes multiple stateReducers into a single stateReducer, building + * the pipeline to control the flow for state and actions. + * + * @param {...Function} fns State reducers. + * @return {Function} The single composed stateReducer. + */ + + +var state_composeStateReducers = function composeStateReducers() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { + fns[_key] = arguments[_key]; + } + + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return fns.reduceRight(function (state, fn) { + var fnState = fn.apply(void 0, args); + return Object(external_this_lodash_["isEmpty"])(fnState) ? state : state_objectSpread({}, state, {}, fnState); + }, {}); + }; +}; +/** + * Creates a reducer that opens the channel for external state subscription + * and modification. + * + * This technique uses the "stateReducer" design pattern: + * https://kentcdodds.com/blog/the-state-reducer-pattern/ + * + * @param {Function} composedStateReducers A custom reducer that can subscribe and modify state. + * @return {Function} The reducer. + */ + +function inputControlStateReducer(composedStateReducers) { + return function (state, action) { + var nextState = state_objectSpread({}, state); + + var type = action.type, + payload = action.payload; + + switch (type) { + /** + * Keyboard events + */ + case actionTypes.PRESS_UP: + nextState.isDirty = false; + break; + + case actionTypes.PRESS_DOWN: + nextState.isDirty = false; + break; + + /** + * Drag events + */ + + case actionTypes.DRAG_START: + nextState.isDragging = true; + break; + + case actionTypes.DRAG_END: + nextState.isDragging = false; + break; + + /** + * Input events + */ + + case actionTypes.CHANGE: + nextState.error = null; + nextState.value = payload.value; + + if (state.isPressEnterToChange) { + nextState.isDirty = true; + } + + break; + + case actionTypes.COMMIT: + nextState.value = payload.value; + nextState.isDirty = false; + break; + + case actionTypes.RESET: + nextState.error = null; + nextState.isDirty = false; + nextState.value = payload.value || state.initialValue; + break; + + case actionTypes.UPDATE: + if (payload.value !== state.value) { + nextState.value = payload.value; + nextState.isDirty = false; + } + + break; + + /** + * Validation + */ + + case actionTypes.INVALIDATE: + nextState.error = payload.error; + break; + } + + if (payload.event) { + nextState._event = payload.event; + } + /** + * Send the nextState + action to the composedReducers via + * this "bridge" mechanism. This allows external stateReducers + * to hook into actions, and modify state if needed. + */ + + + return composedStateReducers(nextState, action); + }; +} +/** + * A custom hook that connects and external stateReducer with an internal + * reducer. This hook manages the internal state of InputControl. + * However, by connecting an external stateReducer function, other + * components can react to actions as well as modify state before it is + * applied. + * + * This technique uses the "stateReducer" design pattern: + * https://kentcdodds.com/blog/the-state-reducer-pattern/ + * + * @param {Function} stateReducer An external state reducer. + * @param {Object} initialState The initial state for the reducer. + * @return {Object} State, dispatch, and a collection of actions. + */ + + +function useInputControlStateReducer() { + var stateReducer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialStateReducer; + var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : initialInputControlState; + + var _useReducer = Object(external_this_wp_element_["useReducer"])(inputControlStateReducer(stateReducer), mergeInitialState(initialState)), + _useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2), + state = _useReducer2[0], + dispatch = _useReducer2[1]; + + var createChangeEvent = function createChangeEvent(type) { + return function (nextValue, event) { + /** + * Persist allows for the (Synthetic) event to be used outside of + * this function call. + * https://reactjs.org/docs/events.html#event-pooling + */ + if (event && event.persist) { + event.persist(); + } + + dispatch({ + type: type, + payload: { + value: nextValue, + event: event + } + }); + }; + }; + + var createKeyEvent = function createKeyEvent(type) { + return function (event) { + /** + * Persist allows for the (Synthetic) event to be used outside of + * this function call. + * https://reactjs.org/docs/events.html#event-pooling + */ + if (event && event.persist) { + event.persist(); + } + + dispatch({ + type: type, + payload: { + event: event + } + }); + }; + }; + + var createDragEvent = function createDragEvent(type) { + return function (dragProps) { + dispatch({ + type: type, + payload: dragProps + }); + }; + }; + /** + * Actions for the reducer + */ + + + var change = createChangeEvent(actionTypes.CHANGE); + var inValidate = createChangeEvent(actionTypes.INVALIDATE); + var reset = createChangeEvent(actionTypes.RESET); + var commit = createChangeEvent(actionTypes.COMMIT); + var update = createChangeEvent(actionTypes.UPDATE); + var dragStart = createDragEvent(actionTypes.DRAG_START); + var drag = createDragEvent(actionTypes.DRAG); + var dragEnd = createDragEvent(actionTypes.DRAG_END); + var pressUp = createKeyEvent(actionTypes.PRESS_UP); + var pressDown = createKeyEvent(actionTypes.PRESS_DOWN); + var pressEnter = createKeyEvent(actionTypes.PRESS_ENTER); + return { + change: change, + commit: commit, + dispatch: dispatch, + drag: drag, + dragEnd: dragEnd, + dragStart: dragStart, + inValidate: inValidate, + pressDown: pressDown, + pressEnter: pressEnter, + pressUp: pressUp, + reset: reset, + state: state, + update: update + }; +} + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +function _taggedTemplateLiteral(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + return Object.freeze(Object.defineProperties(strings, { + raw: { + value: Object.freeze(raw) + } + })); +} +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/font-family.js +var fontFamily = "font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;"; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/emotion-css.js +/** + * External dependencies + */ + +/* harmony default export */ var emotion_css = (css_browser_esm); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/text-mixins.js + + +function _templateObject9() { + var data = _taggedTemplateLiteral(["\n\t", "\n\t", "\n"]); + + _templateObject9 = function _templateObject9() { + return data; + }; + + return data; +} + +function _templateObject8() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject8 = function _templateObject8() { + return data; + }; + + return data; +} + +function _templateObject7() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject7 = function _templateObject7() { + return data; + }; + + return data; +} + +function _templateObject6() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject6 = function _templateObject6() { + return data; + }; + + return data; +} + +function _templateObject5() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject5 = function _templateObject5() { + return data; + }; + + return data; +} + +function _templateObject4() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject4 = function _templateObject4() { + return data; + }; + + return data; +} + +function _templateObject3() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject3 = function _templateObject3() { + return data; + }; + + return data; +} + +function _templateObject2() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject2 = function _templateObject2() { + return data; + }; + + return data; +} + +function _templateObject() { + var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} + +/** + * Internal dependencies + */ + + +var fontWeightNormal = "font-weight: 400;"; +var fontWeightSemibold = "font-weight: 600;"; +var text_mixins_title = "\n ".concat(fontWeightNormal, "\n"); +var titleLarge = "\n\tfont-size: 32px;\n\tline-height: 40px;\n"; +var titleMedium = "\n\tfont-size: 24px;\n\tline-height: 32px;\n"; +var titleSmall = "\n\tfont-size: 20px;\n\tline-height: 28px;\n"; +var subtitle = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 14px;\n\tline-height: 20px;\n"); +var subtitleLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n"; +var subtitleSmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; +var text_mixins_body = "\n\t".concat(fontWeightNormal, "\n"); +var bodyLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n"; +var bodySmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n"; +var text_mixins_button = "\n ".concat(fontWeightSemibold, "\n font-size: 14px;\n line-height: 20px;\n"); +var caption = "\n\t".concat(fontWeightNormal, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); +var text_mixins_label = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 12px;\n\tline-height: 16px;\n"); +/** + * @typedef {'title.large'|'title.medium'|'title.small'|'subtitle'|'subtitle.small'|'body'|'body.large'|'body.small'|'button'|'caption'|'label'} TextVariant + */ + +/** + * @param {TextVariant} variantName + */ + +var text_mixins_variant = function variant() { + var variantName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'body'; + + switch (variantName) { + case 'title.large': + return emotion_css(_templateObject(), text_mixins_title, titleLarge); + + case 'title.medium': + return emotion_css(_templateObject2(), text_mixins_title, titleMedium); + + case 'title.small': + return emotion_css(_templateObject3(), text_mixins_title, titleSmall); + + case 'subtitle': + return emotion_css(_templateObject4(), subtitle, subtitleLarge); + + case 'subtitle.small': + return emotion_css(_templateObject5(), subtitle, subtitleSmall); + + case 'body': + return emotion_css(_templateObject6(), text_mixins_body); + + case 'body.large': + return emotion_css(_templateObject7(), text_mixins_body, bodyLarge); + + case 'body.small': + return emotion_css(_templateObject8(), text_mixins_body, bodySmall); + + case 'button': + return text_mixins_button; + + case 'caption': + return caption; + + case 'label': + return text_mixins_label; + } +}; +/** + * @typedef {Object} TextProps + * @property {TextVariant} variant one of TextVariant to be used + */ + +/** + * @param {TextProps} props + */ + + +var text_mixins_text = function text(props) { + return emotion_css(_templateObject9(), fontFamily, text_mixins_variant(props.variant)); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/index.js + + +/** + * Internal dependencies + */ + + +var Text = styled_base_browser_esm("p", { + target: "e15wbhsk0", + label: "Text" +})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n", text_mixins_text, true ? "" : undefined); + +/* harmony default export */ var build_module_text = (Text); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/styles/input-control-styles.js + + + + +function input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + +var FLOATING_LABEL_TRANSITION_SPEED = '60ms'; + +var input_control_styles_rootFloatLabelStyles = function rootFloatLabelStyles(_ref3) { + var isFloatingLabel = _ref3.isFloatingLabel; + var paddingTop = isFloatingLabel ? 5 : 0; + return /*#__PURE__*/css_browser_esm({ + paddingTop: paddingTop + }, true ? "" : undefined); +}; + +var input_control_styles_ref = true ? { + name: "r6z5ec", + styles: "z-index:1;" +} : undefined; + +var rootFocusedStyles = function rootFocusedStyles(_ref4) { + var isFocused = _ref4.isFocused; + if (!isFocused) return ''; + return input_control_styles_ref; +}; + +var input_control_styles_Root = styled_base_browser_esm("div", { + target: "e1cr7zh10", + label: "Root" +})("box-sizing:border-box;position:relative;border-radius:2px;", input_control_styles_rootFloatLabelStyles, ";", rootFocusedStyles, ";" + ( true ? "" : undefined)); + +var input_control_styles_containerDisabledStyle = function containerDisabledStyle(_ref5) { + var disabled = _ref5.disabled; + var backgroundColor = disabled ? colors_color('ui.backgroundDisabled') : colors_color('ui.background'); + return /*#__PURE__*/css_browser_esm({ + backgroundColor: backgroundColor + }, true ? "" : undefined); +}; + +var Container = styled_base_browser_esm("div", { + target: "e1cr7zh11", + label: "Container" +})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;position:relative;", input_control_styles_containerDisabledStyle, ";" + ( true ? "" : undefined)); + +var input_control_styles_disabledStyles = function disabledStyles(_ref6) { + var disabled = _ref6.disabled; + if (!disabled) return ''; + return /*#__PURE__*/css_browser_esm({ + color: colors_color('ui.textDisabled') + }, true ? "" : undefined); +}; + +var input_control_styles_fontSizeStyles = function fontSizeStyles(_ref7) { + var size = _ref7.size; + var sizes = { + default: '13px', + small: '11px' + }; + var fontSize = sizes[size]; + var fontSizeMobile = '16px'; + if (!fontSize) return ''; + return /*#__PURE__*/css_browser_esm("font-size:", fontSizeMobile, ";@media ( min-width:600px ){font-size:", fontSize, ";}" + ( true ? "" : undefined)); +}; + +var input_control_styles_sizeStyles = function sizeStyles(_ref8) { + var size = _ref8.size; + var sizes = { + default: { + height: 30, + lineHeight: 1, + minHeight: 30 + }, + small: { + height: 24, + lineHeight: 1, + minHeight: 24 + } + }; + var style = sizes[size] || sizes.default; + return /*#__PURE__*/css_browser_esm(style, true ? "" : undefined); +}; + +var input_control_styles_placeholderStyles = function placeholderStyles(_ref9) { + var isFilled = _ref9.isFilled, + isFloating = _ref9.isFloating, + isFloatingLabel = _ref9.isFloatingLabel; + var opacity = 1; + + if (isFloatingLabel) { + if (!isFilled && !isFloating) { + opacity = 0; + } + } + + return /*#__PURE__*/css_browser_esm("&::placeholder{opacity:", opacity, ";}&::-webkit-input-placeholder{line-height:normal;}" + ( true ? "" : undefined)); +}; + +var input_control_styles_dragStyles = function dragStyles(_ref10) { + var isDragging = _ref10.isDragging, + dragCursor = _ref10.dragCursor; + var defaultArrowStyles = ''; + var activeDragCursorStyles = ''; + + if (isDragging) { + defaultArrowStyles = /*#__PURE__*/css_browser_esm("cursor:", dragCursor, ";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}" + ( true ? "" : undefined)); + } + + if (isDragging && dragCursor) { + activeDragCursorStyles = /*#__PURE__*/css_browser_esm("&:active{cursor:", dragCursor, ";}" + ( true ? "" : undefined)); + } + + return /*#__PURE__*/css_browser_esm(defaultArrowStyles, ";", activeDragCursorStyles, ";" + ( true ? "" : undefined)); +}; // TODO: Resolve need to use &&& to increase specificity +// https://github.com/WordPress/gutenberg/issues/18483 + + +var input_control_styles_Input = styled_base_browser_esm("input", { + target: "e1cr7zh12", + label: "Input" +})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:", colors_color('black'), ";display:block;outline:none;padding-left:8px;padding-right:8px;width:100%;", input_control_styles_dragStyles, ";", input_control_styles_disabledStyles, ";", input_control_styles_fontSizeStyles, ";", input_control_styles_sizeStyles, ";", input_control_styles_placeholderStyles, ";}" + ( true ? "" : undefined)); + +var input_control_styles_laberColor = function laberColor(_ref11) { + var isFloatingLabel = _ref11.isFloatingLabel, + isFilled = _ref11.isFilled, + isFloating = _ref11.isFloating; + var isPlaceholder = isFloatingLabel && !isFilled; + var textColor = isPlaceholder || isFloating ? colors_color('ui.textDisabled') : 'currentColor'; + return /*#__PURE__*/css_browser_esm({ + color: textColor + }, true ? "" : undefined); +}; + +var input_control_styles_labelFontSize = function labelFontSize(_ref12) { + var isFloatingLabel = _ref12.isFloatingLabel, + size = _ref12.size; + var sizes = { + default: '13px', + small: '11px' + }; + var fontSize = sizes[size]; + var lineHeight = isFloatingLabel ? 1.2 : null; + return /*#__PURE__*/css_browser_esm({ + fontSize: fontSize, + lineHeight: lineHeight + }, true ? "" : undefined); +}; + +var input_control_styles_labelPosition = function labelPosition(_ref13) { + var isFloatingLabel = _ref13.isFloatingLabel, + isFloating = _ref13.isFloating, + size = _ref13.size; + var paddingBottom = isFloatingLabel ? 0 : 4; + var position = isFloatingLabel ? 'absolute' : null; + var pointerEvents = isFloating ? null : 'none'; + var isSmall = size === 'small'; + var offsetTop = isSmall ? 1 : 2; + var offset = isSmall ? '-1px' : '-3px'; + var marginTop = isFloating ? 0 : offsetTop; + var marginLeft = isFloatingLabel ? 8 : 0; + var transform = isFloating ? "translate( 0, calc(-100% + ".concat(offset, ") ) scale( 0.75 )") : 'translate( 0, -50%) scale(1)'; + + if (!isFloatingLabel) { + transform = null; + } + + var transition = isFloatingLabel ? "transform ".concat(FLOATING_LABEL_TRANSITION_SPEED, " linear") : null; + return /*#__PURE__*/css_browser_esm({ + marginTop: marginTop, + paddingBottom: paddingBottom, + position: position, + pointerEvents: pointerEvents, + transition: transition, + transform: transform + }, rtl({ + marginLeft: marginLeft + })(), rtl({ + transformOrigin: 'top left' + }, { + transformOrigin: 'top right' + })(), true ? "" : undefined); +}; + +var input_control_styles_ref2 = true ? { + name: "fjfd5j", + styles: "max-width:calc( 100% - 10px );overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" +} : undefined; + +var labelTruncation = function labelTruncation(_ref14) { + var isFloating = _ref14.isFloating; + if (isFloating) return ''; + return input_control_styles_ref2; +}; + +var BaseLabel = /*#__PURE__*/styled_base_browser_esm(build_module_text, { + target: "e1cr7zh13", + label: "BaseLabel" +})("&&&{box-sizing:border-box;display:block;margin:0;max-width:100%;padding:0;pointer-events:none;top:50%;transition:transform ", FLOATING_LABEL_TRANSITION_SPEED, " linear,max-width ", FLOATING_LABEL_TRANSITION_SPEED, " linear;z-index:1;", input_control_styles_laberColor, ";", input_control_styles_labelFontSize, ";", input_control_styles_labelPosition, ";", labelTruncation, ";", reduceMotion('transition'), ";", rtl({ + left: 0 +}), "}" + ( true ? "" : undefined)); + +var input_control_styles_Label = function Label(props) { + return Object(external_this_wp_element_["createElement"])(BaseLabel, Object(esm_extends["a" /* default */])({}, props, { + as: "label" + })); +}; + +var input_control_styles_fieldsetTopStyles = function fieldsetTopStyles(_ref15) { + var isFloatingLabel = _ref15.isFloatingLabel; + var top = isFloatingLabel ? -5 : 0; + return /*#__PURE__*/css_browser_esm({ + top: top + }, true ? "" : undefined); +}; + +var input_control_styles_fieldsetFocusedStyles = function fieldsetFocusedStyles(_ref16) { + var disabled = _ref16.disabled, + isFocused = _ref16.isFocused; + var borderColor = isFocused ? colors_color('ui.borderFocus') : colors_color('ui.border'); + + if (disabled) { + borderColor = 'ui.borderDisabled'; + } + + var borderWidth = isFocused ? 2 : 1; + var borderStyle = 'solid'; + return /*#__PURE__*/css_browser_esm({ + borderColor: borderColor, + borderStyle: borderStyle, + borderWidth: borderWidth + }, true ? "" : undefined); +}; + +var Fieldset = styled_base_browser_esm("fieldset", { + target: "e1cr7zh14", + label: "Fieldset" +})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;", input_control_styles_fieldsetFocusedStyles, ";", input_control_styles_fieldsetTopStyles, ";", rtl({ + paddingLeft: 2 +}), "}" + ( true ? "" : undefined)); + +var input_control_styles_legendSize = function legendSize(_ref17) { + var isFloating = _ref17.isFloating, + size = _ref17.size; + var maxWidth = isFloating ? 1000 : 0.01; + var sizes = { + default: 9.75, + small: 8.25 + }; + var fontSize = sizes[size]; + return /*#__PURE__*/css_browser_esm({ + fontSize: fontSize, + maxWidth: maxWidth + }, true ? "" : undefined); +}; + +var Legend = styled_base_browser_esm("legend", { + target: "e1cr7zh15", + label: "Legend" +})("&&&{box-sizing:border-box;display:block;height:11px;line-height:11px;margin:0;padding:0;transition:max-width ", FLOATING_LABEL_TRANSITION_SPEED, " linear;visibility:hidden;width:auto;", input_control_styles_legendSize, ";", reduceMotion('transition'), ";}" + ( true ? "" : undefined)); + +var BaseLegendText = /*#__PURE__*/styled_base_browser_esm(build_module_text, { + target: "e1cr7zh16", + label: "BaseLegendText" +})("box-sizing:border-box;display:inline-block;", rtl({ + paddingLeft: 4, + paddingRight: 5 +}), true ? "" : undefined); + +var input_control_styles_LegendText = function LegendText(props) { + return Object(external_this_wp_element_["createElement"])(BaseLegendText, Object(esm_extends["a" /* default */])({}, props, { + as: "span" + })); +}; +var Suffix = styled_base_browser_esm("span", { + target: "e1cr7zh17", + label: "Suffix" +})( true ? { + name: "1pxuk39", + styles: "box-sizing:border-box;display:block;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/backdrop.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function Backdrop(_ref) { + var _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$isFloating = _ref.isFloating, + isFloating = _ref$isFloating === void 0 ? false : _ref$isFloating, + _ref$isFloatingLabel = _ref.isFloatingLabel, + isFloatingLabel = _ref$isFloatingLabel === void 0 ? false : _ref$isFloatingLabel, + _ref$isFocused = _ref.isFocused, + isFocused = _ref$isFocused === void 0 ? false : _ref$isFocused, + label = _ref.label, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size; + return Object(external_this_wp_element_["createElement"])(Fieldset, { + "aria-hidden": "true", + className: "components-input-control__backdrop", + disabled: disabled, + isFloatingLabel: isFloatingLabel, + isFocused: isFocused + }, isFloatingLabel && Object(external_this_wp_element_["createElement"])(Legend, { + "aria-hidden": "true", + className: "components-input-control__backdrop-label", + isFloating: isFloating, + size: size + }, Object(external_this_wp_element_["createElement"])(input_control_styles_LegendText, { + className: "components-input-control__backdrop-text" + }, label))); +} + +var MemoizedBackdrop = Object(external_this_wp_element_["memo"])(Backdrop); +/* harmony default export */ var backdrop = (MemoizedBackdrop); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/utils.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * Gets a CSS cursor value based on a drag direction. + * + * @param {string} dragDirection The drag direction. + * @return {string} The CSS cursor value. + */ + +function getDragCursor(dragDirection) { + var isRtl = getRTL(); + var dragCursor = 'n-resize'; + + switch (dragDirection) { + case 'n': + dragCursor = 'n-resize'; + break; + + case 'e': + dragCursor = isRtl ? 'w-resize' : 'e-resize'; + break; + + case 's': + dragCursor = 's-resize'; + break; + + case 'w': + dragCursor = isRtl ? 'e-resize' : 'w-resize'; + break; + } + + return dragCursor; +} +/** + * Custom hook that renders a drag cursor when dragging. + * + * @param {boolean} isDragging The dragging state. + * @param {string} dragDirection The drag direction. + * + * @return {string} The CSS cursor value. + */ + +function useDragCursor(isDragging, dragDirection) { + var dragCursor = getDragCursor(dragDirection); + Object(external_this_wp_element_["useEffect"])(function () { + if (isDragging) { + document.documentElement.style.cursor = dragCursor; + document.documentElement.style.pointerEvents = 'none'; + } else { + document.documentElement.style.cursor = null; + document.documentElement.style.pointerEvents = null; + } + }, [isDragging]); + return dragCursor; +} +/** + * Determines if a value is empty, null, or undefined. + * + * @param {any} value The value to check. + * @return {boolean} Whether value is empty. + */ + +function isValueEmpty(value) { + var isNullish = typeof value === 'undefined' || value === null; + var isEmptyString = value === ''; + return isNullish || isEmptyString; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-field.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + + +function InputField(_ref, ref) { + var _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$dragDirection = _ref.dragDirection, + dragDirection = _ref$dragDirection === void 0 ? 'n' : _ref$dragDirection, + _ref$dragThreshold = _ref.dragThreshold, + dragThreshold = _ref$dragThreshold === void 0 ? 10 : _ref$dragThreshold, + id = _ref.id, + _ref$isDragEnabled = _ref.isDragEnabled, + isDragEnabled = _ref$isDragEnabled === void 0 ? false : _ref$isDragEnabled, + _ref$isFloating = _ref.isFloating, + isFloating = _ref$isFloating === void 0 ? false : _ref$isFloating, + _ref$isFloatingLabelS = _ref.isFloatingLabelSet, + isFloatingLabelSet = _ref$isFloatingLabelS === void 0 ? false : _ref$isFloatingLabelS, + _ref$isPressEnterToCh = _ref.isPressEnterToChange, + isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, + _ref$onBlur = _ref.onBlur, + onBlur = _ref$onBlur === void 0 ? external_this_lodash_["noop"] : _ref$onBlur, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onDrag = _ref.onDrag, + onDrag = _ref$onDrag === void 0 ? external_this_lodash_["noop"] : _ref$onDrag, + _ref$onDragEnd = _ref.onDragEnd, + onDragEnd = _ref$onDragEnd === void 0 ? external_this_lodash_["noop"] : _ref$onDragEnd, + _ref$onDragStart = _ref.onDragStart, + onDragStart = _ref$onDragStart === void 0 ? external_this_lodash_["noop"] : _ref$onDragStart, + _ref$onFocus = _ref.onFocus, + onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, + _ref$onKeyDown = _ref.onKeyDown, + onKeyDown = _ref$onKeyDown === void 0 ? external_this_lodash_["noop"] : _ref$onKeyDown, + onUpdateValue = _ref.onUpdateValue, + _ref$onValidate = _ref.onValidate, + onValidate = _ref$onValidate === void 0 ? external_this_lodash_["noop"] : _ref$onValidate, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + _ref$stateReducer = _ref.stateReducer, + stateReducer = _ref$stateReducer === void 0 ? function (state) { + return state; + } : _ref$stateReducer, + valueProp = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["disabled", "dragDirection", "dragThreshold", "id", "isDragEnabled", "isFloating", "isFloatingLabelSet", "isPressEnterToChange", "onBlur", "onChange", "onDrag", "onDragEnd", "onDragStart", "onFocus", "onKeyDown", "onUpdateValue", "onValidate", "size", "stateReducer", "value"]); + + var _useInputControlState = useInputControlStateReducer(stateReducer, { + isDragEnabled: isDragEnabled, + value: valueProp, + isPressEnterToChange: isPressEnterToChange + }), + state = _useInputControlState.state, + change = _useInputControlState.change, + commit = _useInputControlState.commit, + drag = _useInputControlState.drag, + dragEnd = _useInputControlState.dragEnd, + dragStart = _useInputControlState.dragStart, + invalidate = _useInputControlState.invalidate, + pressDown = _useInputControlState.pressDown, + pressEnter = _useInputControlState.pressEnter, + pressUp = _useInputControlState.pressUp, + reset = _useInputControlState.reset, + update = _useInputControlState.update; + + var _event = state._event, + value = state.value, + isDragging = state.isDragging, + isDirty = state.isDirty; + var valueRef = Object(external_this_wp_element_["useRef"])(value); + var dragCursor = useDragCursor(isDragging, dragDirection); + Object(external_this_wp_element_["useEffect"])(function () { + /** + * Handles syncing incoming value changes with internal state. + * This effectively enables a "controlled" state. + * https://reactjs.org/docs/forms.html#controlled-components + */ + if (valueProp !== valueRef.current) { + update(valueProp); + valueRef.current = valueProp; // Quick return to avoid firing the onChange callback + + return; + } + /** + * Fires the onChange callback when internal state value changes. + */ + + + if (value !== valueRef.current && !isDirty) { + onChange(value, { + event: _event + }); + onUpdateValue(!isValueEmpty(value)); + valueRef.current = value; + } + }, [value, isDirty, valueProp]); + + var handleOnBlur = function handleOnBlur(event) { + onBlur(event); + /** + * If isPressEnterToChange is set, this commits the value to + * the onChange callback. + */ + + if (isPressEnterToChange && isDirty) { + if (!isValueEmpty(value)) { + handleOnCommit({ + target: { + value: value + } + }, event); + } else { + reset(valueProp); + } + } + }; + + var handleOnFocus = function handleOnFocus(event) { + onFocus(event); + }; + + var handleOnChange = function handleOnChange(event) { + var nextValue = event.target.value; + change(nextValue, event); + }; + + var handleOnCommit = function handleOnCommit(event) { + var nextValue = event.target.value; + + try { + onValidate(nextValue, { + event: event + }); + commit(nextValue, event); + } catch (err) { + invalidate(err, { + event: event + }); + } + }; + + var handleOnKeyDown = function handleOnKeyDown(event) { + var keyCode = event.keyCode; + onKeyDown(event); + + switch (keyCode) { + case external_this_wp_keycodes_["UP"]: + pressUp(event); + break; + + case external_this_wp_keycodes_["DOWN"]: + pressDown(event); + break; + + case external_this_wp_keycodes_["ENTER"]: + pressEnter(event); + + if (isPressEnterToChange) { + event.preventDefault(); + handleOnCommit(event); + } + + break; + } + }; + + var dragGestureProps = useDrag(function (dragProps) { + var distance = dragProps.distance, + dragging = dragProps.dragging, + event = dragProps.event; + if (!isDragEnabled) return; + if (!distance) return; + event.stopPropagation(); + /** + * Quick return if no longer dragging. + * This prevents unnecessary value calculations. + */ + + if (!dragging) { + onDragEnd(dragProps); + dragEnd(dragProps); + return; + } + + onDrag(dragProps); + drag(dragProps); + + if (!isDragging) { + onDragStart(dragProps); + dragStart(dragProps); + } + }, { + threshold: dragThreshold, + enabled: isDragEnabled + }); + return Object(external_this_wp_element_["createElement"])(input_control_styles_Input, Object(esm_extends["a" /* default */])({}, props, dragGestureProps(), { + className: "components-input-control__input", + disabled: disabled, + dragCursor: dragCursor, + isDragging: isDragging, + id: id, + isFloating: isFloating, + isFloatingLabel: isFloatingLabelSet, + onBlur: handleOnBlur, + onChange: handleOnChange, + onFocus: handleOnFocus, + onKeyDown: handleOnKeyDown, + ref: ref, + size: size, + value: value + })); +} + +var ForwardedComponent = Object(external_this_wp_element_["forwardRef"])(InputField); +/* harmony default export */ var input_field = (ForwardedComponent); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/label.js + + + + +/** + * Internal dependencies + */ + + +function label_Label(_ref) { + var children = _ref.children, + hideLabelFromVision = _ref.hideLabelFromVision, + htmlFor = _ref.htmlFor, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "hideLabelFromVision", "htmlFor"]); + + if (!children) return null; + + if (hideLabelFromVision) { + return Object(external_this_wp_element_["createElement"])(visually_hidden, { + as: "label", + htmlFor: htmlFor + }, children); + } + + return Object(external_this_wp_element_["createElement"])(input_control_styles_Label, Object(esm_extends["a" /* default */])({ + htmlFor: htmlFor + }, props), children); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/index.js + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + + + + +function useUniqueId(idProp) { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(InputControl); + var id = "inspector-input-control-".concat(instanceId); + return idProp || id; +} + +function InputControl(_ref, ref) { + var _ref$__unstableStateR = _ref.__unstableStateReducer, + stateReducer = _ref$__unstableStateR === void 0 ? function (state) { + return state; + } : _ref$__unstableStateR, + children = _ref.children, + className = _ref.className, + _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$hideLabelFromVis = _ref.hideLabelFromVision, + hideLabelFromVision = _ref$hideLabelFromVis === void 0 ? false : _ref$hideLabelFromVis, + idProp = _ref.id, + _ref$isPressEnterToCh = _ref.isPressEnterToChange, + isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, + _ref$isFloatingLabel = _ref.isFloatingLabel, + isFloatingLabel = _ref$isFloatingLabel === void 0 ? false : _ref$isFloatingLabel, + label = _ref.label, + _ref$onBlur = _ref.onBlur, + onBlur = _ref$onBlur === void 0 ? external_this_lodash_["noop"] : _ref$onBlur, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onFocus = _ref.onFocus, + onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, + _ref$onValidate = _ref.onValidate, + onValidate = _ref$onValidate === void 0 ? external_this_lodash_["noop"] : _ref$onValidate, + _ref$onKeyDown = _ref.onKeyDown, + onKeyDown = _ref$onKeyDown === void 0 ? external_this_lodash_["noop"] : _ref$onKeyDown, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + suffix = _ref.suffix, + value = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "children", "className", "disabled", "hideLabelFromVision", "id", "isPressEnterToChange", "isFloatingLabel", "label", "onBlur", "onChange", "onFocus", "onValidate", "onKeyDown", "size", "suffix", "value"]); + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isFocused = _useState2[0], + setIsFocused = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(!isValueEmpty(value)), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isFilled = _useState4[0], + setIsFilled = _useState4[1]; + + var id = useUniqueId(idProp); + var classes = classnames_default()('components-input-control', className); + + var handleOnBlur = function handleOnBlur(event) { + onBlur(event); + setIsFocused(false); + }; + + var handleOnFocus = function handleOnFocus(event) { + onFocus(event); + setIsFocused(true); + }; + + var isInputFilled = isFilled || !isValueEmpty(value); + var isFloating = isFloatingLabel ? isInputFilled || isFocused : false; + var isFloatingLabelSet = !hideLabelFromVision && isFloatingLabel && label; + return Object(external_this_wp_element_["createElement"])(input_control_styles_Root, { + className: classes, + isFloatingLabel: isFloatingLabelSet, + isFocused: isFocused + }, Object(external_this_wp_element_["createElement"])(label_Label, { + className: "components-input-control__label", + hideLabelFromVision: hideLabelFromVision, + htmlFor: id, + isFilled: isFilled, + isFloating: isFloating, + isFloatingLabel: isFloatingLabel, + size: size + }, label), Object(external_this_wp_element_["createElement"])(Container, { + className: "components-input-control__container", + disabled: disabled, + isFocused: isFocused + }, Object(external_this_wp_element_["createElement"])(input_field, Object(esm_extends["a" /* default */])({}, props, { + className: "components-input-control__input", + disabled: disabled, + id: id, + isFloating: isFloating, + isFloatingLabelSet: isFloatingLabelSet, + isPressEnterToChange: isPressEnterToChange, + onBlur: handleOnBlur, + onChange: onChange, + onFocus: handleOnFocus, + onKeyDown: onKeyDown, + onUpdateValue: setIsFilled, + onValidate: onValidate, + ref: ref, + setIsFocused: setIsFocused, + size: size, + stateReducer: stateReducer, + value: value + })), suffix && Object(external_this_wp_element_["createElement"])(Suffix, { + className: "components-input-control__suffix" + }, suffix), Object(external_this_wp_element_["createElement"])(backdrop, { + "aria-hidden": "true", + disabled: disabled, + isFloating: isFloating, + isFloatingLabel: isFloatingLabelSet, + isFocused: isFocused, + label: label, + size: size + }), children)); +} +/* harmony default export */ var input_control = (Object(external_this_wp_element_["forwardRef"])(InputControl)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/styles/number-control-styles.js + + +function number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + +var number_control_styles_ref = true ? { + name: "1b9wwt5", + styles: "&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}" +} : undefined; + +var htmlArrowStyles = function htmlArrowStyles(_ref2) { + var hideHTMLArrows = _ref2.hideHTMLArrows; + if (!hideHTMLArrows) return ""; + return number_control_styles_ref; +}; + +var number_control_styles_Input = /*#__PURE__*/styled_base_browser_esm(input_control, { + target: "ep48uk90", + label: "Input" +})(htmlArrowStyles, ";" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/utils.js +/** + * External dependencies + */ + +/** + * Parses and retrieves a number value. + * + * @param {any} value The incoming value. + * @return {number} The parsed number value. + */ + +function getNumberValue(value) { + var number = Number(value); + return isNaN(number) ? 0 : number; +} +/** + * Parses a value to safely store value state. + * + * @param {any} value The incoming value. + * @return {number} The parsed number value. + */ + + +function getValue(value) { + var parsedValue = parseFloat(value); + return isNaN(parsedValue) ? value : parsedValue; +} +/** + * Safely adds 2 values. + * + * @param {any} a First value. + * @param {any} b Second value. + * @return {number} The sum of the 2 values. + */ + +function add(a, b) { + return getNumberValue(a) + getNumberValue(b); +} +/** + * Safely subtracts 2 values. + * + * @param {any} a First value. + * @param {any} b Second value. + * @return {number} The difference of the 2 values. + */ + +function subtract(a, b) { + return getNumberValue(a) - getNumberValue(b); +} +/** + * Clamps a value based on a min/max range with rounding + * + * @param {number} value The value. + * @param {number} min The minimum range. + * @param {number} max The maximum range. + * @param {number} step A multiplier for the value. + * @return {number} The rounded and clamped value. + */ + +function roundClamp() { + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity; + var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Infinity; + var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; + var baseValue = getNumberValue(value); + var stepValue = getNumberValue(step); + var rounded = Math.round(baseValue / stepValue) * stepValue; + var clampedValue = Object(external_this_lodash_["clamp"])(rounded, min, max); + return clampedValue; +} +/** + * Clamps a value based on a min/max range with rounding. + * Returns a string. + * + * @param {any} args Arguments for roundClamp(). + * @property {number} value The value. + * @property {number} min The minimum range. + * @property {number} max The maximum range. + * @property {number} step A multiplier for the value. + * @return {string} The rounded and clamped value. + */ + +function roundClampString() { + return roundClamp.apply(void 0, arguments).toString(); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/index.js + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + +function NumberControl(_ref, ref) { + var _ref$__unstableStateR = _ref.__unstableStateReducer, + stateReducer = _ref$__unstableStateR === void 0 ? function (state) { + return state; + } : _ref$__unstableStateR, + className = _ref.className, + _ref$dragDirection = _ref.dragDirection, + dragDirection = _ref$dragDirection === void 0 ? 'n' : _ref$dragDirection, + _ref$hideHTMLArrows = _ref.hideHTMLArrows, + hideHTMLArrows = _ref$hideHTMLArrows === void 0 ? false : _ref$hideHTMLArrows, + _ref$isDragEnabled = _ref.isDragEnabled, + isDragEnabled = _ref$isDragEnabled === void 0 ? true : _ref$isDragEnabled, + _ref$isShiftStepEnabl = _ref.isShiftStepEnabled, + isShiftStepEnabled = _ref$isShiftStepEnabl === void 0 ? true : _ref$isShiftStepEnabl, + label = _ref.label, + _ref$max = _ref.max, + max = _ref$max === void 0 ? Infinity : _ref$max, + _ref$min = _ref.min, + min = _ref$min === void 0 ? -Infinity : _ref$min, + _ref$shiftStep = _ref.shiftStep, + shiftStep = _ref$shiftStep === void 0 ? 10 : _ref$shiftStep, + _ref$step = _ref.step, + step = _ref$step === void 0 ? 1 : _ref$step, + _ref$type = _ref.type, + typeProp = _ref$type === void 0 ? 'number' : _ref$type, + valueProp = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "className", "dragDirection", "hideHTMLArrows", "isDragEnabled", "isShiftStepEnabled", "label", "max", "min", "shiftStep", "step", "type", "value"]); + + var initialValue = getValue(valueProp, min, max); + var baseValue = Object(external_this_lodash_["clamp"])(0, min, max); + var isRtl = useRTL(); + var autoComplete = typeProp === 'number' ? 'off' : null; + var classes = classnames_default()('components-number-control', className); + /** + * "Middleware" function that intercepts updates from InputControl. + * This allows us to tap into actions to transform the (next) state for + * InputControl. + * + * @param {Object} state State from InputControl + * @param {Object} action Action triggering state change + * @return {Object} The updated state to apply to InputControl + */ + + var numberControlStateReducer = function numberControlStateReducer(state, action) { + var type = action.type, + payload = action.payload; + var event = payload === null || payload === void 0 ? void 0 : payload.event; + var currentValue = state.value; + /** + * Handles custom UP and DOWN Keyboard events + */ + + if (type === inputControlActionTypes.PRESS_UP || type === inputControlActionTypes.PRESS_DOWN) { + var enableShift = event.shiftKey && isShiftStepEnabled; + var incrementalValue = enableShift ? parseFloat(shiftStep) : parseFloat(step); + var nextValue = isValueEmpty(currentValue) ? baseValue : currentValue; + + if (event === null || event === void 0 ? void 0 : event.preventDefault) { + event.preventDefault(); + } + + if (type === inputControlActionTypes.PRESS_UP) { + nextValue = add(nextValue, incrementalValue); + } + + if (type === inputControlActionTypes.PRESS_DOWN) { + nextValue = subtract(nextValue, incrementalValue); + } + + nextValue = roundClamp(nextValue, min, max, incrementalValue); + state.value = nextValue; + } + /** + * Handles drag to update events + */ + + + if (type === inputControlActionTypes.DRAG && isDragEnabled) { + var delta = payload.delta, + shiftKey = payload.shiftKey; + + var _delta = Object(slicedToArray["a" /* default */])(delta, 2), + x = _delta[0], + y = _delta[1]; + + var modifier = shiftKey ? shiftStep : 1; + var directionModifier; + var directionBaseValue; + + switch (dragDirection) { + case 'n': + directionBaseValue = y; + directionModifier = -1; + break; + + case 'e': + directionBaseValue = x; + directionModifier = isRtl ? -1 : 1; + break; + + case 's': + directionBaseValue = y; + directionModifier = 1; + break; + + case 'w': + directionBaseValue = x; + directionModifier = isRtl ? 1 : -1; + break; + } + + var distance = directionBaseValue * modifier * directionModifier; + + var _nextValue; + + if (distance !== 0) { + _nextValue = roundClamp(add(currentValue, distance), min, max, modifier); + state.value = _nextValue; + } + } + /** + * Handles ENTER key press and submit + */ + + + if (type === inputControlActionTypes.PRESS_ENTER || type === inputControlActionTypes.SUBMIT) { + state.value = roundClamp(currentValue, min, max); + } + + return state; + }; + + return Object(external_this_wp_element_["createElement"])(number_control_styles_Input, Object(esm_extends["a" /* default */])({ + autoComplete: autoComplete, + inputMode: "numeric" + }, props, { + className: classes, + dragDirection: dragDirection, + hideHTMLArrows: hideHTMLArrows, + isDragEnabled: isDragEnabled, + label: label, + max: max, + min: min, + ref: ref, + type: typeProp, + value: initialValue, + __unstableStateReducer: state_composeStateReducers(numberControlStateReducer, stateReducer) + })); +} +/* harmony default export */ var number_control = (Object(external_this_wp_element_["forwardRef"])(NumberControl)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/styles/unit-control-styles.js + + +function unit_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + +var unit_control_styles_Root = styled_base_browser_esm("div", { + target: "e1agakv00", + label: "Root" +})( true ? { + name: "1bt0omd", + styles: "box-sizing:border-box;position:relative;" +} : undefined); + +var unit_control_styles_paddingStyles = function paddingStyles(_ref2) { + var disableUnits = _ref2.disableUnits; + var value = disableUnits ? 3 : 24; + return /*#__PURE__*/css_browser_esm(rtl({ + paddingRight: value + })(), ";" + ( true ? "" : undefined)); +}; + +var unit_control_styles_ref = true ? { + name: "1y65o8", + styles: "&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}" +} : undefined; + +var arrowStyles = function arrowStyles(_ref3) { + var disableUnits = _ref3.disableUnits; + if (disableUnits) return ''; + return unit_control_styles_ref; +}; // TODO: Resolve need to use &&& to increase specificity +// https://github.com/WordPress/gutenberg/issues/18483 + + +var ValueInput = /*#__PURE__*/styled_base_browser_esm(number_control, { + target: "e1agakv01", + label: "ValueInput" +})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;", arrowStyles, ";", unit_control_styles_paddingStyles, ";}}" + ( true ? "" : undefined)); + +var unit_control_styles_unitSizeStyles = function unitSizeStyles(_ref4) { + var size = _ref4.size; + var sizes = { + default: { + top: 1, + height: 28, + minHeight: 28 + }, + small: { + top: 1, + height: 22, + minHeight: 22 + } + }; + return /*#__PURE__*/css_browser_esm(sizes[size], true ? "" : undefined); +}; + +var unit_control_styles_baseUnitLabelStyles = function baseUnitLabelStyles(props) { + return /*#__PURE__*/css_browser_esm("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:", colors_color('darkGray.500'), ";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;", rtl({ + borderTopLeftRadius: 0, + borderBottomLeftRadius: 0 + })(), " ", rtl({ + right: 0 + })(), " ", unit_control_styles_unitSizeStyles(props), true ? "" : undefined); +}; + +var unit_control_styles_unitLabelPaddingStyles = function unitLabelPaddingStyles(_ref5) { + var size = _ref5.size; + var sizes = { + default: '6px 2px', + small: '4px 2px' + }; + return /*#__PURE__*/css_browser_esm({ + padding: sizes[size] + }, true ? "" : undefined); +}; + +var UnitLabel = styled_base_browser_esm("div", { + target: "e1agakv02", + label: "UnitLabel" +})("&&&{pointer-events:none;", unit_control_styles_baseUnitLabelStyles, ";", unit_control_styles_unitLabelPaddingStyles, ";}" + ( true ? "" : undefined)); +var UnitSelect = styled_base_browser_esm("select", { + target: "e1agakv03", + label: "UnitSelect" +})("&&&{", unit_control_styles_baseUnitLabelStyles, ";cursor:pointer;border:1px solid transparent;&:hover{background-color:", colors_color('lightGray.300'), ";}&:focus{border-color:", colors_color('ui.borderFocus'), ";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/utils.js + + +/** + * External dependencies + */ + +var CSS_UNITS = [{ + value: 'px', + label: 'px', + default: 0 +}, { + value: '%', + label: '%', + default: 10 +}, { + value: 'em', + label: 'em', + default: 0 +}, { + value: 'rem', + label: 'rem', + default: 0 +}, { + value: 'vw', + label: 'vw', + default: 10 +}, { + value: 'vh', + label: 'vh', + default: 10 +}]; +var DEFAULT_UNIT = CSS_UNITS[0]; +/** + * Handles legacy value + unit handling. + * This component use to manage both incoming value and units separately. + * + * Moving forward, ideally the value should be a string that contains both + * the value and unit, example: '10px' + * + * @param {number|string} value Value + * @param {string} unit Unit value + * @param {Array} units Units to derive from. + * @return {Array} The extracted number and unit. + */ + +function getParsedValue(value, unit, units) { + var initialValue = unit ? "".concat(value).concat(unit) : value; + return parseUnit(initialValue, units); +} +/** + * Checks if units are defined. + * + * @param {any} units Units to check. + * @return {boolean} Whether units are defined. + */ + +function hasUnits(units) { + return !Object(external_this_lodash_["isEmpty"])(units) && units.length > 1 && units !== false; +} +/** + * Parses a number and unit from a value. + * + * @param {string} initialValue Value to parse + * @param {Array} units Units to derive from. + * @return {Array} The extracted number and unit. + */ + +function parseUnit(initialValue) { + var units = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : CSS_UNITS; + var value = String(initialValue).trim(); + var num = parseFloat(value, 10); + num = isNaN(num) ? '' : num; + var unitMatch = value.match(/[\d.\-\+]*\s*(.*)/)[1]; + var unit = unitMatch !== undefined ? unitMatch : ''; + unit = unit.toLowerCase(); + + if (hasUnits(units)) { + var match = units.find(function (item) { + return item.value === unit; + }); + unit = match === null || match === void 0 ? void 0 : match.value; + } + + return [num, unit]; +} +/** + * Parses a number and unit from a value. Validates parsed value, using fallback + * value if invalid. + * + * @param {number|string} next The next value. + * @param {Array} units Units to derive from. + * @param {number|string} fallbackValue The fallback value. + * @param {string} fallbackUnit The fallback value. + * @return {Array} The extracted number and unit. + */ + +function getValidParsedUnit(next, units, fallbackValue, fallbackUnit) { + var _parseUnit = parseUnit(next, units), + _parseUnit2 = Object(slicedToArray["a" /* default */])(_parseUnit, 2), + parsedValue = _parseUnit2[0], + parsedUnit = _parseUnit2[1]; + + var baseValue = parsedValue; + var baseUnit; + + if (isNaN(parsedValue) || parsedValue === '') { + baseValue = fallbackValue; + } + + baseUnit = parsedUnit || fallbackUnit; + /** + * If no unit is found, attempt to use the first value from the collection + * of units as a default fallback. + */ + + if (hasUnits(units) && !baseUnit) { + var _units$; + + baseUnit = (_units$ = units[0]) === null || _units$ === void 0 ? void 0 : _units$.value; + } + + return [baseValue, baseUnit]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/unit-select-control.js + + + + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + + +/** + * Renders a `select` if there are multiple units. + * Otherwise, renders a non-selectable label. + * + * @param {Object} props Component props. + * @param {string} [props.className] Class to set on the `select` element. + * @param {boolean} [props.isTabbable=true] Whether the control can be focused via keyboard navigation. + * @param {Array} [props.options=CSS_UNITS] Available units to select from. + * @param {Function} [props.onChange=noop] A callback function invoked when the value is changed. + * @param {string} [props.size="default"] Size of the control option. Supports "default" and "small". + * @param {string} [props.value="px"] Current unit. + */ + +function UnitSelectControl(_ref) { + var className = _ref.className, + _ref$isTabbable = _ref.isTabbable, + isTabbable = _ref$isTabbable === void 0 ? true : _ref$isTabbable, + _ref$options = _ref.options, + options = _ref$options === void 0 ? CSS_UNITS : _ref$options, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + _ref$value = _ref.value, + value = _ref$value === void 0 ? 'px' : _ref$value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "isTabbable", "options", "onChange", "size", "value"]); + + if (!hasUnits(options)) { + return Object(external_this_wp_element_["createElement"])(UnitLabel, { + className: "components-unit-control__unit-label", + size: size + }, value); + } + + var handleOnChange = function handleOnChange(event) { + var unitValue = event.target.value; + var data = options.find(function (option) { + return option.value === unitValue; + }); + onChange(unitValue, { + event: event, + data: data + }); + }; + + var classes = classnames_default()('components-unit-control__select', className); + return Object(external_this_wp_element_["createElement"])(UnitSelect, Object(esm_extends["a" /* default */])({ + className: classes, + onChange: handleOnChange, + size: size, + tabIndex: isTabbable ? null : '-1', + value: value + }, props), options.map(function (option) { + return Object(external_this_wp_element_["createElement"])("option", { + value: option.value, + key: option.value + }, option.label); + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/index.js + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + +function UnitControl(_ref, ref) { + var _ref$__unstableStateR = _ref.__unstableStateReducer, + stateReducer = _ref$__unstableStateR === void 0 ? function (state) { + return state; + } : _ref$__unstableStateR, + _ref$autoComplete = _ref.autoComplete, + autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete, + className = _ref.className, + _ref$disabled = _ref.disabled, + disabled = _ref$disabled === void 0 ? false : _ref$disabled, + _ref$disableUnits = _ref.disableUnits, + disableUnits = _ref$disableUnits === void 0 ? false : _ref$disableUnits, + _ref$isPressEnterToCh = _ref.isPressEnterToChange, + isPressEnterToChange = _ref$isPressEnterToCh === void 0 ? false : _ref$isPressEnterToCh, + _ref$isResetValueOnUn = _ref.isResetValueOnUnitChange, + isResetValueOnUnitChange = _ref$isResetValueOnUn === void 0 ? false : _ref$isResetValueOnUn, + _ref$isUnitSelectTabb = _ref.isUnitSelectTabbable, + isUnitSelectTabbable = _ref$isUnitSelectTabb === void 0 ? false : _ref$isUnitSelectTabb, + label = _ref.label, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onUnitChange = _ref.onUnitChange, + onUnitChange = _ref$onUnitChange === void 0 ? external_this_lodash_["noop"] : _ref$onUnitChange, + _ref$size = _ref.size, + size = _ref$size === void 0 ? 'default' : _ref$size, + style = _ref.style, + unitProp = _ref.unit, + _ref$units = _ref.units, + units = _ref$units === void 0 ? CSS_UNITS : _ref$units, + valueProp = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["__unstableStateReducer", "autoComplete", "className", "disabled", "disableUnits", "isPressEnterToChange", "isResetValueOnUnitChange", "isUnitSelectTabbable", "label", "onChange", "onUnitChange", "size", "style", "unit", "units", "value"]); + + var _getParsedValue = getParsedValue(valueProp, unitProp, units), + _getParsedValue2 = Object(slicedToArray["a" /* default */])(_getParsedValue, 2), + value = _getParsedValue2[0], + initialUnit = _getParsedValue2[1]; + + var _useState = Object(external_this_wp_element_["useState"])(initialUnit), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + unit = _useState2[0], + setUnit = _useState2[1]; + + var classes = classnames_default()('components-unit-control', className); + + var handleOnChange = function handleOnChange(next, changeProps) { + /** + * Customizing the onChange callback. + * This allows as to broadcast a combined value+unit to onChange. + */ + var _getValidParsedUnit = getValidParsedUnit(next, units, value, unit), + _getValidParsedUnit2 = Object(slicedToArray["a" /* default */])(_getValidParsedUnit, 2), + parsedValue = _getValidParsedUnit2[0], + parsedUnit = _getValidParsedUnit2[1]; + + var nextValue = "".concat(parsedValue).concat(parsedUnit); + onChange(nextValue, changeProps); + }; + + var handleOnUnitChange = function handleOnUnitChange(next, changeProps) { + var data = changeProps.data; + var nextValue = "".concat(value).concat(next); + + if (isResetValueOnUnitChange && (data === null || data === void 0 ? void 0 : data.default) !== undefined) { + nextValue = "".concat(data.default).concat(next); + } + + onChange(nextValue, changeProps); + onUnitChange(next, changeProps); + setUnit(next); + }; + /** + * "Middleware" function that intercepts updates from InputControl. + * This allows us to tap into actions to transform the (next) state for + * InputControl. + * + * @param {Object} state State from InputControl + * @param {Object} action Action triggering state change + * @return {Object} The updated state to apply to InputControl + */ + + + var unitControlStateReducer = function unitControlStateReducer(state, action) { + var type = action.type, + payload = action.payload; + var event = payload === null || payload === void 0 ? void 0 : payload.event; + /** + * Customizes the commit interaction. + * + * This occurs when pressing ENTER to fire a change. + * By intercepting the state change, we can parse the incoming + * value to determine if the unit needs to be updated. + */ + + if (type === inputControlActionTypes.COMMIT) { + var _event$target; + + var valueToParse = event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value; + + var _getValidParsedUnit3 = getValidParsedUnit(valueToParse, units, value, unit), + _getValidParsedUnit4 = Object(slicedToArray["a" /* default */])(_getValidParsedUnit3, 2), + parsedValue = _getValidParsedUnit4[0], + parsedUnit = _getValidParsedUnit4[1]; + + state.value = parsedValue; // Update unit if the incoming parsed unit is different. + + if (unit !== parsedUnit) { + handleOnUnitChange(parsedUnit, { + event: event + }); + } + } + + return state; + }; + + var inputSuffix = !disableUnits ? Object(external_this_wp_element_["createElement"])(UnitSelectControl, { + disabled: disabled, + isTabbable: isUnitSelectTabbable, + options: units, + onChange: handleOnUnitChange, + size: size, + value: unit + }) : null; + return Object(external_this_wp_element_["createElement"])(unit_control_styles_Root, { + className: "components-unit-control-wrapper", + style: style + }, Object(external_this_wp_element_["createElement"])(ValueInput, Object(esm_extends["a" /* default */])({ + "aria-label": label, + type: isPressEnterToChange ? 'text' : 'number' + }, props, { + autoComplete: autoComplete, + className: classes, + disabled: disabled, + disableUnits: disableUnits, + isPressEnterToChange: isPressEnterToChange, + label: label, + onChange: handleOnChange, + ref: ref, + size: size, + suffix: inputSuffix, + value: value, + __unstableStateReducer: state_composeStateReducers(unitControlStateReducer, stateReducer) + }))); +} + +var ForwardedUnitControl = Object(external_this_wp_element_["forwardRef"])(UnitControl); +/* harmony default export */ var unit_control = (ForwardedUnitControl); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-styles.js + + +function box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + + +var box_control_styles_Root = styled_base_browser_esm("div", { + target: "e7pk0lh0", + label: "Root" +})( true ? { + name: "vho1ao", + styles: "box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;" +} : undefined); +var Header = /*#__PURE__*/styled_base_browser_esm(flex_Flex, { + target: "e7pk0lh1", + label: "Header" +})("color:", colors_color('ui.label'), ";padding-bottom:8px;" + ( true ? "" : undefined)); +var HeaderControlWrapper = /*#__PURE__*/styled_base_browser_esm(flex_Flex, { + target: "e7pk0lh2", + label: "HeaderControlWrapper" +})( true ? { + name: "19de7qh", + styles: "min-height:30px;" +} : undefined); +var UnitControlWrapper = styled_base_browser_esm("div", { + target: "e7pk0lh3", + label: "UnitControlWrapper" +})( true ? { + name: "zypm0w", + styles: "box-sizing:border-box;max-width:80px;" +} : undefined); +var LayoutContainer = /*#__PURE__*/styled_base_browser_esm(flex_Flex, { + target: "e7pk0lh4", + label: "LayoutContainer" +})( true ? { + name: "39f89t", + styles: "justify-content:center;padding-top:8px;" +} : undefined); +var Layout = /*#__PURE__*/styled_base_browser_esm(flex_Flex, { + target: "e7pk0lh5", + label: "Layout" +})( true ? { + name: "ojqyia", + styles: "position:relative;height:100%;width:100%;" +} : undefined); + +var box_control_styles_ref = true ? { + name: "icip60", + styles: "border-radius:2px;" +} : undefined; + +var box_control_styles_ref2 = true ? { + name: "1k07npk", + styles: "border-radius:0;" +} : undefined; + +var box_control_styles_unitControlBorderRadiusStyles = function unitControlBorderRadiusStyles(_ref3) { + var isFirst = _ref3.isFirst, + isLast = _ref3.isLast, + isOnly = _ref3.isOnly; + + if (isFirst) { + return rtl({ + borderTopRightRadius: 0, + borderBottomRightRadius: 0 + })(); + } + + if (isLast) { + return rtl({ + borderTopLeftRadius: 0, + borderBottomLeftRadius: 0 + })(); + } + + if (isOnly) { + return box_control_styles_ref; + } + + return box_control_styles_ref2; +}; + +var box_control_styles_unitControlMarginStyles = function unitControlMarginStyles(_ref4) { + var isFirst = _ref4.isFirst; + var marginLeft = isFirst ? 0 : -1; + return rtl({ + marginLeft: marginLeft + })(); +}; + +var box_control_styles_UnitControl = /*#__PURE__*/styled_base_browser_esm(unit_control, { + target: "e7pk0lh6", + label: "UnitControl" +})("max-width:60px;", box_control_styles_unitControlBorderRadiusStyles, ";", box_control_styles_unitControlMarginStyles, ";" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/unit-control.js + + + + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + + +function BoxUnitControl(_ref) { + var isFirst = _ref.isFirst, + isLast = _ref.isLast, + isOnly = _ref.isOnly, + _ref$onHoverOn = _ref.onHoverOn, + onHoverOn = _ref$onHoverOn === void 0 ? external_this_lodash_["noop"] : _ref$onHoverOn, + _ref$onHoverOff = _ref.onHoverOff, + onHoverOff = _ref$onHoverOff === void 0 ? external_this_lodash_["noop"] : _ref$onHoverOff, + label = _ref.label, + value = _ref.value, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["isFirst", "isLast", "isOnly", "onHoverOn", "onHoverOff", "label", "value"]); + + var bindHoverGesture = useHover(function (_ref2) { + var event = _ref2.event, + state = Object(objectWithoutProperties["a" /* default */])(_ref2, ["event"]); + + if (state.hovering) { + onHoverOn(event, state); + } else { + onHoverOff(event, state); + } + }); + return Object(external_this_wp_element_["createElement"])(UnitControlWrapper, Object(esm_extends["a" /* default */])({ + "aria-label": label + }, bindHoverGesture()), Object(external_this_wp_element_["createElement"])(Tooltip, { + text: label + }, Object(external_this_wp_element_["createElement"])(box_control_styles_UnitControl, Object(esm_extends["a" /* default */])({ + className: "component-box-control__unit-control", + hideHTMLArrows: true, + isFirst: isFirst, + isLast: isLast, + isOnly: isOnly, + isPressEnterToChange: true, + isFloatingLabel: true, + isResetValueOnUnitChange: false, + value: value + }, props)))); +} + +function Tooltip(_ref3) { + var children = _ref3.children, + text = _ref3.text; + if (!text) return children; + return Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { + text: text, + position: "top" + }, children); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/utils.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var LABELS = { + all: Object(external_this_wp_i18n_["__"])('All'), + top: Object(external_this_wp_i18n_["__"])('Top'), + bottom: Object(external_this_wp_i18n_["__"])('Bottom'), + left: Object(external_this_wp_i18n_["__"])('Left'), + right: Object(external_this_wp_i18n_["__"])('Right'), + mixed: Object(external_this_wp_i18n_["__"])('Mixed') +}; +var DEFAULT_VALUES = { + top: null, + right: null, + bottom: null, + left: null +}; +var DEFAULT_VISUALIZER_VALUES = { + top: false, + right: false, + bottom: false, + left: false +}; +/** + * Gets an items with the most occurance within an array + * https://stackoverflow.com/a/20762713 + * + * @param {Array} arr Array of items to check. + * @return {any} The item with the most occurances. + */ + +function mode(arr) { + return arr.sort(function (a, b) { + return arr.filter(function (v) { + return v === a; + }).length - arr.filter(function (v) { + return v === b; + }).length; + }).pop(); +} +/** + * Gets the 'all' input value and unit from values data. + * + * @param {Object} values Box values. + * @return {string} A value + unit for the 'all' input. + */ + + +function getAllValue() { + var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var parsedValues = Object.values(values).map(parseUnit); + var allValues = parsedValues.map(function (value) { + return value[0]; + }); + var allUnits = parsedValues.map(function (value) { + return value[1]; + }); + var value = allValues.every(function (v) { + return v === allValues[0]; + }) ? allValues[0] : ''; + var unit = mode(allUnits); + /** + * The isNumber check is important. On reset actions, the incoming value + * may be null or an empty string. + * + * Also, the value may also be zero (0), which is considered a valid unit value. + * + * isNumber() is more specific for these cases, rather than relying on a + * simple truthy check. + */ + + var allValue = Object(external_this_lodash_["isNumber"])(value) ? "".concat(value).concat(unit) : null; + return allValue; +} +/** + * Checks to determine if values are mixed. + * + * @param {Object} values Box values. + * @return {boolean} Whether values are mixed. + */ + +function isValuesMixed() { + var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var allValue = getAllValue(values); + var isMixed = isNaN(parseFloat(allValue)); + return isMixed; +} +/** + * Checks to determine if values are defined. + * + * @param {Object} values Box values. + * + * @return {boolean} Whether values are mixed. + */ + +function isValuesDefined(values) { + return values !== undefined && !Object(external_this_lodash_["isEmpty"])(Object.values(values).filter(Boolean)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/all-input-control.js + + + + + +function all_input_control_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function all_input_control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { all_input_control_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { all_input_control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +function AllInputControl(_ref) { + var _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onFocus = _ref.onFocus, + onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, + _ref$onHoverOn = _ref.onHoverOn, + onHoverOn = _ref$onHoverOn === void 0 ? external_this_lodash_["noop"] : _ref$onHoverOn, + _ref$onHoverOff = _ref.onHoverOff, + onHoverOff = _ref$onHoverOff === void 0 ? external_this_lodash_["noop"] : _ref$onHoverOff, + values = _ref.values, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "onFocus", "onHoverOn", "onHoverOff", "values"]); + + var allValue = getAllValue(values); + var hasValues = isValuesDefined(values); + var isMixed = hasValues && isValuesMixed(values); + var allPlaceholder = isMixed ? LABELS.mixed : null; + + var handleOnFocus = function handleOnFocus(event) { + onFocus(event, { + side: 'all' + }); + }; + + var handleOnChange = function handleOnChange(next) { + var nextValues = all_input_control_objectSpread({}, values); + + nextValues.top = next; + nextValues.bottom = next; + nextValues.left = next; + nextValues.right = next; + onChange(nextValues); + }; + + var handleOnHoverOn = function handleOnHoverOn() { + onHoverOn({ + top: true, + bottom: true, + left: true, + right: true + }); + }; + + var handleOnHoverOff = function handleOnHoverOff() { + onHoverOff({ + top: false, + bottom: false, + left: false, + right: false + }); + }; + + return Object(external_this_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, { + disableUnits: isMixed, + isOnly: true, + value: allValue, + onChange: handleOnChange, + onFocus: handleOnFocus, + onHoverOn: handleOnHoverOn, + onHoverOff: handleOnHoverOff, + placeholder: allPlaceholder + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/input-controls.js + + + + + +function input_controls_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function input_controls_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { input_controls_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { input_controls_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + + +function BoxInputControls(_ref) { + var _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onFocus = _ref.onFocus, + onFocus = _ref$onFocus === void 0 ? external_this_lodash_["noop"] : _ref$onFocus, + _ref$onHoverOn = _ref.onHoverOn, + onHoverOn = _ref$onHoverOn === void 0 ? external_this_lodash_["noop"] : _ref$onHoverOn, + _ref$onHoverOff = _ref.onHoverOff, + onHoverOff = _ref$onHoverOff === void 0 ? external_this_lodash_["noop"] : _ref$onHoverOff, + values = _ref.values, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "onFocus", "onHoverOn", "onHoverOff", "values"]); + + var createHandleOnFocus = function createHandleOnFocus(side) { + return function (event) { + onFocus(event, { + side: side + }); + }; + }; + + var createHandleOnHoverOn = function createHandleOnHoverOn(side) { + return function () { + onHoverOn(Object(defineProperty["a" /* default */])({}, side, true)); + }; + }; + + var createHandleOnHoverOff = function createHandleOnHoverOff(side) { + return function () { + onHoverOff(Object(defineProperty["a" /* default */])({}, side, false)); + }; + }; + + var handleOnChange = function handleOnChange(nextValues) { + onChange(nextValues); + }; + + var top = values.top, + right = values.right, + bottom = values.bottom, + left = values.left; + + var createHandleOnChange = function createHandleOnChange(side) { + return function (next, _ref2) { + var event = _ref2.event; + var altKey = event.altKey; + + var nextValues = input_controls_objectSpread({}, values); + + nextValues[side] = next; + /** + * Supports changing pair sides. For example, holding the ALT key + * when changing the TOP will also update BOTTOM. + */ + + if (altKey) { + switch (side) { + case 'top': + nextValues.bottom = next; + break; + + case 'bottom': + nextValues.top = next; + break; + + case 'left': + nextValues.right = next; + break; + + case 'right': + nextValues.left = next; + break; + } + } + + handleOnChange(nextValues); + }; + }; + + return Object(external_this_wp_element_["createElement"])(LayoutContainer, { + className: "component-box-control__input-controls-wrapper" + }, Object(external_this_wp_element_["createElement"])(Layout, { + gap: 0, + align: "top", + className: "component-box-control__input-controls" + }, Object(external_this_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, { + isFirst: true, + value: top, + onChange: createHandleOnChange('top'), + onFocus: createHandleOnFocus('top'), + onHoverOn: createHandleOnHoverOn('top'), + onHoverOff: createHandleOnHoverOff('top'), + label: LABELS.top + })), Object(external_this_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, { + value: right, + onChange: createHandleOnChange('right'), + onFocus: createHandleOnFocus('right'), + onHoverOn: createHandleOnHoverOn('right'), + onHoverOff: createHandleOnHoverOff('right'), + label: LABELS.right + })), Object(external_this_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, { + value: bottom, + onChange: createHandleOnChange('bottom'), + onFocus: createHandleOnFocus('bottom'), + onHoverOn: createHandleOnHoverOn('bottom'), + onHoverOff: createHandleOnHoverOff('bottom'), + label: LABELS.bottom + })), Object(external_this_wp_element_["createElement"])(BoxUnitControl, Object(esm_extends["a" /* default */])({}, props, { + isLast: true, + value: left, + onChange: createHandleOnChange('left'), + onFocus: createHandleOnFocus('left'), + onHoverOn: createHandleOnHoverOn('left'), + onHoverOff: createHandleOnHoverOff('left'), + label: LABELS.left + })))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-icon-styles.js + + +function box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + +var box_control_icon_styles_Root = styled_base_browser_esm("span", { + target: "eaw9yqk0", + label: "Root" +})( true ? { + name: "1qtciqq", + styles: "box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px;" +} : undefined); +var Viewbox = styled_base_browser_esm("span", { + target: "eaw9yqk1", + label: "Viewbox" +})( true ? { + name: "be7uli", + styles: "box-sizing:border-box;display:block;position:relative;width:100%;height:100%;" +} : undefined); + +var box_control_icon_styles_strokeFocus = function strokeFocus(_ref) { + var isFocused = _ref.isFocused; + return /*#__PURE__*/css_browser_esm({ + backgroundColor: 'currentColor', + opacity: isFocused ? 1 : 0.3 + }, true ? "" : undefined); +}; + +var Stroke = styled_base_browser_esm("span", { + target: "eaw9yqk2", + label: "Stroke" +})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;", box_control_icon_styles_strokeFocus, ";" + ( true ? "" : undefined)); + +var VerticalStroke = /*#__PURE__*/styled_base_browser_esm(Stroke, { + target: "eaw9yqk3", + label: "VerticalStroke" +})( true ? { + name: "r820ty", + styles: "bottom:3px;top:3px;width:2px;" +} : undefined); + +var HorizontalStroke = /*#__PURE__*/styled_base_browser_esm(Stroke, { + target: "eaw9yqk4", + label: "HorizontalStroke" +})( true ? { + name: "1gteeqa", + styles: "height:2px;left:3px;right:3px;" +} : undefined); + +var TopStroke = /*#__PURE__*/styled_base_browser_esm(HorizontalStroke, { + target: "eaw9yqk5", + label: "TopStroke" +})( true ? { + name: "1etxbbi", + styles: "top:0;" +} : undefined); +var RightStroke = /*#__PURE__*/styled_base_browser_esm(VerticalStroke, { + target: "eaw9yqk6", + label: "RightStroke" +})( true ? { + name: "19zs6va", + styles: "right:0;" +} : undefined); +var BottomStroke = /*#__PURE__*/styled_base_browser_esm(HorizontalStroke, { + target: "eaw9yqk7", + label: "BottomStroke" +})( true ? { + name: "lh0t43", + styles: "bottom:0;" +} : undefined); +var LeftStroke = /*#__PURE__*/styled_base_browser_esm(VerticalStroke, { + target: "eaw9yqk8", + label: "LeftStroke" +})( true ? { + name: "260zpl", + styles: "left:0;" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/icon.js + + + + +/** + * Internal dependencies + */ + +var BASE_ICON_SIZE = 24; +function BoxControlIcon(_ref) { + var _ref$size = _ref.size, + size = _ref$size === void 0 ? 24 : _ref$size, + _ref$side = _ref.side, + side = _ref$side === void 0 ? 'all' : _ref$side, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["size", "side"]); + + var top = getSide(side, 'top'); + var right = getSide(side, 'right'); + var bottom = getSide(side, 'bottom'); + var left = getSide(side, 'left'); // Simulates SVG Icon scaling + + var scale = size / BASE_ICON_SIZE; + return Object(external_this_wp_element_["createElement"])(box_control_icon_styles_Root, Object(esm_extends["a" /* default */])({ + style: { + transform: "scale(".concat(scale, ")") + } + }, props), Object(external_this_wp_element_["createElement"])(Viewbox, null, Object(external_this_wp_element_["createElement"])(TopStroke, { + isFocused: top + }), Object(external_this_wp_element_["createElement"])(RightStroke, { + isFocused: right + }), Object(external_this_wp_element_["createElement"])(BottomStroke, { + isFocused: bottom + }), Object(external_this_wp_element_["createElement"])(LeftStroke, { + isFocused: left + }))); +} + +function getSide(side, value) { + return side === 'all' || side === value; +} + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js +var library_link = __webpack_require__(170); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js +var link_off = __webpack_require__(298); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js + + + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function LinkedButton(_ref) { + var isLinked = _ref.isLinked, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["isLinked"]); + + var linkedTooltipText = isLinked ? Object(external_this_wp_i18n_["__"])('Unlink Sides') : Object(external_this_wp_i18n_["__"])('Link Sides'); + return Object(external_this_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { + text: linkedTooltipText + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({}, props, { + className: "component-box-control__linked-button", + isPrimary: isLinked, + isSecondary: !isLinked, + isSmall: true, + icon: isLinked ? library_link["a" /* default */] : link_off["a" /* default */], + iconSize: 16 + })))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-visualizer-styles.js + + +function box_control_visualizer_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + +var box_control_visualizer_styles_ref = true ? { + name: "tbck19", + styles: "bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1;" +} : undefined; + +var containerPositionStyles = function containerPositionStyles(_ref2) { + var isPositionAbsolute = _ref2.isPositionAbsolute; + if (!isPositionAbsolute) return ''; + return box_control_visualizer_styles_ref; +}; + +var box_control_visualizer_styles_Container = styled_base_browser_esm("div", { + target: "e1df9b4q0", + label: "Container" +})("box-sizing:border-box;position:relative;", containerPositionStyles, ";" + ( true ? "" : undefined)); +var Side = styled_base_browser_esm("div", { + target: "e1df9b4q1", + label: "Side" +})("box-sizing:border-box;background:", colors_color('ui.brand'), ";filter:brightness( 1 );opacity:0;position:absolute;pointer-events:none;transition:opacity 120ms linear;z-index:1;", function (_ref3) { + var isActive = _ref3.isActive; + return isActive && "\n\t\topacity: 0.3;\n\t"; +}, true ? "" : undefined); +var TopView = /*#__PURE__*/styled_base_browser_esm(Side, { + target: "e1df9b4q2", + label: "TopView" +})( true ? { + name: "1pb21am", + styles: "top:0;left:0;right:0;" +} : undefined); +var RightView = /*#__PURE__*/styled_base_browser_esm(Side, { + target: "e1df9b4q3", + label: "RightView" +})("top:0;bottom:0;", rtl({ + right: 0 +}), ";" + ( true ? "" : undefined)); +var BottomView = /*#__PURE__*/styled_base_browser_esm(Side, { + target: "e1df9b4q4", + label: "BottomView" +})( true ? { + name: "w87m56", + styles: "bottom:0;left:0;right:0;" +} : undefined); +var LeftView = /*#__PURE__*/styled_base_browser_esm(Side, { + target: "e1df9b4q5", + label: "LeftView" +})("top:0;bottom:0;", rtl({ + left: 0 +}), ";" + ( true ? "" : undefined)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/visualizer.js + + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function BoxControlVisualizer(_ref) { + var children = _ref.children, + _ref$showValues = _ref.showValues, + showValues = _ref$showValues === void 0 ? DEFAULT_VISUALIZER_VALUES : _ref$showValues, + _ref$values = _ref.values, + valuesProp = _ref$values === void 0 ? DEFAULT_VALUES : _ref$values, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["children", "showValues", "values"]); + + var isPositionAbsolute = !children; + return Object(external_this_wp_element_["createElement"])(box_control_visualizer_styles_Container, Object(esm_extends["a" /* default */])({}, props, { + isPositionAbsolute: isPositionAbsolute, + "aria-hidden": "true" + }), Object(external_this_wp_element_["createElement"])(Sides, { + showValues: showValues, + values: valuesProp + }), children); +} + +function Sides(_ref2) { + var _ref2$showValues = _ref2.showValues, + showValues = _ref2$showValues === void 0 ? DEFAULT_VISUALIZER_VALUES : _ref2$showValues, + values = _ref2.values; + var top = values.top, + right = values.right, + bottom = values.bottom, + left = values.left; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(Top, { + isVisible: showValues.top, + value: top + }), Object(external_this_wp_element_["createElement"])(Right, { + isVisible: showValues.right, + value: right + }), Object(external_this_wp_element_["createElement"])(Bottom, { + isVisible: showValues.bottom, + value: bottom + }), Object(external_this_wp_element_["createElement"])(Left, { + isVisible: showValues.left, + value: left + })); +} + +function Top(_ref3) { + var _ref3$isVisible = _ref3.isVisible, + isVisible = _ref3$isVisible === void 0 ? false : _ref3$isVisible, + value = _ref3.value; + var height = value; + var animationProps = useSideAnimation(height); + var isActive = animationProps.isActive || isVisible; + return Object(external_this_wp_element_["createElement"])(TopView, { + isActive: isActive, + style: { + height: height + } + }); +} + +function Right(_ref4) { + var _ref4$isVisible = _ref4.isVisible, + isVisible = _ref4$isVisible === void 0 ? false : _ref4$isVisible, + value = _ref4.value; + var width = value; + var animationProps = useSideAnimation(width); + var isActive = animationProps.isActive || isVisible; + return Object(external_this_wp_element_["createElement"])(RightView, { + isActive: isActive, + style: { + width: width + } + }); +} + +function Bottom(_ref5) { + var _ref5$isVisible = _ref5.isVisible, + isVisible = _ref5$isVisible === void 0 ? false : _ref5$isVisible, + value = _ref5.value; + var height = value; + var animationProps = useSideAnimation(height); + var isActive = animationProps.isActive || isVisible; + return Object(external_this_wp_element_["createElement"])(BottomView, { + isActive: isActive, + style: { + height: height + } + }); +} + +function Left(_ref6) { + var _ref6$isVisible = _ref6.isVisible, + isVisible = _ref6$isVisible === void 0 ? false : _ref6$isVisible, + value = _ref6.value; + var width = value; + var animationProps = useSideAnimation(width); + var isActive = animationProps.isActive || isVisible; + return Object(external_this_wp_element_["createElement"])(LeftView, { + isActive: isActive, + style: { + width: width + } + }); +} +/** + * Custom hook that renders the "flash" animation whenever the value changes. + * + * @param {string} value Value of (box) side. + */ + + +function useSideAnimation(value) { + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isActive = _useState2[0], + setIsActive = _useState2[1]; + + var valueRef = Object(external_this_wp_element_["useRef"])(value); + var timeoutRef = Object(external_this_wp_element_["useRef"])(); + + var clearTimer = function clearTimer() { + if (timeoutRef.current) { + window.clearTimeout(timeoutRef.current); + } + }; + + Object(external_this_wp_element_["useEffect"])(function () { + if (value !== valueRef.current) { + setIsActive(true); + valueRef.current = value; + clearTimer(); + timeoutRef.current = setTimeout(function () { + setIsActive(false); + }, 400); + } + + return function () { + return clearTimer(); + }; + }, [value]); + return { + isActive: isActive + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks.js + + +/** + * WordPress dependencies + */ + +/** + * Custom hooks for "controlled" components to track and consolidate internal + * state and incoming values. This is useful for components that render + * `input`, `textarea`, or `select` HTML elements. + * + * https://reactjs.org/docs/forms.html#controlled-components + * + * At first, a component using useControlledState receives an initial prop + * value, which is used as initial internal state. + * + * This internal state can be maintained and updated without + * relying on new incoming prop values. + * + * Unlike the basic useState hook, useControlledState's state can + * be updated if a new incoming prop value is changed. + * + * @param {any} initialState The initial state value. + * @return {[*, Function]} The controlled value and the value setter. + */ + +function useControlledState(initialState) { + var _useState = Object(external_this_wp_element_["useState"])(initialState), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + state = _useState2[0], + setState = _useState2[1]; + + var lastInitialStateRef = Object(external_this_wp_element_["useRef"])(initialState); + Object(external_this_wp_element_["useEffect"])(function () { + // Update the internal state if the incoming value changes. + if (initialState !== lastInitialStateRef.current) { + setState(initialState); + lastInitialStateRef.current = initialState; + } + }, [initialState]); + return [state, setState]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/index.js + + + + +function box_control_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function box_control_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { box_control_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { box_control_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + + + + + + + + +var defaultInputProps = { + min: 0 +}; + +function box_control_useUniqueId(idProp) { + var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BoxControl); + var id = "inspector-box-control-".concat(instanceId); + return idProp || id; +} + +function BoxControl(_ref) { + var idProp = _ref.id, + _ref$inputProps = _ref.inputProps, + inputProps = _ref$inputProps === void 0 ? defaultInputProps : _ref$inputProps, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? external_this_lodash_["noop"] : _ref$onChange, + _ref$onChangeShowVisu = _ref.onChangeShowVisualizer, + onChangeShowVisualizer = _ref$onChangeShowVisu === void 0 ? external_this_lodash_["noop"] : _ref$onChangeShowVisu, + _ref$label = _ref.label, + label = _ref$label === void 0 ? Object(external_this_wp_i18n_["__"])('Box Control') : _ref$label, + valuesProp = _ref.values, + units = _ref.units; + + var _useControlledState = useControlledState(valuesProp), + _useControlledState2 = Object(slicedToArray["a" /* default */])(_useControlledState, 2), + values = _useControlledState2[0], + setValues = _useControlledState2[1]; + + var inputValues = values || DEFAULT_VALUES; + var hasInitialValue = isValuesDefined(valuesProp); + + var _useState = Object(external_this_wp_element_["useState"])(hasInitialValue), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isDirty = _useState2[0], + setIsDirty = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(!hasInitialValue || !isValuesMixed(inputValues)), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isLinked = _useState4[0], + setIsLinked = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(isLinked ? 'all' : 'top'), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + side = _useState6[0], + setSide = _useState6[1]; + + var id = box_control_useUniqueId(idProp); + var headingId = "".concat(id, "-heading"); + + var toggleLinked = function toggleLinked() { + setIsLinked(!isLinked); + setSide(!isLinked ? 'all' : 'top'); + }; + + var handleOnFocus = function handleOnFocus(event, _ref2) { + var nextSide = _ref2.side; + setSide(nextSide); + }; + + var handleOnChange = function handleOnChange(nextValues) { + onChange(nextValues); + setValues(nextValues); + setIsDirty(true); + }; + + var handleOnHoverOn = function handleOnHoverOn() { + var next = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + onChangeShowVisualizer(box_control_objectSpread({}, DEFAULT_VISUALIZER_VALUES, {}, next)); + }; + + var handleOnHoverOff = function handleOnHoverOff() { + var next = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + onChangeShowVisualizer(box_control_objectSpread({}, DEFAULT_VISUALIZER_VALUES, {}, next)); + }; + + var handleOnReset = function handleOnReset() { + var initialValues = DEFAULT_VALUES; + onChange(initialValues); + setValues(initialValues); + setIsDirty(false); + }; + + var inputControlProps = box_control_objectSpread({}, inputProps, { + onChange: handleOnChange, + onFocus: handleOnFocus, + onHoverOn: handleOnHoverOn, + onHoverOff: handleOnHoverOff, + isLinked: isLinked, + units: units, + values: inputValues + }); + + return Object(external_this_wp_element_["createElement"])(box_control_styles_Root, { + id: id, + role: "region", + "aria-labelledby": headingId + }, Object(external_this_wp_element_["createElement"])(Header, { + className: "component-box-control__header" + }, Object(external_this_wp_element_["createElement"])(flex_item, null, Object(external_this_wp_element_["createElement"])(build_module_text, { + id: headingId, + className: "component-box-control__label" + }, label)), Object(external_this_wp_element_["createElement"])(flex_item, null, Object(external_this_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: "component-box-control__reset-button", + isSecondary: true, + isSmall: true, + onClick: handleOnReset, + disabled: !isDirty + }, Object(external_this_wp_i18n_["__"])('Reset')))), Object(external_this_wp_element_["createElement"])(HeaderControlWrapper, { + className: "component-box-control__header-control-wrapper" + }, Object(external_this_wp_element_["createElement"])(flex_item, null, Object(external_this_wp_element_["createElement"])(BoxControlIcon, { + side: side + })), isLinked && Object(external_this_wp_element_["createElement"])(block, null, Object(external_this_wp_element_["createElement"])(AllInputControl, inputControlProps)), Object(external_this_wp_element_["createElement"])(flex_item, null, Object(external_this_wp_element_["createElement"])(LinkedButton, { + onClick: toggleLinked, + isLinked: isLinked + }))), !isLinked && Object(external_this_wp_element_["createElement"])(BoxInputControls, inputControlProps)); +} +BoxControl.__Visualizer = BoxControlVisualizer; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button-group/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +function ButtonGroup(_ref, ref) { + var className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]); + + var classes = classnames_default()('components-button-group', className); + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + ref: ref, + role: "group", + className: classes + }, props)); +} + +/* harmony default export */ var button_group = (Object(external_this_wp_element_["forwardRef"])(ButtonGroup)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/context.js +/** + * WordPress dependencies + */ + +var CardContext = Object(external_this_wp_element_["createContext"])({}); +var context_useCardContext = function useCardContext() { + return Object(external_this_wp_element_["useContext"])(CardContext); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/space.js +var SPACE_GRID_BASE = 8; +/** + * Creates a spacing CSS value (px) based on grid system values. + * + * @param {number} value Multiplier against the grid base value (8) + * @return {string} The spacing value (px). + */ + +function space() { + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; + if (isNaN(value)) return "".concat(SPACE_GRID_BASE, "px"); + return "".concat(SPACE_GRID_BASE * value, "px"); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/styles/card-styles.js @@ -26408,22 +27906,23 @@ function colors_color(value) { */ + var styleProps = { borderColor: colors_color('lightGray.500'), borderRadius: '3px', backgroundShady: colors_color('lightGray.200') }; -var borderColor = styleProps.borderColor, +var card_styles_borderColor = styleProps.borderColor, borderRadius = styleProps.borderRadius, backgroundShady = styleProps.backgroundShady; var CardUI = styled_base_browser_esm("div", { target: "e1q7k77g0", label: "CardUI" -})("background:", colors_color('white'), ";box-sizing:border-box;border-radius:", borderRadius, ";border:1px solid ", borderColor, ";", handleBorderless, ";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}" + ( true ? "" : undefined)); -var HeaderUI = styled_base_browser_esm("div", { +})("background:", colors_color('white'), ";box-sizing:border-box;border-radius:", borderRadius, ";border:1px solid ", card_styles_borderColor, ";", handleBorderless, ";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}" + ( true ? "" : undefined)); +var HeaderUI = /*#__PURE__*/styled_base_browser_esm(flex, { target: "e1q7k77g1", label: "HeaderUI" -})("border-bottom:1px solid ", borderColor, ";border-top-left-radius:", borderRadius, ";border-top-right-radius:", borderRadius, ";box-sizing:border-box;&:last-child{border-bottom:none;}", headerFooterSizes, ";", handleBorderless, ";", handleShady, ";" + ( true ? "" : undefined)); +})("border-bottom:1px solid ", card_styles_borderColor, ";border-top-left-radius:", borderRadius, ";border-top-right-radius:", borderRadius, ";box-sizing:border-box;&:last-child{border-bottom:none;}", headerFooterSizes, ";", handleBorderless, ";", handleShady, ";" + ( true ? "" : undefined)); var MediaUI = styled_base_browser_esm("div", { target: "e1q7k77g2", label: "MediaUI" @@ -26432,21 +27931,19 @@ var BodyUI = styled_base_browser_esm("div", { target: "e1q7k77g3", label: "BodyUI" })("box-sizing:border-box;", bodySize, ";", handleShady, ";" + ( true ? "" : undefined)); -var FooterUI = styled_base_browser_esm("div", { +var FooterUI = /*#__PURE__*/styled_base_browser_esm(flex, { target: "e1q7k77g4", label: "FooterUI" -})("border-top:1px solid ", borderColor, ";border-bottom-left-radius:", borderRadius, ";border-bottom-right-radius:", borderRadius, ";box-sizing:border-box;&:first-of-type{border-top:none;}", headerFooterSizes, ";", handleBorderless, ";", handleShady, ";" + ( true ? "" : undefined)); -var DividerUI = -/*#__PURE__*/ -styled_base_browser_esm(external_this_wp_primitives_["HorizontalRule"], { +})("border-top:1px solid ", card_styles_borderColor, ";border-bottom-left-radius:", borderRadius, ";border-bottom-right-radius:", borderRadius, ";box-sizing:border-box;&:first-of-type{border-top:none;}", headerFooterSizes, ";", handleBorderless, ";", handleShady, ";" + ( true ? "" : undefined)); +var DividerUI = /*#__PURE__*/styled_base_browser_esm(external_this_wp_primitives_["HorizontalRule"], { target: "e1q7k77g5", label: "DividerUI" -})("all:unset;border-top:1px solid ", borderColor, ";box-sizing:border-box;display:block;height:0;width:100%;" + ( true ? "" : undefined)); +})("all:unset;border-top:1px solid ", card_styles_borderColor, ";box-sizing:border-box;display:block;height:0;width:100%;" + ( true ? "" : undefined)); function bodySize() { - return "\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: 28px;\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: 20px;\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: 12px;\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: 8px;\n\t\t\t}\n\t\t}\n\t"; + return "\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(space(3), " ").concat(space(4), ";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(space(2), " ").concat(space(3), ";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(space(2), ";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(space(1), ";\n\t\t\t}\n\t\t}\n\t"); } function headerFooterSizes() { - return "\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: 20px 28px;\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: 12px 20px;\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: 8px 12px;\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: 4px 8px;\n\t\t\t}\n\t\t}\n\t"; + return "\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(space(3), " ").concat(space(4), ";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(space(2), " ").concat(space(3), ";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(space(2), ";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(space(1), ";\n\t\t\t}\n\t\t}\n\t"); } function handleBorderless() { return "\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"; @@ -26672,10 +28169,10 @@ function CardMedia(props) { /* harmony default export */ var media = (CardMedia); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js -var build_module_icon = __webpack_require__(191); +var build_module_icon = __webpack_require__(130); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js -var check = __webpack_require__(193); +var check = __webpack_require__(171); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/checkbox-control/index.js @@ -26733,141 +28230,66 @@ function CheckboxControl(_ref) { }, label)); } -// EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js -var clipboard = __webpack_require__(268); -var clipboard_default = /*#__PURE__*/__webpack_require__.n(clipboard); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/clipboard-button/index.js - - - - - - /** * External dependencies */ - /** * WordPress dependencies */ + /** * Internal dependencies */ +function ClipboardButton(_ref) { + var className = _ref.className, + children = _ref.children, + onCopy = _ref.onCopy, + onFinishCopy = _ref.onFinishCopy, + text = _ref.text, + buttonProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "children", "onCopy", "onFinishCopy", "text"]); -var clipboard_button_ClipboardButton = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ClipboardButton, _Component); - - function ClipboardButton() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ClipboardButton); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ClipboardButton).apply(this, arguments)); - _this.containerRef = Object(external_this_wp_element_["createRef"])(); - _this.onCopy = _this.onCopy.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getText = _this.getText.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ClipboardButton, [{ - key: "componentDidMount", - value: function componentDidMount() { - var getText = this.getText, - onCopy = this.onCopy; - var container = this.containerRef.current; - this.clipboard = new clipboard_default.a(container.firstChild, { - text: getText, - container: container - }); - this.clipboard.on('success', onCopy); + var ref = Object(external_this_wp_element_["useRef"])(); + var hasCopied = Object(external_this_wp_compose_["useCopyOnClick"])(ref, text); + var lastHasCopied = Object(external_this_wp_element_["useRef"])(hasCopied); + Object(external_this_wp_element_["useEffect"])(function () { + if (lastHasCopied.current === hasCopied) { + return; } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.clipboard.destroy(); - delete this.clipboard; - clearTimeout(this.onCopyTimeout); + + if (hasCopied) { + onCopy(); + } else if (onFinishCopy) { + onFinishCopy(); } - }, { - key: "onCopy", - value: function onCopy(args) { - // Clearing selection will move focus back to the triggering button, - // ensuring that it is not reset to the body, and further that it is - // kept within the rendered node. - args.clearSelection(); - var _this$props = this.props, - onCopy = _this$props.onCopy, - onFinishCopy = _this$props.onFinishCopy; - if (onCopy) { - onCopy(); // For convenience and consistency, ClipboardButton offers to call - // a secondary callback with delay. This is useful to reset - // consumers' state, e.g. to revert a label from "Copied" to - // "Copy". + lastHasCopied.current = hasCopied; + }, [onCopy, onFinishCopy, hasCopied]); + var classes = classnames_default()('components-clipboard-button', className); // Workaround for inconsistent behavior in Safari, where